From b667105f6010f77193144bee71067d5a53a7354c Mon Sep 17 00:00:00 2001 From: jorgefilipecosta Date: Tue, 13 Oct 2020 13:10:30 +0000 Subject: [PATCH] Editor: update packages; Port block supports to WordPress core. The following package versions were changed: @wordpress/a11y: 2.11.0 -> 2.13.0 @wordpress/annotations: 1.20.4 -> 1.22.0 @wordpress/api-fetch: 3.18.0 -> 3.20.0 @wordpress/autop: 2.9.0 -> 2.10.0 @wordpress/blob: 2.9.0 -> 2.10.0 @wordpress/block-directory: 1.13.7 -> 1.16.0 @wordpress/block-editor: 4.3.7 -> 5.0.0 @wordpress/block-library: 2.22.7 -> 2.25.0 @wordpress/block-serialization-default-parser: 3.7.0 -> 3.8.0 @wordpress/blocks: 6.20.3 -> 6.23.0 @wordpress/components: 10.0.6 -> 11.0.0 @wordpress/compose: 3.19.3 -> 3.21.0 @wordpress/core-data: 2.20.3 -> 2.23.0 @wordpress/data: 4.22.3 -> 4.24.0 @wordpress/data-controls: 1.16.3 -> 1.18.0 @wordpress/date: 3.10.0 -> 3.12.0 @wordpress/deprecated: 2.9.0 -> 2.10.0 @wordpress/dom: 2.13.1 -> 2.15.0 @wordpress/dom-ready: 2.10.0 -> 2.11.0 @wordpress/e2e-test-utils: 4.11.2 -> 4.14.0 @wordpress/edit-post: 3.21.7 -> 3.24.0 @wordpress/editor: 9.20.7 -> 9.23.0 @wordpress/element: 2.16.0 -> 2.18.0 @wordpress/escape-html: 1.9.0 -> 1.10.0 @wordpress/format-library: 1.22.7 -> 1.24.0 @wordpress/hooks: 2.9.0 -> 2.10.0 @wordpress/html-entities: 2.8.0 -> 2.9.0 @wordpress/i18n: 3.14.0 -> 3.16.0 @wordpress/icons: 2.4.0 -> 2.7.0 @wordpress/is-shallow-equal: 2.1.0 -> 2.3.0 @wordpress/keyboard-shortcuts: 1.9.3 -> 1.11.0 @wordpress/keycodes: 2.14.0 -> 2.16.0 @wordpress/library-export-default-webpack-plugin: 1.7.0 -> 1.9.0 @wordpress/list-reusable-blocks: 1.21.6 -> 1.23.0 @wordpress/media-utils: 1.15.0 -> 1.17.0 @wordpress/notices: 2.8.3 -> 2.10.0 @wordpress/nux: 3.20.6 -> 3.22.0 @wordpress/plugins: 2.20.3 -> 2.22.0 @wordpress/primitives: 1.7.0 -> 1.9.0 @wordpress/priority-queue: 1.7.0 -> 1.9.0 @wordpress/redux-routine: 3.10.0 -> 3.12.0 @wordpress/rich-text: 3.20.4 -> 3.22.0 @wordpress/scripts: 12.1.1 -> 12.3.0 @wordpress/server-side-render: 1.16.6 -> 1.18.0 @wordpress/shortcode: 2.9.0 -> 2.11.0 @wordpress/token-list: 1.11.0 -> 1.13.0 @wordpress/url: 2.17.0 -> 2.19.0 @wordpress/viewport: 2.21.3 -> 2.23.0 @wordpress/warning: 1.2.0 -> 1.3.0 @wordpress/wordcount: 2.10.0 -> 2.12.0 Props isabel_brison, youknowriad, mcsf. Fixes #51461. Built from https://develop.svn.wordpress.org/trunk@49135 git-svn-id: http://core.svn.wordpress.org/trunk@48897 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/array.php | 34 + wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/block-supports/align.php | 56 + wp-includes/block-supports/colors.php | 139 + .../block-supports/custom-classname.php | 54 + .../block-supports/generated-classname.php | 57 + wp-includes/block-supports/index.php | 137 + wp-includes/block-supports/typography.php | 121 + wp-includes/blocks/archives.php | 12 +- wp-includes/blocks/archives/block.json | 13 - wp-includes/blocks/calendar.php | 6 +- wp-includes/blocks/calendar/block.json | 13 - wp-includes/blocks/categories.php | 18 +- wp-includes/blocks/categories/block.json | 13 - wp-includes/blocks/code/block.json | 3 +- wp-includes/blocks/gallery/block.json | 3 +- wp-includes/blocks/group/block.json | 3 +- wp-includes/blocks/image/block.json | 3 +- wp-includes/blocks/latest-comments.php | 22 +- wp-includes/blocks/latest-comments/block.json | 13 - wp-includes/blocks/latest-posts.php | 34 +- wp-includes/blocks/latest-posts/block.json | 17 +- wp-includes/blocks/list/block.json | 8 +- wp-includes/blocks/media-text/block.json | 8 +- wp-includes/blocks/paragraph/block.json | 5 - wp-includes/blocks/quote/block.json | 3 +- wp-includes/blocks/rss.php | 16 +- wp-includes/blocks/rss/block.json | 13 - wp-includes/blocks/search.php | 129 +- wp-includes/blocks/search/block.json | 36 +- wp-includes/blocks/social-link.php | 15 +- wp-includes/blocks/social-link/block.json | 3 + wp-includes/blocks/social-links/block.json | 9 + wp-includes/blocks/tag-cloud.php | 14 +- wp-includes/blocks/tag-cloud/block.json | 13 - wp-includes/class-wp-block-parser.php | 48 +- .../css/dist/block-directory/style-rtl.css | 29 +- .../dist/block-directory/style-rtl.min.css | 2 +- .../css/dist/block-directory/style.css | 29 +- .../css/dist/block-directory/style.min.css | 2 +- .../css/dist/block-editor/style-rtl.css | 369 +- .../css/dist/block-editor/style-rtl.min.css | 2 +- wp-includes/css/dist/block-editor/style.css | 369 +- .../css/dist/block-editor/style.min.css | 4 +- .../css/dist/block-library/editor-rtl.css | 371 +- .../css/dist/block-library/editor-rtl.min.css | 2 +- wp-includes/css/dist/block-library/editor.css | 371 +- .../css/dist/block-library/editor.min.css | 2 +- .../css/dist/block-library/style-rtl.css | 358 +- .../css/dist/block-library/style-rtl.min.css | 2 +- wp-includes/css/dist/block-library/style.css | 358 +- .../css/dist/block-library/style.min.css | 4 +- .../css/dist/block-library/theme-rtl.css | 61 +- .../css/dist/block-library/theme-rtl.min.css | 2 +- wp-includes/css/dist/block-library/theme.css | 61 +- .../css/dist/block-library/theme.min.css | 2 +- wp-includes/css/dist/components/style-rtl.css | 493 +- .../css/dist/components/style-rtl.min.css | 2 +- wp-includes/css/dist/components/style.css | 493 +- wp-includes/css/dist/components/style.min.css | 6 +- wp-includes/css/dist/edit-post/style-rtl.css | 251 +- .../css/dist/edit-post/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-post/style.css | 251 +- wp-includes/css/dist/edit-post/style.min.css | 2 +- .../css/dist/editor/editor-styles-rtl.css | 16 +- .../css/dist/editor/editor-styles-rtl.min.css | 2 +- wp-includes/css/dist/editor/editor-styles.css | 16 +- .../css/dist/editor/editor-styles.min.css | 2 +- wp-includes/css/dist/editor/style-rtl.css | 57 +- wp-includes/css/dist/editor/style-rtl.min.css | 2 +- wp-includes/css/dist/editor/style.css | 57 +- wp-includes/css/dist/editor/style.min.css | 2 +- .../css/dist/format-library/style-rtl.css | 13 +- .../css/dist/format-library/style-rtl.min.css | 2 +- wp-includes/css/dist/format-library/style.css | 13 +- .../css/dist/format-library/style.min.css | 2 +- .../dist/list-reusable-blocks/style-rtl.css | 11 +- .../css/dist/list-reusable-blocks/style.css | 11 +- wp-includes/css/dist/nux/style-rtl.css | 11 +- wp-includes/css/dist/nux/style.css | 11 +- wp-includes/js/dist/a11y.js | 8 +- wp-includes/js/dist/a11y.min.js | 2 +- wp-includes/js/dist/annotations.js | 80 +- wp-includes/js/dist/annotations.min.js | 2 +- wp-includes/js/dist/api-fetch.js | 144 +- wp-includes/js/dist/api-fetch.min.js | 2 +- wp-includes/js/dist/autop.js | 16 +- wp-includes/js/dist/autop.min.js | 2 +- wp-includes/js/dist/blob.js | 4 +- wp-includes/js/dist/blob.min.js | 2 +- wp-includes/js/dist/block-directory.js | 569 +- wp-includes/js/dist/block-directory.min.js | 2 +- wp-includes/js/dist/block-editor.js | 10067 ++++++--- wp-includes/js/dist/block-editor.min.js | 6 +- wp-includes/js/dist/block-library.js | 5747 ++--- wp-includes/js/dist/block-library.min.js | 18 +- .../block-serialization-default-parser.js | 16 +- .../block-serialization-default-parser.min.js | 2 +- wp-includes/js/dist/blocks.js | 1082 +- wp-includes/js/dist/blocks.min.js | 4 +- wp-includes/js/dist/components.js | 18375 ++++++++-------- wp-includes/js/dist/components.min.js | 8 +- wp-includes/js/dist/compose.js | 130 +- wp-includes/js/dist/compose.min.js | 4 +- wp-includes/js/dist/core-data.js | 1209 +- wp-includes/js/dist/core-data.min.js | 2 +- wp-includes/js/dist/data-controls.js | 46 +- wp-includes/js/dist/data-controls.min.js | 2 +- wp-includes/js/dist/data.js | 461 +- wp-includes/js/dist/data.min.js | 2 +- wp-includes/js/dist/date.js | 35 +- wp-includes/js/dist/date.min.js | 6 +- wp-includes/js/dist/deprecated.js | 8 +- wp-includes/js/dist/deprecated.min.js | 2 +- wp-includes/js/dist/dom-ready.js | 4 +- wp-includes/js/dist/dom-ready.min.js | 2 +- wp-includes/js/dist/dom.js | 474 +- wp-includes/js/dist/dom.min.js | 2 +- wp-includes/js/dist/edit-post.js | 1201 +- wp-includes/js/dist/edit-post.min.js | 4 +- wp-includes/js/dist/editor.js | 2278 +- wp-includes/js/dist/editor.min.js | 14 +- wp-includes/js/dist/element.js | 64 +- wp-includes/js/dist/element.min.js | 2 +- wp-includes/js/dist/escape-html.js | 4 +- wp-includes/js/dist/escape-html.min.js | 2 +- wp-includes/js/dist/format-library.js | 340 +- wp-includes/js/dist/format-library.min.js | 2 +- wp-includes/js/dist/hooks.js | 18 +- wp-includes/js/dist/hooks.min.js | 2 +- wp-includes/js/dist/html-entities.js | 4 +- wp-includes/js/dist/html-entities.min.js | 2 +- wp-includes/js/dist/i18n.js | 12 +- wp-includes/js/dist/i18n.min.js | 2 +- wp-includes/js/dist/is-shallow-equal.js | 12 +- wp-includes/js/dist/is-shallow-equal.min.js | 2 +- wp-includes/js/dist/keyboard-shortcuts.js | 62 +- wp-includes/js/dist/keyboard-shortcuts.min.js | 2 +- wp-includes/js/dist/keycodes.js | 20 +- wp-includes/js/dist/keycodes.min.js | 2 +- wp-includes/js/dist/list-reusable-blocks.js | 148 +- .../js/dist/list-reusable-blocks.min.js | 2 +- wp-includes/js/dist/media-utils.js | 188 +- wp-includes/js/dist/media-utils.min.js | 2 +- wp-includes/js/dist/notices.js | 20 +- wp-includes/js/dist/notices.min.js | 2 +- wp-includes/js/dist/nux.js | 78 +- wp-includes/js/dist/nux.min.js | 2 +- wp-includes/js/dist/plugins.js | 72 +- wp-includes/js/dist/plugins.min.js | 2 +- wp-includes/js/dist/primitives.js | 137 +- wp-includes/js/dist/primitives.min.js | 4 +- wp-includes/js/dist/priority-queue.js | 8 +- wp-includes/js/dist/priority-queue.min.js | 2 +- wp-includes/js/dist/redux-routine.js | 80 +- wp-includes/js/dist/redux-routine.min.js | 2 +- wp-includes/js/dist/rich-text.js | 921 +- wp-includes/js/dist/rich-text.min.js | 4 +- wp-includes/js/dist/server-side-render.js | 103 +- wp-includes/js/dist/server-side-render.min.js | 2 +- wp-includes/js/dist/shortcode.js | 4 +- wp-includes/js/dist/shortcode.min.js | 2 +- wp-includes/js/dist/token-list.js | 26 +- wp-includes/js/dist/token-list.min.js | 2 +- wp-includes/js/dist/url.js | 28 +- wp-includes/js/dist/url.min.js | 2 +- wp-includes/js/dist/viewport.js | 32 +- wp-includes/js/dist/viewport.min.js | 2 +- wp-includes/js/dist/warning.js | 8 +- wp-includes/js/dist/warning.min.js | 2 +- wp-includes/js/dist/wordcount.js | 4 +- wp-includes/js/dist/wordcount.min.js | 2 +- wp-includes/version.php | 2 +- wp-settings.php | 2 + 174 files changed, 27791 insertions(+), 21925 deletions(-) create mode 100644 wp-includes/array.php create mode 100644 wp-includes/block-supports/align.php create mode 100644 wp-includes/block-supports/colors.php create mode 100644 wp-includes/block-supports/custom-classname.php create mode 100644 wp-includes/block-supports/generated-classname.php create mode 100644 wp-includes/block-supports/index.php create mode 100644 wp-includes/block-supports/typography.php diff --git a/wp-includes/array.php b/wp-includes/array.php new file mode 100644 index 0000000000..30d55e9d67 --- /dev/null +++ b/wp-includes/array.php @@ -0,0 +1,34 @@ + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '4aeb6e4bc85cb57b9974ac8fbf56ee13'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b668c252546c4c525860a92fad4644fe'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'fef640242e23ac53f3a5a4665438b7ff'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e0774d50e3898deb6d52ca21042798ce'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ba744a9be3487d6b0f4e97f198948de2'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '7bbf912d9511e43badd728e8c26397d1'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', '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-wordcount'), 'version' => 'db63e8a22cd7b537bea63c7974c3e43f'), '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-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '5bbbf77b328339d84d4ff0999a4d70a9'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0043d905890011500907fda937ff4885'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '57bc3ea89f31699123b57b5e583f7b78'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', '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' => '8edfcf3960868c10e60a48d4f2b712ba'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'a84423a149cc6f9980ded81cce0afae9'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '2be3bc26a53b86970c06c11068350ba0'), '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' => '2ea4d4115a74921d43f5ff9f84b0ee7e'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'd5c4e833a03000872ac76bc3a59fa170'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'c07eed7f1706ac6e00b9f7ef183a784d'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '2560458efc804c1b53a3fde1ecf7bc49'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '420064e923d3d44b1543cb94e0988abb'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b2040b158526225c1045cc5ba0412535'), '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-url', 'wp-viewport', 'wp-warning'), 'version' => '702bfb64d3e9d1bcd3c72e54e8b7c72e'), '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-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'b8355d0cc1df145141693bfcd6018c84'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'a021db2a069fca96700d0a1e4c83ce9d'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '666d00ff5e4fae5a68e39a212b795f3a'), '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' => 'da591ce398760edc41f150a1722be921'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a467c6be0a15df5ec9b7b263bfd257d'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f7dd1a31f079d88c01e958118ad386d1'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f3a5d380deaddb9b487603d26ed84a97'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b877fe0c3725ce40dbfbf97ce50358f5'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '3bc41929501b3b06427e358dcfa8ddf3'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '47936c39150460bdbaed8849c68e674d'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '0f3e616ef82fdbfb8d685854bae1d77d'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c1f984cdbd31f6a0ff8d428752f46289'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'e17abd0f71c2a100a0e730fc2ffebb86'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '080285c0df3e5a7d91d71b7d25b2d8f0'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '7c728c08f3135f46109ce4637be2404d'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '5a7331cf651485a88d19fdc733c8650c'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd50d04b445baba8961f8306ffd322dd3'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6499267b18aa3f13e00f19990e2a4ca4'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => 'b65f95f5577889b15d54a12dcd08f0eb'), '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' => '9134c77d3f631021cdd4175be4c18d8d'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9447c6a0b1836b5b73ed037205798064'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6396b0762dc57ec0a4c9376809f1709a'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'e0135b8e470dfa641dbbe67a39918a4b'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'fcde54af229b7999cb4a62c31a55724d'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1ddb2d302c0d3f7070d45d3a5ee7082b'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f93f1266a48d993b9ef2e89d1a8c58fb')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'dc7ee381aff6a9dc3ad4cf2c9ca120b7'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '27155380a815188dd577492812951589'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '070b6ecb852dc55922d59eb13a63389c'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1c7dffba3d995fbccc86b411aa5cc562'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '01833b47de938f0f8e85794557bc18c3'), 'block-directory.js' => array('dependencies' => array('lodash', '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' => '24354d8553ddfbcbf461b57065fe0771'), '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' => '9ae821cc38d2f7ff7d6ca9a589b6fc36'), '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-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '8f2089e3053fa95dc345070ec7eb2ac4'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '977fd3dd81047b7e745ecfac846b263c'), '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' => 'a77a2680e229cc69e8e426a83346f998'), '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' => '7427e0fb448bf552a7823b18c60929fb'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => '64ab8597aec30a2cc5ead65bfe1608e7'), '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' => '695e210b1278a073277be30612b012ab'), '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' => '9bc8bd6eb4596eb3dd6d088aee3c650b'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '16df67879fd40c06d062009d705eae7e'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'e4df6fe4e75e764950f212c46ae11c6b'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '56955507424d4f29407ed209d1ffb277'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'dff9d26a46cbd6f46e2d4895ccb23c46'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd6291b37a9b4f1368d9444f5aeb8d78a'), '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-url', 'wp-viewport', 'wp-warning'), 'version' => '5985400224db41e89fc807c1feec5f98'), '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-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '5ce5c9cde413b48409ee5168cfa4937d'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '1ea7443c7ed64cad48b984f226b278ea'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '067f1a106c08a603bdb1a96c3fa196f1'), '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' => '44fb9984a420dec846b07658bb9ee111'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a899efa38966fd49729dc1de80e394ec'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '765bf227a85016fff816aa3b28158b82'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '947c3285333752cf16a7b22b01af1ce0'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '935962abdcbf9cb9fcc644c7da72b14e'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '8a9f8bdb2f352208c0583c5e9d7f9f64'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '5633b88a2f66da4cf68426d8c9ccbb3e'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '9dd575a5aef56788369426613e26a342'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '5ae039ac87f0079983e21a0dd33b212c'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '653f8218a30cebf85619ca99eb33115d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'da59059e91898057d9589da458c2b6b5'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '31b1e6878ecada5283e79f43cd4aa475'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'd2b0458b408f1299f9fcde6db10b1b71'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9f53ee3ebd8d9c9ee570e4368fe61952'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '52a66a11b096e9f964677ff1bedbba47'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ca63fa8d70b2d06ee4e89c51e373ac81'), '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' => 'f8b8a12701f5fcd0cbf36306afcd338c'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'adb76b9fb90e39f9c4e0fbc1c6b84a2d'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '35ec0396c3210102f96e0660bbd1d957'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5e4305728fb1ee90de4dd5acb95ccb1a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '4469c293d800f4b1655e1127043abd39'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5d3e954781d75c81dfcced5cb1d04d96'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f729e1a9cd1c6d92b514a4ad3f020624')); \ No newline at end of file diff --git a/wp-includes/block-supports/align.php b/wp-includes/block-supports/align.php new file mode 100644 index 0000000000..52392c76ef --- /dev/null +++ b/wp-includes/block-supports/align.php @@ -0,0 +1,56 @@ +supports, array( 'align' ), false ); + } + if ( $has_align_support ) { + if ( ! $block_type->attributes ) { + $block_type->attributes = array(); + } + + if ( ! array_key_exists( 'align', $block_type->attributes ) ) { + $block_type->attributes['align'] = array( + 'type' => 'string', + 'enum' => array( 'left', 'center', 'right', 'wide', 'full', '' ), + ); + } + } +} + +/** + * Add CSS classes for block alignment to the incoming attributes array. + * This will be applied to the block markup in the front-end. + * + * @param array $attributes Comprehensive list of attributes to be applied. + * @param array $block_attributes Block attributes. + * @param WP_Block_Type $block_type Block Type. + * + * @return array Block alignment CSS classes and inline styles. + */ +function wp_apply_alignment_support( $attributes, $block_attributes, $block_type ) { + $has_align_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_align_support = wp_array_get( $block_type->supports, array( 'align' ), false ); + } + if ( $has_align_support ) { + $has_block_alignment = array_key_exists( 'align', $block_attributes ); + + if ( $has_block_alignment ) { + $attributes['css_classes'][] = sprintf( 'align%s', $block_attributes['align'] ); + } + } + + return $attributes; +} diff --git a/wp-includes/block-supports/colors.php b/wp-includes/block-supports/colors.php new file mode 100644 index 0000000000..76c0d48b6a --- /dev/null +++ b/wp-includes/block-supports/colors.php @@ -0,0 +1,139 @@ +supports, array( '__experimentalColor' ), false ); + } + $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'text' ), true ) ); + $has_background_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'background' ), true ) ); + $has_gradients_support = wp_array_get( $color_support, array( 'gradients' ), false ); + + if ( ! $block_type->attributes ) { + $block_type->attributes = array(); + } + + if ( $has_text_colors_support && ! array_key_exists( 'style', $block_type->attributes ) ) { + $block_type->attributes['style'] = array( + 'type' => 'object', + ); + } + + if ( $has_background_colors_support && ! array_key_exists( 'backgroundColor', $block_type->attributes ) ) { + $block_type->attributes['backgroundColor'] = array( + 'type' => 'string', + ); + } + + if ( $has_text_colors_support && ! array_key_exists( 'textColor', $block_type->attributes ) ) { + $block_type->attributes['textColor'] = array( + 'type' => 'string', + ); + } + + if ( $has_gradients_support && ! array_key_exists( 'gradient', $block_type->attributes ) ) { + $block_type->attributes['gradient'] = array( + 'type' => 'string', + ); + } +} + + +/** + * Add CSS classes and inline styles for colors to the incoming attributes array. + * This will be applied to the block markup in the front-end. + * + * @param array $attributes Comprehensive list of attributes to be applied. + * @param array $block_attributes Block attributes. + * @param WP_Block_Type $block_type Block type. + * + * @return array Colors CSS classes and inline styles. + */ +function wp_apply_colors_support( $attributes, $block_attributes, $block_type ) { + $color_support = wp_array_get( $block_type->supports, array( '__experimentalColor' ), false ); + $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'text' ), true ) ); + $has_background_colors_support = true === $color_support || ( is_array( $color_support ) && wp_array_get( $color_support, array( 'background' ), true ) ); + $has_link_colors_support = wp_array_get( $color_support, array( 'linkColor' ), false ); + $has_gradients_support = wp_array_get( $color_support, array( 'gradients' ), false ); + + // Text Colors. + // Check support for text colors. + if ( $has_text_colors_support ) { + $has_named_text_color = array_key_exists( 'textColor', $block_attributes ); + $has_custom_text_color = isset( $block_attributes['style']['color']['text'] ); + + // Apply required generic class. + if ( $has_custom_text_color || $has_named_text_color ) { + $attributes['css_classes'][] = 'has-text-color'; + } + // Apply color class or inline style. + if ( $has_named_text_color ) { + $attributes['css_classes'][] = sprintf( 'has-%s-color', $block_attributes['textColor'] ); + } elseif ( $has_custom_text_color ) { + $attributes['inline_styles'][] = sprintf( 'color: %s;', $block_attributes['style']['color']['text'] ); + } + } + + // Link Colors. + if ( $has_link_colors_support ) { + $has_link_color = isset( $block_attributes['style']['color']['link'] ); + // Apply required class and style. + if ( $has_link_color ) { + $attributes['css_classes'][] = 'has-link-color'; + // If link is a named color. + if ( strpos( $block_attributes['style']['color']['link'], 'var:preset|color|' ) !== false ) { + // Get the name from the string and add proper styles. + $index_to_splice = strrpos( $block_attributes['style']['color']['link'], '|' ) + 1; + $link_color_name = substr( $block_attributes['style']['color']['link'], $index_to_splice ); + $attributes['inline_styles'][] = sprintf( '--wp--style--color--link:var(--wp--preset--color--%s);', $link_color_name ); + } else { + $attributes['inline_styles'][] = sprintf( '--wp--style--color--link: %s;', $block_attributes['style']['color']['link'] ); + } + } + } + + // Background Colors. + if ( $has_background_colors_support ) { + $has_named_background_color = array_key_exists( 'backgroundColor', $block_attributes ); + $has_custom_background_color = isset( $block_attributes['style']['color']['background'] ); + + // Apply required background class. + if ( $has_custom_background_color || $has_named_background_color ) { + $attributes['css_classes'][] = 'has-background'; + } + // Apply background color classes or styles. + if ( $has_named_background_color ) { + $attributes['css_classes'][] = sprintf( 'has-%s-background-color', $block_attributes['backgroundColor'] ); + } elseif ( $has_custom_background_color ) { + $attributes['inline_styles'][] = sprintf( 'background-color: %s;', $block_attributes['style']['color']['background'] ); + } + } + + // Gradients. + if ( $has_gradients_support ) { + $has_named_gradient = array_key_exists( 'gradient', $block_attributes ); + $has_custom_gradient = isset( $block_attributes['style']['color']['gradient'] ); + + if ( $has_named_gradient || $has_custom_gradient ) { + $attributes['css_classes'][] = 'has-background'; + } + // Apply required background class. + if ( $has_named_gradient ) { + $attributes['css_classes'][] = sprintf( 'has-%s-gradient-background', $block_attributes['gradient'] ); + } elseif ( $has_custom_gradient ) { + $attributes['inline_styles'][] = sprintf( 'background: %s;', $block_attributes['style']['color']['gradient'] ); + } + } + + return $attributes; +} diff --git a/wp-includes/block-supports/custom-classname.php b/wp-includes/block-supports/custom-classname.php new file mode 100644 index 0000000000..33d90e76fd --- /dev/null +++ b/wp-includes/block-supports/custom-classname.php @@ -0,0 +1,54 @@ +supports, array( 'customClassName' ), true ); + } + if ( $has_custom_classname_support ) { + if ( ! $block_type->attributes ) { + $block_type->attributes = array(); + } + + if ( ! array_key_exists( 'className', $block_type->attributes ) ) { + $block_type->attributes['className'] = array( + 'type' => 'string', + ); + } + } +} + +/** + * Add the custom classnames to the output. + * + * @param array $attributes Comprehensive list of attributes to be applied. + * @param array $block_attributes Block attributes. + * @param WP_Block_Type $block_type Block Type. + * + * @return array Block CSS classes and inline styles. + */ +function wp_apply_custom_classname_support( $attributes, $block_attributes, $block_type ) { + $has_custom_classname_support = true; + if ( property_exists( $block_type, 'supports' ) ) { + $has_custom_classname_support = wp_array_get( $block_type->supports, array( 'customClassName' ), true ); + } + if ( $has_custom_classname_support ) { + $has_custom_classnames = array_key_exists( 'className', $block_attributes ); + + if ( $has_custom_classnames ) { + $attributes['css_classes'][] = $block_attributes['className']; + } + } + + return $attributes; +} diff --git a/wp-includes/block-supports/generated-classname.php b/wp-includes/block-supports/generated-classname.php new file mode 100644 index 0000000000..c510bb094b --- /dev/null +++ b/wp-includes/block-supports/generated-classname.php @@ -0,0 +1,57 @@ +supports, array( 'className' ), true ); + } + if ( $has_generated_classname_support ) { + $block_classname = wp_get_block_default_classname( $block_type->name ); + + if ( $block_classname ) { + $attributes['css_classes'][] = $block_classname; + } + } + + return $attributes; +} diff --git a/wp-includes/block-supports/index.php b/wp-includes/block-supports/index.php new file mode 100644 index 0000000000..e66807c5b1 --- /dev/null +++ b/wp-includes/block-supports/index.php @@ -0,0 +1,137 @@ +get_all_registered(); + // Ideally we need a hook to extend the block registration + // instead of mutating the block type. + foreach ( $registered_block_types as $block_type ) { + wp_register_alignment_support( $block_type ); + wp_register_colors_support( $block_type ); + wp_register_typography_support( $block_type ); + wp_register_custom_classname_support( $block_type ); + } +} + +add_action( 'init', 'wp_register_block_supports', 21 ); + +/** + * Filters the frontend output of blocks and apply the block support flags transformations. + * + * @param string $block_content rendered block content. + * @param array $block block object. + * @return string filtered block content. + */ +function wp_apply_block_supports( $block_content, $block ) { + if ( ! isset( $block['attrs'] ) ) { + return $block_content; + } + + $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); + // If no render_callback, assume styles have been previously handled. + if ( ! $block_type || ! $block_type->render_callback ) { + return $block_content; + } + + $attributes = array(); + $attributes = wp_apply_generated_classname_support( $attributes, $block['attrs'], $block_type ); + $attributes = wp_apply_colors_support( $attributes, $block['attrs'], $block_type ); + $attributes = wp_apply_typography_support( $attributes, $block['attrs'], $block_type ); + $attributes = wp_apply_alignment_support( $attributes, $block['attrs'], $block_type ); + $attributes = wp_apply_custom_classname_support( $attributes, $block['attrs'], $block_type ); + + if ( ! count( $attributes ) ) { + return $block_content; + } + + $dom = new DOMDocument( '1.0', 'utf-8' ); + + // Suppress DOMDocument::loadHTML warnings from polluting the front-end. + $previous = libxml_use_internal_errors( true ); + + // We need to wrap the block in order to handle UTF-8 properly. + $wrapped_block_html = + '' + . $block_content + . ''; + + $success = $dom->loadHTML( $wrapped_block_html, LIBXML_HTML_NODEFDTD | LIBXML_COMPACT ); + + // Clear errors and reset the use_errors setting. + libxml_clear_errors(); + libxml_use_internal_errors( $previous ); + + if ( ! $success ) { + return $block_content; + } + + // Structure is like ``, so body is the `lastChild` of our document. + $body_element = $dom->documentElement->lastChild; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase + + $xpath = new DOMXPath( $dom ); + $block_root = $xpath->query( './*', $body_element )[0]; + + // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase + if ( empty( $block_root ) ) { + return $block_content; + } + + // Merge and dedupe new and existing classes and styles. + $current_classes = explode( ' ', trim( $block_root->getAttribute( 'class' ) ) ); + $classes_to_add = array_key_exists( 'css_classes', $attributes ) ? $attributes['css_classes'] : array(); + $new_classes = array_unique( array_filter( array_merge( $current_classes, $classes_to_add ) ) ); + + $current_styles = preg_split( '/\s*;\s*/', trim( $block_root->getAttribute( 'style' ) ) ); + $styles_to_add = array_key_exists( 'inline_styles', $attributes ) ? $attributes['inline_styles'] : array(); + $new_styles = array_unique( array_map( 'wp_normalize_css_rule', array_filter( array_merge( $current_styles, $styles_to_add ) ) ) ); + + // Apply new styles and classes. + if ( ! empty( $new_classes ) ) { + // `DOMElement::setAttribute` handles attribute value escaping. + $block_root->setAttribute( 'class', implode( ' ', $new_classes ) ); + } + + if ( ! empty( $new_styles ) ) { + // `DOMElement::setAttribute` handles attribute value escaping. + $block_root->setAttribute( 'style', implode( '; ', $new_styles ) . ';' ); + } + + // Avoid using `$dom->saveHtml( $node )` because the node results may not produce consistent + // whitespace for PHP < 7.3. Saving the root HTML `$dom->saveHtml()` prevents this behavior. + $full_html = $dom->saveHtml(); + + // Find the open/close tags. The open tag needs to be adjusted so we get inside the tag + // and not the tag itself. + $start = strpos( $full_html, '', 0 ) + strlen( '' ); + $end = strpos( $full_html, '', $start ); + return trim( substr( $full_html, $start, $end - $start ) ); +} +add_filter( 'render_block', 'wp_apply_block_supports', 10, 2 ); + +/** + * Normalizes spacing in a string representing a CSS rule + * + * @example + * 'color :red;' becomes 'color:red' + * + * @param string $css_rule_string CSS rule. + * @return string Normalized CSS rule. + */ +function wp_normalize_css_rule( $css_rule_string ) { + return trim( implode( ': ', preg_split( '/\s*:\s*/', $css_rule_string, 2 ) ), ';' ); +} diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php new file mode 100644 index 0000000000..d2dd4e74f7 --- /dev/null +++ b/wp-includes/block-supports/typography.php @@ -0,0 +1,121 @@ +supports, array( '__experimentalFontSize' ), false ); + } + + $has_font_style_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); + } + + $has_line_height_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); + } + + if ( ! $block_type->attributes ) { + $block_type->attributes = array(); + } + + if ( ( $has_font_size_support || $has_font_style_support || $has_line_height_support ) && ! array_key_exists( 'style', $block_type->attributes ) ) { + $block_type->attributes['style'] = array( + 'type' => 'object', + ); + } + + if ( $has_font_size_support && ! array_key_exists( 'fontSize', $block_type->attributes ) ) { + $block_type->attributes['fontSize'] = array( + 'type' => 'string', + ); + } +} + +/** + * Add CSS classes and inline styles for font sizes to the incoming attributes array. + * This will be applied to the block markup in the front-end. + * + * @param array $attributes Comprehensive list of attributes to be applied. + * @param array $block_attributes Block attributes. + * @param WP_Block_Type $block_type Block type. + * + * @return array Font size CSS classes and inline styles. + */ +function wp_apply_typography_support( $attributes, $block_attributes, $block_type ) { + $has_font_size_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); + } + + $has_font_style_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_font_style_support = wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); + } + + $has_line_height_support = false; + if ( property_exists( $block_type, 'supports' ) ) { + $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); + } + + // Font Size. + if ( $has_font_size_support ) { + $has_named_font_size = array_key_exists( 'fontSize', $block_attributes ); + $has_custom_font_size = isset( $block_attributes['style']['typography']['fontSize'] ); + + // Apply required class or style. + if ( $has_named_font_size ) { + $attributes['css_classes'][] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); + } elseif ( $has_custom_font_size ) { + $attributes['inline_styles'][] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] ); + } + } + + // Font Styles e.g. bold, italic, underline & strikethrough. + if ( $has_font_style_support ) { + $has_font_styles = isset( $block_attributes['style']['typography']['fontStyles'] ); + + // Apply required CSS classes. + if ( $has_font_styles ) { + $attributes['css_classes'][] = 'has-font-style'; + + // CSS class names chosen to be more explicit than generic `has--font-style`. + $font_style_classes = array( + 'bold' => 'has-bold-font-weight', + 'italic' => 'has-italic-font-style', + 'underline' => 'has-underline-text-decoration', + 'strikethrough' => 'has-strikethrough-text-decoration', + ); + + $style_selections = $block_attributes['style']['typography']['fontStyles']; + + foreach ( $style_selections as $style => $turned_on ) { + if ( $turned_on ) { + $attributes['css_classes'][] = $font_style_classes[ $style ]; + } + } + } + } + + // Line Height. + if ( $has_line_height_support ) { + $has_line_height = isset( $block_attributes['style']['typography']['lineHeight'] ); + // Add the style (no classes for line-height). + if ( $has_line_height ) { + $attributes['inline_styles'][] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] ); + } + } + + return $attributes; +} diff --git a/wp-includes/blocks/archives.php b/wp-includes/blocks/archives.php index 3499c8599c..3b7b2d1d39 100644 --- a/wp-includes/blocks/archives.php +++ b/wp-includes/blocks/archives.php @@ -17,15 +17,7 @@ function render_block_core_archives( $attributes ) { $show_post_count = ! empty( $attributes['showPostCounts'] ); - $class = 'wp-block-archives'; - - if ( isset( $attributes['align'] ) ) { - $class .= " align{$attributes['align']}"; - } - - if ( isset( $attributes['className'] ) ) { - $class .= " {$attributes['className']}"; - } + $class = ''; if ( ! empty( $attributes['displayAsDropdown'] ) ) { @@ -66,7 +58,7 @@ function render_block_core_archives( $attributes ) { break; } - $label = esc_attr( $label ); + $label = esc_html( $label ); $block_content = ' )#', + build_dropdown_script_block_core_categories( $id ), + $items_markup, + 1 + ); } } else { $wrapper_markup = ''; @@ -41,15 +47,7 @@ function render_block_core_categories( $attributes ) { $type = 'list'; } - $class = "wp-block-categories wp-block-categories-{$type}"; - - if ( isset( $attributes['align'] ) ) { - $class .= " align{$attributes['align']}"; - } - - if ( isset( $attributes['className'] ) ) { - $class .= " {$attributes['className']}"; - } + $class = "wp-block-categories-{$type}"; return sprintf( $wrapper_markup, diff --git a/wp-includes/blocks/categories/block.json b/wp-includes/blocks/categories/block.json index c5ecd8deb2..d4fee5e064 100644 --- a/wp-includes/blocks/categories/block.json +++ b/wp-includes/blocks/categories/block.json @@ -2,19 +2,6 @@ "name": "core/categories", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "displayAsDropdown": { "type": "boolean", "default": false diff --git a/wp-includes/blocks/code/block.json b/wp-includes/blocks/code/block.json index 231f44cb30..9b3916f146 100644 --- a/wp-includes/blocks/code/block.json +++ b/wp-includes/blocks/code/block.json @@ -4,13 +4,12 @@ "attributes": { "content": { "type": "string", - "source": "text", + "source": "html", "selector": "code" } }, "supports": { "anchor": true, - "html": false, "lightBlockWrapper": true } } diff --git a/wp-includes/blocks/gallery/block.json b/wp-includes/blocks/gallery/block.json index dadb8f562c..ffdbb1d519 100644 --- a/wp-includes/blocks/gallery/block.json +++ b/wp-includes/blocks/gallery/block.json @@ -68,8 +68,7 @@ "default": true }, "linkTo": { - "type": "string", - "default": "none" + "type": "string" }, "sizeSlug": { "type": "string", diff --git a/wp-includes/blocks/group/block.json b/wp-includes/blocks/group/block.json index 1e32b1443c..a2d0cc083a 100644 --- a/wp-includes/blocks/group/block.json +++ b/wp-includes/blocks/group/block.json @@ -18,6 +18,7 @@ "__experimentalColor": { "gradients": true, "linkColor": true - } + }, + "__experimentalPadding": true } } diff --git a/wp-includes/blocks/image/block.json b/wp-includes/blocks/image/block.json index decd621688..798210cbd5 100644 --- a/wp-includes/blocks/image/block.json +++ b/wp-includes/blocks/image/block.json @@ -60,8 +60,7 @@ "type": "string" }, "linkDestination": { - "type": "string", - "default": "none" + "type": "string" }, "linkTarget": { "type": "string", diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php index 20a3862792..448677066c 100644 --- a/wp-includes/blocks/latest-comments.php +++ b/wp-includes/blocks/latest-comments.php @@ -116,34 +116,28 @@ function render_block_core_latest_comments( $attributes = array() ) { } } - $class = 'wp-block-latest-comments'; - if ( ! empty( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - if ( isset( $attributes['align'] ) ) { - $class .= " align{$attributes['align']}"; - } + $classnames = array(); if ( $attributes['displayAvatar'] ) { - $class .= ' has-avatars'; + $classnames[] = 'has-avatars'; } if ( $attributes['displayDate'] ) { - $class .= ' has-dates'; + $classnames[] = 'has-dates'; } if ( $attributes['displayExcerpt'] ) { - $class .= ' has-excerpts'; + $classnames[] = 'has-excerpts'; } if ( empty( $comments ) ) { - $class .= ' no-comments'; + $classnames[] = 'no-comments'; } - $classnames = esc_attr( $class ); + $class = esc_attr( implode( ' ', $classnames ) ); return ! empty( $comments ) ? sprintf( '
    %2$s
', - $classnames, + $class, $list_items_markup ) : sprintf( '
%2$s
', - $classnames, + $class, __( 'No comments to show.' ) ); } diff --git a/wp-includes/blocks/latest-comments/block.json b/wp-includes/blocks/latest-comments/block.json index 1bcee4c577..dd208ee726 100644 --- a/wp-includes/blocks/latest-comments/block.json +++ b/wp-includes/blocks/latest-comments/block.json @@ -2,19 +2,6 @@ "name": "core/latest-comments", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "commentsToShow": { "type": "number", "default": 5, diff --git a/wp-includes/blocks/latest-posts.php b/wp-includes/blocks/latest-posts.php index 837b8aa145..8486b05b6b 100644 --- a/wp-includes/blocks/latest-posts.php +++ b/wp-includes/blocks/latest-posts.php @@ -58,6 +58,7 @@ function render_block_core_latest_posts( $attributes ) { $list_items_markup = ''; foreach ( $recent_posts as $post ) { + $post_link = esc_url( get_permalink( $post ) ); $list_items_markup .= '
  • '; @@ -75,16 +76,24 @@ function render_block_core_latest_posts( $attributes ) { $image_classes .= ' align' . $attributes['featuredImageAlign']; } + $featured_image = get_the_post_thumbnail( + $post, + $attributes['featuredImageSizeSlug'], + array( + 'style' => $image_style, + ) + ); + if ( $attributes['addLinkToFeaturedImage'] ) { + $featured_image = sprintf( + '%2$s', + $post_link, + $featured_image + ); + } $list_items_markup .= sprintf( '
    %2$s
    ', $image_classes, - get_the_post_thumbnail( - $post, - $attributes['featuredImageSizeSlug'], - array( - 'style' => $image_style, - ) - ) + $featured_image ); } @@ -94,7 +103,7 @@ function render_block_core_latest_posts( $attributes ) { } $list_items_markup .= sprintf( '%2$s', - esc_url( get_permalink( $post ) ), + $post_link, $title ); @@ -144,10 +153,7 @@ function render_block_core_latest_posts( $attributes ) { remove_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); - $class = 'wp-block-latest-posts wp-block-latest-posts__list'; - if ( isset( $attributes['align'] ) ) { - $class .= ' align' . $attributes['align']; - } + $class = 'wp-block-latest-posts__list'; if ( isset( $attributes['postLayout'] ) && 'grid' === $attributes['postLayout'] ) { $class .= ' is-grid'; @@ -165,10 +171,6 @@ function render_block_core_latest_posts( $attributes ) { $class .= ' has-author'; } - if ( isset( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - return sprintf( '
      %2$s
    ', esc_attr( $class ), diff --git a/wp-includes/blocks/latest-posts/block.json b/wp-includes/blocks/latest-posts/block.json index da7d40bbc9..0eef67f6d8 100644 --- a/wp-includes/blocks/latest-posts/block.json +++ b/wp-includes/blocks/latest-posts/block.json @@ -2,19 +2,6 @@ "name": "core/latest-posts", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "categories": { "type": "array", "items": { @@ -87,6 +74,10 @@ "featuredImageSizeHeight": { "type": "number", "default": null + }, + "addLinkToFeaturedImage": { + "type": "boolean", + "default": false } }, "supports": { diff --git a/wp-includes/blocks/list/block.json b/wp-includes/blocks/list/block.json index 031ce7b628..3fa10c51a1 100644 --- a/wp-includes/blocks/list/block.json +++ b/wp-includes/blocks/list/block.json @@ -11,10 +11,7 @@ "source": "html", "selector": "ol,ul", "multiline": "li", - "__unstableMultilineWrapperTags": [ - "ol", - "ul" - ], + "__unstableMultilineWrapperTags": [ "ol", "ul" ], "default": "" }, "type": { @@ -30,6 +27,9 @@ "supports": { "anchor": true, "className": false, + "__experimentalColor": { + "gradients": true + }, "__unstablePasteTextInline": true, "lightBlockWrapper": true } diff --git a/wp-includes/blocks/media-text/block.json b/wp-includes/blocks/media-text/block.json index 012e6c2532..9911c4d35e 100644 --- a/wp-includes/blocks/media-text/block.json +++ b/wp-includes/blocks/media-text/block.json @@ -63,6 +63,9 @@ "type": "number", "default": 50 }, + "mediaSizeSlug": { + "type": "string" + }, "isStackedOnMobile": { "type": "boolean", "default": true @@ -79,10 +82,7 @@ }, "supports": { "anchor": true, - "align": [ - "wide", - "full" - ], + "align": [ "wide", "full" ], "html": false, "lightBlockWrapper": true, "__experimentalColor": { diff --git a/wp-includes/blocks/paragraph/block.json b/wp-includes/blocks/paragraph/block.json index 24df851e88..91d8ad357f 100644 --- a/wp-includes/blocks/paragraph/block.json +++ b/wp-includes/blocks/paragraph/block.json @@ -35,11 +35,6 @@ }, "__experimentalFontSize": true, "__experimentalLineHeight": true, - "__experimentalFeatures": { - "typography": { - "dropCap": true - } - }, "__experimentalSelector": "p", "__unstablePasteTextInline": true } diff --git a/wp-includes/blocks/quote/block.json b/wp-includes/blocks/quote/block.json index d828557e14..a03b93b0db 100644 --- a/wp-includes/blocks/quote/block.json +++ b/wp-includes/blocks/quote/block.json @@ -20,6 +20,7 @@ } }, "supports": { - "anchor": true + "anchor": true, + "lightBlockWrapper": true } } diff --git a/wp-includes/blocks/rss.php b/wp-includes/blocks/rss.php index 54c1b7d4b7..a3dbd0d431 100644 --- a/wp-includes/blocks/rss.php +++ b/wp-includes/blocks/rss.php @@ -79,24 +79,16 @@ function render_block_core_rss( $attributes ) { $list_items .= "
  • {$title}{$date}{$author}{$excerpt}
  • "; } - $class = 'wp-block-rss'; - if ( isset( $attributes['align'] ) ) { - $class .= ' align' . $attributes['align']; - } - + $classnames = array(); if ( isset( $attributes['blockLayout'] ) && 'grid' === $attributes['blockLayout'] ) { - $class .= ' is-grid'; + $classnames[] = 'is-grid'; } if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) { - $class .= ' columns-' . $attributes['columns']; + $classnames[] = 'columns-' . $attributes['columns']; } - if ( isset( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - - return sprintf( '', esc_attr( $class ), $list_items ); + return sprintf( '', esc_attr( implode( ' ', $classnames ) ), $list_items ); } /** diff --git a/wp-includes/blocks/rss/block.json b/wp-includes/blocks/rss/block.json index b9e24f029c..88ad78c596 100644 --- a/wp-includes/blocks/rss/block.json +++ b/wp-includes/blocks/rss/block.json @@ -2,19 +2,6 @@ "name": "core/rss", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "columns": { "type": "number", "default": 2 diff --git a/wp-includes/blocks/search.php b/wp-includes/blocks/search.php index 55f0cadf0f..08c8652839 100644 --- a/wp-includes/blocks/search.php +++ b/wp-includes/blocks/search.php @@ -27,51 +27,79 @@ function render_block_core_search( $attributes ) { ) ); - $input_id = 'wp-block-search__input-' . ++$instance_id; - $label_markup = ''; - $button_markup = ''; + $input_id = 'wp-block-search__input-' . ++$instance_id; + $classnames = classnames_for_block_core_search( $attributes ); + $show_label = ( ! empty( $attributes['showLabel'] ) ) ? true : false; + $use_icon_button = ( ! empty( $attributes['buttonUseIcon'] ) ) ? true : false; + $show_input = ( ! empty( $attributes['buttonPosition'] ) && 'button-only' === $attributes['buttonPosition'] ) ? false : true; + $show_button = ( ! empty( $attributes['buttonPosition'] ) && 'no-button' === $attributes['buttonPosition'] ) ? false : true; + $label_markup = ''; + $input_markup = ''; + $button_markup = ''; + $width_styles = ''; - if ( ! empty( $attributes['label'] ) ) { - $label_markup = sprintf( - '', + if ( $show_label ) { + if ( ! empty( $attributes['label'] ) ) { + $label_markup = sprintf( + '', + $input_id, + $attributes['label'] + ); + } else { + $label_markup = sprintf( + '', + $input_id, + __( 'Search' ) + ); + } + } + + if ( $show_input ) { + $input_markup = sprintf( + '', $input_id, - $attributes['label'] - ); - } else { - $label_markup = sprintf( - '', - $input_id, - __( 'Search' ) + esc_attr( get_search_query() ), + esc_attr( $attributes['placeholder'] ) ); } - $input_markup = sprintf( - '', - $input_id, - esc_attr( get_search_query() ), - esc_attr( $attributes['placeholder'] ) - ); + if ( $show_button ) { + $button_internal_markup = ''; + + if ( ! $use_icon_button ) { + if ( ! empty( $attributes['buttonText'] ) ) { + $button_internal_markup = $attributes['buttonText']; + } + } else { + $button_internal_markup = + ' + + '; + } - if ( ! empty( $attributes['buttonText'] ) ) { $button_markup = sprintf( '', - $attributes['buttonText'] + $button_internal_markup ); } - $class = 'wp-block-search'; - if ( isset( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - if ( isset( $attributes['align'] ) ) { - $class .= ' align' . $attributes['align']; + if ( ! empty( $attributes['width'] ) && ! empty( $attributes['widthUnit'] ) ) { + if ( ! empty( $attributes['buttonPosition'] ) && 'button-only' !== $attributes['buttonPosition'] ) { + $width_styles = ' style="width: ' . $attributes['width'] . $attributes['widthUnit'] . ';"'; + } } + $field_markup = sprintf( + '
    %s
    ', + $width_styles, + $input_markup . $button_markup + ); + return sprintf( - '', - esc_attr( $class ), + '', esc_url( home_url( '/' ) ), - $label_markup . $input_markup . $button_markup + $classnames, + $label_markup . $field_markup ); } @@ -87,3 +115,44 @@ function register_block_core_search() { ); } add_action( 'init', 'register_block_core_search' ); + +/** + * Builds the correct top level classnames for the 'core/search' block. + * + * @param array $attributes The block attributes. + * + * @return string The classnames used in the block. + */ +function classnames_for_block_core_search( $attributes ) { + $classnames = array(); + + if ( ! empty( $attributes['buttonPosition'] ) ) { + if ( 'button-inside' === $attributes['buttonPosition'] ) { + $classnames[] = 'wp-block-search__button-inside'; + } + + if ( 'button-outside' === $attributes['buttonPosition'] ) { + $classnames[] = 'wp-block-search__button-outside'; + } + + if ( 'no-button' === $attributes['buttonPosition'] ) { + $classnames[] = 'wp-block-search__no-button'; + } + + if ( 'button-only' === $attributes['buttonPosition'] ) { + $classnames[] = 'wp-block-search__button-only'; + } + } + + if ( isset( $attributes['buttonUseIcon'] ) ) { + if ( ! empty( $attributes['buttonPosition'] ) && 'no-button' !== $attributes['buttonPosition'] ) { + if ( $attributes['buttonUseIcon'] ) { + $classnames[] = 'wp-block-search__icon-button'; + } else { + $classnames[] = 'wp-block-search__text-button'; + } + } + } + + return implode( ' ', $classnames ); +} diff --git a/wp-includes/blocks/search/block.json b/wp-includes/blocks/search/block.json index b6b2bf79e0..92de1d6f02 100644 --- a/wp-includes/blocks/search/block.json +++ b/wp-includes/blocks/search/block.json @@ -2,32 +2,38 @@ "name": "core/search", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "label": { "type": "string" }, + "showLabel": { + "type": "bool", + "default": true + }, "placeholder": { "type": "string", "default": "" }, + "width": { + "type": "number" + }, + "widthUnit": { + "type": "string" + }, "buttonText": { "type": "string" + }, + "buttonPosition": { + "type": "string", + "default": "button-outside" + }, + "buttonUseIcon": { + "type": "bool", + "default": false } }, "supports": { - "align": true, - "html": false + "align": [ "left", "center", "right" ], + "html": false, + "lightBlockWrapper": true } } diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php index dc732a7a1f..d5168e95c1 100644 --- a/wp-includes/blocks/social-link.php +++ b/wp-includes/blocks/social-link.php @@ -8,11 +8,15 @@ /** * Renders the `core/social-link` block on server. * - * @param array $attributes The block attributes. + * @param Array $attributes The block attributes. + * @param String $content InnerBlocks content of the Block. + * @param WPBlock $block Block object. * * @return string Rendered HTML of the referenced block. */ -function render_block_core_social_link( $attributes ) { +function render_block_core_social_link( $attributes, $content, $block ) { + $open_in_new_tab = $block->context['openInNewTab']; + $service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon'; $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; $label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : block_core_social_link_get_name( $service ); @@ -23,8 +27,13 @@ function render_block_core_social_link( $attributes ) { return ''; } + $attribute = ''; + if ( $open_in_new_tab ) { + $attribute = 'rel="noopener nofollow" target="_blank"'; + } + $icon = block_core_social_link_get_icon( $service ); - return ''; + return ''; } /** diff --git a/wp-includes/blocks/social-link/block.json b/wp-includes/blocks/social-link/block.json index b525d267a1..5539298ec3 100644 --- a/wp-includes/blocks/social-link/block.json +++ b/wp-includes/blocks/social-link/block.json @@ -15,6 +15,9 @@ "type": "string" } }, + "usesContext": [ + "openInNewTab" + ], "supports": { "reusable": false, "html": false, diff --git a/wp-includes/blocks/social-links/block.json b/wp-includes/blocks/social-links/block.json index 93f8a1f226..46a31ce065 100644 --- a/wp-includes/blocks/social-links/block.json +++ b/wp-includes/blocks/social-links/block.json @@ -1,6 +1,15 @@ { "name": "core/social-links", "category": "widgets", + "attributes": { + "openInNewTab": { + "type": "boolean", + "default": false + } + }, + "providesContext": { + "openInNewTab": "openInNewTab" + }, "supports": { "align": [ "left", diff --git a/wp-includes/blocks/tag-cloud.php b/wp-includes/blocks/tag-cloud.php index 419ef3477e..f417b786c4 100644 --- a/wp-includes/blocks/tag-cloud.php +++ b/wp-includes/blocks/tag-cloud.php @@ -13,20 +13,11 @@ * @return string Returns the tag cloud for selected taxonomy. */ function render_block_core_tag_cloud( $attributes ) { - $class = isset( $attributes['align'] ) ? - "wp-block-tag-cloud align{$attributes['align']}" : - 'wp-block-tag-cloud'; - - if ( isset( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - - $args = array( + $args = array( 'echo' => false, 'taxonomy' => $attributes['taxonomy'], 'show_count' => $attributes['showTagCounts'], ); - $tag_cloud = wp_tag_cloud( $args ); if ( ! $tag_cloud ) { @@ -41,8 +32,7 @@ function render_block_core_tag_cloud( $attributes ) { } return sprintf( - '

    %2$s

    ', - esc_attr( $class ), + '

    %1$s

    ', $tag_cloud ); } diff --git a/wp-includes/blocks/tag-cloud/block.json b/wp-includes/blocks/tag-cloud/block.json index 7d867bd83d..7116bb43dd 100644 --- a/wp-includes/blocks/tag-cloud/block.json +++ b/wp-includes/blocks/tag-cloud/block.json @@ -2,19 +2,6 @@ "name": "core/tag-cloud", "category": "widgets", "attributes": { - "align": { - "type": "string", - "enum": [ - "left", - "center", - "right", - "wide", - "full" - ] - }, - "className": { - "type": "string" - }, "taxonomy": { "type": "string", "default": "post_tag" diff --git a/wp-includes/class-wp-block-parser.php b/wp-includes/class-wp-block-parser.php index eb4c21a973..ee73b1f071 100644 --- a/wp-includes/class-wp-block-parser.php +++ b/wp-includes/class-wp-block-parser.php @@ -10,7 +10,7 @@ * * Holds the block structure in memory * - * @since 3.8.0 + * @since 5.0.0 */ class WP_Block_Parser_Block { /** @@ -18,7 +18,7 @@ class WP_Block_Parser_Block { * * @example "core/paragraph" * - * @since 3.8.0 + * @since 5.0.0 * @var string */ public $blockName; @@ -29,7 +29,7 @@ class WP_Block_Parser_Block { * @example null * @example array( 'columns' => 3 ) * - * @since 3.8.0 + * @since 5.0.0 * @var array|null */ public $attrs; @@ -37,7 +37,7 @@ class WP_Block_Parser_Block { /** * List of inner blocks (of this same class) * - * @since 3.8.0 + * @since 5.0.0 * @var WP_Block_Parser_Block[] */ public $innerBlocks; @@ -48,7 +48,7 @@ class WP_Block_Parser_Block { * * @example "...Just testing..." -> "Just testing..." * - * @since 3.8.0 + * @since 5.0.0 * @var string */ public $innerHTML; @@ -72,7 +72,7 @@ class WP_Block_Parser_Block { * * Will populate object properties from the provided arguments. * - * @since 3.8.0 + * @since 5.0.0 * * @param string $name Name of block. * @param array $attrs Optional set of attributes from block comment delimiters. @@ -95,13 +95,13 @@ class WP_Block_Parser_Block { * Holds partial blocks in memory while parsing * * @internal - * @since 3.8.0 + * @since 5.0.0 */ class WP_Block_Parser_Frame { /** * Full or partial block * - * @since 3.8.0 + * @since 5.0.0 * @var WP_Block_Parser_Block */ public $block; @@ -109,7 +109,7 @@ class WP_Block_Parser_Frame { /** * Byte offset into document for start of parse token * - * @since 3.8.0 + * @since 5.0.0 * @var int */ public $token_start; @@ -117,7 +117,7 @@ class WP_Block_Parser_Frame { /** * Byte length of entire parse token string * - * @since 3.8.0 + * @since 5.0.0 * @var int */ public $token_length; @@ -126,7 +126,7 @@ class WP_Block_Parser_Frame { * Byte offset into document for after parse token ends * (used during reconstruction of stack into parse production) * - * @since 3.8.0 + * @since 5.0.0 * @var int */ public $prev_offset; @@ -134,7 +134,7 @@ class WP_Block_Parser_Frame { /** * Byte offset into document where leading HTML before token starts * - * @since 3.8.0 + * @since 5.0.0 * @var int */ public $leading_html_start; @@ -144,7 +144,7 @@ class WP_Block_Parser_Frame { * * Will populate object properties from the provided arguments. * - * @since 3.8.0 + * @since 5.0.0 * * @param WP_Block_Parser_Block $block Full or partial block. * @param int $token_start Byte offset into document for start of parse token. @@ -166,7 +166,7 @@ class WP_Block_Parser_Frame { * * Parses a document and constructs a list of parsed block objects * - * @since 3.8.0 + * @since 5.0.0 * @since 4.0.0 returns arrays not objects, all attributes are arrays */ class WP_Block_Parser { @@ -175,7 +175,7 @@ class WP_Block_Parser { * * @example "Pre-text\nThis is inside a block!" * - * @since 3.8.0 + * @since 5.0.0 * @var string */ public $document; @@ -183,7 +183,7 @@ class WP_Block_Parser { /** * Tracks parsing progress through document * - * @since 3.8.0 + * @since 5.0.0 * @var int */ public $offset; @@ -191,7 +191,7 @@ class WP_Block_Parser { /** * List of parsed blocks * - * @since 3.8.0 + * @since 5.0.0 * @var WP_Block_Parser_Block[] */ public $output; @@ -199,7 +199,7 @@ class WP_Block_Parser { /** * Stack of partially-parsed structures in memory during parse * - * @since 3.8.0 + * @since 5.0.0 * @var WP_Block_Parser_Frame[] */ public $stack; @@ -219,7 +219,7 @@ class WP_Block_Parser { * parse. In contrast to the specification parser this does not * return an error on invalid inputs. * - * @since 3.8.0 + * @since 5.0.0 * * @param string $document Input document being parsed. * @return WP_Block_Parser_Block[] @@ -249,7 +249,7 @@ class WP_Block_Parser { * or breaking out of a level of nesting. * * @internal - * @since 3.8.0 + * @since 5.0.0 * @return bool */ function proceed() { @@ -394,7 +394,7 @@ class WP_Block_Parser { * Returns the type of the find: kind of find, block information, attributes * * @internal - * @since 3.8.0 + * @since 5.0.0 * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments * @return array */ @@ -482,7 +482,7 @@ class WP_Block_Parser { * to the output list as a freeform block. * * @internal - * @since 3.8.0 + * @since 5.0.0 * @param null $length how many bytes of document text to output. */ function add_freeform( $length = null ) { @@ -500,7 +500,7 @@ class WP_Block_Parser { * a new block to the output list. * * @internal - * @since 3.8.0 + * @since 5.0.0 * @param WP_Block_Parser_Block $block The block to add to the output. * @param int $token_start Byte offset into the document where the first token for the block starts. * @param int $token_length Byte length of entire block from start of opening token to end of closing token. @@ -524,7 +524,7 @@ class WP_Block_Parser { * Pushes the top block from the parsing stack to the output list. * * @internal - * @since 3.8.0 + * @since 5.0.0 * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. */ function add_block_from_stack( $end_offset = null ) { diff --git a/wp-includes/css/dist/block-directory/style-rtl.css b/wp-includes/css/dist/block-directory/style-rtl.css index 10525957a2..159950fafd 100644 --- a/wp-includes/css/dist/block-directory/style-rtl.css +++ b/wp-includes/css/dist/block-directory/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -76,7 +71,6 @@ line-height: 1; display: flex; } .block-directory-block-ratings .block-directory-block-ratings__rating-count { - color: #606a73; font-size: ms(-2); } .block-directory-block-ratings svg { fill: #ffb900; } @@ -100,11 +94,10 @@ font-weight: 500; } .block-directory-compact-list__item-author { - color: #555d66; + color: #757575; font-size: 11px; } .block-directory-downloadable-block-author-info__content { - color: #606a73; font-size: 12px; } .block-directory-downloadable-block-author-info__content-author { @@ -133,6 +126,8 @@ height: 36px; font-size: 36px; background-color: #ddd; } + .block-directory-downloadable-block-icon > img { + width: 100%; } .block-directory-downloadable-block-info__content { margin: 0 0 16px; @@ -142,7 +137,7 @@ display: flex; align-items: center; margin-bottom: 2px; - color: #606a73; + color: #757575; font-size: 12px; } .block-directory-downloadable-block-info__meta:last-child { @@ -150,7 +145,7 @@ .block-directory-downloadable-block-info__icon { margin-left: 4px; - fill: #606a73; } + fill: #757575; } .block-directory-downloadable-block-list-item { width: 100%; @@ -159,7 +154,7 @@ display: flex; flex-direction: row; font-size: 13px; - color: #32373c; + color: #1e1e1e; align-items: flex-start; justify-content: center; background: transparent; @@ -204,7 +199,7 @@ background-color: #f0f0f0; } .block-directory-downloadable-block-list-item__content { - color: #606a73; } + color: #757575; } .block-directory-downloadable-block-notice { margin: 0 0 16px; } @@ -225,14 +220,14 @@ padding: 16px; margin: 0; text-align: right; - color: #606a73; } + color: #757575; } .block-directory-downloadable-blocks-panel__description.has-no-results { font-style: normal; padding: 0; margin: 112px 0; text-align: center; - color: #606a73; } + color: #757575; } .block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner { float: inherit; } diff --git a/wp-includes/css/dist/block-directory/style-rtl.min.css b/wp-includes/css/dist/block-directory/style-rtl.min.css index da41bb19e6..d2d0c25987 100644 --- a/wp-includes/css/dist/block-directory/style-rtl.min.css +++ b/wp-includes/css/dist/block-directory/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}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-right:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#ddd}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-left:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #ddd;border-bottom:1px solid #ddd;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{border-top:none}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f0f0f0}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ 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}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-author-info__content{font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-right:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#ddd}.block-directory-downloadable-block-icon>img{width:100%}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#757575;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-left:4px;fill:#757575}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#1e1e1e;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #ddd;border-bottom:1px solid #ddd;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{border-top:none}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f0f0f0}.block-directory-downloadable-block-list-item__content{color:#757575}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:right;color:#757575}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file diff --git a/wp-includes/css/dist/block-directory/style.css b/wp-includes/css/dist/block-directory/style.css index 1c2b07beb5..aba5415928 100644 --- a/wp-includes/css/dist/block-directory/style.css +++ b/wp-includes/css/dist/block-directory/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -76,7 +71,6 @@ line-height: 1; display: flex; } .block-directory-block-ratings .block-directory-block-ratings__rating-count { - color: #606a73; font-size: ms(-2); } .block-directory-block-ratings svg { fill: #ffb900; } @@ -100,11 +94,10 @@ font-weight: 500; } .block-directory-compact-list__item-author { - color: #555d66; + color: #757575; font-size: 11px; } .block-directory-downloadable-block-author-info__content { - color: #606a73; font-size: 12px; } .block-directory-downloadable-block-author-info__content-author { @@ -133,6 +126,8 @@ height: 36px; font-size: 36px; background-color: #ddd; } + .block-directory-downloadable-block-icon > img { + width: 100%; } .block-directory-downloadable-block-info__content { margin: 0 0 16px; @@ -142,7 +137,7 @@ display: flex; align-items: center; margin-bottom: 2px; - color: #606a73; + color: #757575; font-size: 12px; } .block-directory-downloadable-block-info__meta:last-child { @@ -150,7 +145,7 @@ .block-directory-downloadable-block-info__icon { margin-right: 4px; - fill: #606a73; } + fill: #757575; } .block-directory-downloadable-block-list-item { width: 100%; @@ -159,7 +154,7 @@ display: flex; flex-direction: row; font-size: 13px; - color: #32373c; + color: #1e1e1e; align-items: flex-start; justify-content: center; background: transparent; @@ -204,7 +199,7 @@ background-color: #f0f0f0; } .block-directory-downloadable-block-list-item__content { - color: #606a73; } + color: #757575; } .block-directory-downloadable-block-notice { margin: 0 0 16px; } @@ -225,14 +220,14 @@ padding: 16px; margin: 0; text-align: left; - color: #606a73; } + color: #757575; } .block-directory-downloadable-blocks-panel__description.has-no-results { font-style: normal; padding: 0; margin: 112px 0; text-align: center; - color: #606a73; } + color: #757575; } .block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner { float: inherit; } diff --git a/wp-includes/css/dist/block-directory/style.min.css b/wp-includes/css/dist/block-directory/style.min.css index 58eda3c3b7..749ef0a198 100644 --- a/wp-includes/css/dist/block-directory/style.min.css +++ b/wp-includes/css/dist/block-directory/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-left:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#ddd}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-right:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #ddd;border-bottom:1px solid #ddd;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{border-top:none}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f0f0f0}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ 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}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-author-info__content{font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-left:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#ddd}.block-directory-downloadable-block-icon>img{width:100%}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#757575;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-right:4px;fill:#757575}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#1e1e1e;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #ddd;border-bottom:1px solid #ddd;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item+.block-directory-downloadable-block-list-item{border-top:none}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f0f0f0}.block-directory-downloadable-block-list-item__content{color:#757575}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:left;color:#757575}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css index f6ba849d5b..ae876e195a 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.css +++ b/wp-includes/css/dist/block-editor/style-rtl.css @@ -2,20 +2,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -38,6 +30,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -104,7 +99,7 @@ .block-editor-block-inspector .components-panel__body { border: none; - border-top: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; } .block-editor-block-inspector .block-editor-block-card { padding: 16px; } @@ -359,7 +354,7 @@ .block-editor-block-list__insertion-point { position: relative; z-index: 6; - margin-top: -14px; } + margin-top: -28px; } .block-editor-block-list__insertion-point-indicator { position: absolute; @@ -372,8 +367,7 @@ .block-editor-block-list__insertion-point-inserter { display: none; - justify-content: center; - cursor: text; } + justify-content: center; } @media (min-width: 480px) { .block-editor-block-list__insertion-point-inserter { display: flex; } } @@ -461,7 +455,7 @@ overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; font-size: 15px; - line-height: 150%; + line-height: 1.5; transition: padding 0.2s linear; } @media (prefers-reduced-motion: reduce) { .block-editor-block-list__block .block-editor-block-list__block-html-textarea { @@ -484,10 +478,36 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg { + transform: translateX(2px); } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg { + transform: translateX(-2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - margin-top: 3px; } + margin-top: 2px; + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg { + transform: translateY(-2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - margin-bottom: 3px; } + margin-bottom: 3px; + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg { + transform: translateY(2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { right: 0 !important; min-width: 0; @@ -534,6 +554,11 @@ overflow-y: visible; margin-right: 0; } +@keyframes hide-during-dragging { + to { + position: fixed; + transform: translate(-9999px, 9999px); } } + .components-popover.block-editor-block-list__block-popover { z-index: 31; position: absolute; } @@ -552,7 +577,8 @@ .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar { margin-bottom: 12px; } .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { - opacity: 0; } + opacity: 0; + animation: hide-during-dragging 1ms linear forwards; } .is-dragging-components-draggable .components-tooltip { display: none; } @@ -623,7 +649,7 @@ align-items: flex-start; } .block-editor-block-card__icon { - border: 1px solid #ccd0d4; + border: 1px solid #ddd; padding: 7px; margin-left: 10px; height: 36px; @@ -687,7 +713,7 @@ .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added { background-color: #acf2bd; } .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed { - background-color: #d94f4f; } + background-color: #cc1818; } .block-editor-block-compare__wrapper .block-editor-block-compare__preview { padding: 0; padding-top: 14px; } @@ -703,7 +729,8 @@ .block-editor-block-draggable-chip-wrapper { position: absolute; - top: -60px; } + top: -24px; + right: 0; } .block-editor-block-draggable-chip { background-color: #1e1e1e; @@ -727,8 +754,7 @@ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; } -.is-dragging.is-selected, -.is-dragging.is-multi-selected { +.is-dragging { display: none !important; } .block-editor-block-mobile-toolbar { @@ -761,30 +787,41 @@ .block-editor-block-mover-button.has-icon { padding: 0; } -.block-editor-block-mover .components-toolbar-group, +.block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex: 1; - flex-direction: row; } + flex-direction: row; + border-left: none !important; } @media (min-width: 600px) { - .block-editor-block-mover .components-toolbar-group, + .block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex-direction: column; } } -.block-editor-block-mover.is-horizontal .components-toolbar-group, +.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, .block-editor-block-mover.is-horizontal .components-toolbar { flex-direction: row; } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button { - padding: 0 !important; height: 24px; - width: 48px; } } + width: 42px; + padding-left: 11px !important; + padding-right: 6px !important; } } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button::before { right: 8px !important; left: 8px !important; } } +.block-editor-block-mover .block-editor-block-mover__drag-handle { + width: 24px; + cursor: grab; + min-width: 24px !important; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + right: 0 !important; + left: 0 !important; } + @media (min-width: 600px) { .block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, .block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { @@ -807,8 +844,8 @@ padding-right: 0; padding-left: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { - top: 0; - bottom: 0; + top: 1px; + bottom: 1px; min-width: 0; width: auto; height: auto; } @@ -853,17 +890,50 @@ .block-editor-block-navigation-leaf { position: relative; } + .block-editor-block-navigation-leaf.is-dragging { + display: none; } .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { display: flex; align-items: center; - width: calc(100% - 0.8em); + width: 100%; height: auto; padding: 12px 6px; margin-top: auto; margin-bottom: auto; text-align: right; - color: #40464d; - border-radius: 2px; } + color: #1e1e1e; + border-radius: 2px; + position: relative; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + top: -2px; + left: 0; + right: 0; + border-top: 4px solid #007cba; + border-top: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + bottom: -2px; + left: 0; + right: 0; + border-bottom: 4px solid #007cba; + border-bottom: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + bottom: -2px; + left: 0; + right: 24px; + border-bottom: 4px solid #007cba; + border-bottom: 4px solid var(--wp-admin-theme-color); } .components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { padding-right: 0; padding-left: 0; } @@ -890,6 +960,7 @@ padding-bottom: 0; } .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + line-height: 0; width: 36px; opacity: 0; vertical-align: top; } @@ -981,7 +1052,7 @@ .block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, .block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container { - min-height: 56px; } + min-height: 48px; } .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line, .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line { @@ -1002,7 +1073,7 @@ top: 1px; bottom: -2px; left: -1px; - border-left: 2px solid #a2aab2; } + border-left: 2px solid #949494; } .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated::before, .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated::before { border-color: transparent; } @@ -1017,7 +1088,7 @@ top: 26px; right: 100%; width: 5px; - border-bottom: 2px solid #a2aab2; } + border-bottom: 2px solid #949494; } .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { height: 16px; } @@ -1112,18 +1183,21 @@ .block-editor-block-styles__item.is-active .block-editor-block-styles__item-label { font-weight: bold; } .block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview { + margin: 0; border: 2px solid #1e1e1e; } .block-editor-block-styles__item-preview { outline: 1px solid transparent; padding: 0; + margin: 2px; border-radius: 2px; display: flex; overflow: hidden; background: #fff; align-items: center; flex-grow: 1; - min-height: 80px; } + min-height: 80px; + max-height: 160px; } .block-editor-block-switcher__styles__menugroup { position: relative; } @@ -1148,6 +1222,9 @@ .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin: auto; } +.block-editor-block-switcher__popover { + margin-right: 6px; } + .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; } .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon { @@ -1160,28 +1237,24 @@ .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { color: #1e1e1e !important; } -.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon { - padding: 0; } - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { - height: 100%; - position: relative; - margin: 0 auto; - display: flex; - align-items: center; } - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { - top: 8px; - left: 8px; - bottom: 8px; - right: 8px; } +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { + height: 100%; + position: relative; + margin: 0 auto; + display: flex; + align-items: center; } + +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { + top: 8px; + left: 8px; + bottom: 8px; + right: 8px; } .components-popover.block-editor-block-switcher__popover .components-popover__content { min-width: 300px; } @@ -1204,7 +1277,7 @@ z-index: 1; } .block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; } .block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container { position: absolute; @@ -1283,19 +1356,19 @@ list-style: none; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li { list-style: none; - margin: 8px 0 0 8px; + margin: 8px 0 0 20px; flex-shrink: 1; - max-width: 100px; } + max-width: 100px; + text-align: center; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li button { - display: flex; } + display: inline-flex; + margin-left: 0; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation { padding: 8px; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 12px; - display: block; - margin-left: 12px; - text-align: center; } + display: block; } .block-editor-block-variation-picker__variation { width: 100%; } @@ -1349,12 +1422,12 @@ color: #fff; border-radius: 2px; } -.block-editor-color-gradient-control__color-indicator { - margin-bottom: 8px; } +.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator { + margin-bottom: 12px; } -.block-editor-color-gradient-control__button-tabs { +.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs { display: block; - margin-bottom: 8px; } + margin-bottom: 12px; } .block-editor-panel-color-gradient-settings .component-color-indicator { vertical-align: text-bottom; } @@ -1600,7 +1673,7 @@ font-weight: normal; } .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; - color: #6c7781; + color: #757575; font-size: 0.9em; line-height: 1.3; } .block-editor-link-control__search-item .block-editor-link-control__search-item-type { @@ -1717,7 +1790,7 @@ flex-direction: column; width: 100%; font-size: 13px; - color: #32373c; + color: #1e1e1e; padding: 8px; align-items: stretch; justify-content: center; @@ -1776,28 +1849,30 @@ .block-editor-media-replace-flow__indicator { margin-right: 4px; } -.block-editor-media-replace-flow__media-upload-menu { - margin-bottom: 16px; } - -.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { - top: 16px; } - -.block-editor-media-flow__url-input .block-editor-link-control { - margin-top: -16px; - width: auto; } - .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { - margin-bottom: 0; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { - max-width: 180px; - margin-top: 16px; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { - width: auto; - padding: 0; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { - margin: 16px 0 0 0; - width: 100%; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { - left: 4px; } +.block-editor-media-flow__url-input { + border-top: 1px solid #1e1e1e; + margin-top: 12px; + margin-left: -12px; + margin-right: -12px; + padding: 12px 24px 0; } + .block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { + top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control { + margin-top: -16px; + width: auto; } + .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { + margin-bottom: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { + max-width: 180px; + margin-top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { + width: auto; + padding: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + margin: 16px 0 0 0; + width: 100%; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { + left: 4px; } .block-editor-media-flow__error { padding: 0 20px 20px 20px; @@ -1878,7 +1953,7 @@ .block-editor-responsive-block-control { margin-bottom: 28px; - border-bottom: 1px solid #d7dade; + border-bottom: 1px solid #ccc; padding-bottom: 14px; } .block-editor-responsive-block-control:last-child { padding-bottom: 0; @@ -1982,7 +2057,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before margin-bottom: -12px; padding: 12px 20px; border-top: 1px solid #ddd; - color: #6c7781; } + color: #757575; } .block-editor-block-list__block .block-editor-url-input, .components-popover .block-editor-url-input, @@ -2095,7 +2170,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-url-input__suggestion { padding: 4px 8px; - color: #6c7781; + color: #757575; display: block; font-size: 13px; cursor: pointer; @@ -2211,15 +2286,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before min-width: 150px; max-width: 500px; } .block-editor-url-popover__link-viewer-url.has-invalid-link { - color: #d94f4f; } + color: #cc1818; } .block-editor-warning { 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; + padding: 1em; border: 1px solid #1e1e1e; border-radius: 2px; background-color: #fff; } @@ -2227,7 +2301,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - margin: 1em 0; } + margin: 0 0 1em; } .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; } .block-editor-warning .block-editor-warning__contents { @@ -2240,11 +2314,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-warning .block-editor-warning__actions { display: flex; } .block-editor-warning .block-editor-warning__action { - margin: 0 8px 0 0; } + margin: 0 0 0 8px; } .block-editor-warning__secondary { margin: auto 8px auto 0; } +.components-popover.block-editor-warning__dropdown { + z-index: 99998; } + .block-editor-writing-flow { display: flex; flex-direction: column; } @@ -2288,6 +2365,19 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-block-toolbar > :last-child .components-toolbar { border-left: none; } +.block-editor-block-toolbar__block-controls { + height: auto !important; + padding: 0 !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon, + .block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + width: 24px !important; + margin: 0 !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus::before, + .block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus::before { + left: 4px !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-mover { + margin-right: -6px; } + .block-editor-block-toolbar .components-toolbar-group, .block-editor-block-toolbar .components-toolbar, .block-editor-format-toolbar .components-toolbar-group, @@ -2351,7 +2441,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - line-height: 1.4; } + line-height: 0; } @media (min-width: 782px) { .block-editor-inserter { position: relative; } } @@ -2398,7 +2488,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-bottom-color: #fff; } .components-popover.block-editor-inserter__popover { - z-index: 99998; } + z-index: 99999; } .block-editor-inserter__search { padding: 16px; @@ -2462,11 +2552,9 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before box-shadow: 0 0 0 1.5px #007cba; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { - color: #606a73; } - .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-ms-input-placeholder { - color: #606a73; } + color: #757575; } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::placeholder { - color: #606a73; } + color: #757575; } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-decoration, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-cancel-button, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-results-button, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-results-decoration { -webkit-appearance: none; } @@ -2505,22 +2593,33 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before align-items: center; padding: 16px 16px 0; } -.block-editor-inserter__panel-content { - padding: 0 16px; } +.block-editor-inserter__panel-header-patterns { + padding: 16px 8px 0 16px; } -.block-editor-inserter__panel-title { +.block-editor-inserter__panel-content { + padding: 16px; } + +.block-editor-inserter__panel-title, +.block-editor-inserter__panel-title button, +.components-custom-select-control__menu li { margin: 0 0 0 12px; color: #757575; text-transform: uppercase; font-size: 11px; font-weight: 500; } +.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input { + line-height: 1.2; } + +.block-editor-inserter__panel-dropdown select { + border: none; } + .block-editor-inserter__block-list { flex-grow: 1; position: relative; } .block-editor-inserter__popover .block-editor-block-types-list { - margin: 0 -8px; } + margin: -8px; } .block-editor-inserter__reusable-blocks-panel { position: relative; @@ -2536,7 +2635,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before text-align: center; } .block-editor-inserter__no-results-icon { - fill: #b5bcc2; } + fill: #949494; } .block-editor-inserter__child-blocks { padding: 0 16px; } @@ -2557,7 +2656,9 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border: 1px solid #ddd; position: absolute; top: 16px; - right: calc(100% + 16px); } + right: calc(100% + 16px); + max-height: calc(100% - 32px); + overflow-y: hidden; } @media (min-width: 782px) { .block-editor-inserter__preview-container { display: block; } } @@ -2580,7 +2681,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before justify-content: center; align-items: center; min-height: 144px; - color: #606a73; + color: #757575; background: #f0f0f0; } .block-editor-inserter__tips { @@ -2592,17 +2693,23 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before padding: 16px; } .block-editor-inserter__quick-inserter { - width: 100%; } + width: 100%; + max-width: 100%; } @media (min-width: 782px) { .block-editor-inserter__quick-inserter { width: 350px; } } -.block-editor-inserter__quick-inserter-results { - padding-bottom: 16px; } - .block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header { - height: 0; - padding: 0; - float: right; } +.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header { + height: 0; + padding: 0; + float: right; } + +.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content { + padding: 8px; } + +.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content, +.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content { + padding: 16px; } .block-editor-inserter__quick-inserter-patterns { display: -ms-grid; @@ -2630,8 +2737,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before box-shadow: inset 0 0 0 1.5px #1e1e1e, inset 0 0 0 2px #fff; } .block-editor-post-preview__dropdown { - display: none; - margin-left: 12px; padding: 0; } .block-editor-post-preview__button-resize.block-editor-post-preview__button-resize { @@ -2642,14 +2747,16 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-post-preview__dropdown-content .components-popover__content { overflow-y: visible; } +.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child { + padding-bottom: 8px; } + +.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child { + margin-bottom: 0; } + .block-editor-post-preview__dropdown-content .components-menu-group + .components-menu-group { - border-top: 1px solid #ccc; - padding: 8px 12px; - margin-right: -12px; - margin-left: -12px; } + padding: 8px; } @media (min-width: 600px) { - .editor-post-preview { - display: none; } - .block-editor-post-preview__dropdown { - display: flex; } } + .edit-post-header__settings .editor-post-preview, + .edit-site-header__actions .editor-post-preview { + display: none; } } diff --git a/wp-includes/css/dist/block-editor/style-rtl.min.css b/wp-includes/css/dist/block-editor/style-rtl.min.css index df9f5a502f..a07bd5b526 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.min.css +++ b/wp-includes/css/dist/block-editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";: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-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #f0f0f0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;right:-6px;border-top:none;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:100%}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"←"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex:1;flex-direction:row}@media (min-width:600px){.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column}}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{padding:0!important;height:24px;width:48px}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}}@media (min-width:600px){.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 1px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:0;bottom:0;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:0!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:0!important;width:calc(100% + 1px)}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;left:-1px;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__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}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;right:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-right:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[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}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[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){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[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}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #ddd;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 8px auto 0}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;right:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;right:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input: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-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;left:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;right:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-left:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-right:-12px;margin-left:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file +@charset "UTF-8";: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-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;right:-6px;border-top:none;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-28px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg{transform:translateX(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg{transform:translateX(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:2px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg{transform:translateY(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg{transform:translateY(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:100%}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0;animation:hide-during-dragging 1ms linear forwards}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"←"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ddd;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-24px;right:0}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-left:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-left:11px!important;padding-right:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{right:0!important;left:0!important}@media (min-width:600px){.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 1px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:0!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:0!important;width:calc(100% + 1px)}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{line-height:0;width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:48px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;left:-1px;border-left:2px solid #949494}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;right:100%;width:5px;border-bottom:2px solid #949494}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__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}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__popover{margin-right:6px}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e0e0e0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;right:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-right:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 20px;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[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}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#757575;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#1e1e1e;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-left:-12px;margin-right:-12px;padding:12px 24px 0}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #ccc;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#757575}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[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){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[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}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#757575;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #ddd;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;margin:0 0 1em}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{left:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-right:-6px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;right:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;right:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input: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-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;left:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-header-patterns{padding:16px 8px 0 16px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;right:calc(100% + 16px);max-height:calc(100% - 32px);overflow-y:hidden}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#757575;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:right}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css index 16f85cf998..bcbbfe2f30 100644 --- a/wp-includes/css/dist/block-editor/style.css +++ b/wp-includes/css/dist/block-editor/style.css @@ -2,20 +2,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -38,6 +30,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -104,7 +99,7 @@ .block-editor-block-inspector .components-panel__body { border: none; - border-top: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; } .block-editor-block-inspector .block-editor-block-card { padding: 16px; } @@ -363,7 +358,7 @@ .block-editor-block-list__insertion-point { position: relative; z-index: 6; - margin-top: -14px; } + margin-top: -28px; } .block-editor-block-list__insertion-point-indicator { position: absolute; @@ -376,8 +371,7 @@ .block-editor-block-list__insertion-point-inserter { display: none; - justify-content: center; - cursor: text; } + justify-content: center; } @media (min-width: 480px) { .block-editor-block-list__insertion-point-inserter { display: flex; } } @@ -465,7 +459,7 @@ overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; font-size: 15px; - line-height: 150%; + line-height: 1.5; transition: padding 0.2s linear; } @media (prefers-reduced-motion: reduce) { .block-editor-block-list__block .block-editor-block-list__block-html-textarea { @@ -488,10 +482,36 @@ .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button { min-width: 24px; width: 24px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg { + transform: translateX(-2px); } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg { + transform: translateX(2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { - margin-top: 3px; } + margin-top: 2px; + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg { + transform: translateY(-2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { - margin-bottom: 3px; } + margin-bottom: 3px; + transition: ease-in-out transform 0.1s; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { + transition-duration: 0s; } } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg, .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg { + transform: translateY(2px); } .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { left: 0 !important; min-width: 0; @@ -538,6 +558,11 @@ overflow-y: visible; margin-left: 0; } +@keyframes hide-during-dragging { + to { + position: fixed; + transform: translate(9999px, 9999px); } } + .components-popover.block-editor-block-list__block-popover { z-index: 31; position: absolute; } @@ -556,7 +581,8 @@ .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar { margin-bottom: 12px; } .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { - opacity: 0; } + opacity: 0; + animation: hide-during-dragging 1ms linear forwards; } .is-dragging-components-draggable .components-tooltip { display: none; } @@ -627,7 +653,7 @@ align-items: flex-start; } .block-editor-block-card__icon { - border: 1px solid #ccd0d4; + border: 1px solid #ddd; padding: 7px; margin-right: 10px; height: 36px; @@ -691,7 +717,7 @@ .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added { background-color: #acf2bd; } .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed { - background-color: #d94f4f; } + background-color: #cc1818; } .block-editor-block-compare__wrapper .block-editor-block-compare__preview { padding: 0; padding-top: 14px; } @@ -707,7 +733,8 @@ .block-editor-block-draggable-chip-wrapper { position: absolute; - top: -60px; } + top: -24px; + left: 0; } .block-editor-block-draggable-chip { background-color: #1e1e1e; @@ -731,8 +758,7 @@ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; } -.is-dragging.is-selected, -.is-dragging.is-multi-selected { +.is-dragging { display: none !important; } .block-editor-block-mobile-toolbar { @@ -765,30 +791,41 @@ .block-editor-block-mover-button.has-icon { padding: 0; } -.block-editor-block-mover .components-toolbar-group, +.block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex: 1; - flex-direction: row; } + flex-direction: row; + border-right: none !important; } @media (min-width: 600px) { - .block-editor-block-mover .components-toolbar-group, + .block-editor-block-mover .block-editor-block-mover__move-button-container, .block-editor-block-mover .components-toolbar { flex-direction: column; } } -.block-editor-block-mover.is-horizontal .components-toolbar-group, +.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container, .block-editor-block-mover.is-horizontal .components-toolbar { flex-direction: row; } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button { - padding: 0 !important; height: 24px; - width: 48px; } } + width: 42px; + padding-right: 11px !important; + padding-left: 6px !important; } } @media (min-width: 600px) { .block-editor-block-mover .block-editor-block-mover-button::before { left: 8px !important; right: 8px !important; } } +.block-editor-block-mover .block-editor-block-mover__drag-handle { + width: 24px; + cursor: grab; + min-width: 24px !important; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover__drag-handle:focus::before { + left: 0 !important; + right: 0 !important; } + @media (min-width: 600px) { .block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, .block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { @@ -811,8 +848,8 @@ padding-left: 0; padding-right: 0; } .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { - top: 0; - bottom: 0; + top: 1px; + bottom: 1px; min-width: 0; width: auto; height: auto; } @@ -857,17 +894,50 @@ .block-editor-block-navigation-leaf { position: relative; } + .block-editor-block-navigation-leaf.is-dragging { + display: none; } .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { display: flex; align-items: center; - width: calc(100% - 0.8em); + width: 100%; height: auto; padding: 12px 6px; margin-top: auto; margin-bottom: auto; text-align: left; - color: #40464d; - border-radius: 2px; } + color: #1e1e1e; + border-radius: 2px; + position: relative; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + top: -2px; + right: 0; + left: 0; + border-top: 4px solid #007cba; + border-top: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + bottom: -2px; + right: 0; + left: 0; + border-bottom: 4px solid #007cba; + border-bottom: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks::before { + content: ""; + position: absolute; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + bottom: -2px; + right: 0; + left: 24px; + border-bottom: 4px solid #007cba; + border-bottom: 4px solid var(--wp-admin-theme-color); } .components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { padding-left: 0; padding-right: 0; } @@ -894,6 +964,7 @@ padding-bottom: 0; } .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + line-height: 0; width: 36px; opacity: 0; vertical-align: top; } @@ -985,7 +1056,7 @@ .block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, .block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container { - min-height: 56px; } + min-height: 48px; } .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line, .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line { @@ -1006,7 +1077,7 @@ top: 1px; bottom: -2px; right: -1px; - border-right: 2px solid #a2aab2; } + border-right: 2px solid #949494; } .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated::before, .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated::before { border-color: transparent; } @@ -1021,7 +1092,7 @@ top: 26px; left: 100%; width: 5px; - border-bottom: 2px solid #a2aab2; } + border-bottom: 2px solid #949494; } .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { height: 16px; } @@ -1116,18 +1187,21 @@ .block-editor-block-styles__item.is-active .block-editor-block-styles__item-label { font-weight: bold; } .block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview { + margin: 0; border: 2px solid #1e1e1e; } .block-editor-block-styles__item-preview { outline: 1px solid transparent; padding: 0; + margin: 2px; border-radius: 2px; display: flex; overflow: hidden; background: #fff; align-items: center; flex-grow: 1; - min-height: 80px; } + min-height: 80px; + max-height: 160px; } .block-editor-block-switcher__styles__menugroup { position: relative; } @@ -1152,6 +1226,9 @@ .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { margin: auto; } +.block-editor-block-switcher__popover { + margin-left: 6px; } + .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; } .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon { @@ -1164,28 +1241,24 @@ .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { color: #1e1e1e !important; } -.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon, -.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon { - padding: 0; } - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { - height: 100%; - position: relative; - margin: 0 auto; - display: flex; - align-items: center; } - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, - .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { - top: 8px; - right: 8px; - bottom: 8px; - left: 8px; } +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { + height: 100%; + position: relative; + margin: 0 auto; + display: flex; + align-items: center; } + +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { + top: 8px; + right: 8px; + bottom: 8px; + left: 8px; } .components-popover.block-editor-block-switcher__popover .components-popover__content { min-width: 300px; } @@ -1208,7 +1281,7 @@ z-index: 1; } .block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; } .block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container { position: absolute; @@ -1287,19 +1360,19 @@ list-style: none; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li { list-style: none; - margin: 8px 8px 0 0; + margin: 8px 20px 0 0; flex-shrink: 1; - max-width: 100px; } + max-width: 100px; + text-align: center; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li button { - display: flex; } + display: inline-flex; + margin-right: 0; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation { padding: 8px; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 12px; - display: block; - margin-right: 12px; - text-align: center; } + display: block; } .block-editor-block-variation-picker__variation { width: 100%; } @@ -1353,12 +1426,12 @@ color: #fff; border-radius: 2px; } -.block-editor-color-gradient-control__color-indicator { - margin-bottom: 8px; } +.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator { + margin-bottom: 12px; } -.block-editor-color-gradient-control__button-tabs { +.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs { display: block; - margin-bottom: 8px; } + margin-bottom: 12px; } .block-editor-panel-color-gradient-settings .component-color-indicator { vertical-align: text-bottom; } @@ -1604,7 +1677,7 @@ font-weight: normal; } .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; - color: #6c7781; + color: #757575; font-size: 0.9em; line-height: 1.3; } .block-editor-link-control__search-item .block-editor-link-control__search-item-type { @@ -1721,7 +1794,7 @@ flex-direction: column; width: 100%; font-size: 13px; - color: #32373c; + color: #1e1e1e; padding: 8px; align-items: stretch; justify-content: center; @@ -1780,28 +1853,30 @@ .block-editor-media-replace-flow__indicator { margin-left: 4px; } -.block-editor-media-replace-flow__media-upload-menu { - margin-bottom: 16px; } - -.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { - top: 16px; } - -.block-editor-media-flow__url-input .block-editor-link-control { - margin-top: -16px; - width: auto; } - .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { - margin-bottom: 0; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { - max-width: 180px; - margin-top: 16px; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { - width: auto; - padding: 0; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { - margin: 16px 0 0 0; - width: 100%; } - .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { - right: 4px; } +.block-editor-media-flow__url-input { + border-top: 1px solid #1e1e1e; + margin-top: 12px; + margin-right: -12px; + margin-left: -12px; + padding: 12px 24px 0; } + .block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { + top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control { + margin-top: -16px; + width: auto; } + .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { + margin-bottom: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { + max-width: 180px; + margin-top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { + width: auto; + padding: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + margin: 16px 0 0 0; + width: 100%; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { + right: 4px; } .block-editor-media-flow__error { padding: 0 20px 20px 20px; @@ -1882,7 +1957,7 @@ .block-editor-responsive-block-control { margin-bottom: 28px; - border-bottom: 1px solid #d7dade; + border-bottom: 1px solid #ccc; padding-bottom: 14px; } .block-editor-responsive-block-control:last-child { padding-bottom: 0; @@ -1986,7 +2061,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before margin-bottom: -12px; padding: 12px 20px; border-top: 1px solid #ddd; - color: #6c7781; } + color: #757575; } .block-editor-block-list__block .block-editor-url-input, .components-popover .block-editor-url-input, @@ -2099,7 +2174,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-url-input__suggestion { padding: 4px 8px; - color: #6c7781; + color: #757575; display: block; font-size: 13px; cursor: pointer; @@ -2215,15 +2290,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before min-width: 150px; max-width: 500px; } .block-editor-url-popover__link-viewer-url.has-invalid-link { - color: #d94f4f; } + color: #cc1818; } .block-editor-warning { 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; + padding: 1em; border: 1px solid #1e1e1e; border-radius: 2px; background-color: #fff; } @@ -2231,7 +2305,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - margin: 1em 0; } + margin: 0 0 1em; } .block-editor-warning p.block-editor-warning__message.block-editor-warning__message { min-height: auto; } .block-editor-warning .block-editor-warning__contents { @@ -2244,11 +2318,14 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-warning .block-editor-warning__actions { display: flex; } .block-editor-warning .block-editor-warning__action { - margin: 0 0 0 8px; } + margin: 0 8px 0 0; } .block-editor-warning__secondary { margin: auto 0 auto 8px; } +.components-popover.block-editor-warning__dropdown { + z-index: 99998; } + .block-editor-writing-flow { display: flex; flex-direction: column; } @@ -2292,6 +2369,19 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-block-toolbar > :last-child .components-toolbar { border-right: none; } +.block-editor-block-toolbar__block-controls { + height: auto !important; + padding: 0 !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon, + .block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + width: 24px !important; + margin: 0 !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus::before, + .block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus::before { + right: 4px !important; } + .block-editor-block-toolbar__block-controls .block-editor-block-mover { + margin-left: -6px; } + .block-editor-block-toolbar .components-toolbar-group, .block-editor-block-toolbar .components-toolbar, .block-editor-format-toolbar .components-toolbar-group, @@ -2355,7 +2445,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - line-height: 1.4; } + line-height: 0; } @media (min-width: 782px) { .block-editor-inserter { position: relative; } } @@ -2402,7 +2492,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-bottom-color: #fff; } .components-popover.block-editor-inserter__popover { - z-index: 99998; } + z-index: 99999; } .block-editor-inserter__search { padding: 16px; @@ -2466,11 +2556,9 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before box-shadow: 0 0 0 1.5px #007cba; box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { - color: #606a73; } - .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-ms-input-placeholder { - color: #606a73; } + color: #757575; } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::placeholder { - color: #606a73; } + color: #757575; } .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-decoration, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-cancel-button, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-results-button, .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-search-results-decoration { -webkit-appearance: none; } @@ -2509,22 +2597,33 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before align-items: center; padding: 16px 16px 0; } -.block-editor-inserter__panel-content { - padding: 0 16px; } +.block-editor-inserter__panel-header-patterns { + padding: 16px 16px 0 8px; } -.block-editor-inserter__panel-title { +.block-editor-inserter__panel-content { + padding: 16px; } + +.block-editor-inserter__panel-title, +.block-editor-inserter__panel-title button, +.components-custom-select-control__menu li { margin: 0 12px 0 0; color: #757575; text-transform: uppercase; font-size: 11px; font-weight: 500; } +.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input { + line-height: 1.2; } + +.block-editor-inserter__panel-dropdown select { + border: none; } + .block-editor-inserter__block-list { flex-grow: 1; position: relative; } .block-editor-inserter__popover .block-editor-block-types-list { - margin: 0 -8px; } + margin: -8px; } .block-editor-inserter__reusable-blocks-panel { position: relative; @@ -2540,7 +2639,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before text-align: center; } .block-editor-inserter__no-results-icon { - fill: #b5bcc2; } + fill: #949494; } .block-editor-inserter__child-blocks { padding: 0 16px; } @@ -2561,7 +2660,9 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border: 1px solid #ddd; position: absolute; top: 16px; - left: calc(100% + 16px); } + left: calc(100% + 16px); + max-height: calc(100% - 32px); + overflow-y: hidden; } @media (min-width: 782px) { .block-editor-inserter__preview-container { display: block; } } @@ -2584,7 +2685,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before justify-content: center; align-items: center; min-height: 144px; - color: #606a73; + color: #757575; background: #f0f0f0; } .block-editor-inserter__tips { @@ -2596,17 +2697,23 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before padding: 16px; } .block-editor-inserter__quick-inserter { - width: 100%; } + width: 100%; + max-width: 100%; } @media (min-width: 782px) { .block-editor-inserter__quick-inserter { width: 350px; } } -.block-editor-inserter__quick-inserter-results { - padding-bottom: 16px; } - .block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header { - height: 0; - padding: 0; - float: left; } +.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header { + height: 0; + padding: 0; + float: left; } + +.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content { + padding: 8px; } + +.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content, +.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content { + padding: 16px; } .block-editor-inserter__quick-inserter-patterns { display: -ms-grid; @@ -2634,8 +2741,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before box-shadow: inset 0 0 0 1.5px #1e1e1e, inset 0 0 0 2px #fff; } .block-editor-post-preview__dropdown { - display: none; - margin-right: 12px; padding: 0; } .block-editor-post-preview__button-resize.block-editor-post-preview__button-resize { @@ -2646,14 +2751,16 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-post-preview__dropdown-content .components-popover__content { overflow-y: visible; } +.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child { + padding-bottom: 8px; } + +.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child { + margin-bottom: 0; } + .block-editor-post-preview__dropdown-content .components-menu-group + .components-menu-group { - border-top: 1px solid #ccc; - padding: 8px 12px; - margin-left: -12px; - margin-right: -12px; } + padding: 8px; } @media (min-width: 600px) { - .editor-post-preview { - display: none; } - .block-editor-post-preview__dropdown { - display: flex; } } + .edit-post-header__settings .editor-post-preview, + .edit-site-header__actions .editor-post-preview { + display: none; } } diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css index e38d1738bc..76c8f92b97 100644 --- a/wp-includes/css/dist/block-editor/style.min.css +++ b/wp-includes/css/dist/block-editor/style.min.css @@ -1,5 +1,5 @@ -@charset "UTF-8";: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-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #f0f0f0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;left:-6px;border-top:none;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;right:0;left:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{left:auto;right:8px}.block-editor-block-list__layout .wp-block{margin-left:auto;margin-right:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{ +@charset "UTF-8";: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-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;left:-6px;border-top:none;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.has-child-selected{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1.5px solid transparent}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;right:0;left:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.is-block-moving-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{content:none}.is-block-moving-mode.can-insert-moving-block .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{left:auto;right:8px}.block-editor-block-list__layout .wp-block{margin-left:auto;margin-right:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{ /*!rtl:begin:ignore*/float:left;margin-right:2em /*!rtl:end:ignore*/}.wp-block[data-align=right]>*{ /*!rtl:begin:ignore*/float:right;margin-left:2em - /*!rtl:end:ignore*/}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;left:0;right:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{left:0!important;min-width:0;width:100%}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-left:0}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"→"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;right:1px;bottom:1px;left:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-60px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging.is-multi-selected,.is-dragging.is-selected{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:left}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex:1;flex-direction:row}@media (min-width:600px){.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column}}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{padding:0!important;height:24px;width:48px}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}}@media (min-width:600px){.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 1px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:0;bottom:0;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-left:0;margin-right:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{left:0!important;right:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-left:-8px;margin-right:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{left:0!important;right:0!important;width:calc(100% + 1px)}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-left:0;padding-right:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-right:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;left:0;right:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-right:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;right:-1px;border-right:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;left:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__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}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-left:0;padding-right:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:0;margin-right:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;right:8px;bottom:8px;left:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #f0f0f0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;left:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-left:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 8px 0 0;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-right:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-left:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 0;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 36px 11px 16px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[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}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__input[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){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[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}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #ddd;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 0 auto 8px}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;left:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;left:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input: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-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;right:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;left:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results{padding-bottom:16px}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{display:none;margin-right:12px;padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-left:-12px;margin-right:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file + /*!rtl:end:ignore*/}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-28px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;left:0;right:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{visibility:hidden;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-up-button:hover svg{transform:translateX(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button.is-down-button:hover svg{transform:translateX(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:2px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button:hover svg{transform:translateY(-2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px;transition:transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{transition-duration:0s}}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:focus svg,.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button:hover svg{transform:translateY(2px)}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{left:0!important;min-width:0;width:100%}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-left:0}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0;animation:hide-during-dragging 1ms linear forwards}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"→"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;right:1px;bottom:1px;left:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ddd;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-24px;left:0}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;border:1px solid #1e1e1e;box-shadow:0 4px 6px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;min-width:72px;padding:0 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:left}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-right:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-right:11px!important;padding-left:6px!important}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{left:0!important;right:0!important}@media (min-width:600px){.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 1px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-left:0;margin-right:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{left:0!important;right:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-left:-8px;margin-right:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{left:0!important;right:0!important;width:calc(100% + 1px)}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#1e1e1e;border-radius:2px;position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:0;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;right:0;left:24px;border-bottom:4px solid #007cba;border-bottom:4px solid var(--wp-admin-theme-color)}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-left:0;padding-right:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-right:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{line-height:0;width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;left:0;right:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:48px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-right:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;right:-1px;border-right:2px solid #949494}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;left:100%;width:5px;border-bottom:2px solid #949494}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__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}.block-editor-block-patterns-list__item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-left:0;padding-right:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:0;margin-right:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__popover{margin-left:6px}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;right:8px;bottom:8px;left:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px;margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e0e0e0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;left:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-left:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 20px 0 0;flex-shrink:1;max-width:100px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-left:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 0;color:rgba(30,30,30,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 36px 11px 16px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[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}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#1e1e1e}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#757575;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%;border-top:1px solid #ddd}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#1e1e1e;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-right:-12px;margin-left:-12px;padding:12px 24px 0}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #ccc;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #ddd;color:#757575}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__input[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){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[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}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#757575;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#ddd}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #ddd;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:2px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #ddd;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #ddd}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:1em;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-size:13px;margin:0 0 1em}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #ddd}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar__block-controls{height:auto!important;padding:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{width:24px!important;margin:0!important}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle:focus:before,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon:focus:before{right:4px!important}.block-editor-block-toolbar__block-controls .block-editor-block-mover{margin-left:-6px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;left:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar-animated-width-container{position:relative;overflow:hidden;transition:width .3s}.block-editor-block-toolbar-content-enter{position:absolute;top:0;left:0;width:auto;opacity:0}.block-editor-block-toolbar-content-enter-active{position:absolute;opacity:1;transition:opacity .3s}.block-editor-block-toolbar-content-exit{width:auto;opacity:1;pointer-events:none}.block-editor-block-toolbar-content-exit-active{opacity:0;transition:opacity .3s}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input: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-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#757575}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-cancel-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-decoration,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-button,.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-search-results-decoration{-webkit-appearance:none}.block-editor-inserter__search-icon{position:absolute;top:0;right:20px;bottom:0;display:flex;align-items:center}.block-editor-inserter__search-icon>svg{margin:8px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-header-patterns{padding:16px 16px 0 8px}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button,.components-custom-select-control__menu li{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{line-height:1.2}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:-8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #ddd;position:absolute;top:16px;left:calc(100% + 16px);max-height:calc(100% - 32px);overflow-y:hidden}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f0f0f0;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#757575;background:#f0f0f0}.block-editor-inserter__tips{border-top:1px solid #ddd;padding:16px;flex-shrink:0}.block-editor-inserter__manage-reusable-blocks-container{padding:16px}.block-editor-inserter__quick-inserter{width:100%;max-width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{height:0;padding:0;float:left}.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content{padding:8px}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;grid-gap:8px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content>div{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{display:block;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #1e1e1e,inset 0 0 0 2px #fff}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header__actions .editor-post-preview{display:none}} \ 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 f211f7ef8f..ee4ad36083 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -115,7 +110,7 @@ opacity: 0.8; } .wp-block-button__inline-link { - color: #555d66; + color: #757575; height: 0; overflow: hidden; max-width: 290px; } @@ -139,9 +134,8 @@ div[data-type="core/button"] { display: table; } -.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"] { - display: inline-block; - width: auto; } +.wp-block-buttons > .wp-block { + margin-right: 0; } .wp-block[data-align="center"] > .wp-block-buttons { display: flex; @@ -153,7 +147,7 @@ div[data-type="core/button"] { display: flex; justify-content: flex-end; } -.wp-block-buttons .block-list-appender { +.wp-block-buttons > .block-list-appender { display: inline-block; } .block-editor .wp-block-categories ul { @@ -613,18 +607,17 @@ figure.wp-block-gallery { /** * Group: All Alignment Settings */ -.wp-block-group { - margin-top: 0; - margin-bottom: 0; } - .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); } +.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); } /** * Group: Full Width Alignment @@ -794,33 +787,12 @@ figure.wp-block-image:not(.wp-block) { .wp-block-latest-posts li a > div { display: inline; } -.wp-block-legacy-widget__edit-container .widget-inside { - border: none; - display: block; - box-shadow: none; } +.edit-post-visual-editor .wp-block-latest-posts.is-grid li { + margin-bottom: 20px; } -.wp-block-legacy-widget__edit-container .widget.open { - z-index: 0; } - -.wp-block-legacy-widget__update-button { - margin-right: auto; - display: block; } - -.wp-block-legacy-widget__preview { - overflow: auto; } - -.wp-block-legacy-widget__preview, -.wp-block-legacy-widget__edit-container, -.wp-block-legacy-widget__edit-widget-title { - padding: 8px 14px; } - -.wp-block-legacy-widget__edit-widget-title { - background: #ddd; - color: #1e1e1e; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - padding: 8px 14px; - font-weight: 600; } +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; @@ -854,7 +826,7 @@ figure.wp-block-image:not(.wp-block) { text-transform: uppercase; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #6c7781; + color: #757575; border: none; box-shadow: none; white-space: nowrap; @@ -873,7 +845,7 @@ figure.wp-block-image:not(.wp-block) { top: calc(50%); right: 0; left: 0; - border-top: 3px dashed #ccd0d4; } + border-top: 3px dashed #ccc; } .editor-styles-wrapper .wp-block-navigation ul, .editor-styles-wrapper .wp-block-navigation ol { @@ -895,6 +867,9 @@ figure.wp-block-image:not(.wp-block) { .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; } @@ -903,10 +878,17 @@ figure.wp-block-image:not(.wp-block) { opacity: 0; visibility: hidden; } -.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-selected > .wp-block-navigation__container { +.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-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; } + /** * Colors Selector component */ @@ -963,13 +945,6 @@ figure.wp-block-image:not(.wp-block) { display: flex; flex-direction: column; } -.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle { - color: #fff; } - -.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle > svg { - color: #000; - background-color: #fff; } - .wp-block-navigation-placeholder .components-spinner { margin-top: -4px; margin-right: 4px; @@ -1032,9 +1007,6 @@ figure.wp-block-image:not(.wp-block) { margin-right: 10px; margin-top: 10px; } -.wp-block-navigation-link__nofollow-external-link { - display: block; } - .wp-block-navigation-link__separator { margin: 8px 0 8px; border-top: 1px solid #ddd; } @@ -1065,7 +1037,7 @@ figure.wp-block-image:not(.wp-block) { text-transform: uppercase; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #6c7781; + color: #757575; border-radius: 4px; background: #fff; padding: 6px 8px; @@ -1076,18 +1048,26 @@ figure.wp-block-image:not(.wp-block) { top: calc(50%); right: 0; left: 0; - border-top: 3px dashed #ccd0d4; } + 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-excerpt__excerpt.is-inline { +.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; - line-height: 1.5; } + flex-wrap: wrap; } .wp-block-post-author .wp-block-post-author__byline { font-size: 0.5em; margin-top: 0; @@ -1158,24 +1138,36 @@ figure.wp-block-image:not(.wp-block) { flex-grow: 1; margin-left: 8px; } -.wp-block-search__input { +.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__input, +.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper { border-radius: 2px; - border: 1px solid #7e8993; + border: 1px solid #949494; color: rgba(30, 30, 30, 0.62); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - padding: 8px; } - .wp-block-search__input:focus { + background-color: #fff; } + .wp-block-search .wp-block-search__input:focus, + .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus { outline: none; } -.wp-block-search__button { +.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; } + 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: 0.1px; @@ -1252,6 +1244,25 @@ figure.wp-block-image:not(.wp-block) { .blocks-shortcode__textarea:-ms-input-placeholder { color: rgba(255, 255, 255, 0.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: 0.3; } + +.wp-block-site-logo img { + display: block; + max-width: 100%; } + .wp-block-social-links .wp-social-link button { color: currentColor; padding: 6px; } @@ -1265,8 +1276,9 @@ figure.wp-block-image:not(.wp-block) { margin-right: 8px; } .editor-styles-wrapper .wp-block-social-link { - margin: 0; - margin-left: 8px; } + margin: 0 0 8px 8px; } + .editor-styles-wrapper .wp-block-social-link.is-selected, .editor-styles-wrapper .wp-block-social-link.is-hovered { + transform: none; } .editor-styles-wrapper .wp-block-social-links { padding: 0; } @@ -1317,6 +1329,14 @@ figure.wp-block-image:not(.wp-block) { .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus::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 { @@ -1329,7 +1349,7 @@ figure.wp-block-image:not(.wp-block) { content: none; } .edit-post-visual-editor p.wp-block-subhead { - color: #6c7781; + color: #555; font-size: 1.1em; font-style: italic; } @@ -1369,7 +1389,7 @@ figure.wp-block-image:not(.wp-block) { box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); border-style: double; } .wp-block-table figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } @@ -1402,62 +1422,62 @@ figure.wp-block-image:not(.wp-block) { .block-editor .wp-block-tag-cloud span { display: inline-block; margin-right: 5px; - color: #8f98a1; + color: #757575; text-decoration: none; } -.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content { +.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__placeholder-preview-search-form { +.wp-block-template-part__selection-preview-search-form { border-bottom: 1px solid #ddd; } -.wp-block-template-part__placeholder-preview-container { +.wp-block-template-part__selection-preview-container { background: #fff; padding-bottom: 16px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item { border-radius: 2px; cursor: pointer; margin-top: 16px; transition: all 0.05s ease-in-out; border: 1px solid transparent; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover { + .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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus { + .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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder { min-height: 100px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title { + .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__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header { padding: 16px 16px 0; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content { padding: 0 16px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title { + .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__name-panel { - background-color: #fff; - border-radius: 2px; - box-shadow: 0 0 0 1px #1e1e1e; - outline: 1px solid transparent; - padding: 6px 12px; } - .wp-block-template-part__name-panel .components-base-control__field { - align-items: center; - display: flex; - margin-bottom: 0; } - .wp-block-template-part__name-panel .components-base-control__label { - margin-bottom: 0; - margin-left: 8px; } +.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-navigate-mode .is-selected .wp-block-template-part__name-panel { box-shadow: 0 0 0 1px #007cba; @@ -1466,6 +1486,24 @@ figure.wp-block-image:not(.wp-block) { 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"].is-selected::after, .block-editor-block-list__block[data-type="core/template-part"].has-child-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; } @@ -1489,9 +1527,21 @@ pre.wp-block-verse { .wp-block[data-type="core/widget-area"] { max-width: 700px; } +.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { + padding: 0; } + .wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title { + padding: 0; + margin: 0; } + .wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { padding-top: 24px; } +.editor-styles-wrapper .wp-block.wp-block-query-loop { + max-width: 100%; } + +.editor-styles-wrapper .wp-block.wp-block-query { + max-width: 100%; } + /** * Import styles from internal editor components used by the blocks. */ @@ -1572,6 +1622,119 @@ pre.wp-block-verse { box-shadow: 0 0 0 1px #007cba; box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } +:root .editor-styles-wrapper { + /* stylelint-disable function-comma-space-after */ + /* stylelint-enable function-comma-space-after */ } + :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 0%, #9b51e0 100%); } + :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { + background: linear-gradient(-135deg, #00d084 0%, #0693e3 100%); } + :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background { + background: linear-gradient(-135deg, #7adcb4 0%, #00d082 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { + background: linear-gradient(-135deg, #fcb900 0%, #ff6900 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background { + background: linear-gradient(-135deg, #ff6900 0%, #cf2e2e 100%); } + :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background { + background: linear-gradient(-135deg, #eeeeee 0%, #a9b8c3 100%); } + :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background { + background: linear-gradient(-135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } + :root .editor-styles-wrapper .has-blush-light-purple-gradient-background { + background: linear-gradient(-135deg, #ffceec 0%, #9896f0 100%); } + :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background { + background: linear-gradient(-135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } + :root .editor-styles-wrapper .has-purple-crush-gradient-background { + background: linear-gradient(-135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } + :root .editor-styles-wrapper .has-luminous-dusk-gradient-background { + background: linear-gradient(-135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } + :root .editor-styles-wrapper .has-hazy-dawn-gradient-background { + background: linear-gradient(-135deg, #faaca8 0%, #dad0ec 100%); } + :root .editor-styles-wrapper .has-pale-ocean-gradient-background { + background: linear-gradient(-135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } + :root .editor-styles-wrapper .has-electric-grass-gradient-background { + background: linear-gradient(-135deg, #caf880 0%, #71ce7e 100%); } + :root .editor-styles-wrapper .has-subdued-olive-gradient-background { + background: linear-gradient(-135deg, #fafae1 0%, #67a671 100%); } + :root .editor-styles-wrapper .has-atomic-cream-gradient-background { + background: linear-gradient(-135deg, #fdd79a 0%, #004a59 100%); } + :root .editor-styles-wrapper .has-nightshade-gradient-background { + background: linear-gradient(-135deg, #330968 0%, #31cdcf 100%); } + :root .editor-styles-wrapper .has-midnight-gradient-background { + background: linear-gradient(-135deg, #020381 0%, #2874fc 100%); } + +.editor-styles-wrapper .has-small-font-size { + font-size: 13px; } + +.editor-styles-wrapper .has-regular-font-size, +.editor-styles-wrapper .has-normal-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-larger-font-size, +.editor-styles-wrapper .has-huge-font-size { + font-size: 42px; } + /** * Editor Normalization Styles * 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 ed5b00c05b..7b39902e4a 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:#555d66;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.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.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 .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{margin-top:0;margin-bottom:0}.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=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}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__edit-container .widget.open{z-index:0}.wp-block-legacy-widget__update-button{margin-right:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__edit-widget-title,.wp-block-legacy-widget__preview{padding:8px 14px}.wp-block-legacy-widget__edit-widget-title{background:#ddd;color:#1e1e1e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.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:#6c7781;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 #ccd0d4}.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.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{opacity:1;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.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle{color:#fff}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle>svg{color:#000;background-color:#fff}.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__label{margin-bottom:1rem}.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{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__nofollow-external-link{display:block}.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:#6c7781;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 #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.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{margin-right:0;margin-left:0}.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__input{border-radius:2px;border:1px solid #7e8993;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;padding:8px}.wp-block-search__input:focus{outline:none}.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}.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-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 0 8px}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;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}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-left:0}.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-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:#6c7781;font-size:1.1em;font-style:italic}.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{margin:0}.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:#555d66;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:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__placeholder-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__placeholder-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header{padding:16px 16px 0}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content{padding:0 16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__name-panel{background-color:#fff;border-radius:2px;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent;padding:6px 12px}.wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.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)}.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}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.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)}.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}@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 .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=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__label{margin-bottom:1rem}.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{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{margin-right:0;margin-left:0}.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 .block-list-appender{margin:0;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}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-left:0}.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[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{margin:0}.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}.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}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened){padding:0}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened)>.components-panel__body-title{padding:0;margin:0}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}.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 e1e3b91011..ebdcfc42b6 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -116,7 +111,7 @@ opacity: 0.8; } .wp-block-button__inline-link { - color: #555d66; + color: #757575; height: 0; overflow: hidden; max-width: 290px; } @@ -140,9 +135,8 @@ div[data-type="core/button"] { display: table; } -.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"] { - display: inline-block; - width: auto; } +.wp-block-buttons > .wp-block { + margin-left: 0; } .wp-block[data-align="center"] > .wp-block-buttons { display: flex; @@ -154,7 +148,7 @@ div[data-type="core/button"] { display: flex; justify-content: flex-end; } -.wp-block-buttons .block-list-appender { +.wp-block-buttons > .block-list-appender { display: inline-block; } .block-editor .wp-block-categories ul { @@ -618,18 +612,17 @@ figure.wp-block-gallery { /** * Group: All Alignment Settings */ -.wp-block-group { - margin-top: 0; - margin-bottom: 0; } - .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); } +.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); } /** * Group: Full Width Alignment @@ -799,33 +792,12 @@ figure.wp-block-image:not(.wp-block) { .wp-block-latest-posts li a > div { display: inline; } -.wp-block-legacy-widget__edit-container .widget-inside { - border: none; - display: block; - box-shadow: none; } +.edit-post-visual-editor .wp-block-latest-posts.is-grid li { + margin-bottom: 20px; } -.wp-block-legacy-widget__edit-container .widget.open { - z-index: 0; } - -.wp-block-legacy-widget__update-button { - margin-left: auto; - display: block; } - -.wp-block-legacy-widget__preview { - overflow: auto; } - -.wp-block-legacy-widget__preview, -.wp-block-legacy-widget__edit-container, -.wp-block-legacy-widget__edit-widget-title { - padding: 8px 14px; } - -.wp-block-legacy-widget__edit-widget-title { - background: #ddd; - color: #1e1e1e; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - padding: 8px 14px; - font-weight: 600; } +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; @@ -859,7 +831,7 @@ figure.wp-block-image:not(.wp-block) { text-transform: uppercase; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #6c7781; + color: #757575; border: none; box-shadow: none; white-space: nowrap; @@ -878,7 +850,7 @@ figure.wp-block-image:not(.wp-block) { top: calc(50%); left: 0; right: 0; - border-top: 3px dashed #ccd0d4; } + border-top: 3px dashed #ccc; } .editor-styles-wrapper .wp-block-navigation ul, .editor-styles-wrapper .wp-block-navigation ol { @@ -900,6 +872,9 @@ figure.wp-block-image:not(.wp-block) { .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; } @@ -908,10 +883,17 @@ figure.wp-block-image:not(.wp-block) { opacity: 0; visibility: hidden; } -.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-selected > .wp-block-navigation__container { +.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-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; } + /** * Colors Selector component */ @@ -968,13 +950,6 @@ figure.wp-block-image:not(.wp-block) { display: flex; flex-direction: column; } -.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle { - color: #fff; } - -.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle > svg { - color: #000; - background-color: #fff; } - .wp-block-navigation-placeholder .components-spinner { margin-top: -4px; margin-left: 4px; @@ -1037,9 +1012,6 @@ figure.wp-block-image:not(.wp-block) { margin-left: 10px; margin-top: 10px; } -.wp-block-navigation-link__nofollow-external-link { - display: block; } - .wp-block-navigation-link__separator { margin: 8px 0 8px; border-top: 1px solid #ddd; } @@ -1070,7 +1042,7 @@ figure.wp-block-image:not(.wp-block) { text-transform: uppercase; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #6c7781; + color: #757575; border-radius: 4px; background: #fff; padding: 6px 8px; @@ -1081,18 +1053,26 @@ figure.wp-block-image:not(.wp-block) { top: calc(50%); left: 0; right: 0; - border-top: 3px dashed #ccd0d4; } + 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-excerpt__excerpt.is-inline { +.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; - line-height: 1.5; } + flex-wrap: wrap; } .wp-block-post-author .wp-block-post-author__byline { font-size: 0.5em; margin-top: 0; @@ -1163,24 +1143,36 @@ figure.wp-block-image:not(.wp-block) { flex-grow: 1; margin-right: 8px; } -.wp-block-search__input { +.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__input, +.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper { border-radius: 2px; - border: 1px solid #7e8993; + border: 1px solid #949494; color: rgba(30, 30, 30, 0.62); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - padding: 8px; } - .wp-block-search__input:focus { + background-color: #fff; } + .wp-block-search .wp-block-search__input:focus, + .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus { outline: none; } -.wp-block-search__button { +.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; } + 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: 0.1px; @@ -1257,6 +1249,25 @@ figure.wp-block-image:not(.wp-block) { .blocks-shortcode__textarea:-ms-input-placeholder { color: rgba(255, 255, 255, 0.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: 0.3; } + +.wp-block-site-logo img { + display: block; + max-width: 100%; } + .wp-block-social-links .wp-social-link button { color: currentColor; padding: 6px; } @@ -1270,8 +1281,9 @@ figure.wp-block-image:not(.wp-block) { margin-left: 8px; } .editor-styles-wrapper .wp-block-social-link { - margin: 0; - margin-right: 8px; } + margin: 0 8px 8px 0; } + .editor-styles-wrapper .wp-block-social-link.is-selected, .editor-styles-wrapper .wp-block-social-link.is-hovered { + transform: none; } .editor-styles-wrapper .wp-block-social-links { padding: 0; } @@ -1322,6 +1334,14 @@ figure.wp-block-image:not(.wp-block) { .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus::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 { @@ -1334,7 +1354,7 @@ figure.wp-block-image:not(.wp-block) { content: none; } .edit-post-visual-editor p.wp-block-subhead { - color: #6c7781; + color: #555; font-size: 1.1em; font-style: italic; } @@ -1374,7 +1394,7 @@ figure.wp-block-image:not(.wp-block) { box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); border-style: double; } .wp-block-table figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } @@ -1407,62 +1427,62 @@ figure.wp-block-image:not(.wp-block) { .block-editor .wp-block-tag-cloud span { display: inline-block; margin-left: 5px; - color: #8f98a1; + color: #757575; text-decoration: none; } -.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content { +.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__placeholder-preview-search-form { +.wp-block-template-part__selection-preview-search-form { border-bottom: 1px solid #ddd; } -.wp-block-template-part__placeholder-preview-container { +.wp-block-template-part__selection-preview-container { background: #fff; padding-bottom: 16px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item { border-radius: 2px; cursor: pointer; margin-top: 16px; transition: all 0.05s ease-in-out; border: 1px solid transparent; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover { + .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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus { + .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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder { min-height: 100px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title { + .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__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header { padding: 16px 16px 0; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content { + .wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content { padding: 0 16px; } - .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title { + .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__name-panel { - background-color: #fff; - border-radius: 2px; - box-shadow: 0 0 0 1px #1e1e1e; - outline: 1px solid transparent; - padding: 6px 12px; } - .wp-block-template-part__name-panel .components-base-control__field { - align-items: center; - display: flex; - margin-bottom: 0; } - .wp-block-template-part__name-panel .components-base-control__label { - margin-bottom: 0; - margin-right: 8px; } +.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-navigate-mode .is-selected .wp-block-template-part__name-panel { box-shadow: 0 0 0 1px #007cba; @@ -1471,6 +1491,24 @@ figure.wp-block-image:not(.wp-block) { 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"].is-selected::after, .block-editor-block-list__block[data-type="core/template-part"].has-child-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; } @@ -1494,9 +1532,21 @@ pre.wp-block-verse { .wp-block[data-type="core/widget-area"] { max-width: 700px; } +.wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) { + padding: 0; } + .wp-block-widget-area > .components-panel__body.is-opened:not(.widget-area-is-opened) > .components-panel__body-title { + padding: 0; + margin: 0; } + .wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { padding-top: 24px; } +.editor-styles-wrapper .wp-block.wp-block-query-loop { + max-width: 100%; } + +.editor-styles-wrapper .wp-block.wp-block-query { + max-width: 100%; } + /** * Import styles from internal editor components used by the blocks. */ @@ -1577,6 +1627,119 @@ pre.wp-block-verse { box-shadow: 0 0 0 1px #007cba; box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } +:root .editor-styles-wrapper { + /* stylelint-disable function-comma-space-after */ + /* stylelint-enable function-comma-space-after */ } + :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 0%, #9b51e0 100%); } + :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { + background: linear-gradient(135deg, #00d084 0%, #0693e3 100%); } + :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background { + background: linear-gradient(135deg, #7adcb4 0%, #00d082 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { + background: linear-gradient(135deg, #fcb900 0%, #ff6900 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background { + background: linear-gradient(135deg, #ff6900 0%, #cf2e2e 100%); } + :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background { + background: linear-gradient(135deg, #eeeeee 0%, #a9b8c3 100%); } + :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background { + background: linear-gradient(135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } + :root .editor-styles-wrapper .has-blush-light-purple-gradient-background { + background: linear-gradient(135deg, #ffceec 0%, #9896f0 100%); } + :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background { + background: linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } + :root .editor-styles-wrapper .has-purple-crush-gradient-background { + background: linear-gradient(135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } + :root .editor-styles-wrapper .has-luminous-dusk-gradient-background { + background: linear-gradient(135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } + :root .editor-styles-wrapper .has-hazy-dawn-gradient-background { + background: linear-gradient(135deg, #faaca8 0%, #dad0ec 100%); } + :root .editor-styles-wrapper .has-pale-ocean-gradient-background { + background: linear-gradient(135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } + :root .editor-styles-wrapper .has-electric-grass-gradient-background { + background: linear-gradient(135deg, #caf880 0%, #71ce7e 100%); } + :root .editor-styles-wrapper .has-subdued-olive-gradient-background { + background: linear-gradient(135deg, #fafae1 0%, #67a671 100%); } + :root .editor-styles-wrapper .has-atomic-cream-gradient-background { + background: linear-gradient(135deg, #fdd79a 0%, #004a59 100%); } + :root .editor-styles-wrapper .has-nightshade-gradient-background { + background: linear-gradient(135deg, #330968 0%, #31cdcf 100%); } + :root .editor-styles-wrapper .has-midnight-gradient-background { + background: linear-gradient(135deg, #020381 0%, #2874fc 100%); } + +.editor-styles-wrapper .has-small-font-size { + font-size: 13px; } + +.editor-styles-wrapper .has-regular-font-size, +.editor-styles-wrapper .has-normal-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-larger-font-size, +.editor-styles-wrapper .has-huge-font-size { + font-size: 42px; } + /** * Editor Normalization Styles * diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index eab77dba92..025a94020b 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:#555d66;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.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.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 .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{margin-top:0;margin-bottom:0}.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=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}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__edit-container .widget.open{z-index:0}.wp-block-legacy-widget__update-button{margin-left:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__edit-widget-title,.wp-block-legacy-widget__preview{padding:8px 14px}.wp-block-legacy-widget__edit-widget-title{background:#ddd;color:#1e1e1e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.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:#6c7781;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 #ccd0d4}.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.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{opacity:1;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.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle{color:#fff}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle>svg{color:#000;background-color:#fff}.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__label{margin-bottom:1rem}.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{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__nofollow-external-link{display:block}.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:#6c7781;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 #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.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{margin-left:0;margin-right:0}.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__input{border-radius:2px;border:1px solid #7e8993;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;padding:8px}.wp-block-search__input:focus{outline:none}.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}.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-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 0 0}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;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}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-right:0}.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-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:#6c7781;font-size:1.1em;font-style:italic}.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{margin:0}.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:#555d66;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:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__placeholder-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__placeholder-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-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__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header{padding:16px 16px 0}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content{padding:0 16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__name-panel{background-color:#fff;border-radius:2px;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent;padding:6px 12px}.wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.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)}.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}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.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)}.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}@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 .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=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__label{margin-bottom:1rem}.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{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{margin-left:0;margin-right:0}.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 .block-list-appender{margin:0;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}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-right:0}.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[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{margin:0}.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}.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}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened){padding:0}.wp-block-widget-area>.components-panel__body.is-opened:not(.widget-area-is-opened)>.components-panel__body-title{padding:0;margin:0}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}.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 8be0ca45c5..89758acca9 100644 --- a/wp-includes/css/dist/block-library/style-rtl.css +++ b/wp-includes/css/dist/block-library/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -85,12 +80,12 @@ color: #fff; background-color: #32373c; border: none; - border-radius: 28px; + border-radius: 1.55em; box-shadow: none; cursor: pointer; display: inline-block; - font-size: 18px; - padding: 12px 24px; + font-size: 1.125em; + padding: 0.667em 1.333em; text-align: center; text-decoration: none; overflow-wrap: break-word; } @@ -117,20 +112,20 @@ .wp-block-buttons .wp-block-button { display: inline-block; - margin-left: 8px; - margin-bottom: 8px; } + margin-left: 0.5em; + margin-bottom: 0.5em; } .wp-block-buttons .wp-block-button:last-child { margin-left: 0; } .wp-block-buttons.alignright .wp-block-button { margin-right: 0; - margin-left: 8px; } + margin-left: 0.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: 8px; } + margin-right: 0.5em; } .wp-block-buttons.alignleft .wp-block-button:last-child { margin-left: 0; } @@ -142,22 +137,18 @@ text-align: center; } .wp-block-calendar th, .wp-block-calendar tbody td { - padding: 4px; + padding: 0.25em; border: 1px solid #ddd; } .wp-block-calendar tfoot td { border: none; } .wp-block-calendar table { width: 100%; - border-collapse: collapse; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + border-collapse: collapse; } .wp-block-calendar table th { font-weight: 400; background: #ddd; } .wp-block-calendar a { text-decoration: underline; } - .wp-block-calendar tfoot a { - color: #007cba; - color: var(--wp-admin-theme-color); } .wp-block-calendar table tbody, .wp-block-calendar table caption { color: #40464d; } @@ -170,13 +161,13 @@ .wp-block-columns { display: flex; - margin-bottom: 28px; + margin-bottom: 1.75em; flex-wrap: wrap; } @media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { - padding: 20px 38px; } + padding: 1.25em 2.375em; } .wp-block-column { flex-grow: 1; @@ -188,10 +179,10 @@ flex-basis: 100% !important; } } @media (min-width: 600px) and (max-width: 781px) { .wp-block-column { - flex-basis: calc(50% - 16px) !important; + flex-basis: calc(50% - 1em) !important; flex-grow: 0; } .wp-block-column:nth-child(even) { - margin-right: 32px; } } + margin-right: 2em; } } @media (min-width: 782px) { .wp-block-column { flex-basis: 0; @@ -199,7 +190,7 @@ .wp-block-column[style*="flex-basis"] { flex-grow: 0; } .wp-block-column:not(:first-child) { - margin-right: 32px; } } + margin-right: 2em; } } /** * All Columns Alignment @@ -240,7 +231,8 @@ display: flex; justify-content: center; align-items: center; - padding: 16px; } + padding: 1em; + box-sizing: border-box; } .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: fixed; } @@ -356,7 +348,6 @@ display: flex; } .wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container { - width: calc(100% - 70px); z-index: 1; color: #fff; } .wp-block-cover-image p:not(.has-text-color), @@ -473,17 +464,17 @@ section.wp-block-cover-image > h2, z-index: 1; margin-bottom: 0; max-width: 580px; - padding: 14px; + padding: 0.44em; text-align: center; } -.wp-block[data-align="left"] > [data-type^="core-embed"], -.wp-block[data-align="right"] > [data-type^="core-embed"], +.wp-block[data-align="left"] > [data-type="core/embed"], +.wp-block[data-align="right"] > [data-type="core/embed"], .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; width: 100%; } - .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, + .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, .wp-block-embed.alignleft .wp-block-embed__wrapper, .wp-block-embed.alignright .wp-block-embed__wrapper { min-width: 280px; } @@ -544,7 +535,7 @@ section.wp-block-cover-image > h2, background: #32373c; border-radius: 2em; color: #fff; - font-size: 13px; + font-size: 0.8em; padding: 0.5em 1em; } .wp-block-file a.wp-block-file__button { text-decoration: none; } @@ -567,7 +558,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - margin: 0 0 16px 16px; + margin: 0 0 1em 1em; display: flex; flex-grow: 1; flex-direction: column; @@ -614,11 +605,12 @@ section.wp-block-cover-image > h2, width: 100%; max-height: 100%; overflow: auto; - padding: 40px 10px 9px; + padding: 3em 0.77em 0.7em; color: #fff; text-align: center; - font-size: 13px; - background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); } + font-size: 0.8em; + background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); + box-sizing: border-box; } .wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img, @@ -649,7 +641,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - width: calc(50% - 16px); } + width: calc(50% - 1em); } .wp-block-gallery .blocks-gallery-image:nth-of-type(even), .wp-block-gallery .blocks-gallery-item:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), @@ -666,38 +658,38 @@ section.wp-block-cover-image > h2, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc(33.33333% - 10.66667px); - margin-left: 16px; } + width: calc(33.33333% - 0.66667em); + margin-left: 1em; } .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc(25% - 12px); - margin-left: 16px; } + width: calc(25% - 0.75em); + margin-left: 1em; } .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc(20% - 12.8px); - margin-left: 16px; } + width: calc(20% - 0.8em); + margin-left: 1em; } .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc(16.66667% - 13.33333px); - margin-left: 16px; } + width: calc(16.66667% - 0.83333em); + margin-left: 1em; } .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc(14.28571% - 13.71429px); - margin-left: 16px; } + width: calc(14.28571% - 0.85714em); + margin-left: 1em; } .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc(12.5% - 14px); - margin-left: 16px; } + width: calc(12.5% - 0.875em); + margin-left: 1em; } .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n), @@ -752,13 +744,16 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid.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: 20px 38px; } + padding: 1.25em 2.375em; } .wp-block-image { margin-bottom: 1em; } @@ -818,38 +813,36 @@ h6.has-background { border-radius: 0; } } .wp-block-latest-comments__comment { - font-size: 15px; line-height: 1.1; list-style: none; margin-bottom: 1em; } .has-avatars .wp-block-latest-comments__comment { - min-height: 36px; + min-height: 2.25em; list-style: none; } .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta, .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt { - margin-right: 52px; } + 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: 14px; + font-size: 0.875em; line-height: 1.8; - margin: 5px 0 20px; } + margin: 0.36em 0 1.4em; } .wp-block-latest-comments__comment-date { - color: #8f98a1; display: block; - font-size: 12px; } + font-size: 0.75em; } .wp-block-latest-comments .avatar, .wp-block-latest-comments__comment-avatar { - border-radius: 24px; + border-radius: 1.5em; display: block; float: right; - height: 40px; - margin-left: 12px; - width: 40px; } + height: 2.5em; + margin-left: 0.75em; + width: 2.5em; } .wp-block-latest-posts.alignleft { margin-right: 2em; } @@ -867,30 +860,33 @@ h6.has-background { flex-wrap: wrap; padding: 0; } .wp-block-latest-posts.is-grid li { - margin: 0 0 20px 20px; + margin: 0 0 1.25em 1.25em; width: 100%; } @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 20px); } + width: calc((100% / 2) - 1.25em); } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 20px); } + width: calc((100% / 3) - 1.25em); } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 20px); } + width: calc((100% / 4) - 1.25em); } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 20px); } + width: calc((100% / 5) - 1.25em); } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 20px); } } + width: calc((100% / 6) - 1.25em); } } .wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author { display: block; - color: #6c7781; - font-size: 13px; } + color: #555; + font-size: 0.8125em; } .wp-block-latest-posts__post-excerpt { - margin-top: 8px; - margin-bottom: 16px; } + margin-top: 0.5em; + margin-bottom: 1em; } + +.wp-block-latest-posts__featured-image a { + display: inline-block; } .wp-block-latest-posts__featured-image img { height: auto; @@ -906,8 +902,16 @@ h6.has-background { margin-bottom: 1em; text-align: center; } -.edit-post-visual-editor .wp-block-latest-posts.is-grid li { - margin-bottom: 20px; } +.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; @@ -1007,32 +1011,14 @@ h6.has-background { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } } + grid-row: 2; } } -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color), -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) { +.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.is-style-light:not(.has-background) .wp-block-navigation__container { +.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container { background-color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) { - color: #fff; } - -.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container { - background-color: #1e1e1e; } - .items-justified-left > ul { justify-content: flex-start; } @@ -1059,6 +1045,9 @@ h6.has-background { .is-vertical .wp-block-navigation__container { display: block; } +.has-child > .wp-block-navigation-link__content { + padding-left: 0.5em; } + .has-child .wp-block-navigation__container { border: 1px solid rgba(0, 0, 0, 0.15); background-color: inherit; @@ -1067,17 +1056,17 @@ h6.has-background { right: 0; top: 100%; width: fit-content; - z-index: 1; + z-index: 2; opacity: 0; transition: opacity 0.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: 8px; } + padding-left: 0.5em; } @media (min-width: 782px) { .has-child .wp-block-navigation__container { - right: 24px; } + right: 1.5em; } .has-child .wp-block-navigation__container .wp-block-navigation__container { right: 100%; top: -1px; } @@ -1087,7 +1076,7 @@ h6.has-background { left: 100%; height: 100%; display: block; - width: 8px; + width: 0.5em; background: transparent; } .has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg { transform: rotate(0); } } @@ -1109,21 +1098,21 @@ h6.has-background { flex-direction: column; } .wp-block-navigation-link__content { + color: inherit; text-decoration: none; - padding: 8px 16px; } + padding: 0.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 { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; word-break: normal; overflow-wrap: break-word; } .wp-block-navigation-link__submenu-icon { height: inherit; - padding: 6px 16px; } + padding: 0.375em 0 0.375em 1em; } .wp-block-navigation-link__submenu-icon svg { fill: currentColor; } @media (min-width: 782px) { @@ -1131,16 +1120,16 @@ h6.has-background { transform: rotate(-90deg); } } .is-small-text { - font-size: 14px; } + font-size: 0.875em; } .is-regular-text { - font-size: 16px; } + font-size: 1em; } .is-large-text { - font-size: 36px; } + font-size: 2.25em; } .is-larger-text { - font-size: 48px; } + font-size: 3em; } .has-drop-cap:not(:focus)::first-letter { float: right; @@ -1152,24 +1141,23 @@ h6.has-background { font-style: normal; } p.has-background { - padding: 20px 38px; } + padding: 1.25em 2.375em; } p.has-text-color a { color: inherit; } .wp-block-post-author { display: flex; - flex-wrap: wrap; - line-height: 1.5; } + flex-wrap: wrap; } .wp-block-post-author__byline { width: 100%; margin-top: 0; margin-bottom: 0; font-size: 0.5em; } .wp-block-post-author__avatar { - margin-left: 16px; } + margin-left: 1em; } .wp-block-post-author__bio { - margin-bottom: 8px; + margin-bottom: 0.7em; font-size: 0.7em; } .wp-block-post-author__content { flex-grow: 1; @@ -1186,9 +1174,9 @@ p.has-text-color a { .wp-block-pullquote.alignleft, .wp-block-pullquote.alignright { max-width: 290px; } .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { - font-size: 20px; } + font-size: 1.25em; } .wp-block-pullquote p { - font-size: 28px; + font-size: 1.75em; line-height: 1.6; } .wp-block-pullquote cite, .wp-block-pullquote footer { @@ -1209,7 +1197,7 @@ p.has-text-color a { .wp-block-pullquote.is-style-solid-color blockquote p { margin-top: 0; margin-bottom: 0; - font-size: 32px; } + font-size: 2em; } .wp-block-pullquote.is-style-solid-color blockquote cite { text-transform: none; font-style: normal; } @@ -1218,16 +1206,16 @@ p.has-text-color a { color: inherit; } .wp-block-quote.is-style-large, .wp-block-quote.is-large { - margin: 0 0 16px; + margin: 0 0 1em; padding: 0 1em; } .wp-block-quote.is-style-large p, .wp-block-quote.is-large p { - font-size: 24px; + font-size: 1.5em; font-style: italic; line-height: 1.6; } .wp-block-quote.is-style-large cite, .wp-block-quote.is-style-large footer, .wp-block-quote.is-large cite, .wp-block-quote.is-large footer { - font-size: 18px; + font-size: 1.125em; text-align: left; } .wp-block-rss.alignleft { @@ -1242,37 +1230,62 @@ p.has-text-color a { padding: 0; list-style: none; } .wp-block-rss.is-grid li { - margin: 0 0 16px 16px; + margin: 0 0 1em 1em; width: 100%; } @media (min-width: 600px) { .wp-block-rss.columns-2 li { - width: calc(( 100% / 2 ) - 16px); } + width: calc(( 100% / 2 ) - 1em); } .wp-block-rss.columns-3 li { - width: calc(( 100% / 3 ) - 16px); } + width: calc(( 100% / 3 ) - 1em); } .wp-block-rss.columns-4 li { - width: calc(( 100% / 4 ) - 16px); } + width: calc(( 100% / 4 ) - 1em); } .wp-block-rss.columns-5 li { - width: calc(( 100% / 5 ) - 16px); } + width: calc(( 100% / 5 ) - 1em); } .wp-block-rss.columns-6 li { - width: calc(( 100% / 6 ) - 16px); } } + width: calc(( 100% / 6 ) - 1em); } } .wp-block-rss__item-publish-date, .wp-block-rss__item-author { display: block; - color: #6c7781; - font-size: 13px; } + color: #555; + font-size: 0.8125em; } -.wp-block-search { +.wp-block-search .wp-block-search__inside-wrapper { display: flex; - flex-wrap: wrap; } - .wp-block-search .wp-block-search__label { - width: 100%; } - .wp-block-search .wp-block-search__input { - flex-grow: 1; - max-width: 360px; } - .wp-block-search .wp-block-search__button { - margin-right: 10px; } + 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: 0.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 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: 0.125em 0.5em; } .wp-block-separator.is-style-wide { border-bottom-width: 1px; } @@ -1287,13 +1300,17 @@ p.has-text-color a { .wp-block-separator.is-style-dots::before { content: "\00b7 \00b7 \00b7"; color: currentColor; - font-size: 20px; + 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; @@ -1309,7 +1326,7 @@ p.has-text-color a { width: 36px; height: 36px; border-radius: 36px; - margin-left: 8px; + margin: 0 0 8px 8px; transition: transform 0.1s ease; } @media (prefers-reduced-motion: reduce) { .wp-social-link { @@ -1664,7 +1681,7 @@ p.wp-block-subhead { .wp-block-text-columns.aligncenter { display: flex; } .wp-block-text-columns .wp-block-column { - margin: 0 16px; + margin: 0 1em; padding: 0; } .wp-block-text-columns .wp-block-column:first-child { margin-right: 0; } @@ -1691,176 +1708,121 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } -:root .editor-styles-wrapper, :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } - :root .editor-styles-wrapper .has-pale-pink-background-color, :root .has-pale-pink-background-color { background-color: #f78da7; } - :root .editor-styles-wrapper .has-vivid-red-background-color, :root .has-vivid-red-background-color { background-color: #cf2e2e; } - :root .editor-styles-wrapper .has-luminous-vivid-orange-background-color, :root .has-luminous-vivid-orange-background-color { background-color: #ff6900; } - :root .editor-styles-wrapper .has-luminous-vivid-amber-background-color, :root .has-luminous-vivid-amber-background-color { background-color: #fcb900; } - :root .editor-styles-wrapper .has-light-green-cyan-background-color, :root .has-light-green-cyan-background-color { background-color: #7bdcb5; } - :root .editor-styles-wrapper .has-vivid-green-cyan-background-color, :root .has-vivid-green-cyan-background-color { background-color: #00d084; } - :root .editor-styles-wrapper .has-pale-cyan-blue-background-color, :root .has-pale-cyan-blue-background-color { background-color: #8ed1fc; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-background-color, :root .has-vivid-cyan-blue-background-color { background-color: #0693e3; } - :root .editor-styles-wrapper .has-vivid-purple-background-color, :root .has-vivid-purple-background-color { background-color: #9b51e0; } - :root .editor-styles-wrapper .has-white-background-color, :root .has-white-background-color { background-color: #fff; } - :root .editor-styles-wrapper .has-very-light-gray-background-color, :root .has-very-light-gray-background-color { background-color: #eee; } - :root .editor-styles-wrapper .has-cyan-bluish-gray-background-color, :root .has-cyan-bluish-gray-background-color { background-color: #abb8c3; } - :root .editor-styles-wrapper .has-very-dark-gray-background-color, :root .has-very-dark-gray-background-color { background-color: #313131; } - :root .editor-styles-wrapper .has-black-background-color, :root .has-black-background-color { background-color: #000; } - :root .editor-styles-wrapper .has-pale-pink-color, :root .has-pale-pink-color { color: #f78da7; } - :root .editor-styles-wrapper .has-vivid-red-color, :root .has-vivid-red-color { color: #cf2e2e; } - :root .editor-styles-wrapper .has-luminous-vivid-orange-color, :root .has-luminous-vivid-orange-color { color: #ff6900; } - :root .editor-styles-wrapper .has-luminous-vivid-amber-color, :root .has-luminous-vivid-amber-color { color: #fcb900; } - :root .editor-styles-wrapper .has-light-green-cyan-color, :root .has-light-green-cyan-color { color: #7bdcb5; } - :root .editor-styles-wrapper .has-vivid-green-cyan-color, :root .has-vivid-green-cyan-color { color: #00d084; } - :root .editor-styles-wrapper .has-pale-cyan-blue-color, :root .has-pale-cyan-blue-color { color: #8ed1fc; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-color, :root .has-vivid-cyan-blue-color { color: #0693e3; } - :root .editor-styles-wrapper .has-vivid-purple-color, :root .has-vivid-purple-color { color: #9b51e0; } - :root .editor-styles-wrapper .has-white-color, :root .has-white-color { color: #fff; } - :root .editor-styles-wrapper .has-very-light-gray-color, :root .has-very-light-gray-color { color: #eee; } - :root .editor-styles-wrapper .has-cyan-bluish-gray-color, :root .has-cyan-bluish-gray-color { color: #abb8c3; } - :root .editor-styles-wrapper .has-very-dark-gray-color, :root .has-very-dark-gray-color { color: #313131; } - :root .editor-styles-wrapper .has-black-color, :root .has-black-color { color: #000; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background, :root .has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(-135deg, #0693e3 0%, #9b51e0 100%); } - :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background, :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { background: linear-gradient(-135deg, #00d084 0%, #0693e3 100%); } - :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background, :root .has-light-green-cyan-to-vivid-green-cyan-gradient-background { background: linear-gradient(-135deg, #7adcb4 0%, #00d082 100%); } - :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background, :root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { background: linear-gradient(-135deg, #fcb900 0%, #ff6900 100%); } - :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background, :root .has-luminous-vivid-orange-to-vivid-red-gradient-background { background: linear-gradient(-135deg, #ff6900 0%, #cf2e2e 100%); } - :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background, :root .has-very-light-gray-to-cyan-bluish-gray-gradient-background { background: linear-gradient(-135deg, #eeeeee 0%, #a9b8c3 100%); } - :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background, :root .has-cool-to-warm-spectrum-gradient-background { background: linear-gradient(-135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } - :root .editor-styles-wrapper .has-blush-light-purple-gradient-background, :root .has-blush-light-purple-gradient-background { background: linear-gradient(-135deg, #ffceec 0%, #9896f0 100%); } - :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background, :root .has-blush-bordeaux-gradient-background { background: linear-gradient(-135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } - :root .editor-styles-wrapper .has-purple-crush-gradient-background, :root .has-purple-crush-gradient-background { background: linear-gradient(-135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } - :root .editor-styles-wrapper .has-luminous-dusk-gradient-background, :root .has-luminous-dusk-gradient-background { background: linear-gradient(-135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } - :root .editor-styles-wrapper .has-hazy-dawn-gradient-background, :root .has-hazy-dawn-gradient-background { background: linear-gradient(-135deg, #faaca8 0%, #dad0ec 100%); } - :root .editor-styles-wrapper .has-pale-ocean-gradient-background, :root .has-pale-ocean-gradient-background { background: linear-gradient(-135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } - :root .editor-styles-wrapper .has-electric-grass-gradient-background, :root .has-electric-grass-gradient-background { background: linear-gradient(-135deg, #caf880 0%, #71ce7e 100%); } - :root .editor-styles-wrapper .has-subdued-olive-gradient-background, :root .has-subdued-olive-gradient-background { background: linear-gradient(-135deg, #fafae1 0%, #67a671 100%); } - :root .editor-styles-wrapper .has-atomic-cream-gradient-background, :root .has-atomic-cream-gradient-background { background: linear-gradient(-135deg, #fdd79a 0%, #004a59 100%); } - :root .editor-styles-wrapper .has-nightshade-gradient-background, :root .has-nightshade-gradient-background { background: linear-gradient(-135deg, #330968 0%, #31cdcf 100%); } - :root .editor-styles-wrapper .has-midnight-gradient-background, :root .has-midnight-gradient-background { background: linear-gradient(-135deg, #020381 0%, #2874fc 100%); } - :root .editor-styles-wrapper .has-link-color a, :root .has-link-color a { color: #00e; color: var(--wp--style--color--link, #00e); } -.editor-styles-wrapper .has-small-font-size, .has-small-font-size { - font-size: 13px; } + font-size: 0.8125em; } -.editor-styles-wrapper .has-regular-font-size, -.editor-styles-wrapper .has-normal-font-size, .has-regular-font-size, .has-normal-font-size { - font-size: 16px; } + font-size: 1em; } -.editor-styles-wrapper .has-medium-font-size, .has-medium-font-size { - font-size: 20px; } + font-size: 1.25em; } -.editor-styles-wrapper .has-large-font-size, .has-large-font-size { - font-size: 36px; } + font-size: 2.25em; } -.editor-styles-wrapper .has-larger-font-size, -.editor-styles-wrapper .has-huge-font-size, .has-larger-font-size, .has-huge-font-size { - font-size: 42px; } + font-size: 2.625em; } .has-text-align-center { text-align: center; } 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 da82028d21..d62387d50a 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:28px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;padding:12px 24px;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{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:8px;margin-bottom:8px}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:8px}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:8px}.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:4px;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#007cba;color:var(--wp-admin-theme-color)}.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:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 38px}.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{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:32px}}@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:32px}}.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.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:16px}.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.has-background-dim,.wp-block-cover.has-background-dim{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}.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{opacity:.5}.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:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.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:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.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:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.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:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.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:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.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:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.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:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.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:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.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:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.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:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{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:calc(100% - 70px);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:14px;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-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.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:13px;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 16px 16px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.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:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.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.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 .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 16px)}.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.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% - 10.66667px);margin-left:16px}.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% - 12px);margin-left:16px}.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% - 12.8px);margin-left:16px}.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% - 13.33333px);margin-left:16px}.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% - 13.71429px);margin-left:16px}.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% - 14px);margin-left:16px}.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}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:20px 38px}.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,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>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{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;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:52px}.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:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:right;height:40px;margin-left:12px;width:40px}.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 20px 20px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 20px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 20px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 20px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 20px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 20px)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.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}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.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.has-media-on-the-right .wp-block-media-text__media,.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-media-text.is-stacked-on-mobile.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-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color),.wp-block-navigation .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container,.wp-block-navigation:not(.has-background) .wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color){color:#fff}.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container{background-color:#1e1e1e}.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__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:fit-content;z-index:1;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:8px}@media (min-width:782px){.has-child .wp-block-navigation__container{right:24px}.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:8px;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{text-decoration:none;padding:8px 16px}.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{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:6px 16px}.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:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.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:20px 38px}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:16px}.wp-block-post-author__bio{margin-bottom:8px;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:20px}.wp-block-pullquote p{font-size:28px;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:32px}.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:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;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:18px;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 16px 16px;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-right:10px}.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:20px;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-right:0;padding-left: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:36px;margin-left: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 16px;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}:root .editor-styles-wrapper .has-pale-pink-background-color,:root .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color,:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color,:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color,:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color,:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color,:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color,:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color,:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color,:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color,:root .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color,:root .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color,:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color,:root .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color,:root .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color,:root .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color,:root .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color,:root .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color,:root .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color,:root .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color,:root .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color,:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color,:root .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color,:root .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color,:root .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color,:root .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color,:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color,:root .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color,:root .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background,:root .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,:root .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,:root .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,:root .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,:root .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,:root .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,:root .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,:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background,:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background,:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background,:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background,:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background,:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background,:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background,:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background,:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background,:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background,:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .editor-styles-wrapper .has-link-color a,:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.editor-styles-wrapper .has-small-font-size,.has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size,.has-normal-font-size,.has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size,.has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size,.has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size,.has-huge-font-size,.has-larger-font-size{font-size:42px}.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{color:#32373c;background-color:transparent;border:2px solid}.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-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{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-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.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.has-background-dim,.wp-block-cover.has-background-dim{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}.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{opacity:.5}.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:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.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:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.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:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.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:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.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:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.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:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.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:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.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:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.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:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.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:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{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{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-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.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}.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}.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.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 .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{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.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,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>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% - 1.25em)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 1.25em)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 1.25em)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1.25em)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.25em)}}.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: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:0 0 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;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:36px;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}: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 7dd17e4c63..7f60f0ab7a 100644 --- a/wp-includes/css/dist/block-library/style.css +++ b/wp-includes/css/dist/block-library/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -85,12 +80,12 @@ color: #fff; background-color: #32373c; border: none; - border-radius: 28px; + border-radius: 1.55em; box-shadow: none; cursor: pointer; display: inline-block; - font-size: 18px; - padding: 12px 24px; + font-size: 1.125em; + padding: 0.667em 1.333em; text-align: center; text-decoration: none; overflow-wrap: break-word; } @@ -118,8 +113,8 @@ .wp-block-buttons .wp-block-button { display: inline-block; - margin-right: 8px; - margin-bottom: 8px; } + margin-right: 0.5em; + margin-bottom: 0.5em; } .wp-block-buttons .wp-block-button:last-child { margin-right: 0; } @@ -127,7 +122,7 @@ /*rtl:ignore*/ margin-right: 0; /*rtl:ignore*/ - margin-left: 8px; } + margin-left: 0.5em; } .wp-block-buttons.alignright .wp-block-button:first-child { margin-left: 0; } @@ -135,7 +130,7 @@ /*rtl:ignore*/ margin-left: 0; /*rtl:ignore*/ - margin-right: 8px; } + margin-right: 0.5em; } .wp-block-buttons.alignleft .wp-block-button:last-child { margin-right: 0; } @@ -147,22 +142,18 @@ text-align: center; } .wp-block-calendar th, .wp-block-calendar tbody td { - padding: 4px; + padding: 0.25em; border: 1px solid #ddd; } .wp-block-calendar tfoot td { border: none; } .wp-block-calendar table { width: 100%; - border-collapse: collapse; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + border-collapse: collapse; } .wp-block-calendar table th { font-weight: 400; background: #ddd; } .wp-block-calendar a { text-decoration: underline; } - .wp-block-calendar tfoot a { - color: #007cba; - color: var(--wp-admin-theme-color); } .wp-block-calendar table tbody, .wp-block-calendar table caption { color: #40464d; } @@ -177,13 +168,13 @@ .wp-block-columns { display: flex; - margin-bottom: 28px; + margin-bottom: 1.75em; flex-wrap: wrap; } @media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { - padding: 20px 38px; } + padding: 1.25em 2.375em; } .wp-block-column { flex-grow: 1; @@ -195,10 +186,10 @@ flex-basis: 100% !important; } } @media (min-width: 600px) and (max-width: 781px) { .wp-block-column { - flex-basis: calc(50% - 16px) !important; + flex-basis: calc(50% - 1em) !important; flex-grow: 0; } .wp-block-column:nth-child(even) { - margin-left: 32px; } } + margin-left: 2em; } } @media (min-width: 782px) { .wp-block-column { flex-basis: 0; @@ -206,7 +197,7 @@ .wp-block-column[style*="flex-basis"] { flex-grow: 0; } .wp-block-column:not(:first-child) { - margin-left: 32px; } } + margin-left: 2em; } } /** * All Columns Alignment @@ -247,7 +238,8 @@ display: flex; justify-content: center; align-items: center; - padding: 16px; } + padding: 1em; + box-sizing: border-box; } .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: fixed; } @@ -363,7 +355,6 @@ display: flex; } .wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container { - width: calc(100% - 70px); z-index: 1; color: #fff; } .wp-block-cover-image p:not(.has-text-color), @@ -480,17 +471,17 @@ section.wp-block-cover-image > h2, z-index: 1; margin-bottom: 0; max-width: 580px; - padding: 14px; + padding: 0.44em; text-align: center; } -.wp-block[data-align="left"] > [data-type^="core-embed"], -.wp-block[data-align="right"] > [data-type^="core-embed"], +.wp-block[data-align="left"] > [data-type="core/embed"], +.wp-block[data-align="right"] > [data-type="core/embed"], .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; width: 100%; } - .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, + .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, .wp-block-embed.alignleft .wp-block-embed__wrapper, .wp-block-embed.alignright .wp-block-embed__wrapper { min-width: 280px; } @@ -552,7 +543,7 @@ section.wp-block-cover-image > h2, background: #32373c; border-radius: 2em; color: #fff; - font-size: 13px; + font-size: 0.8em; padding: 0.5em 1em; } .wp-block-file a.wp-block-file__button { text-decoration: none; } @@ -575,7 +566,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - margin: 0 16px 16px 0; + margin: 0 1em 1em 0; display: flex; flex-grow: 1; flex-direction: column; @@ -622,11 +613,12 @@ section.wp-block-cover-image > h2, width: 100%; max-height: 100%; overflow: auto; - padding: 40px 10px 9px; + padding: 3em 0.77em 0.7em; color: #fff; text-align: center; - font-size: 13px; - background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); } + font-size: 0.8em; + background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); + box-sizing: border-box; } .wp-block-gallery .blocks-gallery-image figcaption img, .wp-block-gallery .blocks-gallery-item figcaption img, .blocks-gallery-grid .blocks-gallery-image figcaption img, @@ -657,7 +649,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - width: calc(50% - 16px); } + width: calc(50% - 1em); } .wp-block-gallery .blocks-gallery-image:nth-of-type(even), .wp-block-gallery .blocks-gallery-item:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), @@ -674,38 +666,38 @@ section.wp-block-cover-image > h2, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc(33.33333% - 10.66667px); - margin-right: 16px; } + width: calc(33.33333% - 0.66667em); + margin-right: 1em; } .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc(25% - 12px); - margin-right: 16px; } + width: calc(25% - 0.75em); + margin-right: 1em; } .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc(20% - 12.8px); - margin-right: 16px; } + width: calc(20% - 0.8em); + margin-right: 1em; } .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc(16.66667% - 13.33333px); - margin-right: 16px; } + width: calc(16.66667% - 0.83333em); + margin-right: 1em; } .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc(14.28571% - 13.71429px); - margin-right: 16px; } + width: calc(14.28571% - 0.85714em); + margin-right: 1em; } .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc(12.5% - 14px); - margin-right: 16px; } + width: calc(12.5% - 0.875em); + margin-right: 1em; } .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n), @@ -760,13 +752,16 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid.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: 20px 38px; } + padding: 1.25em 2.375em; } .wp-block-image { margin-bottom: 1em; } @@ -830,38 +825,36 @@ h6.has-background { border-radius: 0; } } .wp-block-latest-comments__comment { - font-size: 15px; line-height: 1.1; list-style: none; margin-bottom: 1em; } .has-avatars .wp-block-latest-comments__comment { - min-height: 36px; + min-height: 2.25em; list-style: none; } .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta, .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt { - margin-left: 52px; } + 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: 14px; + font-size: 0.875em; line-height: 1.8; - margin: 5px 0 20px; } + margin: 0.36em 0 1.4em; } .wp-block-latest-comments__comment-date { - color: #8f98a1; display: block; - font-size: 12px; } + font-size: 0.75em; } .wp-block-latest-comments .avatar, .wp-block-latest-comments__comment-avatar { - border-radius: 24px; + border-radius: 1.5em; display: block; float: left; - height: 40px; - margin-right: 12px; - width: 40px; } + height: 2.5em; + margin-right: 0.75em; + width: 2.5em; } .wp-block-latest-posts.alignleft { /*rtl:ignore*/ @@ -881,30 +874,33 @@ h6.has-background { flex-wrap: wrap; padding: 0; } .wp-block-latest-posts.is-grid li { - margin: 0 20px 20px 0; + margin: 0 1.25em 1.25em 0; width: 100%; } @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 20px); } + width: calc((100% / 2) - 1.25em); } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 20px); } + width: calc((100% / 3) - 1.25em); } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 20px); } + width: calc((100% / 4) - 1.25em); } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 20px); } + width: calc((100% / 5) - 1.25em); } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 20px); } } + width: calc((100% / 6) - 1.25em); } } .wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author { display: block; - color: #6c7781; - font-size: 13px; } + color: #555; + font-size: 0.8125em; } .wp-block-latest-posts__post-excerpt { - margin-top: 8px; - margin-bottom: 16px; } + margin-top: 0.5em; + margin-bottom: 1em; } + +.wp-block-latest-posts__featured-image a { + display: inline-block; } .wp-block-latest-posts__featured-image img { height: auto; @@ -922,8 +918,16 @@ h6.has-background { margin-bottom: 1em; text-align: center; } -.edit-post-visual-editor .wp-block-latest-posts.is-grid li { - margin-bottom: 20px; } +.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*/ @@ -1033,32 +1037,14 @@ h6.has-background { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } } + grid-row: 2; } } -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color), -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) { +.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.is-style-light:not(.has-background) .wp-block-navigation__container { +.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container { background-color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) { - color: #fff; } - -.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container { - background-color: #1e1e1e; } - .items-justified-left > ul { justify-content: flex-start; } @@ -1085,6 +1071,9 @@ h6.has-background { .is-vertical .wp-block-navigation__container { display: block; } +.has-child > .wp-block-navigation-link__content { + padding-right: 0.5em; } + .has-child .wp-block-navigation__container { border: 1px solid rgba(0, 0, 0, 0.15); background-color: inherit; @@ -1093,17 +1082,17 @@ h6.has-background { left: 0; top: 100%; width: fit-content; - z-index: 1; + z-index: 2; opacity: 0; transition: opacity 0.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-right: 8px; } + padding-right: 0.5em; } @media (min-width: 782px) { .has-child .wp-block-navigation__container { - left: 24px; } + left: 1.5em; } .has-child .wp-block-navigation__container .wp-block-navigation__container { left: 100%; top: -1px; } @@ -1113,7 +1102,7 @@ h6.has-background { right: 100%; height: 100%; display: block; - width: 8px; + width: 0.5em; background: transparent; } .has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg { transform: rotate(0); } } @@ -1135,21 +1124,21 @@ h6.has-background { flex-direction: column; } .wp-block-navigation-link__content { + color: inherit; text-decoration: none; - padding: 8px 16px; } + padding: 0.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 { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; word-break: normal; overflow-wrap: break-word; } .wp-block-navigation-link__submenu-icon { height: inherit; - padding: 6px 16px; } + padding: 0.375em 1em 0.375em 0; } .wp-block-navigation-link__submenu-icon svg { fill: currentColor; } @media (min-width: 782px) { @@ -1157,16 +1146,16 @@ h6.has-background { transform: rotate(90deg); } } .is-small-text { - font-size: 14px; } + font-size: 0.875em; } .is-regular-text { - font-size: 16px; } + font-size: 1em; } .is-large-text { - font-size: 36px; } + font-size: 2.25em; } .is-larger-text { - font-size: 48px; } + font-size: 3em; } .has-drop-cap:not(:focus)::first-letter { float: left; @@ -1178,24 +1167,23 @@ h6.has-background { font-style: normal; } p.has-background { - padding: 20px 38px; } + padding: 1.25em 2.375em; } p.has-text-color a { color: inherit; } .wp-block-post-author { display: flex; - flex-wrap: wrap; - line-height: 1.5; } + flex-wrap: wrap; } .wp-block-post-author__byline { width: 100%; margin-top: 0; margin-bottom: 0; font-size: 0.5em; } .wp-block-post-author__avatar { - margin-right: 16px; } + margin-right: 1em; } .wp-block-post-author__bio { - margin-bottom: 8px; + margin-bottom: 0.7em; font-size: 0.7em; } .wp-block-post-author__content { flex-grow: 1; @@ -1212,9 +1200,9 @@ p.has-text-color a { .wp-block-pullquote.alignleft, .wp-block-pullquote.alignright { max-width: 290px; } .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { - font-size: 20px; } + font-size: 1.25em; } .wp-block-pullquote p { - font-size: 28px; + font-size: 1.75em; line-height: 1.6; } .wp-block-pullquote cite, .wp-block-pullquote footer { @@ -1235,7 +1223,7 @@ p.has-text-color a { .wp-block-pullquote.is-style-solid-color blockquote p { margin-top: 0; margin-bottom: 0; - font-size: 32px; } + font-size: 2em; } .wp-block-pullquote.is-style-solid-color blockquote cite { text-transform: none; font-style: normal; } @@ -1244,16 +1232,16 @@ p.has-text-color a { color: inherit; } .wp-block-quote.is-style-large, .wp-block-quote.is-large { - margin: 0 0 16px; + margin: 0 0 1em; padding: 0 1em; } .wp-block-quote.is-style-large p, .wp-block-quote.is-large p { - font-size: 24px; + font-size: 1.5em; font-style: italic; line-height: 1.6; } .wp-block-quote.is-style-large cite, .wp-block-quote.is-style-large footer, .wp-block-quote.is-large cite, .wp-block-quote.is-large footer { - font-size: 18px; + font-size: 1.125em; text-align: right; } .wp-block-rss.alignleft { @@ -1270,37 +1258,62 @@ p.has-text-color a { padding: 0; list-style: none; } .wp-block-rss.is-grid li { - margin: 0 16px 16px 0; + margin: 0 1em 1em 0; width: 100%; } @media (min-width: 600px) { .wp-block-rss.columns-2 li { - width: calc(( 100% / 2 ) - 16px); } + width: calc(( 100% / 2 ) - 1em); } .wp-block-rss.columns-3 li { - width: calc(( 100% / 3 ) - 16px); } + width: calc(( 100% / 3 ) - 1em); } .wp-block-rss.columns-4 li { - width: calc(( 100% / 4 ) - 16px); } + width: calc(( 100% / 4 ) - 1em); } .wp-block-rss.columns-5 li { - width: calc(( 100% / 5 ) - 16px); } + width: calc(( 100% / 5 ) - 1em); } .wp-block-rss.columns-6 li { - width: calc(( 100% / 6 ) - 16px); } } + width: calc(( 100% / 6 ) - 1em); } } .wp-block-rss__item-publish-date, .wp-block-rss__item-author { display: block; - color: #6c7781; - font-size: 13px; } + color: #555; + font-size: 0.8125em; } -.wp-block-search { +.wp-block-search .wp-block-search__inside-wrapper { display: flex; - flex-wrap: wrap; } - .wp-block-search .wp-block-search__label { - width: 100%; } - .wp-block-search .wp-block-search__input { - flex-grow: 1; - max-width: 360px; } - .wp-block-search .wp-block-search__button { - margin-left: 10px; } + 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-left: 0.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-left: 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 0 0 0.25em; } + .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: 0.125em 0.5em; } .wp-block-separator.is-style-wide { border-bottom-width: 1px; } @@ -1315,14 +1328,18 @@ p.has-text-color a { .wp-block-separator.is-style-dots::before { content: "\00b7 \00b7 \00b7"; color: currentColor; - font-size: 20px; + font-size: 1.5em; letter-spacing: 2em; /*rtl:ignore*/ 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-left: 0; padding-right: 0; @@ -1338,7 +1355,7 @@ p.has-text-color a { width: 36px; height: 36px; border-radius: 36px; - margin-right: 8px; + margin: 0 8px 8px 0; transition: transform 0.1s ease; } @media (prefers-reduced-motion: reduce) { .wp-social-link { @@ -1693,7 +1710,7 @@ p.wp-block-subhead { .wp-block-text-columns.aligncenter { display: flex; } .wp-block-text-columns .wp-block-column { - margin: 0 16px; + margin: 0 1em; padding: 0; } .wp-block-text-columns .wp-block-column:first-child { margin-left: 0; } @@ -1720,176 +1737,121 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } -:root .editor-styles-wrapper, :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } - :root .editor-styles-wrapper .has-pale-pink-background-color, :root .has-pale-pink-background-color { background-color: #f78da7; } - :root .editor-styles-wrapper .has-vivid-red-background-color, :root .has-vivid-red-background-color { background-color: #cf2e2e; } - :root .editor-styles-wrapper .has-luminous-vivid-orange-background-color, :root .has-luminous-vivid-orange-background-color { background-color: #ff6900; } - :root .editor-styles-wrapper .has-luminous-vivid-amber-background-color, :root .has-luminous-vivid-amber-background-color { background-color: #fcb900; } - :root .editor-styles-wrapper .has-light-green-cyan-background-color, :root .has-light-green-cyan-background-color { background-color: #7bdcb5; } - :root .editor-styles-wrapper .has-vivid-green-cyan-background-color, :root .has-vivid-green-cyan-background-color { background-color: #00d084; } - :root .editor-styles-wrapper .has-pale-cyan-blue-background-color, :root .has-pale-cyan-blue-background-color { background-color: #8ed1fc; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-background-color, :root .has-vivid-cyan-blue-background-color { background-color: #0693e3; } - :root .editor-styles-wrapper .has-vivid-purple-background-color, :root .has-vivid-purple-background-color { background-color: #9b51e0; } - :root .editor-styles-wrapper .has-white-background-color, :root .has-white-background-color { background-color: #fff; } - :root .editor-styles-wrapper .has-very-light-gray-background-color, :root .has-very-light-gray-background-color { background-color: #eee; } - :root .editor-styles-wrapper .has-cyan-bluish-gray-background-color, :root .has-cyan-bluish-gray-background-color { background-color: #abb8c3; } - :root .editor-styles-wrapper .has-very-dark-gray-background-color, :root .has-very-dark-gray-background-color { background-color: #313131; } - :root .editor-styles-wrapper .has-black-background-color, :root .has-black-background-color { background-color: #000; } - :root .editor-styles-wrapper .has-pale-pink-color, :root .has-pale-pink-color { color: #f78da7; } - :root .editor-styles-wrapper .has-vivid-red-color, :root .has-vivid-red-color { color: #cf2e2e; } - :root .editor-styles-wrapper .has-luminous-vivid-orange-color, :root .has-luminous-vivid-orange-color { color: #ff6900; } - :root .editor-styles-wrapper .has-luminous-vivid-amber-color, :root .has-luminous-vivid-amber-color { color: #fcb900; } - :root .editor-styles-wrapper .has-light-green-cyan-color, :root .has-light-green-cyan-color { color: #7bdcb5; } - :root .editor-styles-wrapper .has-vivid-green-cyan-color, :root .has-vivid-green-cyan-color { color: #00d084; } - :root .editor-styles-wrapper .has-pale-cyan-blue-color, :root .has-pale-cyan-blue-color { color: #8ed1fc; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-color, :root .has-vivid-cyan-blue-color { color: #0693e3; } - :root .editor-styles-wrapper .has-vivid-purple-color, :root .has-vivid-purple-color { color: #9b51e0; } - :root .editor-styles-wrapper .has-white-color, :root .has-white-color { color: #fff; } - :root .editor-styles-wrapper .has-very-light-gray-color, :root .has-very-light-gray-color { color: #eee; } - :root .editor-styles-wrapper .has-cyan-bluish-gray-color, :root .has-cyan-bluish-gray-color { color: #abb8c3; } - :root .editor-styles-wrapper .has-very-dark-gray-color, :root .has-very-dark-gray-color { color: #313131; } - :root .editor-styles-wrapper .has-black-color, :root .has-black-color { color: #000; } - :root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background, :root .has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(135deg, #0693e3 0%, #9b51e0 100%); } - :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background, :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { background: linear-gradient(135deg, #00d084 0%, #0693e3 100%); } - :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background, :root .has-light-green-cyan-to-vivid-green-cyan-gradient-background { background: linear-gradient(135deg, #7adcb4 0%, #00d082 100%); } - :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background, :root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { background: linear-gradient(135deg, #fcb900 0%, #ff6900 100%); } - :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background, :root .has-luminous-vivid-orange-to-vivid-red-gradient-background { background: linear-gradient(135deg, #ff6900 0%, #cf2e2e 100%); } - :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background, :root .has-very-light-gray-to-cyan-bluish-gray-gradient-background { background: linear-gradient(135deg, #eeeeee 0%, #a9b8c3 100%); } - :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background, :root .has-cool-to-warm-spectrum-gradient-background { background: linear-gradient(135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } - :root .editor-styles-wrapper .has-blush-light-purple-gradient-background, :root .has-blush-light-purple-gradient-background { background: linear-gradient(135deg, #ffceec 0%, #9896f0 100%); } - :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background, :root .has-blush-bordeaux-gradient-background { background: linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } - :root .editor-styles-wrapper .has-purple-crush-gradient-background, :root .has-purple-crush-gradient-background { background: linear-gradient(135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } - :root .editor-styles-wrapper .has-luminous-dusk-gradient-background, :root .has-luminous-dusk-gradient-background { background: linear-gradient(135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } - :root .editor-styles-wrapper .has-hazy-dawn-gradient-background, :root .has-hazy-dawn-gradient-background { background: linear-gradient(135deg, #faaca8 0%, #dad0ec 100%); } - :root .editor-styles-wrapper .has-pale-ocean-gradient-background, :root .has-pale-ocean-gradient-background { background: linear-gradient(135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } - :root .editor-styles-wrapper .has-electric-grass-gradient-background, :root .has-electric-grass-gradient-background { background: linear-gradient(135deg, #caf880 0%, #71ce7e 100%); } - :root .editor-styles-wrapper .has-subdued-olive-gradient-background, :root .has-subdued-olive-gradient-background { background: linear-gradient(135deg, #fafae1 0%, #67a671 100%); } - :root .editor-styles-wrapper .has-atomic-cream-gradient-background, :root .has-atomic-cream-gradient-background { background: linear-gradient(135deg, #fdd79a 0%, #004a59 100%); } - :root .editor-styles-wrapper .has-nightshade-gradient-background, :root .has-nightshade-gradient-background { background: linear-gradient(135deg, #330968 0%, #31cdcf 100%); } - :root .editor-styles-wrapper .has-midnight-gradient-background, :root .has-midnight-gradient-background { background: linear-gradient(135deg, #020381 0%, #2874fc 100%); } - :root .editor-styles-wrapper .has-link-color a, :root .has-link-color a { color: #00e; color: var(--wp--style--color--link, #00e); } -.editor-styles-wrapper .has-small-font-size, .has-small-font-size { - font-size: 13px; } + font-size: 0.8125em; } -.editor-styles-wrapper .has-regular-font-size, -.editor-styles-wrapper .has-normal-font-size, .has-regular-font-size, .has-normal-font-size { - font-size: 16px; } + font-size: 1em; } -.editor-styles-wrapper .has-medium-font-size, .has-medium-font-size { - font-size: 20px; } + font-size: 1.25em; } -.editor-styles-wrapper .has-large-font-size, .has-large-font-size { - font-size: 36px; } + font-size: 2.25em; } -.editor-styles-wrapper .has-larger-font-size, -.editor-styles-wrapper .has-huge-font-size, .has-larger-font-size, .has-huge-font-size { - font-size: 42px; } + font-size: 2.625em; } .has-text-align-center { text-align: center; } diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css index ac1db33dbc..847b5dd263 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:28px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;padding:12px 24px;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{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:8px;margin-bottom:8px}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:8px}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:8px}.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:4px;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#007cba;color:var(--wp-admin-theme-color)}.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:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 38px}.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{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:32px}}@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:32px}}.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.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:16px}.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.has-background-dim,.wp-block-cover.has-background-dim{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}.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{opacity:.5}.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:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.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:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.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:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.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:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.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:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.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:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.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:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.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:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.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:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.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:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{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:calc(100% - 70px);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:14px;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-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.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:13px;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 16px 16px 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.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:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.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.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 .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 16px)}.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.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% - 10.66667px);margin-right:16px}.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% - 12px);margin-right:16px}.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% - 12.8px);margin-right:16px}.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% - 13.33333px);margin-right:16px}.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% - 13.71429px);margin-right:16px}.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% - 14px);margin-right:16px}.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}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:20px 38px}.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,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>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{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;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:52px}.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:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:left;height:40px;margin-right:12px;width:40px}.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 20px 20px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 20px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 20px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 20px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 20px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 20px)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.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}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.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{color:#32373c;background-color:transparent;border:2px solid}.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-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{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-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.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.has-background-dim,.wp-block-cover.has-background-dim{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}.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{opacity:.5}.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:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.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:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.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:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.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:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.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:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.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:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.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:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.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:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.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:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.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:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{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{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-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.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}.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}.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.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 .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{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.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,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>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% - 1.25em)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 1.25em)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 1.25em)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1.25em)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.25em)}}.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; @@ -8,4 +8,4 @@ /*!rtl:begin:ignore*/-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1 /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1 - /*!rtl:end:ignore*/}.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.has-media-on-the-right .wp-block-media-text__media,.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-media-text.is-stacked-on-mobile.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-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color),.wp-block-navigation .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container,.wp-block-navigation:not(.has-background) .wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color){color:#fff}.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container{background-color:#1e1e1e}.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-left:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;left:0;top:100%;width:fit-content;z-index:1;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-right:8px}@media (min-width:782px){.has-child .wp-block-navigation__container{left:24px}.has-child .wp-block-navigation__container .wp-block-navigation__container{left:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:8px;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{text-decoration:none;padding:8px 16px}.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{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:6px 16px}.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:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 38px}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:16px}.wp-block-post-author__bio{margin-bottom:8px;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-left:0;margin-right: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:20px}.wp-block-pullquote p{font-size:28px;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-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.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:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;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:18px;text-align:right}.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 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-left:10px}.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:20px;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-left:0;padding-right:0;margin-left: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:36px;margin-right: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-left:16px;padding-right: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 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right: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-left:0;margin-right: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}:root .editor-styles-wrapper .has-pale-pink-background-color,:root .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color,:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color,:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color,:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color,:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color,:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color,:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color,:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color,:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color,:root .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color,:root .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color,:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color,:root .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color,:root .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color,:root .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color,:root .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color,:root .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color,:root .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color,:root .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color,:root .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color,:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color,:root .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color,:root .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color,:root .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color,:root .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color,:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color,:root .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color,:root .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background,:root .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,:root .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,:root .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,:root .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,:root .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,:root .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,:root .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,:root .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background,:root .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background,:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background,:root .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background,:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background,:root .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background,:root .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background,:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background,:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background,:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background,:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root .editor-styles-wrapper .has-link-color a,:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.editor-styles-wrapper .has-small-font-size,.has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size,.has-normal-font-size,.has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size,.has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size,.has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size,.has-huge-font-size,.has-larger-font-size{font-size:42px}.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 + /*!rtl:end:ignore*/}.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-left:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-right:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;left:0;top:100%;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-right:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{left:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{left:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;right: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 1em .375em 0}.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:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;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-right: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-left:0;margin-right: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-left:auto;margin-right:auto;text-align:left;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:0 0 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:right}.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 1em 1em 0;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-left:.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-left: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 0 0 .25em}.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-left:0;padding-right:0;margin-left: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:36px;margin:0 8px 8px 0;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-left:16px;padding-right: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-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right: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-left:0;margin-right: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}: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/theme-rtl.css b/wp-includes/css/dist/block-library/theme-rtl.css index b055e8b0e3..7168898d57 100644 --- a/wp-includes/css/dist/block-library/theme-rtl.css +++ b/wp-includes/css/dist/block-library/theme-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -74,43 +69,43 @@ display: none; } .wp-block-audio figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; - font-size: 15px; + font-size: 0.9em; color: #1e1e1e; padding: 0.8em 1em; border: 1px solid #ddd; border-radius: 4px; } .wp-block-embed figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .blocks-gallery-caption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-image figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-pullquote { - border-top: 4px solid #555d66; - border-bottom: 4px solid #555d66; - margin-bottom: 28px; - color: #40464d; } + border-top: 4px solid #555; + border-bottom: 4px solid #555; + margin-bottom: 1.75em; + color: #555; } .wp-block-pullquote cite, .wp-block-pullquote footer, .wp-block-pullquote__citation { - color: #40464d; + color: #555; text-transform: uppercase; - font-size: 13px; + font-size: 0.8125em; font-style: normal; } .wp-block-navigation ul, @@ -121,22 +116,22 @@ margin: 0; } .wp-block-quote { - border-right: 4px solid #000; - margin: 0 0 28px 0; + border-right: 0.25em solid #000; + margin: 0 0 1.75em 0; padding-right: 1em; } .wp-block-quote cite, .wp-block-quote footer, .wp-block-quote__citation { - color: #6c7781; - font-size: 13px; + color: #555; + font-size: 0.8125em; margin-top: 1em; position: relative; font-style: normal; } - .wp-block-quote.has-text-align-right, .wp-block-quote.has-text-align-right { + .wp-block-quote.has-text-align-right { border-right: none; - border-left: 4px solid #000; + border-left: 0.25em solid #000; padding-right: 0; padding-left: 1em; } - .wp-block-quote.has-text-align-center, .wp-block-quote.has-text-align-center { + .wp-block-quote.has-text-align-center { border: none; padding-right: 0; } .wp-block-quote.is-style-large, .wp-block-quote.is-large { @@ -152,9 +147,10 @@ .wp-block-separator { border: none; - border-bottom: 2px solid #8f98a1; + border-bottom: 2px solid currentColor; margin-right: auto; - margin-left: auto; } + margin-left: auto; + opacity: 0.4; } .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: 100px; } .wp-block-separator.has-background:not(.is-style-dots) { @@ -175,14 +171,19 @@ border: 1px solid; word-break: normal; } .wp-block-table figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-video figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } +.wp-block-template-part.has-background { + padding: 20px 30px; + margin-top: 0; + margin-bottom: 0; } + #end-resizable-editor-section { display: none; } diff --git a/wp-includes/css/dist/block-library/theme-rtl.min.css b/wp-includes/css/dist/block-library/theme-rtl.min.css index 7a34c81f7e..9ab2359c58 100644 --- a/wp-includes/css/dist/block-library/theme-rtl.min.css +++ b/wp-includes/css/dist/block-library/theme-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{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-right:4px solid #000;margin:0 0 28px;padding-right:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:4px solid #000;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-right:auto;margin-left:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center}#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}.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555;border-bottom:4px solid #555;margin-bottom:1.75em;color:#555}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#555;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-right:.25em solid #000;margin:0 0 1.75em;padding-right:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#555;font-size:.8125em;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:.25em solid #000;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid;margin-right:auto;margin-left:auto;opacity:.4}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.wp-block-template-part.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/theme.css b/wp-includes/css/dist/block-library/theme.css index 21d64e6fc5..196fc10b9e 100644 --- a/wp-includes/css/dist/block-library/theme.css +++ b/wp-includes/css/dist/block-library/theme.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -74,43 +69,43 @@ display: none; } .wp-block-audio figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; - font-size: 15px; + font-size: 0.9em; color: #1e1e1e; padding: 0.8em 1em; border: 1px solid #ddd; border-radius: 4px; } .wp-block-embed figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .blocks-gallery-caption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-image figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-pullquote { - border-top: 4px solid #555d66; - border-bottom: 4px solid #555d66; - margin-bottom: 28px; - color: #40464d; } + border-top: 4px solid #555; + border-bottom: 4px solid #555; + margin-bottom: 1.75em; + color: #555; } .wp-block-pullquote cite, .wp-block-pullquote footer, .wp-block-pullquote__citation { - color: #40464d; + color: #555; text-transform: uppercase; - font-size: 13px; + font-size: 0.8125em; font-style: normal; } .wp-block-navigation ul, @@ -121,22 +116,22 @@ margin: 0; } .wp-block-quote { - border-left: 4px solid #000; - margin: 0 0 28px 0; + border-left: 0.25em solid #000; + margin: 0 0 1.75em 0; padding-left: 1em; } .wp-block-quote cite, .wp-block-quote footer, .wp-block-quote__citation { - color: #6c7781; - font-size: 13px; + color: #555; + font-size: 0.8125em; margin-top: 1em; position: relative; font-style: normal; } - .wp-block-quote.has-text-align-right, .wp-block-quote.has-text-align-right { + .wp-block-quote.has-text-align-right { border-left: none; - border-right: 4px solid #000; + border-right: 0.25em solid #000; padding-left: 0; padding-right: 1em; } - .wp-block-quote.has-text-align-center, .wp-block-quote.has-text-align-center { + .wp-block-quote.has-text-align-center { border: none; padding-left: 0; } .wp-block-quote.is-style-large, .wp-block-quote.is-large { @@ -152,9 +147,10 @@ .wp-block-separator { border: none; - border-bottom: 2px solid #8f98a1; + border-bottom: 2px solid currentColor; margin-left: auto; - margin-right: auto; } + margin-right: auto; + opacity: 0.4; } .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: 100px; } .wp-block-separator.has-background:not(.is-style-dots) { @@ -175,14 +171,19 @@ border: 1px solid; word-break: normal; } .wp-block-table figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } .wp-block-video figcaption { - color: #555d66; + color: #555; font-size: 13px; text-align: center; } +.wp-block-template-part.has-background { + padding: 20px 30px; + margin-top: 0; + margin-bottom: 0; } + #end-resizable-editor-section { display: none; } diff --git a/wp-includes/css/dist/block-library/theme.min.css b/wp-includes/css/dist/block-library/theme.min.css index 00c2594e0c..94c384b079 100644 --- a/wp-includes/css/dist/block-library/theme.min.css +++ b/wp-includes/css/dist/block-library/theme.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{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-left:4px solid #000;margin:0 0 28px;padding-left:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:4px solid #000;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-left:auto;margin-right:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center}#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}.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555;border-bottom:4px solid #555;margin-bottom:1.75em;color:#555}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#555;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-left:.25em solid #000;margin:0 0 1.75em;padding-left:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#555;font-size:.8125em;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid #000;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto;opacity:.4}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.wp-block-template-part.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index ed9501d1ad..05391d32d2 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -117,81 +112,6 @@ 100% { opacity: 0.5; } } -.components-angle-picker-control { - width: 50%; } - .components-angle-picker-control.components-base-control .components-base-control__label { - display: block; } - -.components-angle-picker-control__input-field[type="number"] { - 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 0.1s linear; - border-radius: 2px; - border: 1px solid #757575; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; - width: calc(100% - 36px); - max-width: 100px; } - @media (prefers-reduced-motion: reduce) { - .components-angle-picker-control__input-field[type="number"] { - transition-duration: 0s; } } - @media (min-width: 600px) { - .components-angle-picker-control__input-field[type="number"] { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .components-angle-picker-control__input-field[type="number"]:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); - box-shadow: 0 0 0 0.5px #007cba; - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); - outline: 2px solid transparent; } - .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { - opacity: 1; - color: rgba(30, 30, 30, 0.62); } - .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - -.components-angle-picker-control__angle-circle { - width: 28px; - height: 28px; - border: 2px solid #555d66; - border-radius: 50%; - float: right; - margin-left: 4px; - cursor: grab; } - -.components-angle-picker-control__angle-circle-indicator-wrapper { - position: relative; - width: 100%; - height: 100%; } - -.components-angle-picker-control__angle-circle-indicator { - width: 1px; - height: 1px; - border-radius: 50%; - border: 3px solid #555d66; - display: block; - position: absolute; - top: -14px; - bottom: 0; - right: 0; - left: 0; - margin: auto; - background: #555d66; } - .components-autocomplete__popover .components-popover__content > div { padding: 16px; } @@ -267,10 +187,10 @@ * Tertiary buttons. */ /** - * Link buttons. + * Destructive buttons. */ /** - * Buttons that indicate destructive actions. + * Link buttons. */ } @media (prefers-reduced-motion: reduce) { .components-button { @@ -358,6 +278,17 @@ .components-button.is-tertiary .dashicon { display: inline-block; flex: 0 0 auto; } + .components-button.is-destructive { + color: #cc1818; + box-shadow: inset 0 0 0 1px #cc1818; } + .components-button.is-destructive:hover:not(:disabled) { + color: #710d0d; + box-shadow: inset 0 0 0 1px #710d0d; } + .components-button.is-destructive:focus:not(:disabled) { + color: #007cba; + color: var(--wp-admin-theme-color); } + .components-button.is-destructive:active:not(:disabled) { + background: #ccc; } .components-button.is-link { margin: 0; padding: 0; @@ -378,19 +309,19 @@ .components-button.is-link { transition-duration: 0s; } } .components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) { - color: #00a0d2; } + color: #00a0d2; + box-shadow: none; } .components-button.is-link:focus { color: #124964; box-shadow: 0 0 0 1px #5b9dd9, 0 0 1.5px 1px rgba(30, 140, 190, 0.8); } - .components-button.is-destructive { - color: #b52727; } - .components-button.is-destructive.is-secondary { - box-shadow: inset 0 0 0 1px #b52727; } - .components-button.is-destructive:hover:not(:disabled), .components-button.is-destructive:active:not(:disabled) { - color: #a02222; - box-shadow: inset 0 0 0 1px #a02222; } - .components-button.is-destructive:focus:not(:disabled) { - box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #a02222; } + .components-button.is-link.is-destructive { + color: #cc1818; } + .components-button.is-link.is-destructive:active:not(:disabled), .components-button.is-link.is-destructive:hover:not(:disabled) { + color: #710d0d; + background: none; } + .components-button.is-link.is-destructive:focus:not(:disabled) { + color: #007cba; + color: var(--wp-admin-theme-color); } .components-button:not([aria-disabled="true"]):active { color: inherit; } .components-button:disabled, .components-button[aria-disabled="true"] { @@ -590,17 +521,19 @@ svg.components-checkbox-control__checked { .components-circular-option-picker { display: inline-block; - margin-top: 0.6rem; - width: 100%; } + width: 100%; + margin-left: -10px; } .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { display: flex; justify-content: flex-end; } + .components-circular-option-picker .components-circular-option-picker__swatches { + margin-left: -16px; } .components-circular-option-picker__option-wrapper { display: inline-block; height: 28px; width: 28px; - margin-left: 12px; + margin-left: 16px; margin-bottom: 12px; vertical-align: top; transform: scale(1); @@ -666,7 +599,7 @@ svg.components-checkbox-control__checked { border: 1px solid transparent; } .components-circular-option-picker__option:focus::after { content: ""; - border: 2px solid #606a73; + border: 2px solid #757575; width: 32px; height: 32px; position: absolute; @@ -904,100 +837,109 @@ svg.components-checkbox-control__checked { padding: 0 5px; } .components-combobox-control { - color: #555d66; - position: relative; } + width: 100%; } -.components-combobox-control__label { - display: block; - margin-bottom: 5px; } +input.components-combobox-control__input[type="text"] { + width: 100%; + border: none; + box-shadow: none; + padding: 2px; + margin: 0; + line-height: inherit; + min-height: auto; } + input.components-combobox-control__input[type="text"]:focus { + outline: none; + box-shadow: none; } -.components-combobox-control__button { - border: 1px solid #7e8993; - border-radius: 4px; - color: #555d66; - display: inline-block; - min-height: 30px; - min-width: 130px; - position: relative; - text-align: right; } - .components-combobox-control__button:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); } - .components-combobox-control__button-input { - border: none; - height: calc(100% - 2px); - right: 1px; - padding: 0 4px; - position: absolute; - top: 1px; - width: calc(100% - 2px); } - .components-combobox-control__button-button:hover { - box-shadow: none !important; } - .components-combobox-control__button-icon { - height: 100%; - padding: 0 4px; - position: absolute; - left: 0; - top: 0; } - -.components-combobox-control__menu { - background: #fff; - min-width: 100%; - padding: 0; - position: absolute; - z-index: 1000000; } - -.components-combobox-control__item { - align-items: center; +.components-combobox-control__suggestions-container { + 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 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; display: flex; - list-style-type: none; - padding: 10px 25px 10px 5px; } - .components-combobox-control__item.is-highlighted { - background: #ddd; } - .components-combobox-control__item-icon { - margin-right: -20px; - margin-left: 0; } - -.components-custom-gradient-picker { - margin-top: 8px; } + flex-wrap: wrap; + align-items: flex-start; + width: 100%; + margin: 0 0 8px 0; + padding: 4px; } + @media (prefers-reduced-motion: reduce) { + .components-combobox-control__suggestions-container { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-combobox-control__suggestions-container { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-combobox-control__suggestions-container:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-combobox-control__suggestions-container::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-combobox-control__suggestions-container::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-combobox-control__suggestions-container:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-combobox-control__suggestions-container:focus-within { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } .components-custom-gradient-picker__gradient-bar:not(.has-gradient) { opacity: 0.4; } .components-custom-gradient-picker__gradient-bar { + margin-top: 12px; width: 100%; - height: 24px; - border-radius: 24px; - margin-bottom: 8px; - padding-right: 3px; - padding-left: 21px; } + height: 36px; + border-radius: 36px; + margin-bottom: 12px; + padding-right: 6px; + padding-left: 30px; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { position: relative; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point { border-radius: 50%; background: #fff; padding: 2px; + top: 6px; min-width: 24px; width: 24px; height: 24px; - position: relative; } + position: relative; + color: #1e1e1e; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg { height: 100%; width: 100%; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button { - border: 2px solid #fff; + border: 2px solid transparent; + box-shadow: inset 0 0 0 1.5px #fff; border-radius: 50%; - height: 18px; + height: 24px; + width: 24px; padding: 0; position: absolute; - width: 18px; - top: 3px; } - .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { - background: #fafafa; - color: #23282d; - border-color: #999; - 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); } + top: 6px; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus, .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #1e1e1e; } .components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { margin-right: auto; @@ -1014,13 +956,11 @@ svg.components-checkbox-control__checked { width: 20px; height: 20px; } -.components-custom-gradient-picker__ui-line { - display: flex; - justify-content: space-between; } - -.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker, -.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker { - margin-bottom: 0; } +.components-custom-gradient-picker .components-custom-gradient-picker__ui-line { + margin-bottom: 16px; } + .components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker, + .components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker { + margin-bottom: 0; } .components-custom-gradient-picker .components-custom-gradient-picker__toolbar { border: none; } @@ -1028,7 +968,7 @@ svg.components-checkbox-control__checked { margin-right: 1px; } .components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed > svg { background: #fff; - border: 1px solid #7e8993; + border: 1px solid #949494; border-radius: 2px; } .components-custom-select-control { @@ -1084,10 +1024,6 @@ svg.components-checkbox-control__checked { .components-custom-select-control__item-icon { margin-right: -20px; margin-left: 0; } - -svg.dashicon { - fill: currentColor; - outline: none; } .PresetDateRangePicker_panel { padding: 0 22px 11px; } @@ -1997,8 +1933,7 @@ svg.dashicon { display: flex; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator { display: inline-block; - padding: 0 0 0 3px; - color: #555d66; } + padding: 0 0 0 3px; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { direction: ltr; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { @@ -2023,6 +1958,11 @@ svg.dashicon { .components-datetime__time.is-12-hour .components-datetime__time-field-year input { border-radius: 2px 0 0 2px !important; } +.components-datetime__timezone { + line-height: 30px; + margin-right: 4px; + text-decoration: underline dotted; } + .components-datetime__time-legend { font-weight: 600; margin-top: 0.5em; } @@ -2170,8 +2110,7 @@ body.is-dragging-components-draggable { width: 100%; padding: 6px; outline: none; - cursor: pointer; - margin-bottom: 4px; } + cursor: pointer; } .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator, .components-dropdown-menu__menu .components-menu-item.has-separator { margin-top: 6px; @@ -2203,11 +2142,12 @@ body.is-dragging-components-draggable { .components-dropdown-menu__menu .components-menu-item__button.components-button { min-height: 36px; height: auto; - padding-right: 40px; - text-align: right; } - .components-dropdown-menu__menu .components-menu-item__button.has-icon, - .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { - padding-right: 8px; } + text-align: right; + padding-right: 8px; + padding-left: 8px; } + .components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper, + .components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper { + max-width: calc(100% - 32px); } .components-dropdown-menu__menu .components-menu-group { padding: 12px; margin-top: 0; @@ -2225,9 +2165,6 @@ body.is-dragging-components-draggable { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { border-color: #1e1e1e; } -.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button { - padding: 0 12px; } - .components-external-link__icon { width: 1.4em; height: 1.4em; @@ -2235,66 +2172,6 @@ body.is-dragging-components-draggable { vertical-align: middle; fill: currentColor; } -.components-focal-point-picker-wrapper { - background-color: transparent; - border: 1px solid #ddd; - height: 200px; - width: 100%; - padding: 14px; } - -.components-focal-point-picker { - align-items: center; - cursor: pointer; - display: flex; - height: 100%; - justify-content: center; - position: relative; - width: 100%; } - .components-focal-point-picker img { - height: auto; - max-height: 100%; - max-width: 100%; - width: auto; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; } - -.components-focal-point-picker__icon_container { - background-color: transparent; - cursor: grab; - height: 30px; - opacity: 0.8; - position: absolute; - will-change: transform; - width: 30px; - z-index: 10000; } - .components-focal-point-picker__icon_container.is-dragging { - cursor: grabbing; } - -.components-focal-point-picker__icon { - display: block; - height: 100%; - right: -15px; - position: absolute; - top: -15px; - width: 100%; } - .components-focal-point-picker__icon .components-focal-point-picker__icon-outline { - fill: #fff; } - .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #007cba; - fill: var(--wp-admin-theme-color); } - -.components-focal-point-picker_position-display-container { - margin: 1em 0; - display: flex; } - .components-focal-point-picker_position-display-container .components-base-control__field { - margin: 0 0 0 1em; } - .components-focal-point-picker_position-display-container input[type="number"].components-text-control__input { - max-width: 4em; - padding: 6px 4px; } - .components-focal-point-picker_position-display-container span { - margin: 0 0.2em 0 0; } - .components-font-size-picker__controls { max-width: 248px; display: flex; @@ -2484,7 +2361,13 @@ body.is-dragging-components-draggable { color: rgba(255, 255, 255, 0.65); } .components-form-token-field__input-container.is-disabled { background: #ddd; - border-color: #ccd0d4; } + border-color: #ddd; } + .components-form-token-field__input-container.is-active { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } .components-form-token-field__input-container input[type="text"].components-form-token-field__input { display: inline-block; width: 100%; @@ -2514,17 +2397,17 @@ body.is-dragging-components-draggable { font-size: 13px; display: flex; margin: 2px 0 2px 4px; - color: #32373c; - overflow: hidden; } + color: #1e1e1e; + max-width: 100%; } .components-form-token-field__token.is-success .components-form-token-field__token-text, .components-form-token-field__token.is-success .components-form-token-field__remove-token { background: #4ab866; } .components-form-token-field__token.is-error .components-form-token-field__token-text, .components-form-token-field__token.is-error .components-form-token-field__remove-token { - background: #d94f4f; } + background: #cc1818; } .components-form-token-field__token.is-validating .components-form-token-field__token-text, .components-form-token-field__token.is-validating .components-form-token-field__remove-token { - color: #555d66; } + color: #757575; } .components-form-token-field__token.is-borderless { position: relative; padding: 0 0 0 16px; } @@ -2534,14 +2417,14 @@ body.is-dragging-components-draggable { color: var(--wp-admin-theme-color); } .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { background: transparent; - color: #555d66; + color: #757575; position: absolute; top: 1px; left: 0; } .components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text { color: #4ab866; } .components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text { - color: #d94f4f; + color: #cc1818; border-radius: 0 4px 4px 0; padding: 0 6px 0 4px; } .components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text { @@ -2573,31 +2456,32 @@ body.is-dragging-components-draggable { cursor: pointer; border-radius: 12px 0 0 12px; padding: 0 2px; - color: #555d66; + color: #757575; line-height: 10px; overflow: initial; } .components-form-token-field__remove-token.components-button:hover { - color: #32373c; } + color: #1e1e1e; } .components-form-token-field__suggestions-list { flex: 1 0 100%; min-width: 100%; max-height: 9em; - overflow-y: scroll; + overflow-y: auto; transition: all 0.15s ease-in-out; list-style: none; - border-top: 1px solid #6c7781; + border-top: 1px solid #757575; margin: 4px -4px -4px; - padding-top: 3px; } + padding: 0; } @media (prefers-reduced-motion: reduce) { .components-form-token-field__suggestions-list { transition-duration: 0s; } } .components-form-token-field__suggestion { - color: #555d66; + color: #757575; display: block; font-size: 13px; padding: 4px 8px; + margin: 0; cursor: pointer; } .components-form-token-field__suggestion.is-selected { background: #007cba; @@ -2734,7 +2618,8 @@ body.is-dragging-components-draggable { border-top: 1px solid #1e1e1e; } .components-menu-group__label { - padding: 0; + padding: 0 8px; + margin-top: 4px; margin-bottom: 12px; color: #757575; text-transform: uppercase; @@ -2744,19 +2629,19 @@ body.is-dragging-components-draggable { .components-menu-item__button, .components-menu-item__button.components-button { width: 100%; } - .components-menu-item__button .dashicon, - .components-menu-item__button .components-menu-items__item-icon, - .components-menu-item__button svg.components-menu-items__item-icon, - .components-menu-item__button > span > svg, - .components-menu-item__button.components-button .dashicon, - .components-menu-item__button.components-button .components-menu-items__item-icon, - .components-menu-item__button.components-button svg.components-menu-items__item-icon, - .components-menu-item__button.components-button > span > svg { - margin-left: 8px; } .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button.components-button .components-menu-items__item-icon { + margin-left: -2px; + margin-right: auto; display: inline-block; flex: 0 0 auto; } + .components-menu-item__button .components-menu-item__shortcut + .components-menu-items__item-icon, + .components-menu-item__button.components-button .components-menu-item__shortcut + .components-menu-items__item-icon { + margin-right: 8px; } + .components-menu-item__button .block-editor-block-icon, + .components-menu-item__button.components-button .block-editor-block-icon { + margin-right: -2px; + margin-left: 8px; } .components-menu-item__info-wrapper { display: flex; @@ -2779,15 +2664,13 @@ body.is-dragging-components-draggable { .components-menu-item__shortcut { display: inline; } } -.components-menu-items-choice, -.components-menu-items-choice.components-button { - padding-right: 40px; } - .components-menu-items-choice svg, - .components-menu-items-choice.components-button svg { - margin-left: 8px; } - .components-menu-items-choice.has-icon, - .components-menu-items-choice.components-button.has-icon { - padding-right: 8px; } +.components-menu-items-choice svg, +.components-menu-items-choice.components-button svg { + margin-left: 12px; } + +.components-menu-items-choice.has-icon, +.components-menu-items-choice.components-button.has-icon { + padding-right: 12px; } .components-modal__screen-overlay { position: fixed; @@ -2909,8 +2792,8 @@ body.is-dragging-components-draggable { border-right-color: #f0b849; background-color: #fef8ee; } .components-notice.is-error { - border-right-color: #d94f4f; - background-color: #f9e2e2; } + border-right-color: #cc1818; + background-color: #f4a2a2; } .components-notice__content { flex-grow: 1; @@ -2923,7 +2806,7 @@ body.is-dragging-components-draggable { vertical-align: initial; } .components-notice__dismiss { - color: #6c7781; + color: #757575; align-self: flex-start; flex-shrink: 0; } .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):focus { @@ -2947,7 +2830,7 @@ body.is-dragging-components-draggable { .components-panel { background: #fff; - border: 1px solid #f0f0f0; } + border: 1px solid #e0e0e0; } .components-panel > .components-panel__header:first-child, .components-panel > .components-panel__body:first-child { margin-top: -1px; } @@ -2959,8 +2842,8 @@ body.is-dragging-components-draggable { margin-top: -1px; } .components-panel__body { - border-top: 1px solid #f0f0f0; - border-bottom: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; + border-bottom: 1px solid #e0e0e0; } .components-panel__body h3 { margin: 0 0 0.5em; } .components-panel__body.is-opened { @@ -3041,7 +2924,7 @@ body.is-dragging-components-draggable { margin-top: -10px; } .components-panel__icon { - color: #555d66; + color: #757575; margin: -2px 6px -2px 0; } .components-panel__body-toggle-icon { @@ -3070,6 +2953,7 @@ body.is-dragging-components-draggable { padding-bottom: 20px; } .components-placeholder.components-placeholder { + box-sizing: border-box; position: relative; padding: 1em; min-height: 200px; @@ -3469,7 +3353,7 @@ body.is-dragging-components-draggable { .is-dark-theme .components-resizable-box__side-handle::before, .is-dark-theme .components-resizable-box__handle::after { - border-color: #d7dade; } + border-color: #ddd; } .components-resizable-box__handle { z-index: 2; } @@ -3524,6 +3408,21 @@ body.is-dragging-components-draggable { .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { animation-duration: 1ms; } } +/* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy. +See https://bugs.webkit.org/show_bug.cgi?id=187903. */ +@media not all and (min-resolution: 0.001dpcm) { + @supports (-webkit-appearance: none) { + .components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { + animation: none; } + .components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { + animation: none; } } } + @keyframes components-resizable-box__top-bottom-animation { from { transform: scaleX(0); @@ -3649,7 +3548,7 @@ body.lockscroll { .components-spinner { display: inline-block; - background-color: #7e8993; + background-color: #949494; width: 18px; height: 18px; opacity: 0.7; @@ -3933,7 +3832,7 @@ body.lockscroll { .components-tip { display: flex; - color: #555d66; } + color: #757575; } .components-tip svg { -ms-grid-row-align: center; align-self: center; @@ -4055,7 +3954,7 @@ body.lockscroll { flex-shrink: 0; flex-wrap: wrap; line-height: 0; } - .components-toolbar-group .components-toolbar-group { + .components-toolbar-group .components-toolbar-group.components-toolbar-group { border-width: 0; margin: 0; } @@ -4063,11 +3962,13 @@ body.lockscroll { min-height: 48px; margin: 0; border: 1px solid #1e1e1e; - border-radius: 2px; background-color: #fff; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; } + .components-toolbar .components-toolbar.components-toolbar { + border-width: 0; + margin: 0; } div.components-toolbar > div { display: block; diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index a6f8dca92a..c8366d7461 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/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}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field[type=number]{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;width:calc(100% - 36px);max-width:100px}@media (prefers-reduced-motion:reduce){.components-angle-picker-control__input-field[type=number]{transition-duration:0s}}@media (min-width:600px){.components-angle-picker-control__input-field[type=number]{font-size:13px;line-height:normal}}.components-angle-picker-control__input-field[type=number]: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}.components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:right;margin-left:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;right:0;left:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{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)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-destructive{color:#b52727}.components-button.is-destructive.is-secondary{box-shadow:inset 0 0 0 1px #b52727}.components-button.is-destructive:active:not(:disabled),.components-button.is-destructive:hover:not(:disabled){color:#a02222;box-shadow:inset 0 0 0 1px #a02222}.components-button.is-destructive:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a02222}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{color:#555d66;position:relative}.components-combobox-control__label{display:block;margin-bottom:5px}.components-combobox-control__button{border:1px solid #7e8993;border-radius:4px;color:#555d66;display:inline-block;min-height:30px;min-width:130px;position:relative;text-align:right}.components-combobox-control__button:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-combobox-control__button-input{border:none;height:calc(100% - 2px);right:1px;padding:0 4px;position:absolute;top:1px;width:calc(100% - 2px)}.components-combobox-control__button-button:hover{box-shadow:none!important}.components-combobox-control__button-icon{height:100%;padding:0 4px;position:absolute;left:0;top:0}.components-combobox-control__menu{background:#fff;min-width:100%;padding:0;position:absolute;z-index:1000000}.components-combobox-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px}.components-combobox-control__item.is-highlighted{background:#ddd}.components-combobox-control__item-icon{margin-right:-20px;margin-left:0}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:8px;padding-right:3px;padding-left:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;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)}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #7e8993;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;padding-right:40px;text-align:right}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-right:8px}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button{padding:0 12px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #ddd;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;right:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#007cba;fill:var(--wp-admin-theme-color)}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 0 0 1em}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 .2em 0 0}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ccd0d4}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;right:16px;left:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-left:8px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-left:0;margin-right:auto;padding-right:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-right:40px}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:8px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:8px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#6c7781;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #f0f0f0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar: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)}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input: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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-right:8px;padding-left:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-right:6px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{right:2px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-right:11px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{right:8px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-right:6px;padding-left:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{right:2px;left:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-right:12px;padding-left:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{right:8px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ 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}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{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)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-left:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-left:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-right:6px;padding-left:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__timezone{line-height:30px;margin-right:4px;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:right;padding-right:8px;padding-left:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;right:16px;left:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-left:-2px;margin-right:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-right:-2px;margin-left:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-left:0;margin-right:auto;padding-right:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar: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)}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input: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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-right:8px;padding-left:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-right:6px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{right:2px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-right:11px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{right:8px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-right:6px;padding-left:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{right:2px;left:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-right:12px;padding-left:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{right:8px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index 2026769c34..d3beca4cba 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -117,81 +112,6 @@ 100% { opacity: 0.5; } } -.components-angle-picker-control { - width: 50%; } - .components-angle-picker-control.components-base-control .components-base-control__label { - display: block; } - -.components-angle-picker-control__input-field[type="number"] { - 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 0.1s linear; - border-radius: 2px; - border: 1px solid #757575; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; - width: calc(100% - 36px); - max-width: 100px; } - @media (prefers-reduced-motion: reduce) { - .components-angle-picker-control__input-field[type="number"] { - transition-duration: 0s; } } - @media (min-width: 600px) { - .components-angle-picker-control__input-field[type="number"] { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .components-angle-picker-control__input-field[type="number"]:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); - box-shadow: 0 0 0 0.5px #007cba; - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); - outline: 2px solid transparent; } - .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { - opacity: 1; - color: rgba(30, 30, 30, 0.62); } - .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.62); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - -.components-angle-picker-control__angle-circle { - width: 28px; - height: 28px; - border: 2px solid #555d66; - border-radius: 50%; - float: left; - margin-right: 4px; - cursor: grab; } - -.components-angle-picker-control__angle-circle-indicator-wrapper { - position: relative; - width: 100%; - height: 100%; } - -.components-angle-picker-control__angle-circle-indicator { - width: 1px; - height: 1px; - border-radius: 50%; - border: 3px solid #555d66; - display: block; - position: absolute; - top: -14px; - bottom: 0; - left: 0; - right: 0; - margin: auto; - background: #555d66; } - .components-autocomplete__popover .components-popover__content > div { padding: 16px; } @@ -267,10 +187,10 @@ * Tertiary buttons. */ /** - * Link buttons. + * Destructive buttons. */ /** - * Buttons that indicate destructive actions. + * Link buttons. */ } @media (prefers-reduced-motion: reduce) { .components-button { @@ -358,6 +278,17 @@ .components-button.is-tertiary .dashicon { display: inline-block; flex: 0 0 auto; } + .components-button.is-destructive { + color: #cc1818; + box-shadow: inset 0 0 0 1px #cc1818; } + .components-button.is-destructive:hover:not(:disabled) { + color: #710d0d; + box-shadow: inset 0 0 0 1px #710d0d; } + .components-button.is-destructive:focus:not(:disabled) { + color: #007cba; + color: var(--wp-admin-theme-color); } + .components-button.is-destructive:active:not(:disabled) { + background: #ccc; } .components-button.is-link { margin: 0; padding: 0; @@ -378,19 +309,19 @@ .components-button.is-link { transition-duration: 0s; } } .components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) { - color: #00a0d2; } + color: #00a0d2; + box-shadow: none; } .components-button.is-link:focus { color: #124964; box-shadow: 0 0 0 1px #5b9dd9, 0 0 1.5px 1px rgba(30, 140, 190, 0.8); } - .components-button.is-destructive { - color: #b52727; } - .components-button.is-destructive.is-secondary { - box-shadow: inset 0 0 0 1px #b52727; } - .components-button.is-destructive:hover:not(:disabled), .components-button.is-destructive:active:not(:disabled) { - color: #a02222; - box-shadow: inset 0 0 0 1px #a02222; } - .components-button.is-destructive:focus:not(:disabled) { - box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #a02222; } + .components-button.is-link.is-destructive { + color: #cc1818; } + .components-button.is-link.is-destructive:active:not(:disabled), .components-button.is-link.is-destructive:hover:not(:disabled) { + color: #710d0d; + background: none; } + .components-button.is-link.is-destructive:focus:not(:disabled) { + color: #007cba; + color: var(--wp-admin-theme-color); } .components-button:not([aria-disabled="true"]):active { color: inherit; } .components-button:disabled, .components-button[aria-disabled="true"] { @@ -590,17 +521,19 @@ svg.components-checkbox-control__checked { .components-circular-option-picker { display: inline-block; - margin-top: 0.6rem; - width: 100%; } + width: 100%; + margin-right: -10px; } .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { display: flex; justify-content: flex-end; } + .components-circular-option-picker .components-circular-option-picker__swatches { + margin-right: -16px; } .components-circular-option-picker__option-wrapper { display: inline-block; height: 28px; width: 28px; - margin-right: 12px; + margin-right: 16px; margin-bottom: 12px; vertical-align: top; transform: scale(1); @@ -666,7 +599,7 @@ svg.components-checkbox-control__checked { border: 1px solid transparent; } .components-circular-option-picker__option:focus::after { content: ""; - border: 2px solid #606a73; + border: 2px solid #757575; width: 32px; height: 32px; position: absolute; @@ -908,100 +841,109 @@ svg.components-checkbox-control__checked { padding: 0 5px; } .components-combobox-control { - color: #555d66; - position: relative; } + width: 100%; } -.components-combobox-control__label { - display: block; - margin-bottom: 5px; } +input.components-combobox-control__input[type="text"] { + width: 100%; + border: none; + box-shadow: none; + padding: 2px; + margin: 0; + line-height: inherit; + min-height: auto; } + input.components-combobox-control__input[type="text"]:focus { + outline: none; + box-shadow: none; } -.components-combobox-control__button { - border: 1px solid #7e8993; - border-radius: 4px; - color: #555d66; - display: inline-block; - min-height: 30px; - min-width: 130px; - position: relative; - text-align: left; } - .components-combobox-control__button:focus { - border-color: #007cba; - border-color: var(--wp-admin-theme-color); } - .components-combobox-control__button-input { - border: none; - height: calc(100% - 2px); - left: 1px; - padding: 0 4px; - position: absolute; - top: 1px; - width: calc(100% - 2px); } - .components-combobox-control__button-button:hover { - box-shadow: none !important; } - .components-combobox-control__button-icon { - height: 100%; - padding: 0 4px; - position: absolute; - right: 0; - top: 0; } - -.components-combobox-control__menu { - background: #fff; - min-width: 100%; - padding: 0; - position: absolute; - z-index: 1000000; } - -.components-combobox-control__item { - align-items: center; +.components-combobox-control__suggestions-container { + 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 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; display: flex; - list-style-type: none; - padding: 10px 5px 10px 25px; } - .components-combobox-control__item.is-highlighted { - background: #ddd; } - .components-combobox-control__item-icon { - margin-left: -20px; - margin-right: 0; } - -.components-custom-gradient-picker { - margin-top: 8px; } + flex-wrap: wrap; + align-items: flex-start; + width: 100%; + margin: 0 0 8px 0; + padding: 4px; } + @media (prefers-reduced-motion: reduce) { + .components-combobox-control__suggestions-container { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-combobox-control__suggestions-container { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-combobox-control__suggestions-container:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-combobox-control__suggestions-container::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-combobox-control__suggestions-container::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-combobox-control__suggestions-container:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-combobox-control__suggestions-container:focus-within { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } .components-custom-gradient-picker__gradient-bar:not(.has-gradient) { opacity: 0.4; } .components-custom-gradient-picker__gradient-bar { + margin-top: 12px; width: 100%; - height: 24px; - border-radius: 24px; - margin-bottom: 8px; - padding-left: 3px; - padding-right: 21px; } + height: 36px; + border-radius: 36px; + margin-bottom: 12px; + padding-left: 6px; + padding-right: 30px; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { position: relative; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point { border-radius: 50%; background: #fff; padding: 2px; + top: 6px; min-width: 24px; width: 24px; height: 24px; - position: relative; } + position: relative; + color: #1e1e1e; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg { height: 100%; width: 100%; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button { - border: 2px solid #fff; + border: 2px solid transparent; + box-shadow: inset 0 0 0 1.5px #fff; border-radius: 50%; - height: 18px; + height: 24px; + width: 24px; padding: 0; position: absolute; - width: 18px; - top: 3px; } - .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { - background: #fafafa; - color: #23282d; - border-color: #999; - 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); } + top: 6px; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus, .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #1e1e1e; } .components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { margin-left: auto; @@ -1018,13 +960,11 @@ svg.components-checkbox-control__checked { width: 20px; height: 20px; } -.components-custom-gradient-picker__ui-line { - display: flex; - justify-content: space-between; } - -.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker, -.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker { - margin-bottom: 0; } +.components-custom-gradient-picker .components-custom-gradient-picker__ui-line { + margin-bottom: 16px; } + .components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker, + .components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker { + margin-bottom: 0; } .components-custom-gradient-picker .components-custom-gradient-picker__toolbar { border: none; } @@ -1032,7 +972,7 @@ svg.components-checkbox-control__checked { margin-left: 1px; } .components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed > svg { background: #fff; - border: 1px solid #7e8993; + border: 1px solid #949494; border-radius: 2px; } .components-custom-select-control { @@ -1089,10 +1029,6 @@ svg.components-checkbox-control__checked { margin-left: -20px; margin-right: 0; } -svg.dashicon { - fill: currentColor; - outline: none; } - /*rtl:begin:ignore*/ .PresetDateRangePicker_panel { padding: 0 22px 11px; } @@ -2005,8 +1941,7 @@ svg.dashicon { display: flex; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator { display: inline-block; - padding: 0 3px 0 0; - color: #555d66; } + padding: 0 3px 0 0; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { /*rtl:ignore*/ direction: ltr; } @@ -2032,6 +1967,11 @@ svg.dashicon { .components-datetime__time.is-12-hour .components-datetime__time-field-year input { border-radius: 0 2px 2px 0 !important; } +.components-datetime__timezone { + line-height: 30px; + margin-left: 4px; + text-decoration: underline dotted; } + .components-datetime__time-legend { font-weight: 600; margin-top: 0.5em; } @@ -2179,8 +2119,7 @@ body.is-dragging-components-draggable { width: 100%; padding: 6px; outline: none; - cursor: pointer; - margin-bottom: 4px; } + cursor: pointer; } .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator, .components-dropdown-menu__menu .components-menu-item.has-separator { margin-top: 6px; @@ -2212,11 +2151,12 @@ body.is-dragging-components-draggable { .components-dropdown-menu__menu .components-menu-item__button.components-button { min-height: 36px; height: auto; - padding-left: 40px; - text-align: left; } - .components-dropdown-menu__menu .components-menu-item__button.has-icon, - .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { - padding-left: 8px; } + text-align: left; + padding-left: 8px; + padding-right: 8px; } + .components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper, + .components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper { + max-width: calc(100% - 32px); } .components-dropdown-menu__menu .components-menu-group { padding: 12px; margin-top: 0; @@ -2234,9 +2174,6 @@ body.is-dragging-components-draggable { .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { border-color: #1e1e1e; } -.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button { - padding: 0 12px; } - .components-external-link__icon { width: 1.4em; height: 1.4em; @@ -2244,66 +2181,6 @@ body.is-dragging-components-draggable { vertical-align: middle; fill: currentColor; } -.components-focal-point-picker-wrapper { - background-color: transparent; - border: 1px solid #ddd; - height: 200px; - width: 100%; - padding: 14px; } - -.components-focal-point-picker { - align-items: center; - cursor: pointer; - display: flex; - height: 100%; - justify-content: center; - position: relative; - width: 100%; } - .components-focal-point-picker img { - height: auto; - max-height: 100%; - max-width: 100%; - width: auto; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; } - -.components-focal-point-picker__icon_container { - background-color: transparent; - cursor: grab; - height: 30px; - opacity: 0.8; - position: absolute; - will-change: transform; - width: 30px; - z-index: 10000; } - .components-focal-point-picker__icon_container.is-dragging { - cursor: grabbing; } - -.components-focal-point-picker__icon { - display: block; - height: 100%; - left: -15px; - position: absolute; - top: -15px; - width: 100%; } - .components-focal-point-picker__icon .components-focal-point-picker__icon-outline { - fill: #fff; } - .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #007cba; - fill: var(--wp-admin-theme-color); } - -.components-focal-point-picker_position-display-container { - margin: 1em 0; - display: flex; } - .components-focal-point-picker_position-display-container .components-base-control__field { - margin: 0 1em 0 0; } - .components-focal-point-picker_position-display-container input[type="number"].components-text-control__input { - max-width: 4em; - padding: 6px 4px; } - .components-focal-point-picker_position-display-container span { - margin: 0 0 0 0.2em; } - .components-font-size-picker__controls { max-width: 248px; display: flex; @@ -2493,7 +2370,13 @@ body.is-dragging-components-draggable { color: rgba(255, 255, 255, 0.65); } .components-form-token-field__input-container.is-disabled { background: #ddd; - border-color: #ccd0d4; } + border-color: #ddd; } + .components-form-token-field__input-container.is-active { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } .components-form-token-field__input-container input[type="text"].components-form-token-field__input { display: inline-block; width: 100%; @@ -2523,17 +2406,17 @@ body.is-dragging-components-draggable { font-size: 13px; display: flex; margin: 2px 4px 2px 0; - color: #32373c; - overflow: hidden; } + color: #1e1e1e; + max-width: 100%; } .components-form-token-field__token.is-success .components-form-token-field__token-text, .components-form-token-field__token.is-success .components-form-token-field__remove-token { background: #4ab866; } .components-form-token-field__token.is-error .components-form-token-field__token-text, .components-form-token-field__token.is-error .components-form-token-field__remove-token { - background: #d94f4f; } + background: #cc1818; } .components-form-token-field__token.is-validating .components-form-token-field__token-text, .components-form-token-field__token.is-validating .components-form-token-field__remove-token { - color: #555d66; } + color: #757575; } .components-form-token-field__token.is-borderless { position: relative; padding: 0 16px 0 0; } @@ -2543,14 +2426,14 @@ body.is-dragging-components-draggable { color: var(--wp-admin-theme-color); } .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { background: transparent; - color: #555d66; + color: #757575; position: absolute; top: 1px; right: 0; } .components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text { color: #4ab866; } .components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text { - color: #d94f4f; + color: #cc1818; border-radius: 4px 0 0 4px; padding: 0 4px 0 6px; } .components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text { @@ -2582,31 +2465,32 @@ body.is-dragging-components-draggable { cursor: pointer; border-radius: 0 12px 12px 0; padding: 0 2px; - color: #555d66; + color: #757575; line-height: 10px; overflow: initial; } .components-form-token-field__remove-token.components-button:hover { - color: #32373c; } + color: #1e1e1e; } .components-form-token-field__suggestions-list { flex: 1 0 100%; min-width: 100%; max-height: 9em; - overflow-y: scroll; + overflow-y: auto; transition: all 0.15s ease-in-out; list-style: none; - border-top: 1px solid #6c7781; + border-top: 1px solid #757575; margin: 4px -4px -4px; - padding-top: 3px; } + padding: 0; } @media (prefers-reduced-motion: reduce) { .components-form-token-field__suggestions-list { transition-duration: 0s; } } .components-form-token-field__suggestion { - color: #555d66; + color: #757575; display: block; font-size: 13px; padding: 4px 8px; + margin: 0; cursor: pointer; } .components-form-token-field__suggestion.is-selected { background: #007cba; @@ -2743,7 +2627,8 @@ body.is-dragging-components-draggable { border-top: 1px solid #1e1e1e; } .components-menu-group__label { - padding: 0; + padding: 0 8px; + margin-top: 4px; margin-bottom: 12px; color: #757575; text-transform: uppercase; @@ -2753,19 +2638,19 @@ body.is-dragging-components-draggable { .components-menu-item__button, .components-menu-item__button.components-button { width: 100%; } - .components-menu-item__button .dashicon, - .components-menu-item__button .components-menu-items__item-icon, - .components-menu-item__button svg.components-menu-items__item-icon, - .components-menu-item__button > span > svg, - .components-menu-item__button.components-button .dashicon, - .components-menu-item__button.components-button .components-menu-items__item-icon, - .components-menu-item__button.components-button svg.components-menu-items__item-icon, - .components-menu-item__button.components-button > span > svg { - margin-right: 8px; } .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button.components-button .components-menu-items__item-icon { + margin-right: -2px; + margin-left: auto; display: inline-block; flex: 0 0 auto; } + .components-menu-item__button .components-menu-item__shortcut + .components-menu-items__item-icon, + .components-menu-item__button.components-button .components-menu-item__shortcut + .components-menu-items__item-icon { + margin-left: 8px; } + .components-menu-item__button .block-editor-block-icon, + .components-menu-item__button.components-button .block-editor-block-icon { + margin-left: -2px; + margin-right: 8px; } .components-menu-item__info-wrapper { display: flex; @@ -2788,15 +2673,13 @@ body.is-dragging-components-draggable { .components-menu-item__shortcut { display: inline; } } -.components-menu-items-choice, -.components-menu-items-choice.components-button { - padding-left: 40px; } - .components-menu-items-choice svg, - .components-menu-items-choice.components-button svg { - margin-right: 8px; } - .components-menu-items-choice.has-icon, - .components-menu-items-choice.components-button.has-icon { - padding-left: 8px; } +.components-menu-items-choice svg, +.components-menu-items-choice.components-button svg { + margin-right: 12px; } + +.components-menu-items-choice.has-icon, +.components-menu-items-choice.components-button.has-icon { + padding-left: 12px; } .components-modal__screen-overlay { position: fixed; @@ -2918,8 +2801,8 @@ body.is-dragging-components-draggable { border-left-color: #f0b849; background-color: #fef8ee; } .components-notice.is-error { - border-left-color: #d94f4f; - background-color: #f9e2e2; } + border-left-color: #cc1818; + background-color: #f4a2a2; } .components-notice__content { flex-grow: 1; @@ -2932,7 +2815,7 @@ body.is-dragging-components-draggable { vertical-align: initial; } .components-notice__dismiss { - color: #6c7781; + color: #757575; align-self: flex-start; flex-shrink: 0; } .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):focus { @@ -2956,7 +2839,7 @@ body.is-dragging-components-draggable { .components-panel { background: #fff; - border: 1px solid #f0f0f0; } + border: 1px solid #e0e0e0; } .components-panel > .components-panel__header:first-child, .components-panel > .components-panel__body:first-child { margin-top: -1px; } @@ -2968,8 +2851,8 @@ body.is-dragging-components-draggable { margin-top: -1px; } .components-panel__body { - border-top: 1px solid #f0f0f0; - border-bottom: 1px solid #f0f0f0; } + border-top: 1px solid #e0e0e0; + border-bottom: 1px solid #e0e0e0; } .components-panel__body h3 { margin: 0 0 0.5em; } .components-panel__body.is-opened { @@ -3052,7 +2935,7 @@ body.is-dragging-components-draggable { margin-top: -10px; } .components-panel__icon { - color: #555d66; + color: #757575; margin: -2px 0 -2px 6px; } .components-panel__body-toggle-icon { @@ -3081,6 +2964,7 @@ body.is-dragging-components-draggable { padding-bottom: 20px; } .components-placeholder.components-placeholder { + box-sizing: border-box; position: relative; padding: 1em; min-height: 200px; @@ -3484,7 +3368,7 @@ body.is-dragging-components-draggable { .is-dark-theme .components-resizable-box__side-handle::before, .is-dark-theme .components-resizable-box__handle::after { - border-color: #d7dade; } + border-color: #ddd; } .components-resizable-box__handle { z-index: 2; } @@ -3539,6 +3423,21 @@ body.is-dragging-components-draggable { .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { animation-duration: 1ms; } } +/* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy. +See https://bugs.webkit.org/show_bug.cgi?id=187903. */ +@media not all and (min-resolution: 0.001dpcm) { + @supports (-webkit-appearance: none) { + .components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { + animation: none; } + .components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { + animation: none; } } } + @keyframes components-resizable-box__top-bottom-animation { from { transform: scaleX(0); @@ -3668,7 +3567,7 @@ body.lockscroll { .components-spinner { display: inline-block; - background-color: #7e8993; + background-color: #949494; width: 18px; height: 18px; opacity: 0.7; @@ -3954,7 +3853,7 @@ body.lockscroll { .components-tip { display: flex; - color: #555d66; } + color: #757575; } .components-tip svg { -ms-grid-row-align: center; align-self: center; @@ -4076,7 +3975,7 @@ body.lockscroll { flex-shrink: 0; flex-wrap: wrap; line-height: 0; } - .components-toolbar-group .components-toolbar-group { + .components-toolbar-group .components-toolbar-group.components-toolbar-group { border-width: 0; margin: 0; } @@ -4084,11 +3983,13 @@ body.lockscroll { min-height: 48px; margin: 0; border: 1px solid #1e1e1e; - border-radius: 2px; background-color: #fff; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; } + .components-toolbar .components-toolbar.components-toolbar { + border-width: 0; + margin: 0; } div.components-toolbar > div { display: block; diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index 1f934c994a..0e74fde7f7 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,9 +1,9 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field[type=number]{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;width:calc(100% - 36px);max-width:100px}@media (prefers-reduced-motion:reduce){.components-angle-picker-control__input-field[type=number]{transition-duration:0s}}@media (min-width:600px){.components-angle-picker-control__input-field[type=number]{font-size:13px;line-height:normal}}.components-angle-picker-control__input-field[type=number]: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}.components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:left;margin-right:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;left:0;right:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{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)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-destructive{color:#b52727}.components-button.is-destructive.is-secondary{box-shadow:inset 0 0 0 1px #b52727}.components-button.is-destructive:active:not(:disabled),.components-button.is-destructive:hover:not(:disabled){color:#a02222;box-shadow:inset 0 0 0 1px #a02222}.components-button.is-destructive:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a02222}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{color:#555d66;position:relative}.components-combobox-control__label{display:block;margin-bottom:5px}.components-combobox-control__button{border:1px solid #7e8993;border-radius:4px;color:#555d66;display:inline-block;min-height:30px;min-width:130px;position:relative;text-align:left}.components-combobox-control__button:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-combobox-control__button-input{border:none;height:calc(100% - 2px);left:1px;padding:0 4px;position:absolute;top:1px;width:calc(100% - 2px)}.components-combobox-control__button-button:hover{box-shadow:none!important}.components-combobox-control__button-icon{height:100%;padding:0 4px;position:absolute;right:0;top:0}.components-combobox-control__menu{background:#fff;min-width:100%;padding:0;position:absolute;z-index:1000000}.components-combobox-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px}.components-combobox-control__item.is-highlighted{background:#ddd}.components-combobox-control__item-icon{margin-left:-20px;margin-right:0}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:8px;padding-left:3px;padding-right:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;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)}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #7e8993;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:2px 0 0 2px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 2px 2px 0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;padding-left:40px;text-align:left}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-left:8px}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button{padding:0 12px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #ddd;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;left:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#007cba;fill:var(--wp-admin-theme-color)}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 1em 0 0}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 0 0 .2em}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ccd0d4}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;left:16px;right:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-right:8px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-right:0;margin-left:auto;padding-left:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-left:40px}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:8px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:8px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#6c7781;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #f0f0f0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px} +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){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:1px solid transparent}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{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)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px;outline:1px dotted transparent}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2;box-shadow:none}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:#007cba;color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){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}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]: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)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;margin-right:-10px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{margin-right:-16px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:16px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba,0 0 5px 0 #007cba,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color),0 0 5px 0 var(--wp-admin-theme-color),inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 2px #007cba,0 0 3px 0 #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color),0 0 3px 0 var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end;min-width:255px}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 3px;margin:0}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 2px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;padding:2px;margin:0;line-height:inherit;min-height:auto}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container: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}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-combobox-control__suggestions-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-combobox-control__suggestions-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-combobox-control__suggestions-container:focus-within{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}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{margin-top:12px;width:100%;height:36px;border-radius:36px;margin-bottom:12px;padding-left:6px;padding-right:30px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:6px;min-width:24px;width:24px;height:24px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid transparent;box-shadow:inset 0 0 0 1.5px #fff;border-radius:50%;height:24px;width:24px;padding:0;position:absolute;top:6px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e1e1e}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){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)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault: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}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:2px 0 0 2px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 2px 2px 0!important}.components-datetime__timezone{line-height:30px;margin-left:4px;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #007cba;border:2px solid var(--wp-admin-theme-color);border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-dropdown-menu__menu .components-menu-item__button.components-button .components-menu-item__info-wrapper,.components-dropdown-menu__menu .components-menu-item__button .components-menu-item__info-wrapper{max-width:calc(100% - 32px)}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{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;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number: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}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container: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}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{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}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#757575;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#007cba;background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;left:16px;right:16px;top:5%;margin:0 auto}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #007cba;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#007cba;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{margin-right:-2px;margin-left:auto;display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-right:0;margin-left:auto;padding-left:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #ddd;background:#fff;box-shadow:0 3px 30px rgba(0,0,0,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{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;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]: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}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px} /*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5} -/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-right:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}} +/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;margin-top:0;margin-right:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]: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)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#ddd}.components-resizable-box__corner-handle,.components-resizable-box__handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;left:0;border-left:0;border-right:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}} /*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px} -/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar: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)}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input: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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-left:8px;padding-right:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar: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)}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#949494;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;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){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]: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}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;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){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input: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}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#757575}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-left:8px;padding-right:8px;min-width:48px;justify-content:center}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#ddd;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css index a9a6ed695c..f577a590a6 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.css +++ b/wp-includes/css/dist/edit-post/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -264,16 +259,16 @@ body.is-fullscreen-mode .interface-interface-skeleton { @media (min-width: 782px) { .interface-interface-skeleton__sidebar { overflow: auto; - border-right: 1px solid #f0f0f0; } } + border-right: 1px solid #e0e0e0; } } @media (min-width: 782px) { .interface-interface-skeleton__left-sidebar { - border-left: 1px solid #f0f0f0; } } + border-left: 1px solid #e0e0e0; } } .interface-interface-skeleton__header { flex-shrink: 0; height: auto; - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid #e0e0e0; z-index: 30; color: #1e1e1e; position: -webkit-sticky; @@ -287,12 +282,20 @@ body.is-fullscreen-mode .interface-interface-skeleton { .interface-interface-skeleton__footer { height: auto; flex-shrink: 0; - border-top: 1px solid #f0f0f0; + border-top: 1px solid #e0e0e0; color: #1e1e1e; display: none; } @media (min-width: 782px) { .interface-interface-skeleton__footer { - display: block; } } + display: flex; } } + .interface-interface-skeleton__footer .block-editor-block-breadcrumb { + z-index: 30; + display: flex; + background: #fff; + height: 24px; + align-items: center; + font-size: 13px; + padding: 0 18px; } .interface-interface-skeleton__actions { z-index: 100000; @@ -356,32 +359,21 @@ body.is-fullscreen-mode .interface-interface-skeleton { /** * Buttons in the Toolbar */ -.edit-post-header__settings .components-button.editor-post-save-draft, .edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.editor-post-switch-to-draft, -.edit-post-header__settings .components-button.editor-post-preview, -.edit-post-header__settings .components-button.block-editor-post-preview__dropdown { - padding: 0 6px; +.edit-post-header__settings .components-button.components-button { margin-left: 4px; } @media (min-width: 600px) { - .edit-post-header__settings .components-button.editor-post-save-draft, .edit-post-header__settings .editor-post-saved-state, - .edit-post-header__settings .components-button.editor-post-switch-to-draft, - .edit-post-header__settings .components-button.editor-post-preview, - .edit-post-header__settings .components-button.block-editor-post-preview__dropdown { + .edit-post-header__settings .components-button.components-button { margin-left: 12px; } } -.edit-post-header__settings .components-button.block-editor-post-preview__dropdown, -.edit-post-header__settings .components-button.editor-post-publish-button, -.edit-post-header__settings .components-button.editor-post-publish-panel__toggle { - padding: 0 6px; - margin-left: 4px; } - @media (min-width: 600px) { - .edit-post-header__settings .components-button.block-editor-post-preview__dropdown, - .edit-post-header__settings .components-button.editor-post-publish-button, - .edit-post-header__settings .components-button.editor-post-publish-panel__toggle { - padding: 0 12px; - margin-left: 12px; } } +.edit-post-header__settings .editor-post-saved-state, +.edit-post-header__settings .components-button.is-tertiary { + padding: 0 6px; } + +.edit-post-header__settings .edit-post-more-menu .components-button, +.edit-post-header__settings .interface-pinned-items .components-button { + margin-left: 0; } .edit-post-header-preview__grouping-external { display: flex; @@ -395,11 +387,147 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: flex; justify-content: flex-start; } .edit-post-header-preview__button-external svg { - margin-left: 8px; } + margin-right: auto; } .edit-post-post-preview-dropdown .components-popover__content > div { padding-bottom: 0; } +.show-icon-labels.interface-pinned-items .components-button.has-icon, +.show-icon-labels .edit-post-header .components-button.has-icon, +.edit-post-header__dropdown .components-button.has-icon { + width: auto; } + .show-icon-labels.interface-pinned-items .components-button.has-icon svg, + .show-icon-labels .edit-post-header .components-button.has-icon svg, + .edit-post-header__dropdown .components-button.has-icon svg { + display: none; } + .show-icon-labels.interface-pinned-items .components-button.has-icon::after, + .show-icon-labels .edit-post-header .components-button.has-icon::after, + .edit-post-header__dropdown .components-button.has-icon::after { + content: attr(aria-label); } + .show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled="true"], + .show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled="true"], + .edit-post-header__dropdown .components-button.has-icon[aria-disabled="true"] { + background-color: transparent; } + +.show-icon-labels.interface-pinned-items .is-tertiary:active, +.show-icon-labels .edit-post-header .is-tertiary:active, +.edit-post-header__dropdown .is-tertiary:active { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + background-color: transparent; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg, +.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg, +.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg, +.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg, +.edit-post-header__dropdown .components-button.has-icon.button-toggle svg { + display: block; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon::after, +.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle::after, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon::after, +.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle::after, +.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon::after, +.edit-post-header__dropdown .components-button.has-icon.button-toggle::after { + content: none; } + +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon { + width: 60px; } + +.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon, +.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon, +.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon { + display: block; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.show-icon-labels .edit-post-header .interface-pinned-items .components-button, +.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.edit-post-header__dropdown .interface-pinned-items .components-button { + padding-right: 8px; + padding-left: 8px; } + @media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .show-icon-labels.interface-pinned-items .interface-pinned-items .components-button, + .show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .show-icon-labels .edit-post-header .interface-pinned-items .components-button, + .edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .edit-post-header__dropdown .interface-pinned-items .components-button { + padding-right: 12px; + padding-left: 12px; } } + +.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle, +.show-icon-labels .edit-post-header .components-dropdown-menu__toggle, +.edit-post-header__dropdown .components-dropdown-menu__toggle { + margin-right: 8px; + padding-right: 8px; + padding-left: 8px; } + @media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle, + .show-icon-labels .edit-post-header .components-dropdown-menu__toggle, + .edit-post-header__dropdown .components-dropdown-menu__toggle { + margin-right: 12px; + padding-right: 12px; + padding-left: 12px; } } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after, +.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after { + content: none; } + +.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after, +.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after, +.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after { + content: none; } + +@media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after, + .show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after, + .edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after { + content: attr(aria-label); } } + +.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button, +.edit-post-header__dropdown .components-button.editor-history__undo, +.edit-post-header__dropdown .components-button.editor-history__redo, +.edit-post-header__dropdown .table-of-contents .components-button, +.edit-post-header__dropdown .components-button.block-editor-block-navigation { + margin: 0; + padding: 6px 40px 6px 6px; + width: 14.625rem; + text-align: right; + justify-content: flex-start; } + +.show-icon-labels.interface-pinned-items { + padding: 6px 12px 12px; + margin-top: 0; + margin-bottom: 0; + margin-right: -12px; + margin-left: -12px; + border-bottom: 1px solid #ccc; + display: block; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon { + margin: 0; + padding: 6px 8px 6px 6px; + width: 14.625rem; + justify-content: flex-start; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon[aria-expanded="true"] svg { + display: block; + max-width: 24px; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon[aria-expanded="false"] { + padding-right: 40px; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon svg { + margin-left: 8px; } + .edit-post-fullscreen-mode-close.has-icon { display: none; } @media (min-width: 782px) { @@ -421,6 +549,9 @@ body.is-fullscreen-mode .interface-interface-skeleton { box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; } } +.edit-post-fullscreen-mode-close_site-icon { + width: 36px; } + .edit-post-header-toolbar { display: inline-flex; align-items: center; @@ -497,6 +628,23 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: 32px; padding: 0; } +@media (min-width: 1280px) { + .show-icon-labels .edit-post-header-toolbar__block-toolbar { + position: absolute; + top: 61px; + right: 0; + left: 0; + border-bottom: 1px solid #ddd; + padding: 0; + background-color: #fff; } + .show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, + .show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { + height: auto; + padding: 0; } } + +.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle { + height: 36px; } + .edit-post-more-menu { margin-right: -4px; } .edit-post-more-menu .components-button { @@ -509,7 +657,7 @@ body.is-fullscreen-mode .interface-interface-skeleton { padding: 0 4px; } } .edit-post-more-menu__content .components-popover__content { - min-width: 260px; } + min-width: 280px; } @media (min-width: 480px) { .edit-post-more-menu__content .components-popover__content { width: auto; @@ -650,7 +798,8 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { transform: translateX(0%); } } .interface-interface-skeleton__sidebar > div { - height: 100%; } + height: 100%; + padding-bottom: 48px; } .edit-post-layout .editor-post-publish-panel__header-publish-button { justify-content: center; } @@ -692,20 +841,8 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { top: auto; bottom: 0; } -.edit-post-layout__footer { - display: none; - z-index: 30; } - @media (min-width: 782px) { - .edit-post-layout__footer { - display: flex; - background: #fff; - height: 24px; - align-items: center; - font-size: 13px; - padding: 0 18px; } } - .edit-post-layout .interface-interface-skeleton__content { - background-color: #ccd0d4; } + background-color: #ccc; } .edit-post-layout__inserter-panel-popover-wrapper, .edit-post-layout__inserter-panel-popover-wrapper > div, @@ -819,7 +956,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { padding: 0.6rem 10px 0.6rem 0; } .edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon { margin-left: 10px; - fill: #555d66; } + fill: #1e1e1e; } .edit-post-manage-blocks-modal__results { height: 100%; @@ -855,7 +992,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area #poststuff .stuffbox > h3, .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */ - border-bottom: 1px solid #ddd; box-sizing: border-box; color: inherit; font-weight: 600; @@ -892,10 +1028,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area .is-hidden { display: none; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"] { - border: 1px solid #6c7781; } + border: 1px solid #757575; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"]:checked { background: #fff; - border-color: #6c7781; } + border-color: #757575; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"]::before { margin: -3px -4px; } @@ -995,7 +1131,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { margin-right: 20px; } .edit-post-post-visibility__dialog-info { - color: #7e8993; + color: #757575; padding-right: 20px; font-style: italic; margin: 4px 0 0; @@ -1055,14 +1191,17 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { font-size: 2.5em; font-weight: normal; } .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { - border: 1px solid #ccc; + border: 1px solid #949494; margin-bottom: -1px; padding: 16px; } @media (min-width: 600px) { .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { padding: 24px; } } .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus { - border: 1px solid #1e1e1e; } + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } @media (min-width: 600px) { .edit-post-text-editor .wp-block.editor-post-title { padding: 0; } } diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css index eb396e50a4..056932eba1 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.min.css +++ b/wp-includes/css/dist/edit-post/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}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-right:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-right:1px solid #f0f0f0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-left:1px solid #f0f0f0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #f0f0f0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #f0f0f0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:block}}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-right:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-right:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:16px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 6px;margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{margin-left:12px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle{padding:0 6px;margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle{padding:0 12px;margin-left:12px}}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-right:8px;margin-left:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-left:8px}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-right:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:281px;border-right:1px solid #ddd;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccd0d4}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #ddd;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #ccc;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border:1px solid #1e1e1e}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-right:auto;margin-left:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;right:0;left:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 0 0 auto;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ 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}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-right:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-right:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-right:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-right:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-left:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-left:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-right:8px;margin-left:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:8px;padding-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-right:12px;padding-right:12px;padding-left:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 40px 6px 6px;width:14.625rem;text-align:right;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 8px 6px 6px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-right:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle{height:36px}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:281px;border-right:1px solid #ddd;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-right:auto;margin-left:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;right:0;left:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 0 0 auto;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style.css b/wp-includes/css/dist/edit-post/style.css index 1533be3391..3a77ef0f26 100644 --- a/wp-includes/css/dist/edit-post/style.css +++ b/wp-includes/css/dist/edit-post/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -264,16 +259,16 @@ body.is-fullscreen-mode .interface-interface-skeleton { @media (min-width: 782px) { .interface-interface-skeleton__sidebar { overflow: auto; - border-left: 1px solid #f0f0f0; } } + border-left: 1px solid #e0e0e0; } } @media (min-width: 782px) { .interface-interface-skeleton__left-sidebar { - border-right: 1px solid #f0f0f0; } } + border-right: 1px solid #e0e0e0; } } .interface-interface-skeleton__header { flex-shrink: 0; height: auto; - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid #e0e0e0; z-index: 30; color: #1e1e1e; position: -webkit-sticky; @@ -287,12 +282,20 @@ body.is-fullscreen-mode .interface-interface-skeleton { .interface-interface-skeleton__footer { height: auto; flex-shrink: 0; - border-top: 1px solid #f0f0f0; + border-top: 1px solid #e0e0e0; color: #1e1e1e; display: none; } @media (min-width: 782px) { .interface-interface-skeleton__footer { - display: block; } } + display: flex; } } + .interface-interface-skeleton__footer .block-editor-block-breadcrumb { + z-index: 30; + display: flex; + background: #fff; + height: 24px; + align-items: center; + font-size: 13px; + padding: 0 18px; } .interface-interface-skeleton__actions { z-index: 100000; @@ -356,32 +359,21 @@ body.is-fullscreen-mode .interface-interface-skeleton { /** * Buttons in the Toolbar */ -.edit-post-header__settings .components-button.editor-post-save-draft, .edit-post-header__settings .editor-post-saved-state, -.edit-post-header__settings .components-button.editor-post-switch-to-draft, -.edit-post-header__settings .components-button.editor-post-preview, -.edit-post-header__settings .components-button.block-editor-post-preview__dropdown { - padding: 0 6px; +.edit-post-header__settings .components-button.components-button { margin-right: 4px; } @media (min-width: 600px) { - .edit-post-header__settings .components-button.editor-post-save-draft, .edit-post-header__settings .editor-post-saved-state, - .edit-post-header__settings .components-button.editor-post-switch-to-draft, - .edit-post-header__settings .components-button.editor-post-preview, - .edit-post-header__settings .components-button.block-editor-post-preview__dropdown { + .edit-post-header__settings .components-button.components-button { margin-right: 12px; } } -.edit-post-header__settings .components-button.block-editor-post-preview__dropdown, -.edit-post-header__settings .components-button.editor-post-publish-button, -.edit-post-header__settings .components-button.editor-post-publish-panel__toggle { - padding: 0 6px; - margin-right: 4px; } - @media (min-width: 600px) { - .edit-post-header__settings .components-button.block-editor-post-preview__dropdown, - .edit-post-header__settings .components-button.editor-post-publish-button, - .edit-post-header__settings .components-button.editor-post-publish-panel__toggle { - padding: 0 12px; - margin-right: 12px; } } +.edit-post-header__settings .editor-post-saved-state, +.edit-post-header__settings .components-button.is-tertiary { + padding: 0 6px; } + +.edit-post-header__settings .edit-post-more-menu .components-button, +.edit-post-header__settings .interface-pinned-items .components-button { + margin-right: 0; } .edit-post-header-preview__grouping-external { display: flex; @@ -395,11 +387,147 @@ body.is-fullscreen-mode .interface-interface-skeleton { display: flex; justify-content: flex-start; } .edit-post-header-preview__button-external svg { - margin-right: 8px; } + margin-left: auto; } .edit-post-post-preview-dropdown .components-popover__content > div { padding-bottom: 0; } +.show-icon-labels.interface-pinned-items .components-button.has-icon, +.show-icon-labels .edit-post-header .components-button.has-icon, +.edit-post-header__dropdown .components-button.has-icon { + width: auto; } + .show-icon-labels.interface-pinned-items .components-button.has-icon svg, + .show-icon-labels .edit-post-header .components-button.has-icon svg, + .edit-post-header__dropdown .components-button.has-icon svg { + display: none; } + .show-icon-labels.interface-pinned-items .components-button.has-icon::after, + .show-icon-labels .edit-post-header .components-button.has-icon::after, + .edit-post-header__dropdown .components-button.has-icon::after { + content: attr(aria-label); } + .show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled="true"], + .show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled="true"], + .edit-post-header__dropdown .components-button.has-icon[aria-disabled="true"] { + background-color: transparent; } + +.show-icon-labels.interface-pinned-items .is-tertiary:active, +.show-icon-labels .edit-post-header .is-tertiary:active, +.edit-post-header__dropdown .is-tertiary:active { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + background-color: transparent; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg, +.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg, +.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg, +.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg, +.edit-post-header__dropdown .components-button.has-icon.button-toggle svg { + display: block; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon::after, +.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle::after, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon::after, +.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle::after, +.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon::after, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon::after, +.edit-post-header__dropdown .components-button.has-icon.button-toggle::after { + content: none; } + +.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon, +.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon, +.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon { + width: 60px; } + +.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon, +.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon, +.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon { + display: block; } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.show-icon-labels .edit-post-header .interface-pinned-items .components-button, +.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, +.edit-post-header__dropdown .interface-pinned-items .components-button { + padding-left: 8px; + padding-right: 8px; } + @media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .show-icon-labels.interface-pinned-items .interface-pinned-items .components-button, + .show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .show-icon-labels .edit-post-header .interface-pinned-items .components-button, + .edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle, + .edit-post-header__dropdown .interface-pinned-items .components-button { + padding-left: 12px; + padding-right: 12px; } } + +.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle, +.show-icon-labels .edit-post-header .components-dropdown-menu__toggle, +.edit-post-header__dropdown .components-dropdown-menu__toggle { + margin-left: 8px; + padding-left: 8px; + padding-right: 8px; } + @media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle, + .show-icon-labels .edit-post-header .components-dropdown-menu__toggle, + .edit-post-header__dropdown .components-dropdown-menu__toggle { + margin-left: 12px; + padding-left: 12px; + padding-right: 12px; } } + +.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after, +.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after, +.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle::after { + content: none; } + +.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after, +.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after, +.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after { + content: none; } + +@media (min-width: 600px) { + .show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft::after, + .show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft::after, + .edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft::after { + content: attr(aria-label); } } + +.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button, +.edit-post-header__dropdown .components-button.editor-history__undo, +.edit-post-header__dropdown .components-button.editor-history__redo, +.edit-post-header__dropdown .table-of-contents .components-button, +.edit-post-header__dropdown .components-button.block-editor-block-navigation { + margin: 0; + padding: 6px 6px 6px 40px; + width: 14.625rem; + text-align: left; + justify-content: flex-start; } + +.show-icon-labels.interface-pinned-items { + padding: 6px 12px 12px; + margin-top: 0; + margin-bottom: 0; + margin-left: -12px; + margin-right: -12px; + border-bottom: 1px solid #ccc; + display: block; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon { + margin: 0; + padding: 6px 6px 6px 8px; + width: 14.625rem; + justify-content: flex-start; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon[aria-expanded="true"] svg { + display: block; + max-width: 24px; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon[aria-expanded="false"] { + padding-left: 40px; } + .show-icon-labels.interface-pinned-items > .components-button.has-icon svg { + margin-right: 8px; } + .edit-post-fullscreen-mode-close.has-icon { display: none; } @media (min-width: 782px) { @@ -421,6 +549,9 @@ body.is-fullscreen-mode .interface-interface-skeleton { box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; } } +.edit-post-fullscreen-mode-close_site-icon { + width: 36px; } + .edit-post-header-toolbar { display: inline-flex; align-items: center; @@ -497,6 +628,23 @@ body.is-fullscreen-mode .interface-interface-skeleton { height: 32px; padding: 0; } +@media (min-width: 1280px) { + .show-icon-labels .edit-post-header-toolbar__block-toolbar { + position: absolute; + top: 61px; + left: 0; + right: 0; + border-bottom: 1px solid #ddd; + padding: 0; + background-color: #fff; } + .show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, + .show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { + height: auto; + padding: 0; } } + +.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle { + height: 36px; } + .edit-post-more-menu { margin-left: -4px; } .edit-post-more-menu .components-button { @@ -509,7 +657,7 @@ body.is-fullscreen-mode .interface-interface-skeleton { padding: 0 4px; } } .edit-post-more-menu__content .components-popover__content { - min-width: 260px; } + min-width: 280px; } @media (min-width: 480px) { .edit-post-more-menu__content .components-popover__content { width: auto; @@ -650,7 +798,8 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { transform: translateX(0%); } } .interface-interface-skeleton__sidebar > div { - height: 100%; } + height: 100%; + padding-bottom: 48px; } .edit-post-layout .editor-post-publish-panel__header-publish-button { justify-content: center; } @@ -692,20 +841,8 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { top: auto; bottom: 0; } -.edit-post-layout__footer { - display: none; - z-index: 30; } - @media (min-width: 782px) { - .edit-post-layout__footer { - display: flex; - background: #fff; - height: 24px; - align-items: center; - font-size: 13px; - padding: 0 18px; } } - .edit-post-layout .interface-interface-skeleton__content { - background-color: #ccd0d4; } + background-color: #ccc; } .edit-post-layout__inserter-panel-popover-wrapper, .edit-post-layout__inserter-panel-popover-wrapper > div, @@ -819,7 +956,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { padding: 0.6rem 0 0.6rem 10px; } .edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon { margin-right: 10px; - fill: #555d66; } + fill: #1e1e1e; } .edit-post-manage-blocks-modal__results { height: 100%; @@ -855,7 +992,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area #poststuff .stuffbox > h3, .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */ - border-bottom: 1px solid #ddd; box-sizing: border-box; color: inherit; font-weight: 600; @@ -892,10 +1028,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { .edit-post-meta-boxes-area .is-hidden { display: none; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"] { - border: 1px solid #6c7781; } + border: 1px solid #757575; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"]:checked { background: #fff; - border-color: #6c7781; } + border-color: #757575; } .edit-post-meta-boxes-area .metabox-location-side .postbox input[type="checkbox"]::before { margin: -3px -4px; } @@ -999,7 +1135,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { margin-left: 20px; } .edit-post-post-visibility__dialog-info { - color: #7e8993; + color: #757575; padding-left: 20px; font-style: italic; margin: 4px 0 0; @@ -1059,14 +1195,17 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { font-size: 2.5em; font-weight: normal; } .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { - border: 1px solid #ccc; + border: 1px solid #949494; margin-bottom: -1px; padding: 16px; } @media (min-width: 600px) { .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { padding: 24px; } } .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus { - border: 1px solid #1e1e1e; } + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } @media (min-width: 600px) { .edit-post-text-editor .wp-block.editor-post-title { padding: 0; } } diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css index 3e6f1282f6..26a4909362 100644 --- a/wp-includes/css/dist/edit-post/style.min.css +++ b/wp-includes/css/dist/edit-post/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-left:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-left:1px solid #f0f0f0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-right:1px solid #f0f0f0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #f0f0f0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #f0f0f0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:block}}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-left:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-left:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:16px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 6px;margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{margin-right:12px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle{padding:0 6px;margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle{padding:0 12px;margin-right:12px}}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-left:8px;margin-right:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-right:8px}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-left:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccd0d4}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #ddd;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #ccc;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border:1px solid #1e1e1e}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ 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}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-left:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-left:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-left:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-left:24px}}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:16px}}.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.components-button,.edit-post-header__settings .editor-post-saved-state{margin-right:12px}}.edit-post-header__settings .components-button.is-tertiary,.edit-post-header__settings .editor-post-saved-state{padding:0 6px}.edit-post-header__settings .edit-post-more-menu .components-button,.edit-post-header__settings .interface-pinned-items .components-button{margin-right:0}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-left:8px;margin-right:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);background-color:transparent}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.edit-post-header__dropdown .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__block-toolbar .components-button.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:8px;padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .components-dropdown-menu__toggle,.show-icon-labels .edit-post-header .components-dropdown-menu__toggle,.show-icon-labels.interface-pinned-items .components-dropdown-menu__toggle{margin-left:12px;padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle:after{content:none}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:none}@media (min-width:600px){.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after{content:attr(aria-label)}}.edit-post-header__dropdown .components-button.block-editor-block-navigation,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{margin:0;padding:6px 6px 6px 40px;width:14.625rem;text-align:left;justify-content:flex-start}.show-icon-labels.interface-pinned-items{padding:6px 12px 12px;margin:0 -12px;border-bottom:1px solid #ccc;display:block}.show-icon-labels.interface-pinned-items>.components-button.has-icon{margin:0;padding:6px 6px 6px 8px;width:14.625rem;justify-content:flex-start}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-fullscreen-mode-close_site-icon{width:36px}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;background:#fff;border-bottom:1px solid #ddd}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-left:1px solid #ddd}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}@media (min-width:1280px){.show-icon-labels .edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;border-bottom:1px solid #ddd;padding:0;background-color:#fff}.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.show-icon-labels .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:auto;padding:0}}.show-icon-labels .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle{height:36px}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:280px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #ddd;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #ddd;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:281px;border-left:1px solid #ddd;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%;padding-bottom:48px}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccc}.edit-post-layout__inserter-panel-popover-wrapper,.edit-post-layout__inserter-panel-popover-wrapper>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div,.edit-post-layout__inserter-panel-popover-wrapper>div>div>div{height:100%}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:8px;border-radius:2px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #ddd;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f0f0f0}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #ddd}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#1e1e1e}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #ddd}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #ddd;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative;justify-content:left}.edit-post-post-schedule span{display:block;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%;justify-content:left}.edit-post-post-visibility span{display:block;width:45%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#757575;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #949494;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin:2em auto 32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #ddd}.edit-post-options-modal__option:last-child{border-bottom:1px solid #ddd}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-layout__inserter-panel,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-layout__inserter-panel *,.edit-post-layout__inserter-panel :after,.edit-post-layout__inserter-panel :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.css b/wp-includes/css/dist/editor/editor-styles-rtl.css index d0e2b7ffcd..87e4b33476 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -65,11 +60,6 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -:root { - --wp-admin-theme-color: #007cba; - --wp-admin-theme-color-darker-10: #006ba1; - --wp-admin-theme-color-darker-20: #005a87; } - /** * Editor Normalization Styles * diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.min.css b/wp-includes/css/dist/editor/editor-styles-rtl.min.css index 62f3e40942..9839cba9ab 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.min.css +++ b/wp-includes/css/dist/editor/editor-styles-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}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file +body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles.css b/wp-includes/css/dist/editor/editor-styles.css index 0fd21297a6..f64844e758 100644 --- a/wp-includes/css/dist/editor/editor-styles.css +++ b/wp-includes/css/dist/editor/editor-styles.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -65,11 +60,6 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -:root { - --wp-admin-theme-color: #007cba; - --wp-admin-theme-color-darker-10: #006ba1; - --wp-admin-theme-color-darker-20: #005a87; } - /** * Editor Normalization Styles * diff --git a/wp-includes/css/dist/editor/editor-styles.min.css b/wp-includes/css/dist/editor/editor-styles.min.css index faf75253d9..80f6b3e42e 100644 --- a/wp-includes/css/dist/editor/editor-styles.min.css +++ b/wp-includes/css/dist/editor/editor-styles.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file +body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css index 73b9e5da98..704a3f15cc 100644 --- a/wp-includes/css/dist/editor/style-rtl.css +++ b/wp-includes/css/dist/editor/style-rtl.css @@ -2,20 +2,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -38,6 +30,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -97,7 +92,7 @@ .editor-autocompleters__user .editor-autocompleters__user-slug { margin-right: 8px; - color: #8f98a1; + color: #757575; white-space: nowrap; text-overflow: ellipsis; overflow: none; @@ -451,7 +446,7 @@ display: none; } .post-publish-panel__postpublish .components-panel__body { - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid #e0e0e0; border-top: none; } .post-publish-panel__postpublish-buttons { @@ -542,7 +537,8 @@ width: 100%; } .edit-post-text-editor__body textarea.editor-post-text-editor { - border: 1px solid #ccc; + border: 1px solid #949494; + border-radius: 0; display: block; margin: 0; width: 100%; @@ -551,11 +547,14 @@ overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; line-height: 2.4; - border-radius: 0; min-height: 200px; + transition: border 0.1s ease-out, box-shadow 0.1s linear; padding: 16px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px !important; } + @media (prefers-reduced-motion: reduce) { + .edit-post-text-editor__body textarea.editor-post-text-editor { + transition-duration: 0s; } } @media (min-width: 600px) { .edit-post-text-editor__body textarea.editor-post-text-editor { padding: 24px; } } @@ -563,9 +562,18 @@ .edit-post-text-editor__body textarea.editor-post-text-editor { font-size: 15px !important; } } .edit-post-text-editor__body textarea.editor-post-text-editor:focus { - border: 1px solid #1e1e1e; - box-shadow: none; + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); position: relative; } + .edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder { + color: rgba(30, 30, 30, 0.62); + opacity: 1; } + .edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } .edit-post-post-visibility__dialog, .editor-post-visibility__dialog-fieldset { @@ -744,11 +752,12 @@ .editor-post-title .editor-post-title__input { border-width: 1px; } } .editor-post-title .editor-post-title__input::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); } .editor-post-title .editor-post-title__input::-moz-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); + opacity: 1; } .editor-post-title .editor-post-title__input:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); } .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; outline: 1px solid transparent; @@ -763,7 +772,7 @@ opacity: 1; } .editor-post-trash.components-button { - margin-right: -6px; } + margin-top: 4px; } .table-of-contents__popover.components-popover .components-popover__content { min-width: 380px; } @@ -796,17 +805,19 @@ .table-of-contents__counts { display: flex; flex-wrap: wrap; - margin: 0; } + margin: 0; + margin-top: -8px; } .table-of-contents__count { flex-basis: 25%; display: flex; flex-direction: column; font-size: 13px; - color: #6c7781; + color: #1e1e1e; padding-left: 8px; - margin-bottom: 0; } - .table-of-contents__count:last-child { + margin-bottom: 0; + margin-top: 8px; } + .table-of-contents__count:nth-child(4n) { padding-left: 0; } .table-of-contents__number, @@ -814,7 +825,7 @@ font-size: 21px; font-weight: 400; line-height: 30px; - color: #555d66; } + color: #1e1e1e; } .table-of-contents__title { display: block; diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css index b3d3376be7..2ad6083489 100644 --- a/wp-includes/css/dist/editor/style-rtl.min.css +++ b/wp-includes/css/dist/editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#1e1e1e;text-align:right;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;left:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;left:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;padding-left:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #f0f0f0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-left:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-right:-5.5px;padding-right:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #ccc;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;border-radius:0;min-height:200px;padding:16px;font-size:16px!important}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border:1px solid #1e1e1e;box-shadow:none;position:relative}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-left:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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;margin-right:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-right:-6px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-left:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#1e1e1e;text-align:right;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;left:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;left:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;padding-left:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-left:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-right:-5.5px;padding-right:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-left:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 8px 0 0;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 4px 0 0}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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;margin-right:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-left:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css index f3d31a41d0..0d4d88c8bd 100644 --- a/wp-includes/css/dist/editor/style.css +++ b/wp-includes/css/dist/editor/style.css @@ -2,20 +2,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -38,6 +30,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -97,7 +92,7 @@ .editor-autocompleters__user .editor-autocompleters__user-slug { margin-left: 8px; - color: #8f98a1; + color: #757575; white-space: nowrap; text-overflow: ellipsis; overflow: none; @@ -451,7 +446,7 @@ display: none; } .post-publish-panel__postpublish .components-panel__body { - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid #e0e0e0; border-top: none; } .post-publish-panel__postpublish-buttons { @@ -542,7 +537,8 @@ width: 100%; } .edit-post-text-editor__body textarea.editor-post-text-editor { - border: 1px solid #ccc; + border: 1px solid #949494; + border-radius: 0; display: block; margin: 0; width: 100%; @@ -551,11 +547,14 @@ overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; line-height: 2.4; - border-radius: 0; min-height: 200px; + transition: border 0.1s ease-out, box-shadow 0.1s linear; padding: 16px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px !important; } + @media (prefers-reduced-motion: reduce) { + .edit-post-text-editor__body textarea.editor-post-text-editor { + transition-duration: 0s; } } @media (min-width: 600px) { .edit-post-text-editor__body textarea.editor-post-text-editor { padding: 24px; } } @@ -563,9 +562,18 @@ .edit-post-text-editor__body textarea.editor-post-text-editor { font-size: 15px !important; } } .edit-post-text-editor__body textarea.editor-post-text-editor:focus { - border: 1px solid #1e1e1e; - box-shadow: none; + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); position: relative; } + .edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder { + color: rgba(30, 30, 30, 0.62); + opacity: 1; } + .edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } .edit-post-post-visibility__dialog, .editor-post-visibility__dialog-fieldset { @@ -744,11 +752,12 @@ .editor-post-title .editor-post-title__input { border-width: 1px; } } .editor-post-title .editor-post-title__input::-webkit-input-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); } .editor-post-title .editor-post-title__input::-moz-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); + opacity: 1; } .editor-post-title .editor-post-title__input:-ms-input-placeholder { - color: rgba(30, 30, 30, 0.55); } + color: rgba(30, 30, 30, 0.62); } .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; outline: 1px solid transparent; @@ -763,7 +772,7 @@ opacity: 1; } .editor-post-trash.components-button { - margin-left: -6px; } + margin-top: 4px; } .table-of-contents__popover.components-popover .components-popover__content { min-width: 380px; } @@ -796,17 +805,19 @@ .table-of-contents__counts { display: flex; flex-wrap: wrap; - margin: 0; } + margin: 0; + margin-top: -8px; } .table-of-contents__count { flex-basis: 25%; display: flex; flex-direction: column; font-size: 13px; - color: #6c7781; + color: #1e1e1e; padding-right: 8px; - margin-bottom: 0; } - .table-of-contents__count:last-child { + margin-bottom: 0; + margin-top: 8px; } + .table-of-contents__count:nth-child(4n) { padding-right: 0; } .table-of-contents__number, @@ -814,7 +825,7 @@ font-size: 21px; font-weight: 400; line-height: 30px; - color: #555d66; } + color: #1e1e1e; } .table-of-contents__title { display: block; diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css index 730a6ac45a..5d7f5986fa 100644 --- a/wp-includes/css/dist/editor/style.min.css +++ b/wp-includes/css/dist/editor/style.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;right:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;right:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #f0f0f0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-5.5px;padding-left:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #ccc;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;border-radius:0;min-height:200px;padding:16px;font-size:16px!important}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border:1px solid #1e1e1e;box-shadow:none;position:relative}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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;margin-left:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.55)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-left:-6px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-right:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#757575;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#007cba;color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#1e1e1e;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;color:#1e1e1e;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;right:0;color:#1e1e1e}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#1e1e1e}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #ddd}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;right:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #ddd;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(0,0,0,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #007cba;box-shadow:0 0 0 0 var(--wp-admin-theme-color)}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #007cba;box-shadow:0 0 0 4px var(--wp-admin-theme-color)}.editor-post-featured-image__toggle{border-radius:2px;background-color:#f0f0f0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;padding-right:16px;height:61px;border-bottom:1px solid #ddd;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button{width:100%;justify-content:center}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex-grow:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#ddd;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;margin-left:-5.5px;padding-left:5.5px;margin-top:-5.5px;padding-top:5.5px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;min-height:200px;transition:border .1s ease-out,box-shadow .1s linear;padding:16px;font-size:16px!important}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{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;font-size:16px;line-height:normal;border:1px solid #1e1e1e;margin-right:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]: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)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:7px;height:7px;margin:8px 0 0 8px;background-color:#fff;border:3px solid #fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:4px 0 0 4px}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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;margin-left:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[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}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700;line-height:1.4}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{margin-top:4px}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#1e1e1e;padding-right:8px;margin-bottom:0;margin-top:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#1e1e1e}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style-rtl.css b/wp-includes/css/dist/format-library/style-rtl.css index 9dbaa3722a..a19c7e3a33 100644 --- a/wp-includes/css/dist/format-library/style-rtl.css +++ b/wp-includes/css/dist/format-library/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -104,7 +99,7 @@ min-width: 150px; max-width: 500px; } .block-editor-format-toolbar__link-container-value.has-invalid-link { - color: #d94f4f; } + color: #cc1818; } .components-inline-color__indicator { position: absolute; diff --git a/wp-includes/css/dist/format-library/style-rtl.min.css b/wp-includes/css/dist/format-library/style-rtl.min.css index e34757421a..8a517bbe35 100644 --- a/wp-includes/css/dist/format-library/style-rtl.min.css +++ b/wp-includes/css/dist/format-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}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-left:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;right:8px} \ 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}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-left:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;right:8px} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style.css b/wp-includes/css/dist/format-library/style.css index 68f47400d0..98beda248e 100644 --- a/wp-includes/css/dist/format-library/style.css +++ b/wp-includes/css/dist/format-library/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ @@ -104,7 +99,7 @@ min-width: 150px; max-width: 500px; } .block-editor-format-toolbar__link-container-value.has-invalid-link { - color: #d94f4f; } + color: #cc1818; } .components-inline-color__indicator { position: absolute; diff --git a/wp-includes/css/dist/format-library/style.min.css b/wp-includes/css/dist/format-library/style.min.css index 36fa8a8401..cf889a9571 100644 --- a/wp-includes/css/dist/format-library/style.min.css +++ b/wp-includes/css/dist/format-library/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-right:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;left:8px} \ 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}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-right:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;left:8px} \ No newline at end of file diff --git a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css index 47668d7203..1b7dc111b6 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css +++ b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ diff --git a/wp-includes/css/dist/list-reusable-blocks/style.css b/wp-includes/css/dist/list-reusable-blocks/style.css index c65afd7a7c..82ee1b4f37 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style.css +++ b/wp-includes/css/dist/list-reusable-blocks/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ diff --git a/wp-includes/css/dist/nux/style-rtl.css b/wp-includes/css/dist/nux/style-rtl.css index fa015dd753..0e131e22a6 100644 --- a/wp-includes/css/dist/nux/style-rtl.css +++ b/wp-includes/css/dist/nux/style-rtl.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ diff --git a/wp-includes/css/dist/nux/style.css b/wp-includes/css/dist/nux/style.css index e210a67ef3..8f94b3f9eb 100644 --- a/wp-includes/css/dist/nux/style.css +++ b/wp-includes/css/dist/nux/style.css @@ -1,20 +1,12 @@ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Breakpoints & Media Queries */ /** * Colors */ -/** - * Deprecated colors. - * Please avoid using these. - */ /** * Fonts & basic variables. */ @@ -37,6 +29,9 @@ /** * Border radii. */ +/** + * Block paddings. + */ /** * Breakpoint mixins */ diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index 73e3d65c2b..e11b3b6e5d 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 = 460); +/******/ return __webpack_require__(__webpack_require__.s = 473); /******/ }) /************************************************************************/ /******/ ({ @@ -94,14 +94,14 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /***/ }), -/***/ 260: +/***/ 273: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["domReady"]; }()); /***/ }), -/***/ 460: +/***/ 473: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; }); // EXTERNAL MODULE: external {"this":["wp","domReady"]} -var external_this_wp_domReady_ = __webpack_require__(260); +var external_this_wp_domReady_ = __webpack_require__(273); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); // EXTERNAL MODULE: external {"this":["wp","i18n"]} diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index 0c487a3e63..45ebc51ea1 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=460)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},260:function(t,e){!function(){t.exports=this.wp.domReady}()},460: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(260),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=473)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},273:function(t,e){!function(){t.exports=this.wp.domReady}()},473: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(273),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 ee05c3785d..8e50ab2899 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 = 449); +/******/ return __webpack_require__(__webpack_require__.s = 462); /******/ }) /************************************************************************/ /******/ ({ @@ -94,12 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /***/ }), -/***/ 15: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -131,7 +131,7 @@ function _objectWithoutProperties(source, excluded) { __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(26); +var arrayLikeToArray = __webpack_require__(27); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -139,10 +139,10 @@ 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__(35); +var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -173,7 +173,7 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 26: +/***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -190,12 +190,12 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 29: +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); function _unsupportedIterableToArray(o, minLen) { if (!o) return; @@ -208,14 +208,14 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 32: +/***/ 33: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); /***/ }), -/***/ 35: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -236,28 +236,6 @@ function _iterableToArray(iter) { /***/ 41: /***/ (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; -} - -/***/ }), - -/***/ 42: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; @@ -537,7 +515,29 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 449: +/***/ 42: +/***/ (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; +} + +/***/ }), + +/***/ 462: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -642,7 +642,7 @@ function reducer_annotations() { } var previousAnnotationsForBlock = (_state$blockClientId = state === null || state === void 0 ? void 0 : state[blockClientId]) !== null && _state$blockClientId !== void 0 ? _state$blockClientId : []; - return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, blockClientId, [].concat(Object(toConsumableArray["a" /* default */])(previousAnnotationsForBlock), [newAnnotation]))); + return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, blockClientId, [].concat(Object(toConsumableArray["a" /* default */])(previousAnnotationsForBlock), [newAnnotation]))); case 'ANNOTATION_REMOVE': return Object(external_this_lodash_["mapValues"])(state, function (annotationsForBlock) { @@ -657,7 +657,7 @@ function reducer_annotations() { var newAnnotations = annotationsForBlock.map(function (annotation) { if (annotation.id === action.annotationId) { hasChangedRange = true; - return _objectSpread({}, annotation, { + return _objectSpread(_objectSpread({}, annotation), {}, { range: { start: action.start, end: action.end @@ -683,10 +683,10 @@ function reducer_annotations() { /* harmony default export */ var reducer = (reducer_annotations); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(42); +var rememo = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js @@ -759,7 +759,7 @@ var __experimentalGetAnnotationsForRichText = Object(rememo["a" /* default */])( var range = annotation.range, other = Object(objectWithoutProperties["a" /* default */])(annotation, ["range"]); - return selectors_objectSpread({}, range, {}, other); + return selectors_objectSpread(selectors_objectSpread({}, range), other); }); }, function (state, blockClientId) { var _state$blockClientId5; @@ -1170,7 +1170,7 @@ var format_name = annotation_annotation.name, Object(external_this_wp_richText_["registerFormatType"])(format_name, settings); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); +var external_this_wp_hooks_ = __webpack_require__(33); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js /** diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 45432c62d5..839945999d 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=449)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(41);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}},18:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(26);var o=e(35),a=e(29);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}()},26: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}))},42:function(t,n,e){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,n,e){var r;if(t.length!==n.length)return!1;for(r=e;r0&&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({},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({},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(15),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}var y=[],m=Object(b.a)((function(t,n){var e;return(null!==(e=null==t?void 0:t[n])&&void 0!==e?e:[]).filter((function(t){return"block"===t.selector}))}),(function(t,n){var e;return[null!==(e=null==t?void 0:t[n])&&void 0!==e?e:y]}));function g(t,n){var e;return null!==(e=null==t?void 0:t[n])&&void 0!==e?e:y}var h=Object(b.a)((function(t,n,e){var r;return(null!==(r=null==t?void 0:t[n])&&void 0!==r?r:[]).filter((function(t){return"range"===t.selector&&e===t.richTextIdentifier})).map((function(t){return function(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(k.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})}}},M=C.name,V=Object(v.a)(C,["name"]);Object(k.registerFormatType)(M,V);var F=e(32);Object(F.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=462)}({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(42);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}},18: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}))},462: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(18),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(41);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 1abd04b103..68a0b6b0d7 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 = 452); +/******/ return __webpack_require__(__webpack_require__.s = 465); /******/ }) /************************************************************************/ /******/ ({ @@ -94,12 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /***/ }), -/***/ 15: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -158,7 +158,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 452: +/***/ 465: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -169,7 +169,7 @@ __webpack_require__.r(__webpack_exports__); var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); @@ -188,13 +188,13 @@ function createNonceMiddleware(nonce) { // thereof) was specified, no need to add a nonce header. for (var headerName in headers) { - if (headerName.toLowerCase() === 'x-wp-nonce') { + if (headerName.toLowerCase() === 'x-wp-nonce' && headers[headerName] === middleware.nonce) { return next(options); } } - return next(_objectSpread({}, options, { - headers: _objectSpread({}, headers, { + return next(_objectSpread(_objectSpread({}, options), {}, { + headers: _objectSpread(_objectSpread({}, headers), {}, { 'X-WP-Nonce': middleware.nonce }) })); @@ -230,7 +230,7 @@ var namespaceAndEndpointMiddleware = function namespaceAndEndpointMiddleware(opt delete options.namespace; delete options.endpoint; - return next(namespace_endpoint_objectSpread({}, options, { + return next(namespace_endpoint_objectSpread(namespace_endpoint_objectSpread({}, options), {}, { path: path })); }; @@ -273,7 +273,7 @@ var root_url_createRootURLMiddleware = function createRootURLMiddleware(rootURL) url = apiRoot + path; } - return next(root_url_objectSpread({}, optionsWithPath, { + return next(root_url_objectSpread(root_url_objectSpread({}, optionsWithPath), {}, { url: url })); }); @@ -329,8 +329,15 @@ function createPreloadingMiddleware(preloadedData) { var method = options.method || 'GET'; var path = getStablePath(options.path); - if (parse && 'GET' === method && cache[path]) { - return Promise.resolve(cache[path].body); + if ('GET' === method && cache[path]) { + var cacheData = cache[path]; // Unsetting the cache key ensures that the data is only preloaded a single time + + delete cache[path]; + return Promise.resolve(parse ? cacheData.body : new window.Response(JSON.stringify(cacheData.body), { + status: 200, + statusText: 'OK', + headers: cacheData.headers + })); } else if ('OPTIONS' === method && cache[method] && cache[method][path]) { return Promise.resolve(cache[method][path]); } @@ -347,7 +354,7 @@ var external_this_regeneratorRuntime_ = __webpack_require__(24); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(50); +var asyncToGenerator = __webpack_require__(47); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(31); @@ -377,7 +384,7 @@ var fetch_all_middleware_modifyQuery = function modifyQuery(_ref, queryArgs) { url = _ref.url, options = Object(objectWithoutProperties["a" /* default */])(_ref, ["path", "url"]); - return fetch_all_middleware_objectSpread({}, options, { + return fetch_all_middleware_objectSpread(fetch_all_middleware_objectSpread({}, options), {}, { url: url && Object(external_this_wp_url_["addQueryArgs"])(url, queryArgs), path: path && Object(external_this_wp_url_["addQueryArgs"])(path, queryArgs) }); @@ -439,9 +446,9 @@ var fetchAllMiddleware = /*#__PURE__*/function () { case 4: _context.next = 6; - return build_module(fetch_all_middleware_objectSpread({}, fetch_all_middleware_modifyQuery(options, { + return build_module(fetch_all_middleware_objectSpread(fetch_all_middleware_objectSpread({}, fetch_all_middleware_modifyQuery(options, { per_page: 100 - }), { + })), {}, { // Ensure headers are returned for page 1. parse: false })); @@ -482,7 +489,7 @@ var fetchAllMiddleware = /*#__PURE__*/function () { } _context.next = 19; - return build_module(fetch_all_middleware_objectSpread({}, options, { + return build_module(fetch_all_middleware_objectSpread(fetch_all_middleware_objectSpread({}, options), {}, { // Ensure the URL for the next page is used instead of any provided path. path: undefined, url: nextPage, @@ -561,8 +568,8 @@ function httpV1Middleware(options, next) { method = _options$method === void 0 ? DEFAULT_METHOD : _options$method; if (OVERRIDE_METHODS.has(method.toUpperCase())) { - options = http_v1_objectSpread({}, options, { - headers: http_v1_objectSpread({}, options.headers, { + options = http_v1_objectSpread(http_v1_objectSpread({}, options), {}, { + headers: http_v1_objectSpread(http_v1_objectSpread({}, options.headers), {}, { 'X-HTTP-Method-Override': method, 'Content-Type': 'application/json' }), @@ -570,7 +577,7 @@ function httpV1Middleware(options, next) { }); } - return next(options, next); + return next(options); } /* harmony default export */ var http_v1 = (httpV1Middleware); @@ -594,7 +601,7 @@ function userLocaleMiddleware(options, next) { }); } - return next(options, next); + return next(options); } /* harmony default export */ var user_locale = (userLocaleMiddleware); @@ -730,7 +737,7 @@ function mediaUploadMiddleware(options, next) { }); }; - return next(media_upload_objectSpread({}, options, { + return next(media_upload_objectSpread(media_upload_objectSpread({}, options), {}, { parse: false })).catch(function (response) { var attachmentId = response.headers.get('x-wp-upload-attachment-id'); @@ -830,14 +837,14 @@ var build_module_defaultFetchHandler = function defaultFetchHandler(nextOptions) var body = nextOptions.body, headers = nextOptions.headers; // Merge explicitly-provided headers with default values. - headers = build_module_objectSpread({}, DEFAULT_HEADERS, {}, headers); // The `data` property is a shorthand for sending a JSON body. + headers = build_module_objectSpread(build_module_objectSpread({}, DEFAULT_HEADERS), headers); // The `data` property is a shorthand for sending a JSON body. if (data) { body = JSON.stringify(data); headers['Content-Type'] = 'application/json'; } - var responsePromise = window.fetch(url || path, build_module_objectSpread({}, DEFAULT_OPTIONS, {}, remainingOptions, { + var responsePromise = window.fetch(url || path, build_module_objectSpread(build_module_objectSpread(build_module_objectSpread({}, DEFAULT_OPTIONS), remainingOptions), {}, { body: body, headers: headers })); @@ -871,34 +878,27 @@ function setFetchHandler(newFetchHandler) { } function apiFetch(options) { - var steps = [].concat(middlewares, [fetchHandler]); - - var createRunStep = function createRunStep(index) { + // creates a nested function chain that calls all middlewares and finally the `fetchHandler`, + // converting `middlewares = [ m1, m2, m3 ]` into: + // ``` + // opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) ); + // ``` + var enhancedHandler = middlewares.reduceRight(function (next, middleware) { return function (workingOptions) { - var step = steps[index]; - - if (index === steps.length - 1) { - return step(workingOptions); - } - - var next = createRunStep(index + 1); - return step(workingOptions, next); + return middleware(workingOptions, next); }; - }; - - return new Promise(function (resolve, reject) { - createRunStep(0)(options).then(resolve).catch(function (error) { - if (error.code !== 'rest_cookie_invalid_nonce') { - return reject(error); - } // If the nonce is invalid, refresh it and try again. + }, fetchHandler); + return enhancedHandler(options).catch(function (error) { + if (error.code !== 'rest_cookie_invalid_nonce') { + return Promise.reject(error); + } // If the nonce is invalid, refresh it and try again. - window.fetch(apiFetch.nonceEndpoint).then(checkStatus).then(function (data) { - return data.text(); - }).then(function (text) { - apiFetch.nonceMiddleware.nonce = text; - apiFetch(options).then(resolve).catch(reject); - }).catch(reject); + return window.fetch(apiFetch.nonceEndpoint).then(checkStatus).then(function (data) { + return data.text(); + }).then(function (text) { + apiFetch.nonceMiddleware.nonce = text; + return apiFetch(options); }); }); } @@ -915,29 +915,7 @@ apiFetch.mediaUploadMiddleware = media_upload; /***/ }), -/***/ 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; -} - -/***/ }), - -/***/ 50: +/***/ 47: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -978,6 +956,28 @@ function _asyncToGenerator(fn) { }; } +/***/ }), + +/***/ 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; +} + /***/ }) /******/ })["default"]; \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index fa1836cdcc..9cffd019ad 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=452)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(41);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}},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},31:function(e,t){!function(){e.exports=this.wp.url}()},41: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}))},452:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(15),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 a(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},m=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},x=function(){var e=Object(y.a)(j.a.mark((function e(t,r){var n,c,i,a,u,s;return j.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(m(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,F(g({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,g({},Object(o.a)(p,["path","url"]),{url:O&&Object(h.addQueryArgs)(O,f),path:l&&Object(h.addQueryArgs)(l,f)})),{parse:!1}));case 6:return n=e.sent,e.next=9,P(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=w(n)){e.next=15;break}return e.abrupt("return",c);case 15:a=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,F(g({},t,{path:void 0,url:i,parse:!1}));case 19:return u=e.sent,e.next=22,P(u);case 22:s=e.sent,a=a.concat(s),i=w(u),e.next=16;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();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 _(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},k=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}))},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return A(e,t)}))};function A(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return k(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function M(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 C=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e,t);var r=0;return t(function(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)})):A(n,e.parse)})).then((function(t){return T(t,e.parse)}))};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 N(e){for(var t=1;t=200&&e.status<300)return e;throw e},I=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,u=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N({},L,{},p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,N({},U,{},u,{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(H).catch((function(e){return A(e,a)})).then((function(e){return T(e,a)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function R(e){var t=[].concat(G,[I]);return new Promise((function(r,n){(function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}})(0)(e).then(r).catch((function(t){if("rest_cookie_invalid_nonce"!==t.code)return n(t);window.fetch(R.nonceEndpoint).then(H).then((function(e){return e.text()})).then((function(t){R.nonceMiddleware.nonce=t,R(e).then(r).catch(n)})).catch(n)}))}))}R.use=function(e){G.unshift(e)},R.setFetchHandler=function(e){I=e},R.createNonceMiddleware=u,R.createPreloadingMiddleware=b,R.createRootURLMiddleware=l,R.fetchAllMiddleware=x,R.mediaUploadMiddleware=C;var F=t.default=R},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}))},50:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).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 a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}r.d(t,"a",(function(){return o}))}}).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=465)}({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(42);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}},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},31:function(e,t){!function(){e.exports=this.wp.url}()},42: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}))},465: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},47: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}))},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 45627737ad..8c03a9c4e8 100644 --- a/wp-includes/js/dist/autop.js +++ b/wp-includes/js/dist/autop.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 284); +/******/ return __webpack_require__(__webpack_require__.s = 296); /******/ }) /************************************************************************/ /******/ ({ -/***/ 14: +/***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -126,7 +126,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -142,7 +142,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 26: +/***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -159,14 +159,14 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 284: +/***/ 296: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "autop", function() { return autop; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removep", function() { return removep; }); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14); +/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); /** @@ -575,12 +575,12 @@ function removep(html) { /***/ }), -/***/ 29: +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); function _unsupportedIterableToArray(o, minLen) { if (!o) return; diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js index f3ba321773..bd8f2e714b 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=284)}({14:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(38);var p=n(29),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)()}},26: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):""}},29:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(26);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=296)}({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 diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index cf8f38bf3f..ae7e955e57 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 = 285); +/******/ return __webpack_require__(__webpack_require__.s = 297); /******/ }) /************************************************************************/ /******/ ({ -/***/ 285: +/***/ 297: /***/ (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 1f90d5d496..de0b2100b1 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=285)}({285: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,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));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){i[e]&&u(e),delete i[e]}function d(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=297)}({297: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,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));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){i[e]&&u(e),delete i[e]}function d(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 87eda59889..24ca2f4940 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 = 444); +/******/ return __webpack_require__(__webpack_require__.s = 456); /******/ }) /************************************************************************/ /******/ ({ @@ -104,71 +104,25 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /***/ 10: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["blocks"]; }()); +(function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/***/ 100: +/***/ 101: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); /***/ }), -/***/ 137: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); - - - -function 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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. - -/* eslint-disable jsdoc/valid-types */ - -/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ - -/* eslint-enable jsdoc/valid-types */ - -/** - * Return an SVG icon. - * - * @param {IconProps} props icon is the SVG component to render - * size is a number specifiying the icon size in pixels - * Other props will be passed to wrapped SVG component - * - * @return {JSX.Element} Icon component - */ - -function Icon(_ref) { - var icon = _ref.icon, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 24 : _ref$size, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ - width: size, - height: size - }, props)); -} - -/* harmony default export */ __webpack_exports__["a"] = (Icon); +/***/ 11: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["blocks"]; }()); /***/ }), -/***/ 14: +/***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -207,7 +161,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -223,12 +177,12 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 15: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -249,6 +203,55 @@ function _objectWithoutProperties(source, excluded) { return target; } +/***/ }), + +/***/ 142: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); + + + +function 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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); +} + +/* harmony default export */ __webpack_exports__["a"] = (Icon); + + /***/ }), /***/ 18: @@ -260,7 +263,7 @@ function _objectWithoutProperties(source, excluded) { __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(26); +var arrayLikeToArray = __webpack_require__(27); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -268,10 +271,10 @@ 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__(35); +var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -293,6 +296,31 @@ function _toConsumableArray(arr) { (function() { module.exports = this["lodash"]; }()); +/***/ }), + +/***/ 207: +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (blockDefault); + + /***/ }), /***/ 24: @@ -302,7 +330,7 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 26: +/***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -319,20 +347,20 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 261: +/***/ 274: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["editPost"]; }()); /***/ }), -/***/ 286: +/***/ 298: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -351,13 +379,13 @@ var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 287: +/***/ 299: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -378,12 +406,19 @@ var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/***/ 29: +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); function _unsupportedIterableToArray(o, minLen) { if (!o) return; @@ -396,14 +431,21 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 3: +/***/ 32: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["components"]; }()); +(function() { module.exports = this["wp"]["dataControls"]; }()); /***/ }), -/***/ 35: +/***/ 33: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), + +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -414,13 +456,6 @@ function _iterableToArray(iter) { /***/ }), -/***/ 36: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["dataControls"]; }()); - -/***/ }), - /***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -450,7 +485,7 @@ function _nonIterableRest() { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -472,7 +507,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 444: +/***/ 45: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 456: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -505,7 +547,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__(100); +var external_this_wp_notices_ = __webpack_require__(101); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -514,7 +556,7 @@ var defineProperty = __webpack_require__(5); var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: external {"this":["wp","dataControls"]} -var external_this_wp_dataControls_ = __webpack_require__(36); +var external_this_wp_dataControls_ = __webpack_require__(32); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(18); @@ -554,12 +596,12 @@ var reducer_downloadableBlocks = function downloadableBlocks() { switch (action.type) { case 'FETCH_DOWNLOADABLE_BLOCKS': - return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.filterValue, { + return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.filterValue, { isRequesting: true })); case 'RECEIVE_DOWNLOADABLE_BLOCKS': - return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.filterValue, { + return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.filterValue, { results: action.downloadableBlocks, isRequesting: false })); @@ -585,20 +627,20 @@ var reducer_blockManagement = function blockManagement() { switch (action.type) { case 'ADD_INSTALLED_BLOCK_TYPE': - return _objectSpread({}, state, { + return _objectSpread(_objectSpread({}, state), {}, { installedBlockTypes: [].concat(Object(toConsumableArray["a" /* default */])(state.installedBlockTypes), [action.item]) }); case 'REMOVE_INSTALLED_BLOCK_TYPE': - return _objectSpread({}, state, { + return _objectSpread(_objectSpread({}, state), {}, { installedBlockTypes: state.installedBlockTypes.filter(function (blockType) { return blockType.name !== action.item.name; }) }); case 'SET_INSTALLING_BLOCK': - return _objectSpread({}, state, { - isInstalling: _objectSpread({}, state.isInstalling, Object(defineProperty["a" /* default */])({}, action.blockId, action.isInstalling)) + return _objectSpread(_objectSpread({}, state), {}, { + isInstalling: _objectSpread(_objectSpread({}, state.isInstalling), {}, Object(defineProperty["a" /* default */])({}, action.blockId, action.isInstalling)) }); } @@ -619,7 +661,7 @@ var reducer_errorNotices = function errorNotices() { switch (action.type) { case 'SET_ERROR_NOTICE': - return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.blockId, { + return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockId, { message: action.message, isFatal: action.isFatal })); @@ -682,11 +724,10 @@ function hasBlockType(blockType) { /** * Returns true if application is requesting for downloadable blocks. * - * @param {Object} state Global application state. + * @param {Object} state Global application state. * @param {string} filterValue Search string. * - * - * @return {Array} Downloadable blocks + * @return {boolean} Whether a request is in progress for the blocks list. */ function isRequestingDownloadableBlocks(state, filterValue) { @@ -697,12 +738,12 @@ function isRequestingDownloadableBlocks(state, filterValue) { return state.downloadableBlocks[filterValue].isRequesting; } /** - * Returns the available uninstalled blocks + * Returns the available uninstalled blocks. * * @param {Object} state Global application state. * @param {string} filterValue Search string. * - * @return {Array} Downloadable blocks + * @return {Array} Downloadable blocks. */ function selectors_getDownloadableBlocks(state, filterValue) { @@ -713,11 +754,12 @@ function selectors_getDownloadableBlocks(state, filterValue) { return state.downloadableBlocks[filterValue].results; } /** - * Returns the block types that have been installed on the server. + * Returns the block types that have been installed on the server in this + * session. * * @param {Object} state Global application state. * - * @return {Array} Block type items. + * @return {Array} Block type items */ function getInstalledBlockTypes(state) { @@ -736,13 +778,9 @@ var getNewBlockTypes = Object(external_this_wp_data_["createRegistrySelector"])( return function (state) { var usedBlockTree = select('core/block-editor').getBlocks(); var installedBlockTypes = getInstalledBlockTypes(state); - var newBlockTypes = []; - installedBlockTypes.forEach(function (blockType) { - if (hasBlockType(blockType, usedBlockTree)) { - newBlockTypes.push(blockType); - } + return installedBlockTypes.filter(function (blockType) { + return hasBlockType(blockType, usedBlockTree); }); - return newBlockTypes; }; }); /** @@ -758,29 +796,25 @@ var getUnusedBlockTypes = Object(external_this_wp_data_["createRegistrySelector" return function (state) { var usedBlockTree = select('core/block-editor').getBlocks(); var installedBlockTypes = getInstalledBlockTypes(state); - var newBlockTypes = []; - installedBlockTypes.forEach(function (blockType) { - if (!hasBlockType(blockType, usedBlockTree)) { - newBlockTypes.push(blockType); - } + return installedBlockTypes.filter(function (blockType) { + return !hasBlockType(blockType, usedBlockTree); }); - return newBlockTypes; }; }); /** - * Returns true if application is calling install endpoint. + * Returns true if a block plugin install is in progress. * - * @param {Object} state Global application state. + * @param {Object} state Global application state. * @param {string} blockId Id of the block. * - * @return {boolean} Whether its currently installing + * @return {boolean} Whether this block is currently being installed. */ function isInstalling(state, blockId) { return state.blockManagement.isInstalling[blockId] || false; } /** - * Returns the error notices + * Returns all block error notices. * * @param {Object} state Global application state. * @@ -811,7 +845,7 @@ var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__. var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(50); +var asyncToGenerator = __webpack_require__(47); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} var external_this_wp_apiFetch_ = __webpack_require__(45); @@ -1000,7 +1034,7 @@ function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i+ /** * Returns an action object used in signalling that the downloadable blocks - * have been requested and is loading. + * have been requested and are loading. * * @param {string} filterValue Search string. * @@ -1095,8 +1129,8 @@ function actions_installBlockType(block) { case 18: _context.next = 20; - return addInstalledBlockType(actions_objectSpread({}, block, { - links: actions_objectSpread({}, block.links, {}, links) + return addInstalledBlockType(actions_objectSpread(actions_objectSpread({}, block), {}, { + links: actions_objectSpread(actions_objectSpread({}, block.links), links) })); case 20: @@ -1208,7 +1242,8 @@ function actions_uninstallBlockType(block) { }, _marked2, null, [[0, 9]]); } /** - * Returns an action object used to add a newly installed block type. + * Returns an action object used to add a block type to the "newly installed" + * tracking list. * * @param {Object} item The block item with the block id and name. * @@ -1222,7 +1257,8 @@ function addInstalledBlockType(item) { }; } /** - * Returns an action object used to remove a newly installed block type. + * Returns an action object used to remove a block type from the "newly installed" + * tracking list. * * @param {string} item The block item with the block id and name. * @@ -1236,7 +1272,7 @@ function removeInstalledBlockType(item) { }; } /** - * Returns an action object used to indicate install in progress + * Returns an action object used to indicate install in progress. * * @param {string} blockId * @param {boolean} isInstalling @@ -1252,11 +1288,11 @@ function setIsInstalling(blockId, isInstalling) { }; } /** - * Sets an error notice string to be displayed to the user + * Sets an error notice to be displayed to the user for a given block. * - * @param {string} blockId The ID of the block plugin. eg: my-block + * @param {string} blockId The ID of the block plugin. eg: my-block * @param {string} message The message shown in the notice. - * @param {boolean} isFatal Whether the user can recover from the error + * @param {boolean} isFatal Whether the user can recover from the error. * * @return {Object} Action object. */ @@ -1271,7 +1307,7 @@ function setErrorNotice(blockId, message) { }; } /** - * Sets the error notice to empty for specific block + * Sets the error notice to empty for specific block. * * @param {string} blockId The ID of the block plugin. eg: my-block * @@ -1392,7 +1428,7 @@ var storeConfig = { reducer: reducer, selectors: selectors_namespaceObject, actions: actions_namespaceObject, - controls: store_objectSpread({}, external_this_wp_dataControls_["controls"], {}, store_controls), + controls: store_objectSpread(store_objectSpread({}, external_this_wp_dataControls_["controls"]), store_controls), resolvers: resolvers }; var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, storeConfig); @@ -1402,10 +1438,13 @@ var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, storeCon var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(76); +var external_this_wp_plugins_ = __webpack_require__(77); + +// EXTERNAL MODULE: external {"this":["wp","hooks"]} +var external_this_wp_hooks_ = __webpack_require__(33); // EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); +var external_this_wp_blocks_ = __webpack_require__(11); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/auto-block-uninstaller/index.js /** @@ -1440,13 +1479,13 @@ function AutoBlockUninstaller() { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(7); +var external_this_wp_blockEditor_ = __webpack_require__(6); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); @@ -1472,21 +1511,24 @@ function DownloadableBlockAuthorInfo(_ref) { className: "block-directory-downloadable-block-author-info__content" }, authorBlockRating > 0 ? Object(external_this_wp_i18n_["sprintf"])( /* translators: 1: number of blocks. 2: average rating. */ - Object(external_this_wp_i18n_["_n"])('This author has %1$d block, with an average rating of %2$d.', 'This author has %1$d blocks, with an average rating of %2$d.', authorBlockCount), authorBlockCount, authorBlockRating) : Object(external_this_wp_i18n_["sprintf"])( + Object(external_this_wp_i18n_["_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.', authorBlockCount), authorBlockCount, authorBlockRating) : Object(external_this_wp_i18n_["sprintf"])( /* translators: 1: number of blocks. */ Object(external_this_wp_i18n_["_n"])('This author has %1$d block.', 'This author has %1$d blocks.', authorBlockCount), authorBlockCount))); } /* harmony default export */ var downloadable_block_author_info = (DownloadableBlockAuthorInfo); +// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} +var external_this_wp_htmlEntities_ = __webpack_require__(69); + // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(137); +var build_module_icon = __webpack_require__(142); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js -var star_filled = __webpack_require__(286); +var star_filled = __webpack_require__(298); // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(6); +var external_this_wp_primitives_ = __webpack_require__(7); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-half.js @@ -1504,7 +1546,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__(287); +var star_empty = __webpack_require__(299); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js @@ -1614,6 +1656,7 @@ function DownloadableBlockIcon(_ref) { */ + /** * Internal dependencies */ @@ -1640,7 +1683,7 @@ function DownloadableBlockHeader(_ref) { className: "block-directory-downloadable-block-header__column" }, Object(external_this_wp_element_["createElement"])("h2", { className: "block-directory-downloadable-block-header__title" - }, title), Object(external_this_wp_element_["createElement"])(block_ratings, { + }, Object(external_this_wp_htmlEntities_["decodeEntities"])(title)), Object(external_this_wp_element_["createElement"])(block_ratings, { rating: rating, ratingCount: ratingCount })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { @@ -1699,20 +1742,33 @@ var update = Object(external_this_wp_element_["createElement"])(external_this_wp + function DownloadableBlockInfo(_ref) { - var description = _ref.description, - activeInstalls = _ref.activeInstalls, + var activeInstalls = _ref.activeInstalls, + description = _ref.description, humanizedUpdated = _ref.humanizedUpdated; + var activeInstallsString; + + if (activeInstalls > 1000000) { + activeInstallsString = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of active installations. */ + Object(external_this_wp_i18n_["__"])('%d+ Million active installations'), Math.floor(activeInstalls / 1000000)); + } else if (0 === activeInstalls) { + activeInstallsString = Object(external_this_wp_i18n_["__"])('Less than 10 active installations'); + } else { + activeInstallsString = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of active installations. */ + Object(external_this_wp_i18n_["__"])('%d+ active installations'), activeInstalls); + } + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { className: "block-directory-downloadable-block-info__content" - }, description), Object(external_this_wp_element_["createElement"])("div", { + }, Object(external_this_wp_htmlEntities_["decodeEntities"])(description)), Object(external_this_wp_element_["createElement"])("div", { className: "block-directory-downloadable-block-info__meta" }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { className: "block-directory-downloadable-block-info__icon", icon: chart_line - }), Object(external_this_wp_i18n_["sprintf"])( - /* translators: %s: number of active installations. */ - Object(external_this_wp_i18n_["_n"])('%d active installation', '%d active installations', activeInstalls), activeInstalls)), Object(external_this_wp_element_["createElement"])("div", { + }), activeInstallsString), Object(external_this_wp_element_["createElement"])("div", { className: "block-directory-downloadable-block-info__meta" }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { className: "block-directory-downloadable-block-info__icon", @@ -1867,6 +1923,9 @@ function DownloadableBlocksList(_ref) { var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-directory'), installBlockType = _useDispatch.installBlockType; + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/edit-post'), + setIsInserterOpened = _useDispatch2.setIsInserterOpened; + if (!items.length) { return null; } @@ -1888,6 +1947,7 @@ function DownloadableBlocksList(_ref) { installBlockType(item).then(function (success) { if (success) { onSelect(item); + setIsInserterOpened(false); } }); onHover(null); @@ -2030,7 +2090,10 @@ function InserterMenuDownloadableBlocksPanel() { /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel); // EXTERNAL MODULE: external {"this":["wp","editPost"]} -var external_this_wp_editPost_ = __webpack_require__(261); +var external_this_wp_editPost_ = __webpack_require__(274); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js +var block_default = __webpack_require__(207); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js @@ -2085,6 +2148,7 @@ function CompactList(_ref) { + /** * Internal dependencies */ @@ -2100,7 +2164,7 @@ function InstalledBlocksPrePublishPanel() { } return Object(external_this_wp_element_["createElement"])(external_this_wp_editPost_["PluginPrePublishPanel"], { - icon: "block-default", + icon: block_default["a" /* default */], title: Object(external_this_wp_i18n_["sprintf"])( // translators: %d: number of blocks (number). Object(external_this_wp_i18n_["_n"])('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length), initialOpen: true @@ -2111,6 +2175,140 @@ function InstalledBlocksPrePublishPanel() { })); } +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/install-button.js + + + +/** + * WordPress dependencies + */ + + + + +function InstallButton(_ref) { + var attributes = _ref.attributes, + block = _ref.block, + clientId = _ref.clientId; + var isInstallingBlock = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-directory').isInstalling(block.id); + }); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-directory'), + installBlockType = _useDispatch.installBlockType; + + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + replaceBlock = _useDispatch2.replaceBlock; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + onClick: function onClick() { + return installBlockType(block).then(function (success) { + if (success) { + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + + var _parse = Object(external_this_wp_blocks_["parse"])(attributes.originalContent), + _parse2 = Object(slicedToArray["a" /* default */])(_parse, 1), + originalBlock = _parse2[0]; + + if (originalBlock) { + replaceBlock(clientId, Object(external_this_wp_blocks_["createBlock"])(blockType.name, originalBlock.attributes, originalBlock.innerBlocks)); + } + } + }); + }, + disabled: isInstallingBlock, + isBusy: isInstallingBlock, + isPrimary: true + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block name */ + Object(external_this_wp_i18n_["__"])('Install %s'), block.title)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/index.js + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var get_install_missing_getInstallMissing = function getInstallMissing(OriginalComponent) { + return function (props) { + var _props$attributes = props.attributes, + originalName = _props$attributes.originalName, + originalUndelimitedContent = _props$attributes.originalUndelimitedContent; // Disable reason: This is a valid component, but it's mistaken for a callback. + // eslint-disable-next-line react-hooks/rules-of-hooks + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-directory'), + getDownloadableBlocks = _select.getDownloadableBlocks; + + var blocks = getDownloadableBlocks('block:' + originalName).filter(function (_ref) { + var name = _ref.name; + return originalName === name; + }); + return { + hasPermission: select('core').canUser('read', 'block-directory/search'), + block: blocks.length && blocks[0] + }; + }, [originalName]), + block = _useSelect.block, + hasPermission = _useSelect.hasPermission; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + replaceBlock = _useDispatch.replaceBlock; + + var convertToHTML = function convertToHTML() { + replaceBlock(props.clientId, Object(external_this_wp_blocks_["createBlock"])('core/html', { + content: originalUndelimitedContent + })); + }; + + if (!hasPermission || !block) { + return Object(external_this_wp_element_["createElement"])(OriginalComponent, props); + } + + var hasContent = !!originalUndelimitedContent; + var hasHTMLBlock = Object(external_this_wp_blocks_["getBlockType"])('core/html'); + var messageHTML = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block name */ + Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'), block.title || originalName); + var actions = [Object(external_this_wp_element_["createElement"])(InstallButton, { + key: "install", + block: block, + attributes: props.attributes, + clientId: props.clientId + })]; + + if (hasContent && hasHTMLBlock) { + messageHTML = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block name */ + Object(external_this_wp_i18n_["__"])('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.'), block.title || originalName); + actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "convert", + onClick: convertToHTML, + isLink: true + }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { + actions: actions + }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); + }; +}; + +/* harmony default export */ var get_install_missing = (get_install_missing_getInstallMissing); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/index.js @@ -2118,6 +2316,7 @@ function InstalledBlocksPrePublishPanel() { * WordPress dependencies */ + /** * Internal dependencies */ @@ -2125,11 +2324,20 @@ function InstalledBlocksPrePublishPanel() { + Object(external_this_wp_plugins_["registerPlugin"])('block-directory', { render: function render() { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(AutoBlockUninstaller, null), Object(external_this_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null), Object(external_this_wp_element_["createElement"])(InstalledBlocksPrePublishPanel, null)); } }); +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'block-directory/fallback', function (settings, name) { + if (name !== 'core/missing') { + return settings; + } + + settings.edit = get_install_missing(settings.edit); + return settings; +}); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/index.js /** @@ -2146,36 +2354,7 @@ Object(external_this_wp_plugins_["registerPlugin"])('block-directory', { /***/ }), -/***/ 45: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 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; -} - -/***/ }), - -/***/ 50: +/***/ 47: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2218,32 +2397,54 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 6: -/***/ (function(module, exports) { +/***/ 5: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["primitives"]; }()); +"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; +} /***/ }), -/***/ 7: +/***/ 6: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blockEditor"]; }()); /***/ }), -/***/ 76: +/***/ 69: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["htmlEntities"]; }()); + +/***/ }), + +/***/ 7: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + +/***/ 77: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["plugins"]; }()); -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js index 0939f8677c..704f8c29e9 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=444)}({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.blocks}()},100:function(e,t){!function(){e.exports=this.wp.notices}()},137:function(e,t,n){"use strict";var r=n(5),c=n(15),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,l=void 0===n?24:n,i=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26);var c=n(35),o=n(29);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(c.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}()},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},26: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);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},444:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return p})),n.d(r,"getDownloadableBlocks",(function(){return O})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return y})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return k})),n.d(r,"getErrorNoticeForBlock",(function(){return g}));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 z})),n.d(c,"removeInstalledBlockType",(function(){return V})),n.d(c,"setIsInstalling",(function(){return H})),n.d(c,"setErrorNotice",(function(){return K})),n.d(c,"clearErrorNotice",(function(){return U}));n(100);var o=n(5),a=n(4),l=n(36),i=n(18),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({},e,Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return 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({},e,{installedBlockTypes:[].concat(Object(i.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return b({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return b({},e,{isInstalling: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({},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(l.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 $(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 q={reducer:d,selectors:r,actions:c,controls:function(e){for(var t=1;t0?Object(E.sprintf)(Object(E._n)("This author has %1$d block, with an average rating of %2$d.","This author has %1$d blocks, with an average rating of %2$d.",n),n,r):Object(E.sprintf)(Object(E._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},re=n(137),ce=n(286),oe=n(6),ae=Object(G.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(G.createElement)(oe.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"})),le=n(287);var ie=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(G.createElement)("div",{"aria-label":Object(E.sprintf)(Object(E.__)("%s out of 5 stars"),n)},Object(s.times)(r,(function(e){return Object(G.createElement)(re.a,{key:"full_stars_".concat(e),icon:ce.a,size:16})})),Object(s.times)(c,(function(e){return Object(G.createElement)(re.a,{key:"half_stars_".concat(e),icon:ae,size:16})})),Object(s.times)(o,(function(e){return Object(G.createElement)(re.a,{key:"empty_stars_".concat(e),icon:le.a,size:16})})))},se=function(e){var t=e.rating,n=e.ratingCount;return Object(G.createElement)("div",{className:"block-directory-block-ratings"},Object(G.createElement)(ie,{rating:t}),Object(G.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(E.sprintf)(Object(E._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var ue=function(e){var t=e.icon,n=e.title;return Object(G.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(G.createElement)("img",{src:t,alt:Object(E.sprintf)(Object(E.__)("%s block icon"),n)}):Object(G.createElement)(Z.BlockIcon,{icon:t,showColors:!0}))};var be=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=void 0!==o&&o,l=e.isInstallable,i=void 0===l||l,s=e.onClick;return Object(G.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(G.createElement)(ue,{icon:t,title:n}),Object(G.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(G.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},n),Object(G.createElement)(se,{rating:r,ratingCount:c})),Object(G.createElement)(te.Button,{isSecondary:!0,isBusy:a,disabled:a||!i,onClick:function(e){e.preventDefault(),!a&&i&&s()}},a?Object(E.__)("Adding…"):Object(E.__)("Add block")))},de=Object(G.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(G.createElement)(oe.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"})),fe=Object(G.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(G.createElement)(oe.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 pe=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(G.createElement)(G.Fragment,null,Object(G.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(G.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(G.createElement)(re.a,{className:"block-directory-downloadable-block-info__icon",icon:de}),Object(E.sprintf)(Object(E._n)("%d active installation","%d active installations",n),n)),Object(G.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(G.createElement)(re.a,{className:"block-directory-downloadable-block-info__icon",icon:fe}),Object(E.sprintf)(Object(E.__)("Updated %s"),r)))},Oe=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(G.createElement)(te.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(G.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r.message),Object(G.createElement)(te.Button,{isSmall:!0,isPrimary:!0,onClick:function(){if(r.isFatal)return window.location.reload(),!1;n(t)}},r.isFatal?Object(E.__)("Reload"):Object(E.__)("Retry"))):null};function me(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,l=t.icon,i=t.title,s=t.description,u=t.rating,b=t.activeInstalls,d=t.ratingCount,f=t.author,p=t.humanizedUpdated,O=t.authorBlockCount,m=t.authorBlockRating;return Object(G.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(G.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(G.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(G.createElement)(be,{icon:l,onClick:n,title:i,rating:u,ratingCount:d,isLoading:c,isInstallable:o})),Object(G.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(G.createElement)(Oe,{onClick:n,block:t}),Object(G.createElement)(pe,{activeInstalls:b,description:s,humanizedUpdated:p})),Object(G.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(G.createElement)(ne,{author:f,authorBlockCount:O,authorBlockRating:m}))))}var je=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;return t.length?Object(G.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(G.createElement)(me,{key:e.id,onClick:function(){o(e).then((function(t){t&&c(e)})),r(null)},item:e})}))):null};var ye=Object(ee.compose)([te.withSpokenMessages,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,l=e.debouncedSpeak;return!1===c?(l(Object(E.__)("No blocks found in your library.")),Object(G.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(E.__)("No blocks found in your library."))):void 0===c||o||a?Object(G.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(G.createElement)(te.Spinner,null)):t.length?(l(Object(E.sprintf)(Object(E._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(G.createElement)(G.Fragment,null,Object(G.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(E.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(G.createElement)(je,{items:t,onSelect:n,onHover:r}))):Object(G.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(E.__)("No blocks found in your library."))}));var he=function(){var e=Object(G.useState)(""),t=Object(X.a)(e,2),n=t[0],r=t[1],c=Object(s.debounce)(r,400);return Object(G.createElement)(Z.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(G.createElement)(ye,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},ke=n(261);function ge(e){var t=e.items;return t.length?Object(G.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(G.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(G.createElement)(ue,{icon:t,title:r}),Object(G.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(G.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(G.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(E.sprintf)(Object(E.__)("By %s"),c))))}))):null}function ve(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(G.createElement)(ke.PluginPrePublishPanel,{icon:"block-default",title:Object(E.sprintf)(Object(E._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(G.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(E._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(G.createElement)(ge,{items:e})):null}Object(Y.registerPlugin)("block-directory",{render:function(){return Object(G.createElement)(G.Fragment,null,Object(G.createElement)(Q,null),Object(G.createElement)(he,null),Object(G.createElement)(ve,null))}})},45: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}))},50:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var l=e[o](a),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).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 l(e){r(a,c,o,l,i,"next",e)}function i(e){r(a,c,o,l,i,"throw",e)}l(void 0)}))}}n.d(t,"a",(function(){return c}))},6:function(e,t){!function(){e.exports=this.wp.primitives}()},7:function(e,t){!function(){e.exports=this.wp.blockEditor}()},76:function(e,t){!function(){e.exports=this.wp.plugins}()},9:function(e,t){!function(){e.exports=this.wp.compose}()}}); \ 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=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.notices}()},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(42);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}},142: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){!function(){e.exports=this.wp.apiFetch}()},456: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(101);var o=n(5),a=n(4),i=n(32),l=n(18),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)))},oe=n(69),ae=n(142),ie=n(298),le=n(7),se=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(q.createElement)(le.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"})),ue=n(299);var be=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)(ae.a,{key:"full_stars_".concat(e),icon:ie.a,size:16})})),Object(s.times)(c,(function(e){return Object(q.createElement)(ae.a,{key:"half_stars_".concat(e),icon:se,size:16})})),Object(s.times)(o,(function(e){return Object(q.createElement)(ae.a,{key:"empty_stars_".concat(e),icon:ue.a,size:16})})))},de=function(e){var t=e.rating,n=e.ratingCount;return Object(q.createElement)("div",{className:"block-directory-block-ratings"},Object(q.createElement)(be,{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 fe=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 Oe=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)(fe,{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(oe.decodeEntities)(n)),Object(q.createElement)(de,{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")))},pe=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(le.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"})),me=Object(q.createElement)(le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(le.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 je=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(oe.decodeEntities)(r)),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ae.a,{className:"block-directory-downloadable-block-info__icon",icon:pe}),t),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ae.a,{className:"block-directory-downloadable-block-info__icon",icon:me}),Object(_.sprintf)(Object(_.__)("Updated %s"),c)))},ke=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 he(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)(Oe,{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)(ke,{onClick:n,block:t}),Object(q.createElement)(je,{activeInstalls:b,description:s,humanizedUpdated:O})),Object(q.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(q.createElement)(ce,{author:f,authorBlockCount:p,authorBlockRating:m}))))}var ye=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)(he,{key:e.id,onClick:function(){o(e).then((function(t){t&&(c(e),i(!1))})),r(null)},item:e})}))):null};var ve=Object(ne.compose)([re.withSpokenMessages,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=e.debouncedSpeak;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)(ye,{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 ge=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)(ve,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},we=n(274),_e=n(207);function Ee(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)(fe,{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 Be(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(q.createElement)(we.PluginPrePublishPanel,{icon:_e.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)(Ee,{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 xe=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)(ge,null),Object(q.createElement)(Be,null))}}),Object(Q.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=xe(e.edit)),e}))},47: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}))},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}()}}); \ 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 340d13b7d4..9650e3f03b 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 = 438); +/******/ return __webpack_require__(__webpack_require__.s = 451); /******/ }) /************************************************************************/ /******/ ([ @@ -137,13 +137,13 @@ function _defineProperty(obj, key, value) { } /***/ }), -/* 6 */ +/* 6 */, +/* 7 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["primitives"]; }()); /***/ }), -/* 7 */, /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -169,18 +169,6 @@ function _extends() { /***/ }), /* 9 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blocks"]; }()); - -/***/ }), -/* 11 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -237,27 +225,19 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/* 12 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), -/* 13 */ +/* 10 */ /***/ (function(module, exports) { -(function() { module.exports = this["React"]; }()); +(function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/* 14 */ +/* 11 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blocks"]; }()); + +/***/ }), +/* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -296,7 +276,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -311,12 +291,18 @@ function _slicedToArray(arr, i) { } /***/ }), -/* 15 */ +/* 13 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), +/* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -338,20 +324,21 @@ function _objectWithoutProperties(source, excluded) { } /***/ }), -/* 16 */ +/* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; } /***/ }), -/* 17 */ +/* 16 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -467,6 +454,19 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { +/***/ }), +/* 17 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + /***/ }), /* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -477,7 +477,7 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(26); +var arrayLikeToArray = __webpack_require__(27); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -485,10 +485,10 @@ 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__(35); +var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -505,6 +505,12 @@ function _toConsumableArray(arr) { /***/ }), /* 19 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), +/* 20 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -526,7 +532,7 @@ function _createClass(Constructor, protoProps, staticProps) { } /***/ }), -/* 20 */ +/* 21 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -537,12 +543,6 @@ function _classCallCheck(instance, Constructor) { } } -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - /***/ }), /* 22 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -585,7 +585,7 @@ function _inherits(subClass, superClass) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); function _possibleConstructorReturn(self, call) { @@ -609,7 +609,8 @@ function _possibleConstructorReturn(self, call) { (function() { module.exports = this["wp"]["richText"]; }()); /***/ }), -/* 26 */ +/* 26 */, +/* 27 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -625,7 +626,6 @@ function _arrayLikeToArray(arr, len) { } /***/ }), -/* 27 */, /* 28 */ /***/ (function(module, exports, __webpack_require__) { @@ -639,17 +639,23 @@ function _arrayLikeToArray(arr, len) { if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(138)(); + module.exports = __webpack_require__(143)(); } /***/ }), /* 29 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dom"]; }()); + +/***/ }), +/* 30 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); function _unsupportedIterableToArray(o, minLen) { if (!o) return; @@ -660,12 +666,6 @@ function _unsupportedIterableToArray(o, minLen) { if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } -/***/ }), -/* 30 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["dom"]; }()); - /***/ }), /* 31 */ /***/ (function(module, exports) { @@ -673,15 +673,22 @@ function _unsupportedIterableToArray(o, minLen) { (function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/* 32 */ +/* 32 */, +/* 33 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); /***/ }), -/* 33 */, /* 34 */, /* 35 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), +/* 36 */, +/* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -690,13 +697,6 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } -/***/ }), -/* 36 */, -/* 37 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - /***/ }), /* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -743,27 +743,6 @@ function _typeof(obj) { /* 41 */ /***/ (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; -} - -/***/ }), -/* 42 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; @@ -1042,13 +1021,34 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/* 43 */, -/* 44 */ +/* 42 */ +/***/ (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; +} + +/***/ }), +/* 43 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blob"]; }()); /***/ }), +/* 44 */, /* 45 */, /* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1080,6 +1080,48 @@ function useLiveRef(value) { /* 47 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), +/* 48 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; }); /** @@ -1093,7 +1135,7 @@ function getDocument(element) { /***/ }), -/* 48 */ +/* 49 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1105,7 +1147,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding * var external_this_React_ = __webpack_require__(13); // EXTERNAL MODULE: ./node_modules/reakit-system/es/SystemContext.js -var SystemContext = __webpack_require__(74); +var SystemContext = __webpack_require__(76); // CONCATENATED MODULE: ./node_modules/reakit-system/es/useToken.js @@ -1424,7 +1466,7 @@ function createHook(options) { /***/ }), -/* 49 */ +/* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1439,7 +1481,7 @@ var external_this_React_ = __webpack_require__(13); var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(55); // EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js -var useCreateElement = __webpack_require__(78); +var useCreateElement = __webpack_require__(79); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/splitProps.js /** @@ -1565,48 +1607,6 @@ function createComponent(_ref) { -/***/ }), -/* 50 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - /***/ }), /* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1619,7 +1619,7 @@ function _asyncToGenerator(fn) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getCurrentId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return reverse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useCompositeState; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59); @@ -2464,10 +2464,16 @@ useCompositeState.__keys = keys; /* 52 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["keyboardShortcuts"]; }()); +(function() { module.exports = this["wp"]["a11y"]; }()); /***/ }), /* 53 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keyboardShortcuts"]; }()); + +/***/ }), +/* 54 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2482,12 +2488,6 @@ function isSelfTarget(event) { -/***/ }), -/* 54 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - /***/ }), /* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -2653,7 +2653,7 @@ function shallowEqual(objA, objB) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getActiveElement; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); /** @@ -3020,7 +3020,7 @@ unstable_useIdState.__keys = keys; /* 66 */ /***/ (function(module, exports, __webpack_require__) { -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2 // https://github.com/bgrins/TinyColor // Brian Grinstead, MIT License @@ -4223,9 +4223,9 @@ else {} "use strict"; /* unused harmony export Box */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useBox; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56); @@ -4300,6 +4300,12 @@ function unstable_IdProvider(_ref) { /***/ }), /* 69 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["htmlEntities"]; }()); + +/***/ }), +/* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4330,7 +4336,7 @@ function hasFocusWithin(element) { /***/ }), -/* 70 */ +/* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4365,7 +4371,7 @@ function isButton(element) { /***/ }), -/* 71 */ +/* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4663,7 +4669,7 @@ function ensureFocus(element, _temp) { /***/ }), -/* 72 */ +/* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4696,27 +4702,27 @@ function isPortalEvent(event) { /***/ }), -/* 73 */ +/* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export Tabbable */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTabbable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); -/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46); /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(59); -/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69); -/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72); +/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70); +/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(73); /* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57); -/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(71); +/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(72); @@ -4905,7 +4911,8 @@ var Tabbable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ /***/ }), -/* 74 */ +/* 75 */, +/* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4920,22 +4927,16 @@ var SystemContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["crea /***/ }), -/* 75 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["htmlEntities"]; }()); - -/***/ }), -/* 76 */, /* 77 */, -/* 78 */ +/* 78 */, +/* 79 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useCreateElement; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74); +/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76); /* harmony import */ var _rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); @@ -5002,16 +5003,55 @@ var useCreateElement = function useCreateElement(type, props, children) { /***/ }), -/* 79 */, /* 80 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Provider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useBlockEditContext; }); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); +/* 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__); +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var Context = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createContext"])({ + name: '', + isSelected: false, + focusedElement: null, + setFocusedElement: lodash__WEBPACK_IMPORTED_MODULE_0__["noop"], + clientId: null +}); +var Provider = Context.Provider; + +/** + * A hook that returns the block edit context. + * + * @return {Object} Block edit context + */ + +function useBlockEditContext() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useContext"])(Context); +} + + +/***/ }), +/* 81 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; // UNUSED EXPORTS: warning, useWarning // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js -var warning = __webpack_require__(106); +var warning = __webpack_require__(108); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -5061,12 +5101,6 @@ function useWarning(condition) { -/***/ }), -/* 81 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - /***/ }), /* 82 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5125,22 +5159,25 @@ function createOnKeyDown(_temp) { /***/ }), /* 83 */, -/* 84 */ +/* 84 */, +/* 85 */, +/* 86 */, +/* 87 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export Clickable */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useClickable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53); -/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(73); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); +/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74); @@ -5246,23 +5283,32 @@ var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 85 */, -/* 86 */, -/* 87 */, /* 88 */, -/* 89 */, -/* 90 */, +/* 89 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["viewport"]; }()); + +/***/ }), +/* 90 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["warning"]; }()); + +/***/ }), /* 91 */, /* 92 */, -/* 93 */ +/* 93 */, +/* 94 */, +/* 95 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export unstable_Id */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useId; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68); @@ -5325,12 +5371,12 @@ var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_ /***/ }), -/* 94 */ +/* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "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__(122); +/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(125); @@ -5354,7 +5400,7 @@ function fireEvent(element, type, eventInit) { /***/ }), -/* 95 */ +/* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5386,7 +5432,7 @@ function isTextField(element) { /***/ }), -/* 96 */ +/* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5399,27 +5445,216 @@ function setTextFieldValue(element, value) { /***/ }), -/* 97 */ +/* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(172); +var TextareaAutosize_1 = __webpack_require__(177); exports["default"] = TextareaAutosize_1["default"]; /***/ }), -/* 98 */, -/* 99 */, -/* 100 */ +/* 100 */, +/* 101 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); /***/ }), -/* 101 */, /* 102 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), +/* 103 */, +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5428,7 +5663,7 @@ exports["default"] = TextareaAutosize_1["default"]; __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ fireKeyboardEvent; }); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/getDocument.js -var getDocument = __webpack_require__(47); +var getDocument = __webpack_require__(48); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/getDefaultView.js @@ -5499,10 +5734,10 @@ function fireKeyboardEvent(element, type, eventInit) { /***/ }), -/* 103 */, -/* 104 */, /* 105 */, -/* 106 */ +/* 106 */, +/* 107 */, +/* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5527,10 +5762,16 @@ function warning(condition) { /***/ }), -/* 107 */, -/* 108 */, -/* 109 */, -/* 110 */ +/* 109 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["ReactDOM"]; }()); + +/***/ }), +/* 110 */, +/* 111 */, +/* 112 */, +/* 113 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5585,9 +5826,9 @@ module.exports = refx; /***/ }), -/* 111 */, -/* 112 */, -/* 113 */ +/* 114 */, +/* 115 */, +/* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5597,12 +5838,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__(169)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(170)); +var _extends = _interopDefault(__webpack_require__(174)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(175)); var React = __webpack_require__(13); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(145)); -var _assertThisInitialized = _interopDefault(__webpack_require__(171)); +var _inheritsLoose = _interopDefault(__webpack_require__(149)); +var _assertThisInitialized = _interopDefault(__webpack_require__(176)); var is = { arr: Array.isArray, @@ -7917,34 +8158,34 @@ exports.useSprings = useSprings; /***/ }), -/* 114 */, -/* 115 */, -/* 116 */, /* 117 */, /* 118 */, -/* 119 */ +/* 119 */, +/* 120 */, +/* 121 */, +/* 122 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Composite; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useComposite; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54); /* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57); -/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73); -/* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(78); +/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(74); +/* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79); /* 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__(47); -/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(94); -/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(102); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); +/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(96); +/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(104); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(51); @@ -8282,31 +8523,31 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 120 */ +/* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CompositeItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useCompositeItem; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53); -/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69); -/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(72); -/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71); -/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(84); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); +/* 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__(87); /* 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__(47); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51); -/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(93); -/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(95); -/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96); +/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95); +/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(97); +/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(98); @@ -8645,13 +8886,13 @@ var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODUL /***/ }), -/* 121 */, -/* 122 */ +/* 124 */, +/* 125 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createEvent; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); /** @@ -8685,39 +8926,129 @@ function createEvent(element, type, eventInit) { /***/ }), -/* 123 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(177); +module.exports = __webpack_require__(182); /***/ }), -/* 124 */, -/* 125 */ +/* 127 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["wordcount"]; }()); + +/***/ }), +/* 128 */, +/* 129 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["shortcode"]; }()); /***/ }), -/* 126 */, -/* 127 */, -/* 128 */, -/* 129 */, /* 130 */, /* 131 */, -/* 132 */, +/* 132 */ +/***/ (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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__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_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__(167); + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["createSlotFill"])('BlockControls'), + Fill = _createSlotFill.Fill, + Slot = _createSlotFill.Slot; + +function BlockControlsSlot(_ref) { + var _ref$__experimentalIs = _ref.__experimentalIsExpanded, + __experimentalIsExpanded = _ref$__experimentalIs === void 0 ? false : _ref$__experimentalIs, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["__experimentalIsExpanded"]); + + var accessibleToolbarState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["__experimentalToolbarContext"]); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(Slot, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ + name: buildSlotName(__experimentalIsExpanded) + }, props, { + fillProps: accessibleToolbarState + })); +} + +function BlockControlsFill(_ref2) { + var controls = _ref2.controls, + __experimentalIsExpanded = _ref2.__experimentalIsExpanded, + children = _ref2.children; + + if (!Object(_use_display_block_controls__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])()) { + return null; + } + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(Fill, { + name: buildSlotName(__experimentalIsExpanded) + }, function (fillProps) { + // Children passed to BlockControlsFill will not have access to any + // React Context whose Provider is part of the BlockControlsSlot tree. + // So we re-create the Provider in this subtree. + var value = !Object(lodash__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(fillProps) ? fillProps : null; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["__experimentalToolbarContext"].Provider, { + value: value + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ToolbarGroup"], { + controls: controls + }), children); + }); +} + +var buildSlotName = function buildSlotName(isExpanded) { + return "BlockControls".concat(isExpanded ? '-expanded' : ''); +}; + +var BlockControls = BlockControlsFill; +BlockControls.Slot = BlockControlsSlot; +/* harmony default export */ __webpack_exports__["a"] = (BlockControls); + + +/***/ }), /* 133 */, /* 134 */, /* 135 */, /* 136 */, -/* 137 */ +/* 137 */, +/* 138 */, +/* 139 */, +/* 140 */, +/* 141 */, +/* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); @@ -8732,12 +9063,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va */ // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. -/* eslint-disable jsdoc/valid-types */ - /** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ -/* eslint-enable jsdoc/valid-types */ - /** * Return an SVG icon. * @@ -8764,7 +9091,7 @@ function Icon(_ref) { /***/ }), -/* 138 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8777,7 +9104,7 @@ function Icon(_ref) { -var ReactPropTypesSecret = __webpack_require__(139); +var ReactPropTypesSecret = __webpack_require__(144); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -8835,7 +9162,7 @@ module.exports = function() { /***/ }), -/* 139 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8854,12 +9181,11 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 140 */, -/* 141 */, -/* 142 */, -/* 143 */, -/* 144 */, -/* 145 */ +/* 145 */, +/* 146 */, +/* 147 */, +/* 148 */, +/* 149 */ /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -8871,14 +9197,14 @@ function _inheritsLoose(subClass, superClass) { module.exports = _inheritsLoose; /***/ }), -/* 146 */ +/* 150 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; }); /* harmony import */ var _arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38); -/* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); -/* harmony import */ var _unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29); +/* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37); +/* harmony import */ var _unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30); /* harmony import */ var _nonIterableRest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39); @@ -8889,29 +9215,24 @@ function _toArray(arr) { } /***/ }), -/* 147 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["wordcount"]; }()); - -/***/ }), -/* 148 */, -/* 149 */, -/* 150 */, /* 151 */, -/* 152 */ +/* 152 */, +/* 153 */, +/* 154 */, +/* 155 */, +/* 156 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["tokenList"]; }()); /***/ }), -/* 153 */ +/* 157 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -8929,13 +9250,13 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 154 */ +/* 158 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -8947,22 +9268,68 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z" + d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z" })); /* harmony default export */ __webpack_exports__["a"] = (check); /***/ }), -/* 155 */, -/* 156 */, -/* 157 */, -/* 158 */, /* 159 */, /* 160 */, /* 161 */, /* 162 */, /* 163 */, -/* 164 */ +/* 164 */, +/* 165 */, +/* 166 */, +/* 167 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useDisplayBlockControls; }); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _block_edit_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function useDisplayBlockControls() { + var _useBlockEditContext = Object(_block_edit_context__WEBPACK_IMPORTED_MODULE_1__[/* useBlockEditContext */ "b"])(), + isSelected = _useBlockEditContext.isSelected, + clientId = _useBlockEditContext.clientId, + name = _useBlockEditContext.name; + + var isFirstAndSameTypeMultiSelected = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__["useSelect"])(function (select) { + // Don't bother checking, see OR statement below. + if (isSelected) { + return; + } + + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName, + isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds; + + if (!isFirstMultiSelectedBlock(clientId)) { + return false; + } + + return getMultiSelectedBlockClientIds().every(function (id) { + return getBlockName(id) === name; + }); + }, [clientId, isSelected, name]); + return isSelected || isFirstAndSameTypeMultiSelected; +} + + +/***/ }), +/* 168 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -8995,11 +9362,35 @@ if (typeof Object.create === 'function') { /***/ }), -/* 165 */, -/* 166 */, -/* 167 */, -/* 168 */, -/* 169 */ +/* 169 */, +/* 170 */, +/* 171 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _CSSTransition = _interopRequireDefault(__webpack_require__(304)); + +var _ReplaceTransition = _interopRequireDefault(__webpack_require__(309)); + +var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); + +var _Transition = _interopRequireDefault(__webpack_require__(209)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = { + Transition: _Transition.default, + TransitionGroup: _TransitionGroup.default, + ReplaceTransition: _ReplaceTransition.default, + CSSTransition: _CSSTransition.default +}; + +/***/ }), +/* 172 */, +/* 173 */, +/* 174 */ /***/ (function(module, exports) { function _extends() { @@ -9023,7 +9414,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 170 */ +/* 175 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -9044,7 +9435,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 171 */ +/* 176 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -9058,7 +9449,7 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 172 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9093,8 +9484,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__(173); -var _getLineHeight = __webpack_require__(174); +var autosize = __webpack_require__(178); +var _getLineHeight = __webpack_require__(179); var getLineHeight = _getLineHeight; var UPDATE = 'autosize:update'; var DESTROY = 'autosize:destroy'; @@ -9186,7 +9577,7 @@ exports["default"] = TextareaAutosize; /***/ }), -/* 173 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -9474,11 +9865,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 174 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { // Load in dependencies -var computedStyle = __webpack_require__(175); +var computedStyle = __webpack_require__(180); /** * Calculate the `line-height` of a given node @@ -9577,7 +9968,7 @@ module.exports = lineHeight; /***/ }), -/* 175 */ +/* 180 */ /***/ (function(module, exports) { // This code has been refactored for 140 bytes @@ -9610,13 +10001,13 @@ module.exports = computedStyle; /***/ }), -/* 176 */ +/* 181 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -9634,13 +10025,13 @@ var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/* 177 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(178); +var util = __webpack_require__(183); function scrollIntoView(elem, container, config) { config = config || {}; @@ -9769,7 +10160,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 178 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10214,13 +10605,13 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 179 */ +/* 184 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -10238,11 +10629,6 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 180 */, -/* 181 */, -/* 182 */, -/* 183 */, -/* 184 */, /* 185 */, /* 186 */, /* 187 */, @@ -10259,13 +10645,19 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /* 198 */, /* 199 */, /* 200 */, -/* 201 */ +/* 201 */, +/* 202 */, +/* 203 */, +/* 204 */, +/* 205 */, +/* 206 */, +/* 207 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -10283,13 +10675,892 @@ var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 202 */ +/* 208 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z" +})); +/* harmony default export */ __webpack_exports__["a"] = (plus); + + +/***/ }), +/* 209 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0; + +var PropTypes = _interopRequireWildcard(__webpack_require__(28)); + +var _react = _interopRequireDefault(__webpack_require__(13)); + +var _reactDom = _interopRequireDefault(__webpack_require__(109)); + +var _reactLifecyclesCompat = __webpack_require__(210); + +var _PropTypes = __webpack_require__(211); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + +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; } + +function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + +var UNMOUNTED = 'unmounted'; +exports.UNMOUNTED = UNMOUNTED; +var EXITED = 'exited'; +exports.EXITED = EXITED; +var ENTERING = 'entering'; +exports.ENTERING = ENTERING; +var ENTERED = 'entered'; +exports.ENTERED = ENTERED; +var EXITING = 'exiting'; +/** + * The Transition component lets you describe a transition from one component + * state to another _over time_ with a simple declarative API. Most commonly + * it's used to animate the mounting and unmounting of a component, but can also + * be used to describe in-place transition states as well. + * + * --- + * + * **Note**: `Transition` is a platform-agnostic base component. If you're using + * transitions in CSS, you'll probably want to use + * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) + * instead. It inherits all the features of `Transition`, but contains + * additional features necessary to play nice with CSS transitions (hence the + * name of the component). + * + * --- + * + * By default the `Transition` component does not alter the behavior of the + * component it renders, it only tracks "enter" and "exit" states for the + * components. It's up to you to give meaning and effect to those states. For + * example we can add styles to a component when it enters or exits: + * + * ```jsx + * import { Transition } from 'react-transition-group'; + * + * const duration = 300; + * + * const defaultStyle = { + * transition: `opacity ${duration}ms ease-in-out`, + * opacity: 0, + * } + * + * const transitionStyles = { + * entering: { opacity: 0 }, + * entered: { opacity: 1 }, + * }; + * + * const Fade = ({ in: inProp }) => ( + * + * {state => ( + *

    + * I'm a fade Transition! + *
    + * )} + * + * ); + * ``` + * + * There are 4 main states a Transition can be in: + * - `'entering'` + * - `'entered'` + * - `'exiting'` + * - `'exited'` + * + * Transition state is toggled via the `in` prop. When `true` the component + * begins the "Enter" stage. During this stage, the component will shift from + * its current transition state, to `'entering'` for the duration of the + * transition and then to the `'entered'` stage once it's complete. Let's take + * the following example (we'll use the + * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
    + * + * {state => ( + * // ... + * )} + * + * + *
    + * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ + +exports.EXITING = EXITING; + +var Transition = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Transition, _React$Component); + + function Transition(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears + + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; + + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } + } + + _this.state = { + status: initialStatus + }; + _this.nextCallback = null; + return _this; + } + + var _proto = Transition.prototype; + + _proto.getChildContext = function getChildContext() { + return { + transitionGroup: null // allows for nested Transitions + + }; + }; + + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; + + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED + }; + } + + return null; + }; // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } + + + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; + + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; + + if (prevProps !== this.props) { + var status = this.state.status; + + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } + + this.updateStatus(false, nextStatus); + }; + + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; + + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; + + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major + + appear = timeout.appear !== undefined ? timeout.appear : enter; + } + + return { + exit: exit, + enter: enter, + appear: appear + }; + }; + + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; + } + + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); + + var node = _reactDom.default.findDOMNode(this); + + if (nextStatus === ENTERING) { + this.performEnter(node, mounting); + } else { + this.performExit(node); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED + }); + } + }; + + _proto.performEnter = function performEnter(node, mounting) { + var _this2 = this; + + var enter = this.props.enter; + var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set + + if (!mounting && !enter) { + this.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(node); + }); + return; + } + + this.props.onEnter(node, appearing); + this.safeSetState({ + status: ENTERING + }, function () { + _this2.props.onEntering(node, appearing); + + _this2.onTransitionEnd(node, enterTimeout, function () { + _this2.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(node, appearing); + }); + }); + }); + }; + + _proto.performExit = function performExit(node) { + var _this3 = this; + + var exit = this.props.exit; + var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED + + if (!exit) { + this.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(node); + }); + return; + } + + this.props.onExit(node); + this.safeSetState({ + status: EXITING + }, function () { + _this3.props.onExiting(node); + + _this3.onTransitionEnd(node, timeouts.exit, function () { + _this3.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(node); + }); + }); + }); + }; + + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; + + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; + + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; + + var active = true; + + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; + + this.nextCallback.cancel = function () { + active = false; + }; + + return this.nextCallback; + }; + + _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { + this.setNextCallback(handler); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; + + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); + return; + } + + if (this.props.addEndListener) { + this.props.addEndListener(node, this.nextCallback); + } + + if (timeout != null) { + setTimeout(this.nextCallback, timeout); + } + }; + + _proto.render = function render() { + var status = this.state.status; + + if (status === UNMOUNTED) { + return null; + } + + var _this$props = this.props, + children = _this$props.children, + childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition + + + delete childProps.in; + delete childProps.mountOnEnter; + delete childProps.unmountOnExit; + delete childProps.appear; + delete childProps.enter; + delete childProps.exit; + delete childProps.timeout; + delete childProps.addEndListener; + delete childProps.onEnter; + delete childProps.onEntering; + delete childProps.onEntered; + delete childProps.onExit; + delete childProps.onExiting; + delete childProps.onExited; + + if (typeof children === 'function') { + return children(status, childProps); + } + + var child = _react.default.Children.only(children); + + return _react.default.cloneElement(child, childProps); + }; + + return Transition; +}(_react.default.Component); + +Transition.contextTypes = { + transitionGroup: PropTypes.object +}; +Transition.childContextTypes = { + transitionGroup: function transitionGroup() {} +}; +Transition.propTypes = false ? undefined : {}; + +function noop() {} + +Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop +}; +Transition.UNMOUNTED = 0; +Transition.EXITED = 1; +Transition.ENTERING = 2; +Transition.ENTERED = 3; +Transition.EXITING = 4; + +var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); + +exports.default = _default; + +/***/ }), +/* 210 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; }); +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +function componentWillMount() { + // Call this.constructor.gDSFP to support sub-classes. + var state = this.constructor.getDerivedStateFromProps(this.props, this.state); + if (state !== null && state !== undefined) { + this.setState(state); + } +} + +function componentWillReceiveProps(nextProps) { + // Call this.constructor.gDSFP to support sub-classes. + // Use the setState() updater to ensure state isn't stale in certain edge cases. + function updater(prevState) { + var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); + return state !== null && state !== undefined ? state : null; + } + // Binding "this" is important for shallow renderer support. + this.setState(updater.bind(this)); +} + +function componentWillUpdate(nextProps, nextState) { + try { + var prevProps = this.props; + var prevState = this.state; + this.props = nextProps; + this.state = nextState; + this.__reactInternalSnapshotFlag = true; + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( + prevProps, + prevState + ); + } finally { + this.props = prevProps; + this.state = prevState; + } +} + +// React may warn about cWM/cWRP/cWU methods being deprecated. +// Add a flag to suppress these warnings for this special case. +componentWillMount.__suppressDeprecationWarning = true; +componentWillReceiveProps.__suppressDeprecationWarning = true; +componentWillUpdate.__suppressDeprecationWarning = true; + +function polyfill(Component) { + var prototype = Component.prototype; + + if (!prototype || !prototype.isReactComponent) { + throw new Error('Can only polyfill class components'); + } + + if ( + typeof Component.getDerivedStateFromProps !== 'function' && + typeof prototype.getSnapshotBeforeUpdate !== 'function' + ) { + return Component; + } + + // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Error if any of these lifecycles are present, + // Because they would work differently between older and newer (16.3+) versions of React. + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof prototype.componentWillMount === 'function') { + foundWillMountName = 'componentWillMount'; + } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { + foundWillMountName = 'UNSAFE_componentWillMount'; + } + if (typeof prototype.componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'componentWillReceiveProps'; + } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; + } + if (typeof prototype.componentWillUpdate === 'function') { + foundWillUpdateName = 'componentWillUpdate'; + } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { + foundWillUpdateName = 'UNSAFE_componentWillUpdate'; + } + if ( + foundWillMountName !== null || + foundWillReceivePropsName !== null || + foundWillUpdateName !== null + ) { + var componentName = Component.displayName || Component.name; + var newApiName = + typeof Component.getDerivedStateFromProps === 'function' + ? 'getDerivedStateFromProps()' + : 'getSnapshotBeforeUpdate()'; + + throw Error( + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + + componentName + + ' uses ' + + newApiName + + ' but also contains the following legacy lifecycles:' + + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + + (foundWillReceivePropsName !== null + ? '\n ' + foundWillReceivePropsName + : '') + + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + + 'https://fb.me/react-async-component-lifecycle-hooks' + ); + } + + // React <= 16.2 does not support static getDerivedStateFromProps. + // As a workaround, use cWM and cWRP to invoke the new static lifecycle. + // Newer versions of React will ignore these lifecycles if gDSFP exists. + if (typeof Component.getDerivedStateFromProps === 'function') { + prototype.componentWillMount = componentWillMount; + prototype.componentWillReceiveProps = componentWillReceiveProps; + } + + // React <= 16.2 does not support getSnapshotBeforeUpdate. + // As a workaround, use cWU to invoke the new lifecycle. + // Newer versions of React will ignore that lifecycle if gSBU exists. + if (typeof prototype.getSnapshotBeforeUpdate === 'function') { + if (typeof prototype.componentDidUpdate !== 'function') { + throw new Error( + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' + ); + } + + prototype.componentWillUpdate = componentWillUpdate; + + var componentDidUpdate = prototype.componentDidUpdate; + + prototype.componentDidUpdate = function componentDidUpdatePolyfill( + prevProps, + prevState, + maybeSnapshot + ) { + // 16.3+ will not execute our will-update method; + // It will pass a snapshot value to did-update though. + // Older versions will require our polyfilled will-update value. + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", + // Because for <= 15.x versions this might be a "prevContext" object. + // We also can't just check "__reactInternalSnapshot", + // Because get-snapshot might return a falsy value. + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. + var snapshot = this.__reactInternalSnapshotFlag + ? this.__reactInternalSnapshot + : maybeSnapshot; + + componentDidUpdate.call(this, prevProps, prevState, snapshot); + }; + } + + return Component; +} + + + + +/***/ }), +/* 211 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.classNamesShape = exports.timeoutsShape = void 0; + +var _propTypes = _interopRequireDefault(__webpack_require__(28)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var timeoutsShape = false ? undefined : null; +exports.timeoutsShape = timeoutsShape; +var classNamesShape = false ? undefined : null; +exports.classNamesShape = classNamesShape; + +/***/ }), +/* 212 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = void 0; + +var _propTypes = _interopRequireDefault(__webpack_require__(28)); + +var _react = _interopRequireDefault(__webpack_require__(13)); + +var _reactLifecyclesCompat = __webpack_require__(210); + +var _ChildMapping = __webpack_require__(310); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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; } + +function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + +function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +var values = Object.values || function (obj) { + return Object.keys(obj).map(function (k) { + return obj[k]; + }); +}; + +var defaultProps = { + component: 'div', + childFactory: function childFactory(child) { + return child; + } + /** + * The `` component manages a set of transition components + * (`` and ``) in a list. Like with the transition + * components, `` is a state machine for managing the mounting + * and unmounting of components over time. + * + * Consider the example below. As items are removed or added to the TodoList the + * `in` prop is toggled automatically by the ``. + * + * Note that `` does not define any animation behavior! + * Exactly _how_ a list item animates is up to the individual transition + * component. This means you can mix and match animations across different list + * items. + */ + +}; + +var TransitionGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(TransitionGroup, _React$Component); + + function TransitionGroup(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + + var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear + + + _this.state = { + handleExited: handleExited, + firstRender: true + }; + return _this; + } + + var _proto = TransitionGroup.prototype; + + _proto.getChildContext = function getChildContext() { + return { + transitionGroup: { + isMounting: !this.appeared + } + }; + }; + + _proto.componentDidMount = function componentDidMount() { + this.appeared = true; + this.mounted = true; + }; + + _proto.componentWillUnmount = function componentWillUnmount() { + this.mounted = false; + }; + + TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { + var prevChildMapping = _ref.children, + handleExited = _ref.handleExited, + firstRender = _ref.firstRender; + return { + children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited), + firstRender: false + }; + }; + + _proto.handleExited = function handleExited(child, node) { + var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children); + if (child.key in currentChildMapping) return; + + if (child.props.onExited) { + child.props.onExited(node); + } + + if (this.mounted) { + this.setState(function (state) { + var children = _extends({}, state.children); + + delete children[child.key]; + return { + children: children + }; + }); + } + }; + + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.component, + childFactory = _this$props.childFactory, + props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]); + + var children = values(this.state.children).map(childFactory); + delete props.appear; + delete props.enter; + delete props.exit; + + if (Component === null) { + return children; + } + + return _react.default.createElement(Component, props, children); + }; + + return TransitionGroup; +}(_react.default.Component); + +TransitionGroup.childContextTypes = { + transitionGroup: _propTypes.default.object.isRequired +}; +TransitionGroup.propTypes = false ? undefined : {}; +TransitionGroup.defaultProps = defaultProps; + +var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup); + +exports.default = _default; +module.exports = exports["default"]; + +/***/ }), +/* 213 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronRight); + + +/***/ }), +/* 214 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + + +/***/ }), +/* 215 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -10307,13 +11578,13 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/* 203 */ +/* 216 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -10331,19 +11602,6 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 204 */, -/* 205 */, -/* 206 */, -/* 207 */, -/* 208 */, -/* 209 */, -/* 210 */, -/* 211 */, -/* 212 */, -/* 213 */, -/* 214 */, -/* 215 */, -/* 216 */, /* 217 */, /* 218 */, /* 219 */, @@ -10389,7 +11647,20 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /* 259 */, /* 260 */, /* 261 */, -/* 262 */ +/* 262 */, +/* 263 */, +/* 264 */, +/* 265 */, +/* 266 */, +/* 267 */, +/* 268 */, +/* 269 */, +/* 270 */, +/* 271 */, +/* 272 */, +/* 273 */, +/* 274 */, +/* 275 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10419,7 +11690,141 @@ function multi(_ref) { exports.default = multi; /***/ }), -/* 263 */ +/* 276 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ExpandedBlockControlsContainer; }); +/* 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__(171); +/* 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___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(132); + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} + +function ExpandedBlockControlsContainer(_ref) { + var children = _ref.children, + className = _ref.className; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_block_controls__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].Slot, { + __experimentalIsExpanded: true + }, function (fills) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(ExpandedBlockControlsHandler, { + className: className, + fills: fills + }, children); + }); +} + +function ExpandedBlockControlsHandler(_ref2) { + var fills = _ref2.fills, + _ref2$className = _ref2.className, + className = _ref2$className === void 0 ? '' : _ref2$className, + children = _ref2.children; + var containerRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + var fillsRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + var toolbarRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + + var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useState"])({}), + _useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_useState, 2), + dimensions = _useState2[0], + setDimensions = _useState2[1]; + + var fillsPropRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + fillsPropRef.current = fills; + var resizeToolbar = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(Object(lodash__WEBPACK_IMPORTED_MODULE_3__["throttle"])(function () { + var toolbarContentElement = fillsPropRef.current.length ? fillsRef.current : toolbarRef.current; + + if (!toolbarContentElement) { + return; + } + + toolbarContentElement.style.position = 'absolute'; + toolbarContentElement.style.width = 'auto'; + var contentCSS = getComputedStyle(toolbarContentElement); + setDimensions({ + width: contentCSS.getPropertyValue('width'), + height: contentCSS.getPropertyValue('height') + }); + toolbarContentElement.style.position = ''; + toolbarContentElement.style.width = ''; + }, 100), []); + Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + var observer = new window.MutationObserver(function (mutationsList) { + var hasChildList = mutationsList.find(function (_ref3) { + var type = _ref3.type; + return type === 'childList'; + }); + + if (hasChildList) { + resizeToolbar(); + } + }); + observer.observe(containerRef.current, { + childList: true, + subtree: true + }); + return function () { + return observer.disconnect(); + }; + }, []); + Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + if (fills.length > 1) { + typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default()("".concat(fills.length, " slots were registered but only one may be displayed.")) : void 0; + } + }, [fills.length]); + var displayFill = fills[0]; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: "block-editor-block-toolbar-animated-width-container", + ref: containerRef, + style: dimensions + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(react_transition_group__WEBPACK_IMPORTED_MODULE_2__["TransitionGroup"], null, displayFill ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(react_transition_group__WEBPACK_IMPORTED_MODULE_2__["CSSTransition"], { + key: "fills", + timeout: 300, + classNames: "block-editor-block-toolbar-content" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: className, + ref: fillsRef + }, displayFill)) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(react_transition_group__WEBPACK_IMPORTED_MODULE_2__["CSSTransition"], { + key: "default", + timeout: 300, + classNames: "block-editor-block-toolbar-content" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: className, + ref: toolbarRef + }, children)))); +} + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) + +/***/ }), +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10435,7 +11840,7 @@ exports.characterDiff = void 0; /*istanbul ignore end*/ var /*istanbul ignore start*/ -_base = _interopRequireDefault(__webpack_require__(298)) +_base = _interopRequireDefault(__webpack_require__(314)) /*istanbul ignore end*/ ; @@ -10462,7 +11867,7 @@ function diffChars(oldStr, newStr, options) { /***/ }), -/* 264 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10626,7 +12031,7 @@ function toPx(length) { /***/ }), -/* 265 */ +/* 279 */ /***/ (function(module, exports) { var traverse = module.exports = function (obj) { @@ -10946,20 +12351,6 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /***/ }), -/* 266 */, -/* 267 */, -/* 268 */, -/* 269 */, -/* 270 */, -/* 271 */, -/* 272 */, -/* 273 */, -/* 274 */, -/* 275 */, -/* 276 */, -/* 277 */, -/* 278 */, -/* 279 */, /* 280 */, /* 281 */, /* 282 */, @@ -10968,13 +12359,25 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /* 285 */, /* 286 */, /* 287 */, -/* 288 */ +/* 288 */, +/* 289 */, +/* 290 */, +/* 291 */, +/* 292 */, +/* 293 */, +/* 294 */, +/* 295 */, +/* 296 */, +/* 297 */, +/* 298 */, +/* 299 */, +/* 300 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -10992,13 +12395,13 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 289 */ +/* 301 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11016,13 +12419,13 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 290 */ +/* 302 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11040,37 +12443,13 @@ var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/* 291 */ +/* 303 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z" -})); -/* harmony default export */ __webpack_exports__["a"] = (plus); - - -/***/ }), -/* 292 */ -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11088,61 +12467,645 @@ var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 293 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 304 */ +/***/ (function(module, 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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); +exports.__esModule = true; +exports.default = void 0; + +var PropTypes = _interopRequireWildcard(__webpack_require__(28)); + +var _addClass = _interopRequireDefault(__webpack_require__(305)); + +var _removeClass = _interopRequireDefault(__webpack_require__(308)); + +var _react = _interopRequireDefault(__webpack_require__(13)); + +var _Transition = _interopRequireDefault(__webpack_require__(209)); + +var _PropTypes = __webpack_require__(211); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + +function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + +function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + +var addClass = function addClass(node, classes) { + return node && classes && classes.split(' ').forEach(function (c) { + return (0, _addClass.default)(node, c); + }); +}; + +var removeClass = function removeClass(node, classes) { + return node && classes && classes.split(' ').forEach(function (c) { + return (0, _removeClass.default)(node, c); + }); +}; /** - * WordPress dependencies + * A transition component inspired by the excellent + * [ng-animate](http://www.nganimate.org/) library, you should use it if you're + * using CSS transitions or animations. It's built upon the + * [`Transition`](https://reactcommunity.org/react-transition-group/transition) + * component, so it inherits all of its props. + * + * `CSSTransition` applies a pair of class names during the `appear`, `enter`, + * and `exit` states of the transition. The first class is applied and then a + * second `*-active` class in order to activate the CSSS transition. After the + * transition, matching `*-done` class names are applied to persist the + * transition state. + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
    + * + *
    + * {"I'll receive my-node-* classes"} + *
    + *
    + * + *
    + * ); + * } + * ``` + * + * When the `in` prop is set to `true`, the child component will first receive + * the class `example-enter`, then the `example-enter-active` will be added in + * the next tick. `CSSTransition` [forces a + * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215) + * between before adding the `example-enter-active`. This is an important trick + * because it allows us to transition between `example-enter` and + * `example-enter-active` even though they were added immediately one after + * another. Most notably, this is what makes it possible for us to animate + * _appearance_. + * + * ```css + * .my-node-enter { + * opacity: 0; + * } + * .my-node-enter-active { + * opacity: 1; + * transition: opacity 200ms; + * } + * .my-node-exit { + * opacity: 1; + * } + * .my-node-exit-active { + * opacity: 0; + * transition: opacity: 200ms; + * } + * ``` + * + * `*-active` classes represent which styles you want to animate **to**. */ -var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronRight); +var CSSTransition = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CSSTransition, _React$Component); + + function CSSTransition() { + var _this; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + + _this.onEnter = function (node, appearing) { + var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'), + className = _this$getClassNames.className; + + _this.removeClasses(node, 'exit'); + + addClass(node, className); + + if (_this.props.onEnter) { + _this.props.onEnter(node, appearing); + } + }; + + _this.onEntering = function (node, appearing) { + var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'), + activeClassName = _this$getClassNames2.activeClassName; + + _this.reflowAndAddClass(node, activeClassName); + + if (_this.props.onEntering) { + _this.props.onEntering(node, appearing); + } + }; + + _this.onEntered = function (node, appearing) { + var appearClassName = _this.getClassNames('appear').doneClassName; + + var enterClassName = _this.getClassNames('enter').doneClassName; + + var doneClassName = appearing ? appearClassName + " " + enterClassName : enterClassName; + + _this.removeClasses(node, appearing ? 'appear' : 'enter'); + + addClass(node, doneClassName); + + if (_this.props.onEntered) { + _this.props.onEntered(node, appearing); + } + }; + + _this.onExit = function (node) { + var _this$getClassNames3 = _this.getClassNames('exit'), + className = _this$getClassNames3.className; + + _this.removeClasses(node, 'appear'); + + _this.removeClasses(node, 'enter'); + + addClass(node, className); + + if (_this.props.onExit) { + _this.props.onExit(node); + } + }; + + _this.onExiting = function (node) { + var _this$getClassNames4 = _this.getClassNames('exit'), + activeClassName = _this$getClassNames4.activeClassName; + + _this.reflowAndAddClass(node, activeClassName); + + if (_this.props.onExiting) { + _this.props.onExiting(node); + } + }; + + _this.onExited = function (node) { + var _this$getClassNames5 = _this.getClassNames('exit'), + doneClassName = _this$getClassNames5.doneClassName; + + _this.removeClasses(node, 'exit'); + + addClass(node, doneClassName); + + if (_this.props.onExited) { + _this.props.onExited(node); + } + }; + + _this.getClassNames = function (type) { + var classNames = _this.props.classNames; + var isStringClassNames = typeof classNames === 'string'; + var prefix = isStringClassNames && classNames ? classNames + '-' : ''; + var className = isStringClassNames ? prefix + type : classNames[type]; + var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active']; + var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done']; + return { + className: className, + activeClassName: activeClassName, + doneClassName: doneClassName + }; + }; + + return _this; + } + + var _proto = CSSTransition.prototype; + + _proto.removeClasses = function removeClasses(node, type) { + var _this$getClassNames6 = this.getClassNames(type), + className = _this$getClassNames6.className, + activeClassName = _this$getClassNames6.activeClassName, + doneClassName = _this$getClassNames6.doneClassName; + + className && removeClass(node, className); + activeClassName && removeClass(node, activeClassName); + doneClassName && removeClass(node, doneClassName); + }; + + _proto.reflowAndAddClass = function reflowAndAddClass(node, className) { + // This is for to force a repaint, + // which is necessary in order to transition styles when adding a class name. + if (className) { + /* eslint-disable no-unused-expressions */ + node && node.scrollTop; + /* eslint-enable no-unused-expressions */ + + addClass(node, className); + } + }; + + _proto.render = function render() { + var props = _extends({}, this.props); + + delete props.classNames; + return _react.default.createElement(_Transition.default, _extends({}, props, { + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: this.onEntering, + onExit: this.onExit, + onExiting: this.onExiting, + onExited: this.onExited + })); + }; + + return CSSTransition; +}(_react.default.Component); + +CSSTransition.defaultProps = { + classNames: '' +}; +CSSTransition.propTypes = false ? undefined : {}; +var _default = CSSTransition; +exports.default = _default; +module.exports = exports["default"]; /***/ }), -/* 294 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 305 */ +/***/ (function(module, 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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); +var _interopRequireDefault = __webpack_require__(306); + +exports.__esModule = true; +exports.default = addClass; + +var _hasClass = _interopRequireDefault(__webpack_require__(307)); + +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); +} + +module.exports = exports["default"]; + +/***/ }), +/* 306 */ +/***/ (function(module, exports) { + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} + +module.exports = _interopRequireDefault; + +/***/ }), +/* 307 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = hasClass; + +function hasClass(element, className) { + if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1; +} + +module.exports = exports["default"]; + +/***/ }), +/* 308 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +function replaceClassName(origClass, classToRemove) { + return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); +} + +module.exports = function removeClass(element, className) { + if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className)); +}; + +/***/ }), +/* 309 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = void 0; + +var _propTypes = _interopRequireDefault(__webpack_require__(28)); + +var _react = _interopRequireDefault(__webpack_require__(13)); + +var _reactDom = __webpack_require__(109); + +var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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; } + +function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + /** - * WordPress dependencies + * The `` component is a specialized `Transition` component + * that animates between two children. + * + * ```jsx + * + *
    I appear first
    + *
    I replace the above
    + *
    + * ``` */ +var ReplaceTransition = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ReplaceTransition, _React$Component); -var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + function ReplaceTransition() { + var _this; + for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) { + _args[_key] = arguments[_key]; + } + + _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this; + + _this.handleEnter = function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return _this.handleLifecycle('onEnter', 0, args); + }; + + _this.handleEntering = function () { + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + + return _this.handleLifecycle('onEntering', 0, args); + }; + + _this.handleEntered = function () { + for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { + args[_key4] = arguments[_key4]; + } + + return _this.handleLifecycle('onEntered', 0, args); + }; + + _this.handleExit = function () { + for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { + args[_key5] = arguments[_key5]; + } + + return _this.handleLifecycle('onExit', 1, args); + }; + + _this.handleExiting = function () { + for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) { + args[_key6] = arguments[_key6]; + } + + return _this.handleLifecycle('onExiting', 1, args); + }; + + _this.handleExited = function () { + for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) { + args[_key7] = arguments[_key7]; + } + + return _this.handleLifecycle('onExited', 1, args); + }; + + return _this; + } + + var _proto = ReplaceTransition.prototype; + + _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) { + var _child$props; + + var children = this.props.children; + + var child = _react.default.Children.toArray(children)[idx]; + + if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs); + if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this)); + }; + + _proto.render = function render() { + var _this$props = this.props, + children = _this$props.children, + inProp = _this$props.in, + props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]); + + var _React$Children$toArr = _react.default.Children.toArray(children), + first = _React$Children$toArr[0], + second = _React$Children$toArr[1]; + + delete props.onEnter; + delete props.onEntering; + delete props.onEntered; + delete props.onExit; + delete props.onExiting; + delete props.onExited; + return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, { + key: 'first', + onEnter: this.handleEnter, + onEntering: this.handleEntering, + onEntered: this.handleEntered + }) : _react.default.cloneElement(second, { + key: 'second', + onEnter: this.handleExit, + onEntering: this.handleExiting, + onEntered: this.handleExited + })); + }; + + return ReplaceTransition; +}(_react.default.Component); + +ReplaceTransition.propTypes = false ? undefined : {}; +var _default = ReplaceTransition; +exports.default = _default; +module.exports = exports["default"]; /***/ }), -/* 295 */ +/* 310 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.getChildMapping = getChildMapping; +exports.mergeChildMappings = mergeChildMappings; +exports.getInitialChildMapping = getInitialChildMapping; +exports.getNextChildMapping = getNextChildMapping; + +var _react = __webpack_require__(13); + +/** + * Given `this.props.children`, return an object mapping key to child. + * + * @param {*} children `this.props.children` + * @return {object} Mapping of key to child + */ +function getChildMapping(children, mapFn) { + var mapper = function mapper(child) { + return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child; + }; + + var result = Object.create(null); + if (children) _react.Children.map(children, function (c) { + return c; + }).forEach(function (child) { + // run the map function here instead so that the key is the computed one + result[child.key] = mapper(child); + }); + return result; +} +/** + * When you're adding or removing children some may be added or removed in the + * same render pass. We want to show *both* since we want to simultaneously + * animate elements in and out. This function takes a previous set of keys + * and a new set of keys and merges them with its best guess of the correct + * ordering. In the future we may expose some of the utilities in + * ReactMultiChild to make this easy, but for now React itself does not + * directly have this concept of the union of prevChildren and nextChildren + * so we implement it here. + * + * @param {object} prev prev children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @param {object} next next children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @return {object} a key set that contains all keys in `prev` and all keys + * in `next` in a reasonable order. + */ + + +function mergeChildMappings(prev, next) { + prev = prev || {}; + next = next || {}; + + function getValueForKey(key) { + return key in next ? next[key] : prev[key]; + } // For each key of `next`, the list of keys to insert before that key in + // the combined list + + + var nextKeysPending = Object.create(null); + var pendingKeys = []; + + for (var prevKey in prev) { + if (prevKey in next) { + if (pendingKeys.length) { + nextKeysPending[prevKey] = pendingKeys; + pendingKeys = []; + } + } else { + pendingKeys.push(prevKey); + } + } + + var i; + var childMapping = {}; + + for (var nextKey in next) { + if (nextKeysPending[nextKey]) { + for (i = 0; i < nextKeysPending[nextKey].length; i++) { + var pendingNextKey = nextKeysPending[nextKey][i]; + childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); + } + } + + childMapping[nextKey] = getValueForKey(nextKey); + } // Finally, add the keys which didn't appear before any key in `next` + + + for (i = 0; i < pendingKeys.length; i++) { + childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); + } + + return childMapping; +} + +function getProp(child, prop, props) { + return props[prop] != null ? props[prop] : child.props[prop]; +} + +function getInitialChildMapping(props, onExited) { + return getChildMapping(props.children, function (child) { + return (0, _react.cloneElement)(child, { + onExited: onExited.bind(null, child), + in: true, + appear: getProp(child, 'appear', props), + enter: getProp(child, 'enter', props), + exit: getProp(child, 'exit', props) + }); + }); +} + +function getNextChildMapping(nextProps, prevChildMapping, onExited) { + var nextChildMapping = getChildMapping(nextProps.children); + var children = mergeChildMappings(prevChildMapping, nextChildMapping); + Object.keys(children).forEach(function (key) { + var child = children[key]; + if (!(0, _react.isValidElement)(child)) return; + var hasPrev = key in prevChildMapping; + var hasNext = key in nextChildMapping; + var prevChild = prevChildMapping[key]; + var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering) + + if (hasNext && (!hasPrev || isLeaving)) { + // console.log('entering', key) + children[key] = (0, _react.cloneElement)(child, { + onExited: onExited.bind(null, child), + in: true, + exit: getProp(child, 'exit', nextProps), + enter: getProp(child, 'enter', nextProps) + }); + } else if (!hasNext && hasPrev && !isLeaving) { + // item is old (exiting) + // console.log('leaving', key) + children[key] = (0, _react.cloneElement)(child, { + in: false + }); + } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) { + // item hasn't changed transition states + // copy over the last transition props; + // console.log('unchanged', key) + children[key] = (0, _react.cloneElement)(child, { + onExited: onExited.bind(null, child), + in: prevChild.props.in, + exit: getProp(child, 'exit', nextProps), + enter: getProp(child, 'enter', nextProps) + }); + } + }); + return children; +} + +/***/ }), +/* 311 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11154,19 +13117,19 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z" + d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z" })); /* harmony default export */ __webpack_exports__["a"] = (chevronUp); /***/ }), -/* 296 */ +/* 312 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11178,19 +13141,19 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z" + d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" })); /* harmony default export */ __webpack_exports__["a"] = (chevronDown); /***/ }), -/* 297 */ +/* 313 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11208,7 +13171,7 @@ var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 298 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11518,13 +13481,13 @@ function clonePath(path) { /***/ }), -/* 299 */ +/* 315 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -11542,68 +13505,6 @@ var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 300 */ -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (pencil); - - -/***/ }), -/* 301 */ -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var edit = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (edit); - - -/***/ }), -/* 302 */, -/* 303 */, -/* 304 */, -/* 305 */, -/* 306 */, -/* 307 */, -/* 308 */, -/* 309 */, -/* 310 */, -/* 311 */, -/* 312 */, -/* 313 */, -/* 314 */, -/* 315 */, /* 316 */, /* 317 */, /* 318 */, @@ -11726,7 +13627,20 @@ var edit = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /* 435 */, /* 436 */, /* 437 */, -/* 438 */ +/* 438 */, +/* 439 */, +/* 440 */, +/* 441 */, +/* 442 */, +/* 443 */, +/* 444 */, +/* 445 */, +/* 446 */, +/* 447 */, +/* 448 */, +/* 449 */, +/* 450 */, +/* 451 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11757,10 +13671,10 @@ __webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { __webpack_require__.d(__webpack_exports__, "__experimentalBlockAlignmentMatrixToolbar", function() { return /* reexport */ block_alignment_matrix_toolbar; }); __webpack_require__.d(__webpack_exports__, "BlockBreadcrumb", function() { return /* reexport */ block_breadcrumb; }); __webpack_require__.d(__webpack_exports__, "BlockContextProvider", function() { return /* reexport */ BlockContextProvider; }); -__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return /* reexport */ block_controls; }); +__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return /* reexport */ block_controls["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "BlockColorsStyleSelector", function() { return /* reexport */ color_style_selector; }); __webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return /* reexport */ block_edit_BlockEdit; }); -__webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return /* reexport */ useBlockEditContext; }); +__webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return /* reexport */ block_edit_context["b" /* useBlockEditContext */]; }); __webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return /* reexport */ block_format_controls; }); __webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return /* reexport */ BlockIcon; }); __webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return /* reexport */ dropdown; }); @@ -11809,6 +13723,7 @@ __webpack_require__.d(__webpack_exports__, "__experimentalUseResizeCanvas", func __webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return /* reexport */ block_inspector; }); __webpack_require__.d(__webpack_exports__, "BlockList", function() { return /* reexport */ block_list; }); __webpack_require__.d(__webpack_exports__, "__experimentalBlock", function() { return /* reexport */ Block; }); +__webpack_require__.d(__webpack_exports__, "__experimentalUseBlockWrapperProps", function() { return /* reexport */ useBlockWrapperProps; }); __webpack_require__.d(__webpack_exports__, "BlockMover", function() { return /* reexport */ block_mover; }); __webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return /* reexport */ block_preview; }); __webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return /* reexport */ block_selection_clearer; }); @@ -11835,6 +13750,8 @@ __webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { r __webpack_require__.d(__webpack_exports__, "__experimentalUseSimulatedMediaQuery", function() { return /* reexport */ useSimulatedMediaQuery; }); __webpack_require__.d(__webpack_exports__, "__experimentalUseEditorFeature", function() { return /* reexport */ useEditorFeature; }); __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ transform_styles; }); +__webpack_require__.d(__webpack_exports__, "validateThemeColors", function() { return /* reexport */ validateThemeColors; }); +__webpack_require__.d(__webpack_exports__, "validateThemeGradients", function() { return /* reexport */ validateThemeGradients; }); __webpack_require__.d(__webpack_exports__, "storeConfig", function() { return /* reexport */ storeConfig; }); __webpack_require__.d(__webpack_exports__, "SETTINGS_DEFAULTS", function() { return /* reexport */ SETTINGS_DEFAULTS; }); @@ -11903,6 +13820,8 @@ __webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function( __webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); __webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return selectors_unstableGetBlockWithoutInnerBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return selectors_getBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithBlockTree", function() { return __unstableGetBlockWithBlockTree; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockTree", function() { return __unstableGetBlockTree; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return selectors_getClientIdsOfDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); @@ -11946,6 +13865,9 @@ __webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function( __webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); __webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return selectors_isDraggingBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getDraggedBlockClientIds", function() { return selectors_getDraggedBlockClientIds; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockBeingDragged", function() { return isBlockBeingDragged; }); +__webpack_require__.d(selectors_namespaceObject, "isAncestorBeingDragged", function() { return isAncestorBeingDragged; }); __webpack_require__.d(selectors_namespaceObject, "isCaretWithinFormattedText", function() { return selectors_isCaretWithinFormattedText; }); __webpack_require__.d(selectors_namespaceObject, "getBlockInsertionPoint", function() { return getBlockInsertionPoint; }); __webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", function() { return isBlockInsertionPointVisible; }); @@ -11971,19 +13893,19 @@ __webpack_require__.d(selectors_namespaceObject, "isBlockHighlighted", function( __webpack_require__.d(selectors_namespaceObject, "areInnerBlocksControlled", function() { return areInnerBlocksControlled; }); // EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); +var external_this_wp_blocks_ = __webpack_require__(11); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(81); +var external_this_wp_viewport_ = __webpack_require__(89); // EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} -var external_this_wp_keyboardShortcuts_ = __webpack_require__(52); +var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(100); +var external_this_wp_notices_ = __webpack_require__(101); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); @@ -11995,152 +13917,32 @@ var defineProperty = __webpack_require__(5); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); +var classnames = __webpack_require__(9); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); +var external_this_wp_hooks_ = __webpack_require__(33); // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(4); -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -var Context = Object(external_this_wp_element_["createContext"])({ - name: '', - isSelected: false, - focusedElement: null, - setFocusedElement: external_this_lodash_["noop"], - clientId: null -}); -var Provider = Context.Provider; - -/** - * A hook that returns the block edit context. - * - * @return {Object} Block edit context - */ - -function useBlockEditContext() { - return Object(external_this_wp_element_["useContext"])(Context); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-display-block-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function useDisplayBlockControls() { - var _useBlockEditContext = useBlockEditContext(), - isSelected = _useBlockEditContext.isSelected, - clientId = _useBlockEditContext.clientId, - name = _useBlockEditContext.name; - - var isFirstAndSameTypeMultiSelected = Object(external_this_wp_data_["useSelect"])(function (select) { - // Don't bother checking, see OR statement below. - if (isSelected) { - return; - } - - var _select = select('core/block-editor'), - getBlockName = _select.getBlockName, - isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds; - - if (!isFirstMultiSelectedBlock(clientId)) { - return false; - } - - return getMultiSelectedBlockClientIds().every(function (id) { - return getBlockName(id) === name; - }); - }, [clientId, isSelected, name]); - return isSelected || isFirstAndSameTypeMultiSelected; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockControls'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -function BlockControlsSlot(props) { - var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(external_this_wp_components_["__experimentalToolbarContext"]); - return Object(external_this_wp_element_["createElement"])(Slot, Object(esm_extends["a" /* default */])({}, props, { - fillProps: accessibleToolbarState - })); -} - -function BlockControlsFill(_ref) { - var controls = _ref.controls, - children = _ref.children; - - if (!useDisplayBlockControls()) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(Fill, null, function (fillProps) { - // Children passed to BlockControlsFill will not have access to any - // React Context whose Provider is part of the BlockControlsSlot tree. - // So we re-create the Provider in this subtree. - var value = !Object(external_this_lodash_["isEmpty"])(fillProps) ? fillProps : null; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarContext"].Provider, { - value: value - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - controls: controls - }), children); - }); -} - -var BlockControls = BlockControlsFill; -BlockControls.Slot = BlockControlsSlot; -/* harmony default export */ var block_controls = (BlockControls); +// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js +var block_controls = __webpack_require__(132); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(3); + // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(6); +var external_this_wp_primitives_ = __webpack_require__(7); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-left.js @@ -12288,7 +14090,7 @@ function BlockAlignmentToolbar(_ref) { icon: activeAlignmentControl ? activeAlignmentControl.icon : defaultAlignmentControl.icon, label: Object(external_this_wp_i18n_["__"])('Change alignment'), controls: enabledControls.map(function (control) { - return _objectSpread({}, BLOCK_ALIGNMENTS_CONTROLS[control], { + return _objectSpread(_objectSpread({}, BLOCK_ALIGNMENTS_CONTROLS[control]), {}, { isActive: value === control, role: isCollapsed ? 'menuitemradio' : undefined, onClick: applyOrUnset(control) @@ -12400,9 +14202,12 @@ function addAttribute(settings) { if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'align')) { // Gracefully handle if settings.attributes is undefined. - settings.attributes = align_objectSpread({}, settings.attributes, { + settings.attributes = align_objectSpread(align_objectSpread({}, settings.attributes), {}, { align: { - type: 'string' + type: 'string', + // Allow for '' since it is used by updateAlignment function + // in withToolbarControls for special cases with defined default values. + enum: [].concat(ALL_ALIGNMENTS, ['']) } }); } @@ -12449,7 +14254,7 @@ var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderCom }); }; - return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls, { + return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls["a" /* default */], { key: "align-controls" }, Object(external_this_wp_element_["createElement"])(block_alignment_toolbar, { value: props.attributes.align, @@ -12485,7 +14290,7 @@ var withDataAlign = Object(external_this_wp_compose_["createHigherOrderComponent var wrapperProps = props.wrapperProps; if (validAlignments.includes(align)) { - wrapperProps = align_objectSpread({}, wrapperProps, { + wrapperProps = align_objectSpread(align_objectSpread({}, wrapperProps), {}, { 'data-align': align }); } @@ -12525,6 +14330,9 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/edit Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls); Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign); +// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js +var block_edit_context = __webpack_require__(80); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-advanced-controls/index.js @@ -12539,21 +14347,21 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', var inspector_advanced_controls_name = 'InspectorAdvancedControls'; -var inspector_advanced_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])(inspector_advanced_controls_name), - inspector_advanced_controls_Fill = inspector_advanced_controls_createSlotFill.Fill, - inspector_advanced_controls_Slot = inspector_advanced_controls_createSlotFill.Slot; +var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])(inspector_advanced_controls_name), + Fill = _createSlotFill.Fill, + Slot = _createSlotFill.Slot; function InspectorAdvancedControls(_ref) { var children = _ref.children; - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), isSelected = _useBlockEditContext.isSelected; - return isSelected ? Object(external_this_wp_element_["createElement"])(inspector_advanced_controls_Fill, null, children) : null; + return isSelected ? Object(external_this_wp_element_["createElement"])(Fill, null, children) : null; } InspectorAdvancedControls.slotName = inspector_advanced_controls_name; -InspectorAdvancedControls.Slot = inspector_advanced_controls_Slot; +InspectorAdvancedControls.Slot = Slot; /* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js @@ -12606,7 +14414,7 @@ function anchor_addAttribute(settings) { if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'anchor')) { // Gracefully handle if settings.attributes is undefined. - settings.attributes = anchor_objectSpread({}, settings.attributes, { + settings.attributes = anchor_objectSpread(anchor_objectSpread({}, settings.attributes), {}, { anchor: { type: 'string', source: 'attribute', @@ -12714,7 +14522,7 @@ function custom_class_name_objectSpread(target) { for (var i = 1; i < arguments. function custom_class_name_addAttribute(settings) { if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'customClassName', true)) { // Gracefully handle if settings.attributes is undefined. - settings.attributes = custom_class_name_objectSpread({}, settings.attributes, { + settings.attributes = custom_class_name_objectSpread(custom_class_name_objectSpread({}, settings.attributes), {}, { className: { type: 'string' } @@ -12876,10 +14684,10 @@ function addGeneratedClassName(extraProps, blockType) { Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js -var toArray = __webpack_require__(146); +var toArray = __webpack_require__(150); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js var tinycolor = __webpack_require__(66); @@ -12964,6 +14772,106 @@ function utils_getMostReadableColor(colors, colorValue) { return tinycolor_default.a.mostReadable(colorValue, Object(external_this_lodash_["map"])(colors, 'color')).toHexString(); } +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-editor-feature/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var deprecatedFlags = { + 'color.palette': function colorPalette(settings) { + return settings.colors === undefined ? undefined : settings.colors; + }, + 'color.gradients': function colorGradients(settings) { + return settings.gradients === undefined ? undefined : settings.gradients; + }, + 'color.custom': function colorCustom(settings) { + return settings.disableCustomColors === undefined ? undefined : !settings.disableCustomColors; + }, + 'color.customGradient': function colorCustomGradient(settings) { + return settings.disableCustomGradients === undefined ? undefined : !settings.disableCustomGradients; + }, + 'typography.fontSizes': function typographyFontSizes(settings) { + return settings.fontSizes === undefined ? undefined : settings.fontSizes; + }, + 'typography.customFontSize': function typographyCustomFontSize(settings) { + return settings.disableCustomFontSizes === undefined ? undefined : !settings.disableCustomFontSizes; + }, + 'typography.customLineHeight': function typographyCustomLineHeight(settings) { + return settings.enableCustomLineHeight; + }, + 'spacing.units': function spacingUnits(settings) { + if (settings.enableCustomUnits === undefined) { + return; + } + + if (settings.enableCustomUnits === true) { + return ['px', 'em', 'rem', 'vh', 'vw']; + } + + return settings.enableCustomUnits; + } +}; +/** + * Hook that retrieves the setting for the given editor feature. + * It works with nested objects using by finding the value at path. + * + * @param {string} featurePath The path to the feature. + * + * @return {any} Returns the value defined for the setting. + * + * @example + * ```js + * const isEnabled = useEditorFeature( 'typography.dropCap' ); + * ``` + */ + +function useEditorFeature(featurePath) { + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), + blockName = _useBlockEditContext.name; + + var setting = Object(external_this_wp_data_["useSelect"])(function (select) { + var _get; + + var settings = select('core/block-editor').getSettings(); // 1 - Use __experimental features, if available. + // We cascade to the global value if the block one is not available. + // + // TODO: make it work for blocks that define multiple selectors + // such as core/heading or core/post-title. + + var globalPath = "__experimentalFeatures.global.".concat(featurePath); + var blockPath = "__experimentalFeatures.".concat(blockName, ".").concat(featurePath); + var experimentalFeaturesResult = (_get = Object(external_this_lodash_["get"])(settings, blockPath)) !== null && _get !== void 0 ? _get : Object(external_this_lodash_["get"])(settings, globalPath); + + if (experimentalFeaturesResult !== undefined) { + return experimentalFeaturesResult; + } // 2 - Use deprecated settings, otherwise. + + + var deprecatedSettingsValue = deprecatedFlags[featurePath] ? deprecatedFlags[featurePath](settings) : undefined; + + if (deprecatedSettingsValue !== undefined) { + return deprecatedSettingsValue; + } // 3 - Fall back for typography.dropCap: + // This is only necessary to support typography.dropCap. + // when __experimentalFeatures are not present (core without plugin). + // To remove when __experimentalFeatures are ported to core. + + + return featurePath === 'typography.dropCap' ? true : undefined; + }, [blockName, featurePath]); + return setting; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradients/use-gradient.js @@ -12982,6 +14890,8 @@ function utils_getMostReadableColor(colors, colorValue) { */ + +var EMPTY_ARRAY = []; function __experimentalGetGradientClass(gradientSlug) { if (!gradientSlug) { return undefined; @@ -13026,22 +14936,21 @@ function __experimentalUseGradient() { _ref$customGradientAt = _ref.customGradientAttribute, customGradientAttribute = _ref$customGradientAt === void 0 ? 'customGradient' : _ref$customGradientAt; - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId; + var gradients = useEditorFeature('color.gradients') || EMPTY_ARRAY; + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), - getBlockAttributes = _select.getBlockAttributes, - getSettings = _select.getSettings; + getBlockAttributes = _select.getBlockAttributes; var attributes = getBlockAttributes(clientId); return { - gradient: attributes[gradientAttribute], customGradient: attributes[customGradientAttribute], - gradients: getSettings().gradients + gradient: attributes[gradientAttribute] }; }, [clientId, gradientAttribute, customGradientAttribute]), - gradients = _useSelect.gradients, gradient = _useSelect.gradient, customGradient = _useSelect.customGradient; @@ -13102,7 +15011,7 @@ var utils_cleanEmptyObject = function cleanEmptyObject(object) { }; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js @@ -13126,12 +15035,12 @@ function control_objectSpread(target) { for (var i = 1; i < arguments.length; i+ - /** * Internal dependencies */ + // translators: first %s: the color name or value (e.g. red or #ff0000) var colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(Color: %s)'); // translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%) @@ -13240,11 +15149,12 @@ function ColorGradientControlInner(_ref2) { } function ColorGradientControlSelect(props) { - var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return Object(external_this_lodash_["pick"])(settings, colorsAndGradientKeys); - }); - return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, control_objectSpread({}, colorGradientSettings, {}, props)); + var colorGradientSettings = {}; + colorGradientSettings.colors = useEditorFeature('color.palette'); + colorGradientSettings.gradients = useEditorFeature('color.gradients'); + colorGradientSettings.disableCustomColors = !useEditorFeature('color.custom'); + colorGradientSettings.disableCustomGradients = !useEditorFeature('color.customGradient'); + return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, control_objectSpread(control_objectSpread({}, colorGradientSettings), props)); } function ColorGradientControl(props) { @@ -13280,13 +15190,13 @@ function panel_color_gradient_settings_objectSpread(target) { for (var i = 1; i - /** * Internal dependencies */ + // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) var panel_color_gradient_settings_colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: color %s)'); // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) @@ -13370,11 +15280,12 @@ var panel_color_gradient_settings_PanelColorGradientSettingsInner = function Pan }; var panel_color_gradient_settings_PanelColorGradientSettingsSelect = function PanelColorGradientSettingsSelect(props) { - var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return Object(external_this_lodash_["pick"])(settings, panel_color_gradient_settings_colorsAndGradientKeys); - }); - return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, panel_color_gradient_settings_objectSpread({}, colorGradientSettings, {}, props)); + var colorGradientSettings = {}; + colorGradientSettings.colors = useEditorFeature('color.palette'); + colorGradientSettings.gradients = useEditorFeature('color.gradients'); + colorGradientSettings.disableCustomColors = !useEditorFeature('color.custom'); + colorGradientSettings.disableCustomGradients = !useEditorFeature('color.customGradient'); + return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, panel_color_gradient_settings_objectSpread(panel_color_gradient_settings_objectSpread({}, colorGradientSettings), props)); }; var panel_color_gradient_settings_PanelColorGradientSettings = function PanelColorGradientSettings(props) { @@ -13390,7 +15301,7 @@ var panel_color_gradient_settings_PanelColorGradientSettings = function PanelCol /* harmony default export */ var panel_color_gradient_settings = (panel_color_gradient_settings_PanelColorGradientSettings); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(54); +var external_this_wp_a11y_ = __webpack_require__(52); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js @@ -13463,6 +15374,9 @@ 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__(167); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js @@ -13482,7 +15396,7 @@ var inspector_controls_createSlotFill = Object(external_this_wp_components_["cre function InspectorControls(_ref) { var children = _ref.children; - return useDisplayBlockControls() ? Object(external_this_wp_element_["createElement"])(inspector_controls_Fill, null, children) : null; + return Object(use_display_block_controls["a" /* default */])() ? Object(external_this_wp_element_["createElement"])(inspector_controls_Fill, null, children) : null; } InspectorControls.Slot = inspector_controls_Slot; @@ -13584,7 +15498,7 @@ function hasInnerBlocksContext(element) { */ function getBlockClientId(node) { - while (node && node.nodeType !== window.Node.ELEMENT_NODE) { + while (node && node.nodeType !== node.ELEMENT_NODE) { node = node.parentNode; } @@ -13621,14 +15535,16 @@ function getBlockClientId(node) { + +function getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} + function ColorPanel(_ref) { var settings = _ref.settings, clientId = _ref.clientId, _ref$enableContrastCh = _ref.enableContrastChecking, enableContrastChecking = _ref$enableContrastCh === void 0 ? true : _ref$enableContrastCh; - var _window = window, - getComputedStyle = _window.getComputedStyle, - Node = _window.Node; var _useState = Object(external_this_wp_element_["useState"])(), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), @@ -13655,7 +15571,7 @@ function ColorPanel(_ref) { var backgroundColorNode = colorsDetectionElement; var backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; - while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE) { + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === backgroundColorNode.parentNode.ELEMENT_NODE) { backgroundColorNode = backgroundColorNode.parentNode; backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; } @@ -13696,7 +15612,6 @@ function color_objectSpread(target) { for (var i = 1; i < arguments.length; i++) - /** * Internal dependencies */ @@ -13705,10 +15620,17 @@ function color_objectSpread(target) { for (var i = 1; i < arguments.length; i++) + var COLOR_SUPPORT_KEY = '__experimentalColor'; +var color_EMPTY_ARRAY = []; var color_hasColorSupport = function hasColorSupport(blockType) { - return external_this_wp_element_["Platform"].OS === 'web' && Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + if (external_this_wp_element_["Platform"].OS !== 'web') { + return false; + } + + var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + return colorSupport && (colorSupport.linkColor === true || colorSupport.gradient === true || colorSupport.background !== false || colorSupport.text !== false); }; var color_hasLinkColorSupport = function hasLinkColorSupport(blockType) { @@ -13728,6 +15650,24 @@ var color_hasGradientSupport = function hasGradientSupport(blockType) { var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); return Object(external_this_lodash_["isObject"])(colorSupport) && !!colorSupport.gradients; }; + +var color_hasBackgroundColorSupport = function hasBackgroundColorSupport(blockType) { + if (external_this_wp_element_["Platform"].OS !== 'web') { + return false; + } + + var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + return colorSupport && colorSupport.background !== false; +}; + +var color_hasTextColorSupport = function hasTextColorSupport(blockType) { + if (external_this_wp_element_["Platform"].OS !== 'web') { + return false; + } + + var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + return colorSupport && colorSupport.text !== false; +}; /** * Filters registered block settings, extending attributes to include * `backgroundColor` and `textColor` attribute. @@ -13852,18 +15792,13 @@ function ColorEdit(props) { var blockName = props.name, attributes = props.attributes; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings(); - }, []), - colors = _useSelect.colors, - gradients = _useSelect.gradients, - __experimentalEnableLinkColor = _useSelect.__experimentalEnableLinkColor; // Shouldn't be needed but right now the ColorGradientsPanel + var isLinkColorEnabled = useEditorFeature('color.link'); + var colors = useEditorFeature('color.palette') || color_EMPTY_ARRAY; + var gradients = useEditorFeature('color.gradients') || color_EMPTY_ARRAY; // Shouldn't be needed but right now the ColorGradientsPanel // can trigger both onChangeColor and onChangeBackground // synchronously causing our two callbacks to override changes // from each other. - var localAttributes = Object(external_this_wp_element_["useRef"])(attributes); Object(external_this_wp_element_["useEffect"])(function () { localAttributes.current = attributes; @@ -13873,6 +15808,7 @@ function ColorEdit(props) { return null; } + var hasBackground = color_hasBackgroundColorSupport(blockName); var hasGradient = color_hasGradientSupport(blockName); var style = attributes.style, textColor = attributes.textColor, @@ -13895,8 +15831,8 @@ function ColorEdit(props) { var colorObject = utils_getColorObjectByColorValue(colors, value); var attributeName = name + 'Color'; - var newStyle = color_objectSpread({}, localAttributes.current.style, { - color: color_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) + var newStyle = color_objectSpread(color_objectSpread({}, localAttributes.current.style), {}, { + color: color_objectSpread(color_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color), {}, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) }); var newNamedColor = (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? colorObject.slug : undefined; @@ -13906,7 +15842,7 @@ function ColorEdit(props) { }, attributeName, newNamedColor); props.setAttributes(newAttributes); - localAttributes.current = color_objectSpread({}, localAttributes.current, {}, newAttributes); + localAttributes.current = color_objectSpread(color_objectSpread({}, localAttributes.current), newAttributes); }; }; @@ -13917,8 +15853,8 @@ function ColorEdit(props) { if (slug) { var _localAttributes$curr3, _localAttributes$curr4, _localAttributes$curr5; - var newStyle = color_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style, { - color: color_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color, { + var newStyle = color_objectSpread(color_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style), {}, { + color: color_objectSpread(color_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color), {}, { gradient: undefined }) }); @@ -13930,8 +15866,8 @@ function ColorEdit(props) { } else { var _localAttributes$curr6, _localAttributes$curr7, _localAttributes$curr8; - var _newStyle = color_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style, { - color: color_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color, { + var _newStyle = color_objectSpread(color_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style), {}, { + color: color_objectSpread(color_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color), {}, { gradient: value }) }); @@ -13943,7 +15879,7 @@ function ColorEdit(props) { } props.setAttributes(newAttributes); - localAttributes.current = color_objectSpread({}, localAttributes.current, {}, newAttributes); + localAttributes.current = color_objectSpread(color_objectSpread({}, localAttributes.current), newAttributes); }; var onChangeLinkColor = function onChangeLinkColor(value) { @@ -13951,8 +15887,8 @@ function ColorEdit(props) { var colorObject = utils_getColorObjectByColorValue(colors, value); props.setAttributes({ - style: color_objectSpread({}, props.attributes.style, { - color: color_objectSpread({}, (_props$attributes$sty = props.attributes.style) === null || _props$attributes$sty === void 0 ? void 0 : _props$attributes$sty.color, { + style: color_objectSpread(color_objectSpread({}, props.attributes.style), {}, { + color: color_objectSpread(color_objectSpread({}, (_props$attributes$sty = props.attributes.style) === null || _props$attributes$sty === void 0 ? void 0 : _props$attributes$sty.color), {}, { link: (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? "var:preset|color|".concat(colorObject.slug) : value }) }) @@ -13963,17 +15899,17 @@ function ColorEdit(props) { enableContrastChecking: // Turn on contrast checker for web only since it's not supported on mobile yet. external_this_wp_element_["Platform"].OS === 'web' && !gradient && !(style === null || style === void 0 ? void 0 : (_style$color7 = style.color) === null || _style$color7 === void 0 ? void 0 : _style$color7.gradient), clientId: props.clientId, - settings: [{ + settings: [].concat(Object(toConsumableArray["a" /* default */])(color_hasTextColorSupport(blockName) ? [{ label: Object(external_this_wp_i18n_["__"])('Text Color'), onColorChange: onChangeColor('text'), colorValue: utils_getColorObjectByAttributeValues(colors, textColor, style === null || style === void 0 ? void 0 : (_style$color8 = style.color) === null || _style$color8 === void 0 ? void 0 : _style$color8.text).color - }, { + }] : []), Object(toConsumableArray["a" /* default */])(hasBackground || hasGradient ? [{ label: Object(external_this_wp_i18n_["__"])('Background Color'), - onColorChange: onChangeColor('background'), + onColorChange: hasBackground ? onChangeColor('background') : undefined, colorValue: utils_getColorObjectByAttributeValues(colors, backgroundColor, style === null || style === void 0 ? void 0 : (_style$color9 = style.color) === null || _style$color9 === void 0 ? void 0 : _style$color9.background).color, gradientValue: gradientValue, onGradientChange: hasGradient ? onChangeGradient : undefined - }].concat(Object(toConsumableArray["a" /* default */])(__experimentalEnableLinkColor && color_hasLinkColorSupport(blockName) ? [{ + }] : []), Object(toConsumableArray["a" /* default */])(isLinkColorEnabled && color_hasLinkColorSupport(blockName) ? [{ label: Object(external_this_wp_i18n_["__"])('Link Color'), onColorChange: onChangeLinkColor, colorValue: color_getLinkColorFromAttributeValue(colors, style === null || style === void 0 ? void 0 : (_style$color10 = style.color) === null || _style$color10 === void 0 ? void 0 : _style$color10.link), @@ -13997,9 +15933,7 @@ var withColorPaletteStyles = Object(external_this_wp_compose_["createHigherOrder attributes = props.attributes; var backgroundColor = attributes.backgroundColor, textColor = attributes.textColor; - var colors = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().colors; - }, []); + var colors = useEditorFeature('color.palette') || color_EMPTY_ARRAY; if (!color_hasColorSupport(name)) { return Object(external_this_wp_element_["createElement"])(BlockListBlock, props); @@ -14010,8 +15944,8 @@ var withColorPaletteStyles = Object(external_this_wp_compose_["createHigherOrder backgroundColor: backgroundColor ? (_getColorObjectByAttr2 = utils_getColorObjectByAttributeValues(colors, backgroundColor)) === null || _getColorObjectByAttr2 === void 0 ? void 0 : _getColorObjectByAttr2.color : undefined }; var wrapperProps = props.wrapperProps; - wrapperProps = color_objectSpread({}, props.wrapperProps, { - style: color_objectSpread({}, extraStyles, {}, (_props$wrapperProps = props.wrapperProps) === null || _props$wrapperProps === void 0 ? void 0 : _props$wrapperProps.style) + wrapperProps = color_objectSpread(color_objectSpread({}, props.wrapperProps), {}, { + style: color_objectSpread(color_objectSpread({}, extraStyles), (_props$wrapperProps = props.wrapperProps) === null || _props$wrapperProps === void 0 ? void 0 : _props$wrapperProps.style) }); return Object(external_this_wp_element_["createElement"])(BlockListBlock, Object(esm_extends["a" /* default */])({}, props, { wrapperProps: wrapperProps @@ -14024,7 +15958,7 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/c Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/color/with-color-palette-styles', withColorPaletteStyles); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(21); +var external_this_wp_keycodes_ = __webpack_require__(19); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/utils.js var BASE_DEFAULT_VALUE = 1.5; @@ -14145,13 +16079,13 @@ function line_height_objectSpread(target) { for (var i = 1; i < arguments.length * WordPress dependencies */ - /** * Internal dependencies */ + var LINE_HEIGHT_SUPPORT_KEY = '__experimentalLineHeight'; /** * Inspector control panel containing the line height related configuration @@ -14172,8 +16106,8 @@ function LineHeightEdit(props) { } var onChange = function onChange(newLineHeightValue) { - var newStyle = line_height_objectSpread({}, style, { - typography: line_height_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography, { + var newStyle = line_height_objectSpread(line_height_objectSpread({}, style), {}, { + typography: line_height_objectSpread(line_height_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography), {}, { lineHeight: newLineHeightValue }) }); @@ -14199,15 +16133,12 @@ function useIsLineHeightDisabled() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, blockName = _ref.name; - var isDisabled = Object(external_this_wp_data_["useSelect"])(function (select) { - var editorSettings = select('core/block-editor').getSettings(); - return !editorSettings.enableCustomLineHeight; - }); + var isDisabled = !useEditorFeature('typography.customLineHeight'); return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, LINE_HEIGHT_SUPPORT_KEY) || isDisabled; } // EXTERNAL MODULE: external {"this":["wp","tokenList"]} -var external_this_wp_tokenList_ = __webpack_require__(152); +var external_this_wp_tokenList_ = __webpack_require__(156); var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js @@ -14282,21 +16213,29 @@ function getFontSizeClass(fontSizeSlug) { } // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js + + + /** * WordPress dependencies */ +/** + * Internal dependencies + */ -/* harmony default export */ var font_size_picker = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - disableCustomFontSizes = _select$getSettings.disableCustomFontSizes, - fontSizes = _select$getSettings.fontSizes; - return { - disableCustomFontSizes: disableCustomFontSizes, - fontSizes: fontSizes - }; -})(external_this_wp_components_["FontSizePicker"])); + +function FontSizePicker(props) { + var fontSizes = useEditorFeature('typography.fontSizes'); + var disableCustomFontSizes = !useEditorFeature('typography.customFontSize'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FontSizePicker"], Object(esm_extends["a" /* default */])({}, props, { + fontSizes: fontSizes, + disableCustomFontSizes: disableCustomFontSizes + })); +} + +/* harmony default export */ var font_size_picker = (FontSizePicker); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/font-size.js @@ -14395,12 +16334,6 @@ function font_size_addEditProps(settings) { return settings; } - -function useFontSizes() { - return Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().fontSizes; - }); -} /** * Inspector control panel containing the font size related configuration * @@ -14418,7 +16351,7 @@ function FontSizeEdit(props) { style = _props$attributes.style, setAttributes = props.setAttributes; var isDisabled = useIsFontSizeDisabled(props); - var fontSizes = useFontSizes(); + var fontSizes = useEditorFeature('typography.fontSizes'); if (isDisabled) { return null; @@ -14429,8 +16362,8 @@ function FontSizeEdit(props) { var onChange = function onChange(value) { var fontSizeSlug = getFontSizeObjectByValue(fontSizes, value).slug; setAttributes({ - style: utils_cleanEmptyObject(font_size_objectSpread({}, style, { - typography: font_size_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography, { + style: utils_cleanEmptyObject(font_size_objectSpread(font_size_objectSpread({}, style), {}, { + typography: font_size_objectSpread(font_size_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography), {}, { fontSize: fontSizeSlug ? undefined : value }) })), @@ -14454,7 +16387,7 @@ function useIsFontSizeDisabled() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, blockName = _ref.name; - var fontSizes = useFontSizes(); + var fontSizes = useEditorFeature('typography.fontSizes'); var hasFontSizes = fontSizes.length; return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes; } @@ -14471,7 +16404,7 @@ var withFontSizeInlineStyles = Object(external_this_wp_compose_["createHigherOrd return function (props) { var _style$typography2; - var fontSizes = useFontSizes(); + var fontSizes = useEditorFeature('typography.fontSizes'); var blockName = props.name, _props$attributes2 = props.attributes, fontSize = _props$attributes2.fontSize, @@ -14487,7 +16420,7 @@ var withFontSizeInlineStyles = Object(external_this_wp_compose_["createHigherOrd var _style$typography3; var fontSizeValue = utils_getFontSize(fontSizes, fontSize, style === null || style === void 0 ? void 0 : (_style$typography3 = style.typography) === null || _style$typography3 === void 0 ? void 0 : _style$typography3.fontSize).size; - newProps.wrapperProps = font_size_objectSpread({}, wrapperProps, { + newProps.wrapperProps = font_size_objectSpread(font_size_objectSpread({}, wrapperProps), {}, { style: font_size_objectSpread({ fontSize: fontSizeValue }, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.style) @@ -14550,6 +16483,10 @@ function useIsTypographyDisabled() { * WordPress dependencies */ +/** + * Internal dependencies + */ + function UnitControl(_ref) { var unitsProp = _ref.units, @@ -14579,36 +16516,16 @@ function filterUnitsWithSettings() { /** * Custom hook to retrieve and consolidate units setting from add_theme_support(). * - * @param {Array} unitsProp Collection of available units. + * @param {Array} units Collection of available units. * * @return {Array} Filtered units based on settings. */ -function useCustomUnits(unitsProp) { - var settings = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().enableCustomUnits; - }, []); - var isDisabled = !settings; // Adjust units based on add_theme_support( 'custom-units' ); - - var units; - /** - * Handle extra arguments for add_theme_support - * - * Example: add_theme_support( 'custom-units', 'rem' ); - * Or: add_theme_support( 'custom-units', 'px, 'rem', 'em' ); - * - * Note: If there are unit argument (e.g. 'em'), these units are enabled - * within the control. - */ - - if (Array.isArray(settings)) { - units = filterUnitsWithSettings(settings, unitsProp); - } else { - units = isDisabled ? false : unitsProp; - } - - return units; +function useCustomUnits(units) { + var availableUnits = useEditorFeature('spacing.units'); + var usedUnits = filterUnitsWithSettings(!availableUnits ? [] : availableUnits, units); + return usedUnits.length === 0 ? false : usedUnits; } // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/padding.js @@ -14654,7 +16571,7 @@ function PaddingEdit(props) { } var onChange = function onChange(next) { - var newStyle = padding_objectSpread({}, style, { + var newStyle = padding_objectSpread(padding_objectSpread({}, style), {}, { spacing: { padding: next } @@ -14666,7 +16583,7 @@ function PaddingEdit(props) { }; var onChangeShowVisualizer = function onChangeShowVisualizer(next) { - var newStyle = padding_objectSpread({}, style, { + var newStyle = padding_objectSpread(padding_objectSpread({}, style), {}, { visualizers: { padding: next } @@ -14688,43 +16605,27 @@ function PaddingEdit(props) { native: null }); } -var paddingStyleMappings = { - paddingTop: ['spacing', 'padding', 'top'], - paddingRight: ['spacing', 'padding', 'right'], - paddingBottom: ['spacing', 'padding', 'bottom'], - paddingLeft: ['spacing', 'padding', 'left'] -}; // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-panel-control/index.js -/** - * External dependencies - */ - /** * WordPress dependencies */ - - /** * Internal dependencies */ + function SpacingPanelControl(_ref) { var children = _ref.children, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children"]); - var isSpacingEnabled = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return Object(external_this_lodash_["get"])(getSettings(), '__experimentalEnableCustomSpacing'); - }, []); + var isSpacingEnabled = useEditorFeature('spacing.customPadding'); if (!isSpacingEnabled) return null; return Object(external_this_wp_element_["createElement"])(inspector_controls, props, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Spacing') @@ -14792,18 +16693,8 @@ function compileStyleValue(uncompiledValue) { function getInlineStyles() { var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var mappings = style_objectSpread({}, paddingStyleMappings, { - lineHeight: ['typography', 'lineHeight'], - fontSize: ['typography', 'fontSize'], - background: ['color', 'gradient'], - backgroundColor: ['color', 'background'], - color: ['color', 'text'], - '--wp--style--color--link': ['color', 'link'] - }); - var output = {}; - Object.entries(mappings).forEach(function (_ref) { + Object.entries(external_this_wp_blocks_["__EXPERIMENTAL_STYLE_PROPERTY"]).forEach(function (_ref) { var _ref2 = Object(toArray["a" /* default */])(_ref), styleKey = _ref2[0], otherObjectKeys = _ref2.slice(1); @@ -14856,7 +16747,7 @@ function style_addSaveProps(props, blockType, attributes) { } var style = attributes.style; - props.style = style_objectSpread({}, getInlineStyles(style), {}, props.style); + props.style = style_objectSpread(style_objectSpread({}, getInlineStyles(style)), props.style); return props; } /** @@ -14928,22 +16819,22 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/style/wit // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js @@ -14956,7 +16847,7 @@ var inherits = __webpack_require__(22); -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -14974,12 +16865,12 @@ function with_colors_objectSpread(target) { for (var i = 1; i < arguments.length - /** * Internal dependencies */ + var DEFAULT_COLORS = []; /** * Higher order component factory for injecting the `colorsArray` argument as @@ -15008,12 +16899,14 @@ var with_colors_withCustomColorPalette = function withCustomColorPalette(colorsA var with_colors_withEditorColorPalette = function withEditorColorPalette() { - return Object(external_this_wp_data_["withSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return { - colors: Object(external_this_lodash_["get"])(settings, ['colors'], DEFAULT_COLORS) + return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + var colors = useEditorFeature('color.palette') || DEFAULT_COLORS; + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { + colors: colors + })); }; - }); + }, 'withEditorColorPalette'); }; /** * Helper function used with `createHigherOrderComponent` to create @@ -15028,7 +16921,7 @@ var with_colors_withEditorColorPalette = function withEditorColorPalette() { function createColorHOC(colorTypes, withColorPalette) { var colorMap = Object(external_this_lodash_["reduce"])(colorTypes, function (colorObject, colorType) { - return with_colors_objectSpread({}, colorObject, {}, Object(external_this_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_this_lodash_["kebabCase"])(colorType)) : colorType); + return with_colors_objectSpread(with_colors_objectSpread({}, colorObject), Object(external_this_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_this_lodash_["kebabCase"])(colorType)) : colorType); }, {}); return Object(external_this_wp_compose_["compose"])([withColorPalette, function (WrappedComponent) { return /*#__PURE__*/function (_Component) { @@ -15084,9 +16977,9 @@ function createColorHOC(colorTypes, withColorPalette) { }, { key: "render", value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_colors_objectSpread({}, this.props, { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_colors_objectSpread(with_colors_objectSpread(with_colors_objectSpread(with_colors_objectSpread({}, this.props), {}, { colors: undefined - }, this.state, {}, this.setters, { + }, this.state), this.setters), {}, { colorUtils: this.colorUtils })); } @@ -15108,7 +17001,7 @@ function createColorHOC(colorTypes, withColorPalette) { if (previousColor === colorObject.color && previousColorObject) { newState[colorAttributeName] = previousColorObject; } else { - newState[colorAttributeName] = with_colors_objectSpread({}, colorObject, { + newState[colorAttributeName] = with_colors_objectSpread(with_colors_objectSpread({}, colorObject), {}, { class: getColorClassName(colorContext, colorObject.slug) }); } @@ -15220,7 +17113,7 @@ var panel_color_settings_PanelColorSettings = function PanelColorSettings(_ref) onChange = _ref2.onChange, otherSettings = Object(objectWithoutProperties["a" /* default */])(_ref2, ["value", "onChange"]); - return panel_color_settings_objectSpread({}, otherSettings, { + return panel_color_settings_objectSpread(panel_color_settings_objectSpread({}, otherSettings), {}, { colorValue: value, onColorChange: onChange }); @@ -15305,9 +17198,9 @@ function color_panel_ColorPanel(_ref) { -function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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 _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } @@ -15335,13 +17228,12 @@ function use_colors_objectSpread(target) { for (var i = 1; i < arguments.length; -/** - * Browser dependencies - */ -var use_colors_window = window, - use_colors_getComputedStyle = use_colors_window.getComputedStyle, - use_colors_Node = use_colors_window.Node; + +function use_colors_getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} + var use_colors_DEFAULT_COLORS = []; var COMMON_COLOR_LABELS = { textColor: Object(external_this_wp_i18n_["__"])('Text Color'), @@ -15371,22 +17263,20 @@ function __experimentalUseColors(colorConfigs) { textColorTargetRef = _ref$colorDetector$te === void 0 ? targetRef : _ref$colorDetector$te; var deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId; + var settingsColors = useEditorFeature('color.palette') || use_colors_DEFAULT_COLORS; + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), - getBlockAttributes = _select.getBlockAttributes, - getSettings = _select.getSettings; + getBlockAttributes = _select.getBlockAttributes; - var colors = getSettings().colors; return { - attributes: getBlockAttributes(clientId), - settingsColors: !colors || colors === true ? use_colors_DEFAULT_COLORS : colors + attributes: getBlockAttributes(clientId) }; }, [clientId]), - attributes = _useSelect.attributes, - settingsColors = _useSelect.settingsColors; + attributes = _useSelect.attributes; var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), updateBlockAttributes = _useDispatch.updateBlockAttributes; @@ -15414,7 +17304,7 @@ function __experimentalUseColors(colorConfigs) { var extraProps = { className: classnames_default()(componentClassName, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-".concat(Object(external_this_lodash_["kebabCase"])(color), "-").concat(Object(external_this_lodash_["kebabCase"])(property)), color), Object(defineProperty["a" /* default */])(_classnames, className || "has-".concat(Object(external_this_lodash_["kebabCase"])(name)), color || customColor), _classnames)), - style: use_colors_objectSpread({}, colorStyle, {}, componentStyle) + style: use_colors_objectSpread(use_colors_objectSpread({}, colorStyle), componentStyle) }; if (Object(external_this_lodash_["isFunction"])(children)) { @@ -15426,7 +17316,7 @@ function __experimentalUseColors(colorConfigs) { external_this_wp_element_["Children"].map(children, function (child) { return Object(external_this_wp_element_["cloneElement"])(child, { className: classnames_default()(child.props.className, extraProps.className), - style: use_colors_objectSpread({}, extraProps.style, {}, child.props.style || {}) + style: use_colors_objectSpread(use_colors_objectSpread({}, extraProps.style), child.props.style || {}) }); }) ); @@ -15502,7 +17392,7 @@ function __experimentalUseColors(colorConfigs) { var backgroundColorNode = backgroundColorTargetRef.current; var backgroundColor = use_colors_getComputedStyle(backgroundColorNode).backgroundColor; - while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === use_colors_Node.ELEMENT_NODE) { + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === backgroundColorNode.parentNode.ELEMENT_NODE) { backgroundColorNode = backgroundColorNode.parentNode; backgroundColor = use_colors_getComputedStyle(backgroundColorNode).backgroundColor; } @@ -15521,7 +17411,7 @@ function __experimentalUseColors(colorConfigs) { }; } - var _colorConfig$color = use_colors_objectSpread({}, colorConfig, { + var _colorConfig$color = use_colors_objectSpread(use_colors_objectSpread({}, colorConfig), {}, { color: attributes[colorConfig.name] }), name = _colorConfig$color.name, @@ -15575,7 +17465,7 @@ function __experimentalUseColors(colorConfigs) { detectedColor: detectedColor, panelChildren: panelChildren }; - return use_colors_objectSpread({}, components, { + return use_colors_objectSpread(use_colors_objectSpread({}, components), {}, { ColorPanel: Object(external_this_wp_element_["createElement"])(color_panel_ColorPanel, wrappedColorPanelProps), InspectorControlsColorPanel: Object(external_this_wp_element_["createElement"])(use_colors_InspectorControlsColorPanel, wrappedColorPanelProps) }); @@ -15599,11 +17489,12 @@ function __experimentalUseColors(colorConfigs) { + function with_font_sizes_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 with_font_sizes_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_font_sizes_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 { with_font_sizes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function with_font_sizes_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_font_sizes_isNativeReflectConstruct()) { 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 with_font_sizes_createSuper(Derived) { var hasNativeReflectConstruct = with_font_sizes_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 with_font_sizes_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; } } @@ -15617,12 +17508,13 @@ function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "un - /** * Internal dependencies */ + +var DEFAULT_FONT_SIZES = []; /** * Higher-order component, which handles font size logic for class generation, * font size value retrieval, and font size change handling. @@ -15648,14 +17540,14 @@ function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "un fontSizeAttributeNamesAccumulator[fontSizeAttributeName] = "custom".concat(Object(external_this_lodash_["upperFirst"])(fontSizeAttributeName)); return fontSizeAttributeNamesAccumulator; }, {}); - return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - fontSizes = _select$getSettings.fontSizes; - - return { - fontSizes: fontSizes + return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + var fontSizes = useEditorFeature('typography.fontSizes') || DEFAULT_FONT_SIZES; + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { + fontSizes: fontSizes + })); }; - }), function (WrappedComponent) { + }, 'withFontSizes'), function (WrappedComponent) { return /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(_class, _Component); @@ -15701,9 +17593,9 @@ function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "un }, { key: "render", value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_font_sizes_objectSpread({}, this.props, { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_font_sizes_objectSpread(with_font_sizes_objectSpread(with_font_sizes_objectSpread({}, this.props), {}, { fontSizes: undefined - }, this.state, {}, this.setters)); + }, this.state), this.setters)); } }], [{ key: "getDerivedStateFromProps", @@ -15733,12 +17625,12 @@ function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "un var newState = Object(external_this_lodash_["reduce"])(Object(external_this_lodash_["pickBy"])(fontSizeAttributeNames, didAttributesChange), function (newStateAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { var fontSizeAttributeValue = attributes[fontSizeAttributeName]; var fontSizeObject = utils_getFontSize(fontSizes, fontSizeAttributeValue, attributes[customFontSizeAttributeName]); - newStateAccumulator[fontSizeAttributeName] = with_font_sizes_objectSpread({}, fontSizeObject, { + newStateAccumulator[fontSizeAttributeName] = with_font_sizes_objectSpread(with_font_sizes_objectSpread({}, fontSizeObject), {}, { class: getFontSizeClass(fontSizeAttributeValue) }); return newStateAccumulator; }, {}); - return with_font_sizes_objectSpread({}, previousState, {}, newState); + return with_font_sizes_objectSpread(with_font_sizes_objectSpread({}, previousState), newState); } }]); @@ -15753,13 +17645,13 @@ function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "un // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(288); +var align_left = __webpack_require__(300); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(289); +var align_center = __webpack_require__(301); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(290); +var align_right = __webpack_require__(302); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js @@ -15831,7 +17723,7 @@ function AlignmentToolbar(props) { controls: alignmentControls.map(function (control) { var align = control.align; var isActive = value === align; - return alignment_toolbar_objectSpread({}, control, { + return alignment_toolbar_objectSpread(alignment_toolbar_objectSpread({}, control), {}, { isActive: isActive, role: isCollapsed ? 'menuitemradio' : undefined, onClick: applyOrUnset(align) @@ -15845,51 +17737,81 @@ function AlignmentToolbar(props) { -function search_items_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 search_items_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { search_items_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 { search_items_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - /** * External dependencies */ + // Default search helpers +var defaultGetName = function defaultGetName(item) { + return item.name || ''; +}; + +var defaultGetTitle = function defaultGetTitle(item) { + return item.title; +}; + +var defaultGetKeywords = function defaultGetKeywords(item) { + return item.keywords || []; +}; + +var defaultGetCategory = function defaultGetCategory(item) { + return item.category; +}; + +var defaultGetCollection = function defaultGetCollection() { + return null; +}; +/** + * Sanitizes the search input string. + * + * @param {string} input The search input to normalize. + * + * @return {string} The normalized search input. + */ + + +function normalizeSearchInput() { + var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + // Disregard diacritics. + // Input: "média" + input = Object(external_this_lodash_["deburr"])(input); // Accommodate leading slash, matching autocomplete expectations. + // Input: "/media" + + input = input.replace(/^\//, ''); // Lowercase. + // Input: "MEDIA" + + input = input.toLowerCase(); + return input; +} /** * Converts the search term into a list of normalized terms. * - * @param {string} term The search term to normalize. + * @param {string} input The search term to normalize. * * @return {string[]} The normalized list of search terms. */ -var search_items_normalizeSearchTerm = function normalizeSearchTerm() { - var term = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - // Disregard diacritics. - // Input: "média" - term = Object(external_this_lodash_["deburr"])(term); // Accommodate leading slash, matching autocomplete expectations. - // Input: "/media" - term = term.replace(/^\//, ''); // Lowercase. - // Input: "MEDIA" - - term = term.toLowerCase(); // Extract words. - - return Object(external_this_lodash_["words"])(term); +var search_items_getNormalizedSearchTerms = function getNormalizedSearchTerms() { + var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + // Extract words. + return Object(external_this_lodash_["words"])(normalizeSearchInput(input)); }; var search_items_removeMatchingTerms = function removeMatchingTerms(unmatchedTerms, unprocessedTerms) { - return Object(external_this_lodash_["differenceWith"])(unmatchedTerms, search_items_normalizeSearchTerm(unprocessedTerms), function (unmatchedTerm, unprocessedTerm) { + return Object(external_this_lodash_["differenceWith"])(unmatchedTerms, search_items_getNormalizedSearchTerms(unprocessedTerms), function (unmatchedTerm, unprocessedTerm) { return unprocessedTerm.includes(unmatchedTerm); }); }; -var search_items_searchBlockItems = function searchBlockItems(items, categories, collections, searchTerm) { - var normalizedSearchTerms = search_items_normalizeSearchTerm(searchTerm); +var search_items_searchBlockItems = function searchBlockItems(items, categories, collections, searchInput) { + var normalizedSearchTerms = search_items_getNormalizedSearchTerms(searchInput); if (normalizedSearchTerms.length === 0) { return items; } - return search_items_searchItems(items, searchTerm, { + var config = { getCategory: function getCategory(item) { var _find; @@ -15902,91 +17824,121 @@ var search_items_searchBlockItems = function searchBlockItems(items, categories, return (_collections$item$nam = collections[item.name.split('/')[0]]) === null || _collections$item$nam === void 0 ? void 0 : _collections$item$nam.title; }, - getVariations: function getVariations(item) { - return (item.variations || []).map(function (variation) { - return variation.title; - }); + getVariations: function getVariations(_ref) { + var _ref$variations = _ref.variations, + variations = _ref$variations === void 0 ? [] : _ref$variations; + return Array.from(variations.reduce(function (accumulator, _ref2) { + var title = _ref2.title, + _ref2$keywords = _ref2.keywords, + keywords = _ref2$keywords === void 0 ? [] : _ref2$keywords; + accumulator.add(title); + keywords.forEach(function (keyword) { + return accumulator.add(keyword); + }); + return accumulator; + }, new Set())); } - }).map(function (item) { - if (Object(external_this_lodash_["isEmpty"])(item.variations)) { - return item; - } - - var matchedVariations = item.variations.filter(function (variation) { - return Object(external_this_lodash_["intersectionWith"])(normalizedSearchTerms, search_items_normalizeSearchTerm(variation.title), function (termToMatch, labelTerm) { - return labelTerm.includes(termToMatch); - }).length > 0; - }); // When no variations matched, fallback to all variations. - - if (Object(external_this_lodash_["isEmpty"])(matchedVariations)) { - return item; - } - - return search_items_objectSpread({}, item, { - variations: matchedVariations - }); - }); + }; + return search_items_searchItems(items, searchInput, config); }; /** * Filters an item list given a search term. * - * @param {Array} items Item list - * @param {string} searchTerm Search term. - * @param {Object} config Search Config. - * @return {Array} Filtered item list. + * @param {Array} items Item list + * @param {string} searchInput Search input. + * @param {Object} config Search Config. + * @return {Array} Filtered item list. */ var search_items_searchItems = function searchItems() { var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var searchTerm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var searchInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var normalizedSearchTerms = search_items_normalizeSearchTerm(searchTerm); + var normalizedSearchTerms = search_items_getNormalizedSearchTerms(searchInput); if (normalizedSearchTerms.length === 0) { return items; } - var defaultGetTitle = function defaultGetTitle(item) { - return item.title; - }; + var rankedItems = items.map(function (item) { + return [item, getItemSearchRank(item, searchInput, config)]; + }).filter(function (_ref3) { + var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 2), + rank = _ref4[1]; - var defaultGetKeywords = function defaultGetKeywords(item) { - return item.keywords || []; - }; + return rank > 0; + }); + rankedItems.sort(function (_ref5, _ref6) { + var _ref7 = Object(slicedToArray["a" /* default */])(_ref5, 2), + rank1 = _ref7[1]; - var defaultGetCategory = function defaultGetCategory(item) { - return item.category; - }; + var _ref8 = Object(slicedToArray["a" /* default */])(_ref6, 2), + rank2 = _ref8[1]; - var defaultGetCollection = function defaultGetCollection() { - return null; - }; + return rank2 - rank1; + }); + return rankedItems.map(function (_ref9) { + var _ref10 = Object(slicedToArray["a" /* default */])(_ref9, 1), + item = _ref10[0]; - var defaultGetVariations = function defaultGetVariations() { - return []; - }; + return item; + }); +}; +/** + * Get the search rank for a given item and a specific search term. + * The better the match, the higher the rank. + * If the rank equals 0, it should be excluded from the results. + * + * @param {Object} item Item to filter. + * @param {string} searchTerm Search term. + * @param {Object} config Search Config. + * @return {number} Search Rank. + */ - var _config$getTitle = config.getTitle, +function getItemSearchRank(item, searchTerm) { + var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var _config$getName = config.getName, + getName = _config$getName === void 0 ? defaultGetName : _config$getName, + _config$getTitle = config.getTitle, getTitle = _config$getTitle === void 0 ? defaultGetTitle : _config$getTitle, _config$getKeywords = config.getKeywords, getKeywords = _config$getKeywords === void 0 ? defaultGetKeywords : _config$getKeywords, _config$getCategory = config.getCategory, getCategory = _config$getCategory === void 0 ? defaultGetCategory : _config$getCategory, _config$getCollection = config.getCollection, - getCollection = _config$getCollection === void 0 ? defaultGetCollection : _config$getCollection, - _config$getVariations = config.getVariations, - getVariations = _config$getVariations === void 0 ? defaultGetVariations : _config$getVariations; - return items.filter(function (item) { - var title = getTitle(item); - var keywords = getKeywords(item); - var category = getCategory(item); - var collection = getCollection(item); - var variations = getVariations(item); - var terms = [title].concat(Object(toConsumableArray["a" /* default */])(keywords), [category, collection], Object(toConsumableArray["a" /* default */])(variations)).join(' '); + getCollection = _config$getCollection === void 0 ? defaultGetCollection : _config$getCollection; + var name = getName(item); + var title = getTitle(item); + var keywords = getKeywords(item); + var category = getCategory(item); + var collection = getCollection(item); + var normalizedSearchInput = normalizeSearchInput(searchTerm); + var normalizedTitle = normalizeSearchInput(title); + var rank = 0; // Prefers exact matches + // Then prefers if the beginning of the title matches the search term + // name, keywords, categories, collection, variations match come later. + + if (normalizedSearchInput === normalizedTitle) { + rank += 30; + } else if (normalizedTitle.startsWith(normalizedSearchInput)) { + rank += 20; + } else { + var terms = [name, title].concat(Object(toConsumableArray["a" /* default */])(keywords), [category, collection]).join(' '); + var normalizedSearchTerms = Object(external_this_lodash_["words"])(normalizedSearchInput); var unmatchedTerms = search_items_removeMatchingTerms(normalizedSearchTerms, terms); - return unmatchedTerms.length === 0; - }); -}; + + if (unmatchedTerms.length === 0) { + rank += 10; + } + } // Give a better rank to "core" namespaced items. + + + if (rank !== 0 && name.startsWith('core/')) { + rank++; + } + + return rank; +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-block-types-state.js @@ -16068,54 +18020,8 @@ var use_block_types_state_useBlockTypesState = function useBlockTypesState(rootC /* harmony default export */ var use_block_types_state = (use_block_types_state_useBlockTypesState); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/utils.js - - -function utils_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 utils_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { utils_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 { utils_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * Normalizes an inserter block types list and includes variations as separate items. - * - * @param {Array} items Denormalized inserter items - * @return {Array} Normalized inserter items. - */ -function includeVariationsInInserterItems(items) { - return items.reduce(function (result, item) { - var _item$variations = item.variations, - variations = _item$variations === void 0 ? [] : _item$variations; - var hasDefaultVariation = variations.some(function (_ref) { - var isDefault = _ref.isDefault; - return isDefault; - }); // If there is no default inserter variation provided, - // then default block type is displayed. - - if (!hasDefaultVariation) { - result.push(item); - } - - if (variations.length) { - result = result.concat(variations.map(function (variation) { - return utils_objectSpread({}, item, { - id: "".concat(item.id, "-").concat(variation.name), - icon: variation.icon || item.icon, - title: variation.title || item.title, - description: variation.description || item.description, - // If `example` is explicitly undefined for the variation, the preview will not be shown. - example: variation.hasOwnProperty('example') ? variation.example : item.example, - initialAttributes: utils_objectSpread({}, item.initialAttributes, {}, variation.attributes), - innerBlocks: variation.innerBlocks - }); - })); - } - - return result; - }, []); -} - // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js -var block_default = __webpack_require__(201); +var block_default = __webpack_require__(207); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js @@ -16180,7 +18086,7 @@ function BlockIcon(_ref) { - +var SHOWN_BLOCK_TYPES = 9; var block_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref) { @@ -16237,12 +18143,13 @@ function createBlockCompleter() { collections = _useBlockTypesState2[2]; var filteredItems = Object(external_this_wp_element_["useMemo"])(function () { - return search_items_searchBlockItems(items, categories, collections, filterValue).filter(function (item) { + var initialFilteredItems = !!filterValue.trim() ? search_items_searchBlockItems(items, categories, collections, filterValue) : Object(external_this_lodash_["orderBy"])(items, ['frecency'], ['desc']); + return initialFilteredItems.filter(function (item) { return item.name !== selectedBlockName; - }); + }).slice(0, SHOWN_BLOCK_TYPES); }, [filterValue, selectedBlockName, items, categories, collections]); var options = Object(external_this_wp_element_["useMemo"])(function () { - return includeVariationsInInserterItems(filteredItems).map(function (blockItem) { + return filteredItems.map(function (blockItem) { var title = blockItem.title, icon = blockItem.icon, isDisabled = blockItem.isDisabled; @@ -16312,7 +18219,7 @@ function createBlockCompleter() { * @type {Array} */ -var EMPTY_ARRAY = []; +var autocomplete_EMPTY_ARRAY = []; /** * Wrap the default Autocomplete component with one that supports a filter hook * for customizing its list of autocompleters. @@ -16321,11 +18228,11 @@ var EMPTY_ARRAY = []; */ function BlockEditorAutocomplete(props) { - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), name = _useBlockEditContext.name; var _props$completers = props.completers, - completers = _props$completers === void 0 ? EMPTY_ARRAY : _props$completers; + completers = _props$completers === void 0 ? autocomplete_EMPTY_ARRAY : _props$completers; completers = Object(external_this_wp_element_["useMemo"])(function () { var filteredCompleters = completers; @@ -16423,11 +18330,16 @@ function BlockAlignmentMatrixToolbar(props) { /* harmony default export */ var block_alignment_matrix_toolbar = (BlockAlignmentMatrixToolbar); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-title/index.js +/** + * External dependencies + */ + /** * WordPress dependencies */ + /** * Renders the block's configured title as a string, or empty if the title * cannot be determined. @@ -16446,16 +18358,23 @@ function BlockAlignmentMatrixToolbar(props) { function BlockTitle(_ref) { var clientId = _ref.clientId; - var name = Object(external_this_wp_data_["useSelect"])(function (select) { + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { if (!clientId) { - return null; + return {}; } var _select = select('core/block-editor'), - getBlockName = _select.getBlockName; + getBlockName = _select.getBlockName, + getBlockAttributes = _select.getBlockAttributes; - return getBlockName(clientId); - }, [clientId]); + return { + attributes: getBlockAttributes(clientId), + name: getBlockName(clientId) + }; + }, [clientId]), + attributes = _useSelect.attributes, + name = _useSelect.name; if (!name) { return null; @@ -16467,7 +18386,17 @@ function BlockTitle(_ref) { return null; } - return blockType.title; + var title = blockType.title; + var label = Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, attributes); // Label will often fall back to the title if no label is defined for the + // current label context. We do not want "Paragraph: Paragraph". + + if (label !== title) { + return "".concat(title, ": ").concat(Object(external_this_lodash_["truncate"])(label, { + length: 15 + })); + } + + return title; } // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-breadcrumb/index.js @@ -16578,7 +18507,7 @@ function block_context_objectSpread(target) { for (var i = 1; i < arguments.leng /** @type {import('react').Context>} */ -var block_context_Context = Object(external_this_wp_element_["createContext"])({}); +var Context = Object(external_this_wp_element_["createContext"])({}); /** * Component which merges passed value with current consumed block context. * @@ -16590,16 +18519,16 @@ var block_context_Context = Object(external_this_wp_element_["createContext"])({ function BlockContextProvider(_ref) { var value = _ref.value, children = _ref.children; - var context = Object(external_this_wp_element_["useContext"])(block_context_Context); + var context = Object(external_this_wp_element_["useContext"])(Context); var nextValue = Object(external_this_wp_element_["useMemo"])(function () { - return block_context_objectSpread({}, context, {}, value); + return block_context_objectSpread(block_context_objectSpread({}, context), value); }, [context, value]); - return Object(external_this_wp_element_["createElement"])(block_context_Context.Provider, { + return Object(external_this_wp_element_["createElement"])(Context.Provider, { value: nextValue, children: children }); } -/* harmony default export */ var block_context = (block_context_Context); +/* harmony default export */ var block_context = (Context); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-style-selector/index.js @@ -16694,10 +18623,6 @@ var color_style_selector_BlockColorsStyleSelector = function BlockColorsStyleSel /* harmony default export */ var color_style_selector = (color_style_selector_BlockColorsStyleSelector); -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js @@ -16714,7 +18639,6 @@ var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(ext - /** * Internal dependencies */ @@ -16738,16 +18662,6 @@ var edit_Edit = function Edit(props) { var blockContext = Object(external_this_wp_element_["useContext"])(block_context); // Assign context values using the block type's declared context needs. var context = Object(external_this_wp_element_["useMemo"])(function () { - if (blockType && blockType.context) { - external_this_wp_deprecated_default()('Block type "context" option', { - alternative: '"usesContext"', - version: '8.6.0', - hint: "Block \"".concat(name, "\"."), - link: 'https://developer.wordpress.org/block-editor/developers/block-api/block-context/' - }); - return Object(external_this_lodash_["pick"])(blockContext, blockType.context); - } - return blockType && blockType.usesContext ? Object(external_this_lodash_["pick"])(blockContext, blockType.usesContext) : DEFAULT_BLOCK_CONTEXT; }, [blockType, blockContext]); @@ -16804,7 +18718,7 @@ function block_edit_BlockEdit(props) { onFocus: onFocus, onCaretVerticalPositionChange: onCaretVerticalPositionChange }; - return Object(external_this_wp_element_["createElement"])(Provider // It is important to return the same object if props haven't + return Object(external_this_wp_element_["createElement"])(block_edit_context["a" /* BlockEditContextProvider */] // It is important to return the same object if props haven't // changed to avoid unnecessary rerenders. // See https://reactjs.org/docs/context.html#caveats. , { @@ -16846,7 +18760,7 @@ function BlockFormatControlsSlot(props) { } function BlockFormatControlsFill(props) { - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), isSelected = _useBlockEditContext.isSelected; if (!isSelected) { @@ -16870,16 +18784,16 @@ var external_this_regeneratorRuntime_ = __webpack_require__(24); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(50); +var asyncToGenerator = __webpack_require__(47); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js -var more_vertical = __webpack_require__(297); +var more_vertical = __webpack_require__(313); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(113); +var web_cjs = __webpack_require__(116); // EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(30); +var external_this_wp_dom_ = __webpack_require__(29); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-moving-animation/index.js @@ -17108,16 +19022,16 @@ function BlockNavigationLeaf(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(293); +var chevron_right = __webpack_require__(213); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(294); +var chevron_left = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(295); +var chevron_up = __webpack_require__(311); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(296); +var chevron_down = __webpack_require__(312); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js /** @@ -17535,34 +19449,33 @@ function Warning(_ref) { key: i, className: "block-editor-warning__action" }, action); - }), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + }), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { className: "block-editor-warning__secondary", - position: "bottom left", - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: more_horizontal, - label: Object(external_this_wp_i18n_["__"])('More options'), - onClick: onToggle, - "aria-expanded": isOpen - }); + icon: more_horizontal, + label: Object(external_this_wp_i18n_["__"])('More options'), + popoverProps: { + position: 'bottom left', + className: 'block-editor-warning__dropdown' }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: item.onClick, - key: pos - }, item.title); - })); - } + noIcons: true + }, function () { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: item.onClick, + key: pos + }, item.title); + })); })))); } +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/warning/README.md + */ + /* harmony default export */ var warning = (Warning); // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/node_modules/diff/lib/diff/character.js -var diff_character = __webpack_require__(263); +var diff_character = __webpack_require__(277); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js @@ -17691,15 +19604,6 @@ function BlockCompare(_ref) { - - - - - -function block_invalid_warning_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_invalid_warning_isNativeReflectConstruct()) { 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 block_invalid_warning_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; } } - /** * WordPress dependencies */ @@ -17715,87 +19619,59 @@ function block_invalid_warning_isNativeReflectConstruct() { if (typeof Reflect = -var block_invalid_warning_BlockInvalidWarning = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(BlockInvalidWarning, _Component); +function BlockInvalidWarning(_ref) { + var convertToHTML = _ref.convertToHTML, + convertToBlocks = _ref.convertToBlocks, + convertToClassic = _ref.convertToClassic, + attemptBlockRecovery = _ref.attemptBlockRecovery, + block = _ref.block; + var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var _super = block_invalid_warning_createSuper(BlockInvalidWarning); + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + compare = _useState2[0], + setCompare = _useState2[1]; - function BlockInvalidWarning(props) { - var _this; + var onCompare = Object(external_this_wp_element_["useCallback"])(function () { + return setCompare(true); + }, []); + var onCompareClose = Object(external_this_wp_element_["useCallback"])(function () { + return setCompare(false); + }, []); // We memo the array here to prevent the children components from being updated unexpectedly - Object(classCallCheck["a" /* default */])(this, BlockInvalidWarning); - - _this = _super.call(this, props); - _this.state = { - compare: false - }; - _this.onCompare = _this.onCompare.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onCompareClose = _this.onCompareClose.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockInvalidWarning, [{ - key: "onCompare", - value: function onCompare() { - this.setState({ - compare: true - }); - } - }, { - key: "onCompareClose", - value: function onCompareClose() { - this.setState({ - compare: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - convertToHTML = _this$props.convertToHTML, - convertToBlocks = _this$props.convertToBlocks, - convertToClassic = _this$props.convertToClassic, - attemptBlockRecovery = _this$props.attemptBlockRecovery, - block = _this$props.block; - var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var compare = this.state.compare; - var hiddenActions = [{ - title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), - onClick: convertToClassic - }, { - title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), - onClick: attemptBlockRecovery - }]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(warning, { - actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "convert", - onClick: this.onCompare, - isSecondary: hasHTMLBlock, - isPrimary: !hasHTMLBlock - }, // translators: Button to fix block content - Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb')), hasHTMLBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "edit", - onClick: convertToHTML, - isPrimary: true - }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], - secondaryActions: hiddenActions - }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')), compare && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { - title: // translators: Dialog title to fix block content - Object(external_this_wp_i18n_["__"])('Resolve Block'), - onRequestClose: this.onCompareClose, - className: "block-editor-block-compare" - }, Object(external_this_wp_element_["createElement"])(block_compare, { - block: block, - onKeep: convertToHTML, - onConvert: convertToBlocks, - convertor: block_invalid_warning_blockToBlocks, - convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') - }))); - } - }]); - - return BlockInvalidWarning; -}(external_this_wp_element_["Component"]); + var hiddenActions = Object(external_this_wp_element_["useMemo"])(function () { + return [{ + // translators: Button to fix block content + title: Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb'), + onClick: onCompare + }, hasHTMLBlock && { + title: Object(external_this_wp_i18n_["__"])('Convert to HTML'), + onClick: convertToHTML + }, { + title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), + onClick: convertToClassic + }].filter(Boolean); + }, [onCompare, convertToHTML, convertToClassic]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(warning, { + actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "recover", + onClick: attemptBlockRecovery, + isPrimary: true + }, Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'))], + secondaryActions: hiddenActions + }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')), compare && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { + title: // translators: Dialog title to fix block content + Object(external_this_wp_i18n_["__"])('Resolve Block'), + onRequestClose: onCompareClose, + className: "block-editor-block-compare" + }, Object(external_this_wp_element_["createElement"])(block_compare, { + block: block, + onKeep: convertToHTML, + onConvert: convertToBlocks, + convertor: block_invalid_warning_blockToBlocks, + convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') + }))); +} var block_invalid_warning_blockToClassic = function blockToClassic(block) { return Object(external_this_wp_blocks_["createBlock"])('core/freeform', { @@ -17815,20 +19691,20 @@ var block_invalid_warning_blockToBlocks = function blockToBlocks(block) { }); }; -var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { - var name = _ref.name, - attributes = _ref.attributes, - innerBlocks = _ref.innerBlocks; +var block_invalid_warning_recoverBlock = function recoverBlock(_ref2) { + var name = _ref2.name, + attributes = _ref2.attributes, + innerBlocks = _ref2.innerBlocks; return Object(external_this_wp_blocks_["createBlock"])(name, attributes, innerBlocks); }; -/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; +/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var clientId = _ref3.clientId; return { block: select('core/block-editor').getBlock(clientId) }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var block = _ref3.block; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref4) { + var block = _ref4.block; var _dispatch = dispatch('core/block-editor'), replaceBlock = _dispatch.replaceBlock; @@ -17847,7 +19723,7 @@ var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { replaceBlock(block.clientId, block_invalid_warning_recoverBlock(block)); } }; -})])(block_invalid_warning_BlockInvalidWarning)); +})])(BlockInvalidWarning)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js @@ -17875,7 +19751,7 @@ var block_crash_warning_warning = Object(external_this_wp_element_["createElemen -function block_crash_boundary_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_crash_boundary_isNativeReflectConstruct()) { 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 block_crash_boundary_createSuper(Derived) { var hasNativeReflectConstruct = block_crash_boundary_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 block_crash_boundary_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; } } @@ -17926,7 +19802,7 @@ var block_crash_boundary_BlockCrashBoundary = /*#__PURE__*/function (_Component) /* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var lib = __webpack_require__(97); +var lib = __webpack_require__(99); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js @@ -17994,6 +19870,10 @@ function BlockHTML(_ref) { /* harmony default export */ var block_html = (BlockHTML); +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-multi-selection.js @@ -18083,12 +19963,15 @@ function useMultiSelection(ref) { */ Object(external_this_wp_element_["useEffect"])(function () { + var ownerDocument = ref.current.ownerDocument; + var defaultView = ownerDocument.defaultView; + if (!hasMultiSelection || isMultiSelecting) { if (!selectedBlockClientId || isMultiSelecting) { return; } - var _selection = window.getSelection(); + var _selection = defaultView.getSelection(); if (_selection.rangeCount && !_selection.isCollapsed) { var blockNode = getBlockDOMNode(selectedBlockClientId); @@ -18116,8 +19999,8 @@ function useMultiSelection(ref) { var end = multiSelectedBlockClientIds[length - 1]; var startNode = getBlockDOMNode(start); var endNode = getBlockDOMNode(end); - var selection = window.getSelection(); - var range = document.createRange(); // The most stable way to select the whole block contents is to start + var selection = defaultView.getSelection(); + var range = ownerDocument.createRange(); // The most stable way to select the whole block contents is to start // and end at the deepest points. startNode = getDeepestNode(startNode, 'start'); @@ -18129,7 +20012,9 @@ function useMultiSelection(ref) { }, [hasMultiSelection, isMultiSelecting, multiSelectedBlockClientIds, selectBlock, selectedBlockClientId]); var onSelectionChange = Object(external_this_wp_element_["useCallback"])(function (_ref) { var isSelectionEnd = _ref.isSelectionEnd; - var selection = window.getSelection(); // If no selection is found, end multi selection and enable all rich + var ownerDocument = ref.current.ownerDocument; + var defaultView = ownerDocument.defaultView; + var selection = defaultView.getSelection(); // If no selection is found, end multi selection and enable all rich // text areas. if (!selection.rangeCount || selection.isCollapsed) { @@ -18171,12 +20056,14 @@ function useMultiSelection(ref) { */ var onSelectionEnd = Object(external_this_wp_element_["useCallback"])(function () { - document.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once. + var ownerDocument = ref.current.ownerDocument; + var defaultView = ownerDocument.defaultView; + ownerDocument.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once. - window.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point, so wait + defaultView.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point, so wait // until the next animation frame to get the browser selection. - rafId.current = window.requestAnimationFrame(function () { + rafId.current = defaultView.requestAnimationFrame(function () { onSelectionChange({ isSelectionEnd: true }); @@ -18185,10 +20072,12 @@ function useMultiSelection(ref) { }, [onSelectionChange, stopMultiSelect]); // Only clean up when unmounting, these are added and cleaned up elsewhere. Object(external_this_wp_element_["useEffect"])(function () { + var ownerDocument = ref.current.ownerDocument; + var defaultView = ownerDocument.defaultView; return function () { - document.removeEventListener('selectionchange', onSelectionChange); - window.removeEventListener('mouseup', onSelectionEnd); - window.cancelAnimationFrame(rafId.current); + ownerDocument.removeEventListener('selectionchange', onSelectionChange); + defaultView.removeEventListener('mouseup', onSelectionEnd); + defaultView.cancelAnimationFrame(rafId.current); }; }, [onSelectionChange, onSelectionEnd]); /** @@ -18201,14 +20090,16 @@ function useMultiSelection(ref) { return; } + var ownerDocument = ref.current.ownerDocument; + var defaultView = ownerDocument.defaultView; startClientId.current = clientId; - anchorElement.current = document.activeElement; + anchorElement.current = ownerDocument.activeElement; startMultiSelect(); // `onSelectionStart` is called after `mousedown` and `mouseleave` // (from a block). The selection ends when `mouseup` happens anywhere // in the window. - document.addEventListener('selectionchange', onSelectionChange); - window.addEventListener('mouseup', onSelectionEnd); // Removing the contenteditable attributes within the block editor is + ownerDocument.addEventListener('selectionchange', onSelectionChange); + defaultView.addEventListener('mouseup', onSelectionEnd); // Removing the contenteditable attributes within the block editor is // essential for selection to work across editable areas. The edible // hosts are removed, allowing selection to be extended outside the // DOM element. `startMultiSelect` sets a flag in the store so the rich @@ -18222,7 +20113,7 @@ function useMultiSelection(ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(291); +var plus = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js @@ -18255,13 +20146,13 @@ function Tips() { /* harmony default export */ var tips = (Tips); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(176); +var close_small = __webpack_require__(181); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(137); +var build_module_icon = __webpack_require__(142); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js -var search = __webpack_require__(292); +var search = __webpack_require__(303); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-form.js @@ -18283,7 +20174,8 @@ var search = __webpack_require__(292); function InserterSearchForm(_ref) { var className = _ref.className, _onChange = _ref.onChange, - value = _ref.value; + value = _ref.value, + placeholder = _ref.placeholder; var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InserterSearchForm); var searchInput = Object(external_this_wp_element_["useRef"])(); // Disable reason (no-autofocus): The inserter menu is a modal display, not one which // is always visible, and one which already incurs this behavior of autoFocus via @@ -18296,12 +20188,12 @@ function InserterSearchForm(_ref) { }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { as: "label", htmlFor: "block-editor-inserter__search-".concat(instanceId) - }, Object(external_this_wp_i18n_["__"])('Search for a block')), Object(external_this_wp_element_["createElement"])("input", { + }, placeholder), Object(external_this_wp_element_["createElement"])("input", { ref: searchInput, className: "block-editor-inserter__search-input", id: "block-editor-inserter__search-".concat(instanceId), type: "search", - placeholder: Object(external_this_wp_i18n_["__"])('Search for a block'), + placeholder: placeholder, autoFocus: true, onChange: function onChange(event) { return _onChange(event.target.value); @@ -18366,10 +20258,6 @@ var PREFERENCES_DEFAULTS = { * @typedef {Object} SETTINGS_DEFAULT * @property {boolean} alignWide Enable/Disable Wide/Full Alignments * @property {Array} availableLegacyWidgets Array of objects representing the legacy widgets available. - * @property {Array} colors Palette colors - * @property {boolean} disableCustomColors Whether or not the custom colors are disabled - * @property {Array} fontSizes Available font sizes - * @property {boolean} disableCustomFontSizes Whether or not the custom font sizes are disabled * @property {boolean} imageEditing Image Editing settings set to false to disable. * @property {Array} imageSizes Available image sizes * @property {number} maxWidth Max width to constraint resizing @@ -18384,14 +20272,17 @@ var PREFERENCES_DEFAULTS = { * @property {string} titlePlaceholder Empty title placeholder * @property {boolean} codeEditingEnabled Whether or not the user can switch to the code editor * @property {boolean} __experimentalCanUserUseUnfilteredHTML Whether the user should be able to use unfiltered HTML or the HTML should be filtered e.g., to remove elements considered insecure like iframes. - * @property {boolean} __experimentalEnableLegacyWidgetBlock Whether the user has enabled the Legacy Widget Block * @property {boolean} __experimentalBlockDirectory Whether the user has enabled the Block Directory * @property {boolean} __experimentalEnableFullSiteEditing Whether the user has enabled Full Site Editing * @property {boolean} __experimentalEnableFullSiteEditingDemo Whether the user has enabled Full Site Editing Demo Templates + * @property {Array} __experimentalBlockPatterns Array of objects representing the block patterns + * @property {Array} __experimentalBlockPatternCategories Array of objects representing the block pattern categories */ var SETTINGS_DEFAULTS = { alignWide: false, + // colors setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults. + // The setting is only kept for backward compatibility purposes. colors: [{ name: Object(external_this_wp_i18n_["__"])('Black'), slug: 'black', @@ -18441,6 +20332,8 @@ var SETTINGS_DEFAULTS = { slug: 'vivid-purple', color: '#9b51e0' }], + // fontSizes setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults. + // The setting is only kept for backward compatibility purposes. fontSizes: [{ name: Object(external_this_wp_i18n_["_x"])('Small', 'font size name'), size: 13, @@ -18459,7 +20352,7 @@ var SETTINGS_DEFAULTS = { slug: 'large' }, { name: Object(external_this_wp_i18n_["_x"])('Huge', 'font size name'), - size: 48, + size: 42, slug: 'huge' }], imageSizes: [{ @@ -18489,11 +20382,14 @@ var SETTINGS_DEFAULTS = { availableLegacyWidgets: {}, hasPermissionsToManageWidgets: false, __experimentalCanUserUseUnfilteredHTML: false, - __experimentalEnableLegacyWidgetBlock: false, __experimentalBlockDirectory: false, __experimentalEnableFullSiteEditing: false, __experimentalEnableFullSiteEditingDemo: false, __mobileEnablePageTemplates: false, + __experimentalBlockPatterns: [], + __experimentalBlockPatternCategories: [], + // gradients setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults. + // The setting is only kept for backward compatibility purposes. gradients: [{ name: Object(external_this_wp_i18n_["__"])('Vivid cyan blue to vivid purple'), gradient: 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)', @@ -18868,25 +20764,25 @@ var reducer_withBlockCache = function withBlockCache(reducer) { updatedBlockUids.push(action.rootClientId); } - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(updatedBlockUids))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds(updatedBlockUids))); break; } case 'UPDATE_BLOCK': - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds([action.clientId]))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds([action.clientId]))); break; case 'UPDATE_BLOCK_ATTRIBUTES': - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.clientIds))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.clientIds))); break; case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': var parentClientIds = fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.replacedClientIds)); - newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.replacedClientIds), {}, Object(external_this_lodash_["omit"])(parentClientIds, action.replacedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)))); + newState.cache = reducer_objectSpread(reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.replacedClientIds)), Object(external_this_lodash_["omit"])(parentClientIds, action.replacedClientIds)), fillKeysWithEmptyObject(Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)))); break; case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.removedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["difference"])(getBlocksWithParentsClientIds(action.clientIds), action.clientIds))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.removedClientIds)), fillKeysWithEmptyObject(Object(external_this_lodash_["difference"])(getBlocksWithParentsClientIds(action.clientIds), action.clientIds))); break; case 'MOVE_BLOCKS_TO_POSITION': @@ -18901,7 +20797,7 @@ var reducer_withBlockCache = function withBlockCache(reducer) { _updatedBlockUids.push(action.toRootClientId); } - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids))); break; } @@ -18914,7 +20810,7 @@ var reducer_withBlockCache = function withBlockCache(reducer) { _updatedBlockUids2.push(action.rootClientId); } - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids2))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids2))); break; } @@ -18924,7 +20820,7 @@ var reducer_withBlockCache = function withBlockCache(reducer) { return newState.byClientId[clientId].name !== 'core/block' || attributes.ref !== action.updatedId; })); - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids3))); + newState.cache = reducer_objectSpread(reducer_objectSpread({}, newState.cache), fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids3))); } } @@ -18959,12 +20855,12 @@ function withPersistentBlockChange(reducer) { return state; } - return reducer_objectSpread({}, nextState, { + return reducer_objectSpread(reducer_objectSpread({}, nextState), {}, { isPersistentChange: nextIsPersistentChange }); } - nextState = reducer_objectSpread({}, nextState, { + nextState = reducer_objectSpread(reducer_objectSpread({}, nextState), {}, { isPersistentChange: isExplicitPersistentChange ? !markNextChangeAsNotPersistent : !isUpdatingSameBlockAttribute(action, lastAction) }); // In comparing against the previous action, consider only those which // would have qualified as one which would have been ignored or not @@ -19040,14 +20936,14 @@ var reducer_withInnerBlocksRemoveCascade = function withInnerBlocksRemoveCascade if (state) { switch (action.type) { case 'REMOVE_BLOCKS': - action = reducer_objectSpread({}, action, { + action = reducer_objectSpread(reducer_objectSpread({}, action), {}, { type: 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN', removedClientIds: getAllChildren(action.clientIds) }); break; case 'REPLACE_BLOCKS': - action = reducer_objectSpread({}, action, { + action = reducer_objectSpread(reducer_objectSpread({}, action), {}, { type: 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN', replacedClientIds: getAllChildren(action.clientIds) }); @@ -19103,12 +20999,12 @@ var reducer_withBlockReset = function withBlockReset(reducer) { * whenever you try to undo a change in the top level entity. */ - return reducer_objectSpread({}, state, { - byClientId: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.byClientId, visibleClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)), - attributes: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.attributes, visibleClientIds), {}, getFlattenedBlockAttributes(action.blocks)), - order: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.order, visibleClientIds), {}, Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), controlledInnerBlocks)), - parents: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.parents, visibleClientIds), {}, mapBlockParents(action.blocks)), - cache: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.cache, visibleClientIds), {}, Object(external_this_lodash_["omit"])(Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { + return reducer_objectSpread(reducer_objectSpread({}, state), {}, { + byClientId: reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.byClientId, visibleClientIds)), getFlattenedBlocksWithoutAttributes(action.blocks)), + attributes: reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.attributes, visibleClientIds)), getFlattenedBlockAttributes(action.blocks)), + order: reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.order, visibleClientIds)), Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), controlledInnerBlocks)), + parents: reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.parents, visibleClientIds)), mapBlockParents(action.blocks)), + cache: reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.cache, visibleClientIds)), Object(external_this_lodash_["omit"])(Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { return {}; }), controlledInnerBlocks)) }); @@ -19176,14 +21072,14 @@ var reducer_withReplaceInnerBlocks = function withReplaceInnerBlocks(reducer) { var stateAfterInsert = stateAfterBlocksRemoval; if (action.blocks.length) { - stateAfterInsert = reducer(stateAfterInsert, reducer_objectSpread({}, action, { + stateAfterInsert = reducer(stateAfterInsert, reducer_objectSpread(reducer_objectSpread({}, action), {}, { type: 'INSERT_BLOCKS', index: 0 })); // We need to re-attach the block order of the controlled inner blocks. // Otherwise, an inner block controller's blocks will be deleted entirely // from its entity.. - stateAfterInsert.order = reducer_objectSpread({}, stateAfterInsert.order, {}, Object(external_this_lodash_["reduce"])(nestedControllers, function (result, value, key) { + stateAfterInsert.order = reducer_objectSpread(reducer_objectSpread({}, stateAfterInsert.order), Object(external_this_lodash_["reduce"])(nestedControllers, function (result, value, key) { if (state.order[key]) { result[key] = state.order[key]; } @@ -19222,7 +21118,7 @@ var reducer_withSaveReusableBlock = function withSaveReusableBlock(reducer) { var name = state.byClientId[clientId].name; if (name === 'core/block' && attributes.ref === id) { - return reducer_objectSpread({}, attributes, { + return reducer_objectSpread(reducer_objectSpread({}, attributes), {}, { ref: updatedId }); } @@ -19258,7 +21154,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ case 'RECEIVE_BLOCKS': case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, getFlattenedBlocksWithoutAttributes(action.blocks)); + return reducer_objectSpread(reducer_objectSpread({}, state), getFlattenedBlocksWithoutAttributes(action.blocks)); case 'UPDATE_BLOCK': // Ignore updates if block isn't known @@ -19273,14 +21169,14 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return state; } - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, changes))); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread(reducer_objectSpread({}, state[action.clientId]), changes))); case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': if (!action.blocks) { return state; } - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)); + return reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds)), getFlattenedBlocksWithoutAttributes(action.blocks)); case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': return Object(external_this_lodash_["omit"])(state, action.removedClientIds); @@ -19298,7 +21194,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ case 'RECEIVE_BLOCKS': case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, getFlattenedBlockAttributes(action.blocks)); + return reducer_objectSpread(reducer_objectSpread({}, state), getFlattenedBlockAttributes(action.blocks)); case 'UPDATE_BLOCK': // Ignore updates if block isn't known or there are no attribute changes. @@ -19306,7 +21202,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return state; } - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, action.updates.attributes))); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread(reducer_objectSpread({}, state[action.clientId]), action.updates.attributes))); case 'UPDATE_BLOCK_ATTRIBUTES': { @@ -19318,7 +21214,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ } var next = action.clientIds.reduce(function (accumulator, id) { - return reducer_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, id, Object(external_this_lodash_["reduce"])(action.attributes, function (result, value, key) { + return reducer_objectSpread(reducer_objectSpread({}, accumulator), {}, Object(defineProperty["a" /* default */])({}, id, Object(external_this_lodash_["reduce"])(action.attributes, function (result, value, key) { // Consider as updates only changed values. if (value !== result[key]) { result = getMutateSafeObject(state[id], result); @@ -19335,7 +21231,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return state; } - return reducer_objectSpread({}, state, {}, next); + return reducer_objectSpread(reducer_objectSpread({}, state), next); } case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': @@ -19343,7 +21239,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return state; } - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlockAttributes(action.blocks)); + return reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds)), getFlattenedBlockAttributes(action.blocks)); case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': return Object(external_this_lodash_["omit"])(state, action.removedClientIds); @@ -19360,7 +21256,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return mapBlockOrder(action.blocks); case 'RECEIVE_BLOCKS': - return reducer_objectSpread({}, state, {}, Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), '')); + return reducer_objectSpread(reducer_objectSpread({}, state), Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), '')); case 'INSERT_BLOCKS': { @@ -19370,7 +21266,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ var mappedBlocks = mapBlockOrder(action.blocks, rootClientId); var _action$index = action.index, index = _action$index === void 0 ? subState.length : _action$index; - return reducer_objectSpread({}, state, {}, mappedBlocks, Object(defineProperty["a" /* default */])({}, rootClientId, insertAt(subState, mappedBlocks[rootClientId], index))); + return reducer_objectSpread(reducer_objectSpread(reducer_objectSpread({}, state), mappedBlocks), {}, Object(defineProperty["a" /* default */])({}, rootClientId, insertAt(subState, mappedBlocks[rootClientId], index))); } case 'MOVE_BLOCKS_TO_POSITION': @@ -19392,11 +21288,11 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ var fromIndex = _subState.indexOf(clientIds[0]); - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, toRootClientId, moveTo(state[toRootClientId], fromIndex, _index, clientIds.length))); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, toRootClientId, moveTo(state[toRootClientId], fromIndex, _index, clientIds.length))); } // Moving from a parent block to another - return reducer_objectSpread({}, state, (_objectSpread7 = {}, Object(defineProperty["a" /* default */])(_objectSpread7, fromRootClientId, external_this_lodash_["without"].apply(void 0, [state[fromRootClientId]].concat(Object(toConsumableArray["a" /* default */])(clientIds)))), Object(defineProperty["a" /* default */])(_objectSpread7, toRootClientId, insertAt(state[toRootClientId], clientIds, _index)), _objectSpread7)); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, (_objectSpread7 = {}, Object(defineProperty["a" /* default */])(_objectSpread7, fromRootClientId, external_this_lodash_["without"].apply(void 0, [state[fromRootClientId]].concat(Object(toConsumableArray["a" /* default */])(clientIds)))), Object(defineProperty["a" /* default */])(_objectSpread7, toRootClientId, insertAt(state[toRootClientId], clientIds, _index)), _objectSpread7)); } case 'MOVE_BLOCKS_UP': @@ -19414,7 +21310,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ var firstIndex = _subState2.indexOf(firstClientId); - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId, moveTo(_subState2, firstIndex, firstIndex - 1, _clientIds.length))); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, _rootClientId, moveTo(_subState2, firstIndex, firstIndex - 1, _clientIds.length))); } case 'MOVE_BLOCKS_DOWN': @@ -19434,7 +21330,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ var _firstIndex = _subState3.indexOf(_firstClientId); - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId2, moveTo(_subState3, _firstIndex, _firstIndex + 1, _clientIds2.length))); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, _rootClientId2, moveTo(_subState3, _firstIndex, _firstIndex + 1, _clientIds2.length))); } case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': @@ -19450,7 +21346,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return Object(external_this_lodash_["flow"])([function (nextState) { return Object(external_this_lodash_["omit"])(nextState, action.replacedClientIds); }, function (nextState) { - return reducer_objectSpread({}, nextState, {}, Object(external_this_lodash_["omit"])(_mappedBlocks, '')); + return reducer_objectSpread(reducer_objectSpread({}, nextState), Object(external_this_lodash_["omit"])(_mappedBlocks, '')); }, function (nextState) { return Object(external_this_lodash_["mapValues"])(nextState, function (subState) { return Object(external_this_lodash_["reduce"])(subState, function (result, clientId) { @@ -19493,21 +21389,21 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ return mapBlockParents(action.blocks); case 'RECEIVE_BLOCKS': - return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks)); + return reducer_objectSpread(reducer_objectSpread({}, state), mapBlockParents(action.blocks)); case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks, action.rootClientId || '')); + return reducer_objectSpread(reducer_objectSpread({}, state), mapBlockParents(action.blocks, action.rootClientId || '')); case 'MOVE_BLOCKS_TO_POSITION': { - return reducer_objectSpread({}, state, {}, action.clientIds.reduce(function (accumulator, id) { + return reducer_objectSpread(reducer_objectSpread({}, state), action.clientIds.reduce(function (accumulator, id) { accumulator[id] = action.toRootClientId || ''; return accumulator; }, {})); } case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, mapBlockParents(action.blocks, state[action.clientIds[0]])); + return reducer_objectSpread(reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds)), mapBlockParents(action.blocks, state[action.clientIds[0]])); case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': return Object(external_this_lodash_["omit"])(state, action.removedClientIds); @@ -19524,7 +21420,7 @@ reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ hasControlledInnerBlocks = _ref.hasControlledInnerBlocks; if (type === 'SET_HAS_CONTROLLED_INNER_BLOCKS') { - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, hasControlledInnerBlocks)); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, clientId, hasControlledInnerBlocks)); } return state; @@ -19554,24 +21450,24 @@ function reducer_isTyping() { return state; } /** - * Reducer returning dragging state. + * Reducer returning dragged block client id. * - * @param {boolean} state Current state. + * @param {string[]} state Current state. * @param {Object} action Dispatched action. * - * @return {boolean} Updated state. + * @return {string[]} Updated state. */ -function isDraggingBlocks() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; +function draggedBlocks() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var action = arguments.length > 1 ? arguments[1] : undefined; switch (action.type) { case 'START_DRAGGING_BLOCKS': - return true; + return action.clientIds; case 'STOP_DRAGGING_BLOCKS': - return false; + return []; } return state; @@ -19823,7 +21719,7 @@ function blocksMode() { if (action.type === 'TOGGLE_BLOCK_MODE') { var clientId = action.clientId; - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, state[clientId] && state[clientId] === 'html' ? 'visual' : 'html')); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, clientId, state[clientId] && state[clientId] === 'html' ? 'visual' : 'html')); } return state; @@ -19875,7 +21771,7 @@ function reducer_template() { switch (action.type) { case 'SET_TEMPLATE_VALIDITY': - return reducer_objectSpread({}, state, { + return reducer_objectSpread(reducer_objectSpread({}, state), {}, { isValid: action.isValid }); } @@ -19897,7 +21793,7 @@ function reducer_settings() { switch (action.type) { case 'UPDATE_SETTINGS': - return reducer_objectSpread({}, state, {}, action.settings); + return reducer_objectSpread(reducer_objectSpread({}, state), action.settings); } return state; @@ -19929,8 +21825,8 @@ function preferences() { id += '/' + block.attributes.ref; } - return reducer_objectSpread({}, prevState, { - insertUsage: reducer_objectSpread({}, prevState.insertUsage, Object(defineProperty["a" /* default */])({}, id, { + return reducer_objectSpread(reducer_objectSpread({}, prevState), {}, { + insertUsage: reducer_objectSpread(reducer_objectSpread({}, prevState.insertUsage), {}, Object(defineProperty["a" /* default */])({}, id, { time: action.time, count: prevState.insertUsage[id] ? prevState.insertUsage[id].count + 1 : 1, insert: insert @@ -19980,7 +21876,7 @@ var reducer_blockListSettings = function blockListSettings() { return state; } - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, action.settings)); + return reducer_objectSpread(reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, clientId, action.settings)); } } @@ -20054,7 +21950,7 @@ function lastBlockAttributesChange(state, action) { case 'UPDATE_BLOCK_ATTRIBUTES': return action.clientIds.reduce(function (accumulator, id) { - return reducer_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, id, action.attributes)); + return reducer_objectSpread(reducer_objectSpread({}, accumulator), {}, Object(defineProperty["a" /* default */])({}, id, action.attributes)); }, {}); } @@ -20131,7 +22027,7 @@ function highlightedBlock(state, action) { /* harmony default export */ var store_reducer = (Object(external_this_wp_data_["combineReducers"])({ blocks: reducer_blocks, isTyping: reducer_isTyping, - isDraggingBlocks: isDraggingBlocks, + draggedBlocks: draggedBlocks, isCaretWithinFormattedText: reducer_isCaretWithinFormattedText, selectionStart: reducer_selectionStart, selectionEnd: reducer_selectionEnd, @@ -20152,11 +22048,11 @@ function highlightedBlock(state, action) { })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(110); +var refx = __webpack_require__(113); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var redux_multi_lib = __webpack_require__(262); +var redux_multi_lib = __webpack_require__(275); var redux_multi_lib_default = /*#__PURE__*/__webpack_require__.n(redux_multi_lib); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js @@ -20215,9 +22111,9 @@ var controls_controls = { -function actions_createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = actions_unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function actions_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = actions_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function actions_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return actions_arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return actions_arrayLikeToArray(o, minLen); } +function actions_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return actions_arrayLikeToArray(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 actions_arrayLikeToArray(o, minLen); } function actions_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } @@ -20571,8 +22467,8 @@ function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { var _block$attributes = block.attributes, attributes = _block$attributes === void 0 ? {} : _block$attributes; var blockStyle = preferredStyleVariations[blockName]; - return actions_objectSpread({}, block, { - attributes: actions_objectSpread({}, attributes, { + return actions_objectSpread(actions_objectSpread({}, block), {}, { + attributes: actions_objectSpread(actions_objectSpread({}, attributes), {}, { className: "".concat(className || '', " is-style-").concat(blockStyle).trim() }) }); @@ -20582,16 +22478,17 @@ function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { * Returns an action object signalling that a blocks should be replaced with * one or more replacement blocks. * - * @param {(string|string[])} clientIds Block client ID(s) to replace. - * @param {(Object|Object[])} blocks Replacement block(s). - * @param {number} indexToSelect Index of replacement block to select. + * @param {(string|string[])} clientIds Block client ID(s) to replace. + * @param {(Object|Object[])} blocks Replacement block(s). + * @param {number} indexToSelect Index of replacement block to select. * @param {number} initialPosition Index of caret after in the selected block after the operation. + * @param {?Object} meta Optional Meta values to be passed to the action object. * * @yield {Object} Action object. */ -function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition) { +function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition, meta) { var rootClientId, index, block, canInsertBlock; return external_this_regeneratorRuntime_default.a.wrap(function replaceBlocks$(_context4) { while (1) { @@ -20646,7 +22543,8 @@ function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition blocks: blocks, time: Date.now(), indexToSelect: indexToSelect, - initialPosition: initialPosition + initialPosition: initialPosition, + meta: meta }; case 23: @@ -20837,16 +22735,18 @@ function actions_insertBlock(block, index, rootClientId) { * Returns an action object used in signalling that an array of blocks should * be inserted, optionally at a specific index respective a root block list. * - * @param {Object[]} blocks Block objects to insert. - * @param {?number} index Index at which block should be inserted. - * @param {?string} rootClientId Optional root client ID of block list on which to insert. - * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. + * @param {Object[]} blocks Block objects to insert. + * @param {?number} index Index at which block should be inserted. + * @param {?string} rootClientId Optional root client ID of block list on which to insert. + * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. + * @param {?Object} meta Optional Meta values to be passed to the action object. * * @return {Object} Action object. */ function actions_insertBlocks(blocks, index, rootClientId) { var updateSelection, + meta, allowedBlocks, _iterator, _step, @@ -20859,61 +22759,62 @@ function actions_insertBlocks(blocks, index, rootClientId) { switch (_context7.prev = _context7.next) { case 0: updateSelection = _args7.length > 3 && _args7[3] !== undefined ? _args7[3] : true; + meta = _args7.length > 4 ? _args7[4] : undefined; _context7.t0 = getBlocksWithDefaultStylesApplied; _context7.t1 = Object(external_this_lodash_["castArray"])(blocks); - _context7.next = 5; + _context7.next = 6; return controls_select('core/block-editor', 'getSettings'); - case 5: + case 6: _context7.t2 = _context7.sent; blocks = (0, _context7.t0)(_context7.t1, _context7.t2); allowedBlocks = []; _iterator = actions_createForOfIteratorHelper(blocks); - _context7.prev = 9; + _context7.prev = 10; _iterator.s(); - case 11: + case 12: if ((_step = _iterator.n()).done) { - _context7.next = 19; + _context7.next = 20; break; } block = _step.value; - _context7.next = 15; + _context7.next = 16; return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); - case 15: + case 16: isValid = _context7.sent; if (isValid) { allowedBlocks.push(block); } - case 17: - _context7.next = 11; + case 18: + _context7.next = 12; break; - case 19: - _context7.next = 24; + case 20: + _context7.next = 25; break; - case 21: - _context7.prev = 21; - _context7.t3 = _context7["catch"](9); + case 22: + _context7.prev = 22; + _context7.t3 = _context7["catch"](10); _iterator.e(_context7.t3); - case 24: - _context7.prev = 24; + case 25: + _context7.prev = 25; _iterator.f(); - return _context7.finish(24); + return _context7.finish(25); - case 27: + case 28: if (!allowedBlocks.length) { - _context7.next = 29; + _context7.next = 30; break; } @@ -20923,15 +22824,16 @@ function actions_insertBlocks(blocks, index, rootClientId) { index: index, rootClientId: rootClientId, time: Date.now(), - updateSelection: updateSelection + updateSelection: updateSelection, + meta: meta }); - case 29: + case 30: case "end": return _context7.stop(); } } - }, _marked7, null, [[9, 21, 24, 27]]); + }, _marked7, null, [[10, 22, 25, 28]]); } /** * Returns an action object used in signalling that the insertion point should @@ -21168,12 +23070,16 @@ function actions_stopTyping() { /** * Returns an action object used in signalling that the user has begun to drag blocks. * + * @param {string[]} clientIds An array of client ids being dragged + * * @return {Object} Action object. */ function actions_startDraggingBlocks() { + var clientIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; return { - type: 'START_DRAGGING_BLOCKS' + type: 'START_DRAGGING_BLOCKS', + clientIds: clientIds }; } /** @@ -21678,13 +23584,19 @@ function actions_setHasControlledInnerBlocks(clientId, hasControlledInnerBlocks) } // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(42); +var rememo = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js +function selectors_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = selectors_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function selectors_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return selectors_arrayLikeToArray(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 selectors_arrayLikeToArray(o, minLen); } + +function selectors_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + function selectors_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 selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { selectors_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 { selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -21700,6 +23612,7 @@ function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; + /** * A block selection object. * @@ -21749,6 +23662,14 @@ var selectors_EMPTY_ARRAY = []; function selectors_getBlockName(state, clientId) { var block = state.blocks.byClientId[clientId]; + var socialLinkName = 'core/social-link'; + + if (external_this_wp_element_["Platform"].OS !== 'web' && (block === null || block === void 0 ? void 0 : block.name) === socialLinkName) { + var attributes = state.blocks.attributes[clientId]; + var service = attributes.service; + return service ? "".concat(socialLinkName, "-").concat(service) : socialLinkName; + } + return block ? block.name : null; } /** @@ -21812,7 +23733,7 @@ var selectors_getBlock = Object(rememo["a" /* default */])(function (state, clie return null; } - return selectors_objectSpread({}, block, { + return selectors_objectSpread(selectors_objectSpread({}, block), {}, { attributes: getBlockAttributes(state, clientId), innerBlocks: areInnerBlocksControlled(state, clientId) ? selectors_EMPTY_ARRAY : selectors_getBlocks(state, clientId) }); @@ -21831,7 +23752,7 @@ var selectors_unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default return null; } - return selectors_objectSpread({}, block, { + return selectors_objectSpread(selectors_objectSpread({}, block), {}, { attributes: getBlockAttributes(state, clientId) }); }, function (state, clientId) { @@ -21863,6 +23784,50 @@ var selectors_getBlocks = Object(rememo["a" /* default */])(function (state, roo return state.blocks.cache[id]; }); }); +/** + * Similar to getBlock, except it will include the entire nested block tree as + * inner blocks. The normal getBlock selector will exclude sections of the block + * tree which belong to different entities. + * + * @param {Object} state Editor state. + * @param {string} clientId Client ID of the block to get. + * + * @return {Object} The block with all + */ + +var __unstableGetBlockWithBlockTree = Object(rememo["a" /* default */])(function (state, clientId) { + var block = state.blocks.byClientId[clientId]; + + if (!block) { + return null; + } + + return selectors_objectSpread(selectors_objectSpread({}, block), {}, { + attributes: getBlockAttributes(state, clientId), + innerBlocks: __unstableGetBlockTree(state, clientId) + }); +}, function (state) { + return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; +}); +/** + * Similar to getBlocks, except this selector returns the entire block tree + * represented in the block-editor store from the given root regardless of any + * inner block controllers. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {Object[]} Post blocks. + */ + +var __unstableGetBlockTree = Object(rememo["a" /* default */])(function (state) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return Object(external_this_lodash_["map"])(selectors_getBlockOrder(state, rootClientId), function (clientId) { + return __unstableGetBlockWithBlockTree(state, clientId); + }); +}, function (state) { + return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; +}); /** * Returns an array containing the clientIds of all descendants * of the blocks given. @@ -22638,7 +24603,57 @@ function selectors_isTyping(state) { */ function selectors_isDraggingBlocks(state) { - return state.isDraggingBlocks; + return !!state.draggedBlocks.length; +} +/** + * Returns the client ids of any blocks being directly dragged. + * + * This does not include children of a parent being dragged. + * + * @param {Object} state Global application state. + * + * @return {string[]} Array of dragged block client ids. + */ + +function selectors_getDraggedBlockClientIds(state) { + return state.draggedBlocks; +} +/** + * Returns whether the block is being dragged. + * + * Only returns true if the block is being directly dragged, + * not if the block is a child of a parent being dragged. + * See `isAncestorBeingDragged` for child blocks. + * + * @param {Object} state Global application state. + * @param {string} clientId Client id for block to check. + * + * @return {boolean} Whether the block is being dragged. + */ + +function isBlockBeingDragged(state, clientId) { + return state.draggedBlocks.includes(clientId); +} +/** + * Returns whether a parent/ancestor of the block is being dragged. + * + * @param {Object} state Global application state. + * @param {string} clientId Client id for block to check. + * + * @return {boolean} Whether the block's ancestor is being dragged. + */ + +function isAncestorBeingDragged(state, clientId) { + // Return early if no blocks are being dragged rather than + // the more expensive check for parents. + if (!selectors_isDraggingBlocks(state)) { + return false; + } + + var parents = selectors_getBlockParents(state, clientId); + return Object(external_this_lodash_["some"])(parents, function (parentClientId) { + return isBlockBeingDragged(state, parentClientId); + }); } /** * Returns true if the caret is within formatted text, or false otherwise. @@ -22794,7 +24809,13 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz return false; } - var parentBlockListSettings = selectors_getBlockListSettings(state, rootClientId); + var parentBlockListSettings = selectors_getBlockListSettings(state, rootClientId); // The parent block doesn't have settings indicating it doesn't support + // inner blocks, return false. + + if (rootClientId && parentBlockListSettings === undefined) { + return false; + } + var parentAllowedBlocks = Object(external_this_lodash_["get"])(parentBlockListSettings, ['allowedBlocks']); var hasParentAllowedBlock = checkAllowList(parentAllowedBlocks, blockName); var blockAllowedParentBlocks = blockType.parent; @@ -22874,6 +24895,29 @@ var selectors_canIncludeBlockTypeInInserter = function canIncludeBlockTypeInInse return selectors_canInsertBlockTypeUnmemoized(state, blockType.name, rootClientId); }; +/** + * Return a function to be used to tranform a block variation to an inserter item + * + * @param {Object} item Denormalized inserter item + * @return {Function} Function to transform a block variation to inserter item + */ + + +var getItemFromVariation = function getItemFromVariation(item) { + return function (variation) { + return selectors_objectSpread(selectors_objectSpread({}, item), {}, { + id: "".concat(item.id, "-").concat(variation.name), + icon: variation.icon || item.icon, + title: variation.title || item.title, + description: variation.description || item.description, + // If `example` is explicitly undefined for the variation, the preview will not be shown. + example: variation.hasOwnProperty('example') ? variation.example : item.example, + initialAttributes: selectors_objectSpread(selectors_objectSpread({}, item.initialAttributes), variation.attributes), + innerBlocks: variation.innerBlocks, + keywords: variation.keywords || item.keywords + }); + }; +}; /** * Determines the items that appear in the inserter. Includes both static * items (e.g. a regular block type) and dynamic items (e.g. a reusable block). @@ -22901,7 +24945,7 @@ var selectors_canIncludeBlockTypeInInserter = function canIncludeBlockTypeInInse * @property {string[]} keywords Keywords that can be searched to find this item. * @property {boolean} isDisabled Whether or not the user should be prevented from inserting * this item. - * @property {number} frecency Hueristic that combines frequency and recency. + * @property {number} frecency Heuristic that combines frequency and recency. */ @@ -23006,8 +25050,40 @@ var selectors_getInserterItems = Object(rememo["a" /* default */])(function (sta var blockTypeInserterItems = Object(external_this_wp_blocks_["getBlockTypes"])().filter(function (blockType) { return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); }).map(buildBlockTypeInserterItem); - var reusableBlockInserterItems = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; - return [].concat(Object(toConsumableArray["a" /* default */])(blockTypeInserterItems), Object(toConsumableArray["a" /* default */])(reusableBlockInserterItems)); + var reusableBlockInserterItems = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; // Exclude any block type item that is to be replaced by a default + // variation. + + var visibleBlockTypeInserterItems = blockTypeInserterItems.filter(function (_ref5) { + var _ref5$variations = _ref5.variations, + variations = _ref5$variations === void 0 ? [] : _ref5$variations; + return !variations.some(function (_ref6) { + var isDefault = _ref6.isDefault; + return isDefault; + }); + }); + var blockVariations = []; // Show all available blocks with variations + + var _iterator = selectors_createForOfIteratorHelper(blockTypeInserterItems), + _step; + + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + var _item$variations = item.variations, + variations = _item$variations === void 0 ? [] : _item$variations; + + if (variations.length) { + var variationMapper = getItemFromVariation(item); + blockVariations.push.apply(blockVariations, Object(toConsumableArray["a" /* default */])(variations.map(variationMapper))); + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + return [].concat(Object(toConsumableArray["a" /* default */])(visibleBlockTypeInserterItems), blockVariations, Object(toConsumableArray["a" /* default */])(reusableBlockInserterItems)); }, function (state, rootClientId) { return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.blocks.order, state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_this_wp_blocks_["getBlockTypes"])()]; }); @@ -23388,8 +25464,8 @@ function validateBlocksToTemplate(action, store) { dispatch(actions_selectionChange(blockA.clientId, newAttributeKey, newOffset, newOffset)); } - dispatch(actions_replaceBlocks([blockA.clientId, blockB.clientId], [effects_objectSpread({}, blockA, { - attributes: effects_objectSpread({}, blockA.attributes, {}, updatedAttributes) + dispatch(actions_replaceBlocks([blockA.clientId, blockB.clientId], [effects_objectSpread(effects_objectSpread({}, blockA), {}, { + attributes: effects_objectSpread(effects_objectSpread({}, blockA.attributes), updatedAttributes) })].concat(Object(toConsumableArray["a" /* default */])(blocksWithTheSameType.slice(1))))); }, RESET_BLOCKS: [validateBlocksToTemplate], @@ -23508,7 +25584,7 @@ var storeConfig = { actions: actions_namespaceObject, controls: store_controls }; -var store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, store_objectSpread({}, storeConfig, { +var store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, store_objectSpread(store_objectSpread({}, storeConfig), {}, { persist: ['preferences'] })); store_middlewares(store_store); @@ -23813,7 +25889,7 @@ function BlockEditorProvider(props) { /* harmony default export */ var provider = (with_registry_provider(BlockEditorProvider)); // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(75); +var external_this_wp_htmlEntities_ = __webpack_require__(69); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js @@ -24029,6 +26105,7 @@ function BlockListAppender(_ref) { isLocked = _ref.isLocked, CustomAppender = _ref.renderAppender, className = _ref.className, + selectedBlockClientId = _ref.selectedBlockClientId, _ref$tagName = _ref.tagName, TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName; @@ -24041,20 +26118,30 @@ function BlockListAppender(_ref) { if (CustomAppender) { // Prefer custom render prop if provided. appender = Object(external_this_wp_element_["createElement"])(CustomAppender, null); - } else if (canInsertDefaultBlock) { - // Render the default block appender when renderAppender has not been - // provided and the context supports use of the default appender. - appender = Object(external_this_wp_element_["createElement"])(default_block_appender, { - rootClientId: rootClientId, - lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) - }); } else { - // Fallback in the case no renderAppender has been provided and the - // default block can't be inserted. - appender = Object(external_this_wp_element_["createElement"])(button_block_appender, { - rootClientId: rootClientId, - className: "block-list-appender__toggle" - }); + var isDocumentAppender = !rootClientId; + var isParentSelected = selectedBlockClientId === rootClientId; + var isAnotherDefaultAppenderAlreadyDisplayed = selectedBlockClientId && !blockClientIds.includes(selectedBlockClientId); + + if (!isDocumentAppender && !isParentSelected && (!selectedBlockClientId || isAnotherDefaultAppenderAlreadyDisplayed)) { + return null; + } + + if (canInsertDefaultBlock) { + // Render the default block appender when renderAppender has not been + // provided and the context supports use of the default appender. + appender = Object(external_this_wp_element_["createElement"])(default_block_appender, { + rootClientId: rootClientId, + lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) + }); + } else { + // Fallback in the case no renderAppender has been provided and the + // default block can't be inserted. + appender = Object(external_this_wp_element_["createElement"])(button_block_appender, { + rootClientId: rootClientId, + className: "block-list-appender__toggle" + }); + } } return Object(external_this_wp_element_["createElement"])(TagName // A `tabIndex` is used on the wrapping `div` element in order to @@ -24080,119 +26167,25 @@ function BlockListAppender(_ref) { var _select = select('core/block-editor'), getBlockOrder = _select.getBlockOrder, canInsertBlockType = _select.canInsertBlockType, - getTemplateLock = _select.getTemplateLock; + getTemplateLock = _select.getTemplateLock, + getSelectedBlockClientId = _select.getSelectedBlockClientId; return { isLocked: !!getTemplateLock(rootClientId), blockClientIds: getBlockOrder(rootClientId), - canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId) + canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId), + selectedBlockClientId: getSelectedBlockClientId() }; })(BlockListAppender)); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-drop-zone/index.js - - +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-on-block-drop/index.js /** * WordPress dependencies */ - - /** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ -/** - * @typedef {Object} WPBlockDragPosition - * @property {number} x The horizontal position of a the block being dragged. - * @property {number} y The vertical position of the block being dragged. - */ - -/** - * The orientation of a block list. - * - * @typedef {'horizontal'|'vertical'|undefined} WPBlockListOrientation - */ - -/** - * Given a list of block DOM elements finds the index that a block should be dropped - * at. - * - * This function works for both horizontal and vertical block lists and uses the following - * terms for its variables: - * - * - Lateral, meaning the axis running horizontally when a block list is vertical and vertically when a block list is horizontal. - * - Forward, meaning the axis running vertically when a block list is vertical and horizontally - * when a block list is horizontal. - * - * - * @param {Element[]} elements Array of DOM elements that represent each block in a block list. - * @param {WPBlockDragPosition} position The position of the item being dragged. - * @param {WPBlockListOrientation} orientation The orientation of a block list. - * - * @return {number|undefined} The block index that's closest to the drag position. - */ - -function getNearestBlockIndex(elements, position, orientation) { - var x = position.x, - y = position.y; - var isHorizontal = orientation === 'horizontal'; - var candidateIndex; - var candidateDistance; - elements.forEach(function (element, index) { - // Ensure the element is a block. It should have the `wp-block` class. - if (!element.classList.contains('wp-block')) { - return; - } - - var rect = element.getBoundingClientRect(); - var cursorLateralPosition = isHorizontal ? y : x; - var cursorForwardPosition = isHorizontal ? x : y; - var edgeLateralStart = isHorizontal ? rect.top : rect.left; - var edgeLateralEnd = isHorizontal ? rect.bottom : rect.right; // When the cursor position is within the lateral bounds of the block, - // measure the straight line distance to the nearest point on the - // block's edge, else measure diagonal distance to the nearest corner. - - var edgeLateralPosition; - - if (cursorLateralPosition >= edgeLateralStart && cursorLateralPosition <= edgeLateralEnd) { - edgeLateralPosition = cursorLateralPosition; - } else if (cursorLateralPosition < edgeLateralStart) { - edgeLateralPosition = edgeLateralStart; - } else { - edgeLateralPosition = edgeLateralEnd; - } - - var leadingEdgeForwardPosition = isHorizontal ? rect.left : rect.top; - var trailingEdgeForwardPosition = isHorizontal ? rect.right : rect.bottom; // First measure the distance to the leading edge of the block. - - var leadingEdgeDistance = Math.sqrt(Math.pow(cursorLateralPosition - edgeLateralPosition, 2) + Math.pow(cursorForwardPosition - leadingEdgeForwardPosition, 2)); // If no candidate has been assigned yet or this is the nearest - // block edge to the cursor, then assign it as the candidate. - - if (candidateDistance === undefined || Math.abs(leadingEdgeDistance) < candidateDistance) { - candidateDistance = leadingEdgeDistance; - candidateIndex = index; - } // Next measure the distance to the trailing edge of the block. - - - var trailingEdgeDistance = Math.sqrt(Math.pow(cursorLateralPosition - edgeLateralPosition, 2) + Math.pow(cursorForwardPosition - trailingEdgeForwardPosition, 2)); // If no candidate has been assigned yet or this is the nearest - // block edge to the cursor, then assign the next block as the candidate. - - if (Math.abs(trailingEdgeDistance) < candidateDistance) { - candidateDistance = trailingEdgeDistance; - var nextBlockOffset = 1; // If the next block is the one being dragged, skip it and consider - // the block afterwards the drop target. This is needed as the - // block being dragged is set to display: none and won't display - // any drop target styling. - - if (elements[index + 1] && elements[index + 1].classList.contains('is-dragging')) { - nextBlockOffset = 2; - } - - candidateIndex = index + nextBlockOffset; - } - }); - return candidateIndex; -} /** * Retrieve the data for a block drop event. * @@ -24205,6 +26198,7 @@ function parseDropEvent(event) { var result = { srcRootClientId: null, srcClientIds: null, + srcIndex: null, type: null }; @@ -24221,83 +26215,19 @@ function parseDropEvent(event) { return result; } /** - * @typedef {Object} WPBlockDropZoneConfig - * @property {Object} element A React ref object pointing to the block list's DOM element. - * @property {string} rootClientId The root client id for the block list. + * A function that returns an event handler function for block drop events. + * + * @param {string} targetRootClientId The root client id where the block(s) will be inserted. + * @param {number} targetBlockIndex The index where the block(s) will be inserted. + * @param {Function} getBlockIndex A function that gets the index of a block. + * @param {Function} getClientIdsOfDescendants A function that gets the client ids of descendant blocks. + * @param {Function} moveBlocksToPosition A function that moves blocks. + * + * @return {Function} The event handler for a block drop event. */ -/** - * A React hook that can be used to make a block list handle drag and drop. - * - * @param {WPBlockDropZoneConfig} dropZoneConfig configuration data for the drop zone. - * - * @return {number|undefined} The block index that's closest to the drag position. - */ - - -function useBlockDropZone(_ref) { - var element = _ref.element, - targetRootClientId = _ref.rootClientId; - - var _useState = Object(external_this_wp_element_["useState"])(null), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - targetBlockIndex = _useState2[0], - setTargetBlockIndex = _useState2[1]; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _getBlockListSettings; - - var _select = select('core/block-editor'), - getBlockListSettings = _select.getBlockListSettings, - _getClientIdsOfDescendants = _select.getClientIdsOfDescendants, - _getBlockIndex = _select.getBlockIndex, - getSettings = _select.getSettings, - getTemplateLock = _select.getTemplateLock; - - return { - orientation: (_getBlockListSettings = getBlockListSettings(targetRootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation, - getClientIdsOfDescendants: _getClientIdsOfDescendants, - getBlockIndex: _getBlockIndex, - hasUploadPermissions: !!getSettings().mediaUpload, - isLockedAll: getTemplateLock(targetRootClientId) === 'all' - }; - }, [targetRootClientId]), - getClientIdsOfDescendants = _useSelect.getClientIdsOfDescendants, - getBlockIndex = _useSelect.getBlockIndex, - hasUploadPermissions = _useSelect.hasUploadPermissions, - isLockedAll = _useSelect.isLockedAll, - orientation = _useSelect.orientation; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - insertBlocks = _useDispatch.insertBlocks, - updateBlockAttributes = _useDispatch.updateBlockAttributes, - moveBlocksToPosition = _useDispatch.moveBlocksToPosition; - - var onFilesDrop = Object(external_this_wp_element_["useCallback"])(function (files) { - if (!hasUploadPermissions) { - return; - } - - var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { - return transform.type === 'files' && transform.isMatch(files); - }); - - if (transformation) { - var blocks = transformation.transform(files, updateBlockAttributes); - insertBlocks(blocks, targetBlockIndex, targetRootClientId); - } - }, [hasUploadPermissions, updateBlockAttributes, insertBlocks, targetBlockIndex, targetRootClientId]); - var onHTMLDrop = Object(external_this_wp_element_["useCallback"])(function (HTML) { - var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: HTML, - mode: 'BLOCKS' - }); - - if (blocks.length) { - insertBlocks(blocks, targetBlockIndex, targetRootClientId); - } - }, [insertBlocks, targetBlockIndex, targetRootClientId]); - var onDrop = Object(external_this_wp_element_["useCallback"])(function (event) { +function onBlockDrop(targetRootClientId, targetBlockIndex, getBlockIndex, getClientIdsOfDescendants, moveBlocksToPosition) { + return function (event) { var _parseDropEvent = parseDropEvent(event), sourceRootClientId = _parseDropEvent.srcRootClientId, sourceClientIds = _parseDropEvent.srcClientIds, @@ -24323,23 +26253,305 @@ function useBlockDropZone(_ref) { return; } - var isAtSameLevel = sourceRootClientId === targetRootClientId || sourceRootClientId === '' && targetRootClientId === undefined; + var isAtSameLevel = sourceRootClientId === targetRootClientId; var draggedBlockCount = sourceClientIds.length; // If the block is kept at the same level and moved downwards, // subtract to take into account that the blocks being dragged - // were removed from the block list. + // were removed from the block list above the insertion point. var insertIndex = isAtSameLevel && sourceBlockIndex < targetBlockIndex ? targetBlockIndex - draggedBlockCount : targetBlockIndex; moveBlocksToPosition(sourceClientIds, sourceRootClientId, targetRootClientId, insertIndex); - }, [getClientIdsOfDescendants, getBlockIndex, targetBlockIndex, moveBlocksToPosition, targetRootClientId]); + }; +} +/** + * A function that returns an event handler function for block-related file drop events. + * + * @param {string} targetRootClientId The root client id where the block(s) will be inserted. + * @param {number} targetBlockIndex The index where the block(s) will be inserted. + * @param {boolean} hasUploadPermissions Whether the user has upload permissions. + * @param {Function} updateBlockAttributes A function that updates a block's attributes. + * @param {Function} insertBlocks A function that inserts blocks. + * + * @return {Function} The event handler for a block-related file drop event. + */ - var _useDropZone = Object(external_this_wp_components_["__unstableUseDropZone"])({ +function onFilesDrop(targetRootClientId, targetBlockIndex, hasUploadPermissions, updateBlockAttributes, insertBlocks) { + return function (files) { + if (!hasUploadPermissions) { + return; + } + + var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { + return transform.type === 'files' && transform.isMatch(files); + }); + + if (transformation) { + var blocks = transformation.transform(files, updateBlockAttributes); + insertBlocks(blocks, targetBlockIndex, targetRootClientId); + } + }; +} +/** + * A function that returns an event handler function for block-related HTML drop events. + * + * @param {string} targetRootClientId The root client id where the block(s) will be inserted. + * @param {number} targetBlockIndex The index where the block(s) will be inserted. + * @param {Function} insertBlocks A function that inserts blocks. + * + * @return {Function} The event handler for a block-related HTML drop event. + */ + +function use_on_block_drop_onHTMLDrop(targetRootClientId, targetBlockIndex, insertBlocks) { + return function (HTML) { + var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: HTML, + mode: 'BLOCKS' + }); + + if (blocks.length) { + insertBlocks(blocks, targetBlockIndex, targetRootClientId); + } + }; +} +/** + * A React hook for handling block drop events. + * + * @param {string} targetRootClientId The root client id where the block(s) will be inserted. + * @param {number} targetBlockIndex The index where the block(s) will be inserted. + * + * @return {Object} An object that contains the event handlers `onDrop`, `onFilesDrop` and `onHTMLDrop`. + */ + +function useOnBlockDrop(targetRootClientId, targetBlockIndex) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + _getBlockIndex = _select.getBlockIndex, + _getClientIdsOfDescendants = _select.getClientIdsOfDescendants, + getSettings = _select.getSettings; + + return { + getBlockIndex: _getBlockIndex, + getClientIdsOfDescendants: _getClientIdsOfDescendants, + hasUploadPermissions: getSettings().mediaUpload + }; + }, []), + getBlockIndex = _useSelect.getBlockIndex, + getClientIdsOfDescendants = _useSelect.getClientIdsOfDescendants, + hasUploadPermissions = _useSelect.hasUploadPermissions; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + insertBlocks = _useDispatch.insertBlocks, + moveBlocksToPosition = _useDispatch.moveBlocksToPosition, + updateBlockAttributes = _useDispatch.updateBlockAttributes; + + return { + onDrop: onBlockDrop(targetRootClientId, targetBlockIndex, getBlockIndex, getClientIdsOfDescendants, moveBlocksToPosition), + onFilesDrop: onFilesDrop(targetRootClientId, targetBlockIndex, hasUploadPermissions, updateBlockAttributes, insertBlocks), + onHTMLDrop: use_on_block_drop_onHTMLDrop(targetRootClientId, targetBlockIndex, insertBlocks) + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/math.js +/** + * A string representing the name of an edge. + * + * @typedef {'top'|'right'|'bottom'|'left'} WPEdgeName + */ + +/** + * @typedef {Object} WPPoint + * @property {number} x The horizontal position. + * @property {number} y The vertical position. + */ + +/** + * Given a point, a DOMRect and the name of an edge, returns the distance to + * that edge of the rect. + * + * This function works for edges that are horizontal or vertical (e.g. not + * rotated), the following terms are used so that the function works in both + * orientations: + * + * - Forward, meaning the axis running horizontally when an edge is vertical + * and vertically when an edge is horizontal. + * - Lateral, meaning the axis running vertically when an edge is vertical + * and horizontally when an edge is horizontal. + * + * @param {WPPoint} point The point to measure distance from. + * @param {DOMRect} rect A DOM Rect containing edge positions. + * @param {WPEdgeName} edge The edge to measure to. + */ +function getDistanceFromPointToEdge(point, rect, edge) { + var isHorizontal = edge === 'top' || edge === 'bottom'; + var x = point.x, + y = point.y; + var pointLateralPosition = isHorizontal ? x : y; + var pointForwardPosition = isHorizontal ? y : x; + var edgeStart = isHorizontal ? rect.left : rect.top; + var edgeEnd = isHorizontal ? rect.right : rect.bottom; + var edgeForwardPosition = rect[edge]; // Measure the straight line distance to the edge of the rect, when the + // point is adjacent to the edge. + // Else, if the point is positioned diagonally to the edge of the rect, + // measure diagonally to the nearest corner that the edge meets. + + var edgeLateralPosition; + + if (pointLateralPosition >= edgeStart && pointLateralPosition <= edgeEnd) { + edgeLateralPosition = pointLateralPosition; + } else if (pointLateralPosition < edgeEnd) { + edgeLateralPosition = edgeStart; + } else { + edgeLateralPosition = edgeEnd; + } + + return Math.sqrt(Math.pow(pointLateralPosition - edgeLateralPosition, 2) + Math.pow(pointForwardPosition - edgeForwardPosition, 2)); +} +/** + * Given a point, a DOMRect and a list of allowed edges returns the name of and + * distance to the nearest edge. + * + * @param {WPPoint} point The point to measure distance from. + * @param {DOMRect} rect A DOM Rect containing edge positions. + * @param {WPEdgeName[]} allowedEdges A list of the edges included in the + * calculation. Defaults to all edges. + * + * @return {[number, string]} An array where the first value is the distance + * and a second is the edge name. + */ + +function getDistanceToNearestEdge(point, rect) { + var allowedEdges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ['top', 'bottom', 'left', 'right']; + var candidateDistance; + var candidateEdge; + allowedEdges.forEach(function (edge) { + var distance = getDistanceFromPointToEdge(point, rect, edge); + + if (candidateDistance === undefined || distance < candidateDistance) { + candidateDistance = distance; + candidateEdge = edge; + } + }); + return [candidateDistance, candidateEdge]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-drop-zone/index.js + + + +function use_block_drop_zone_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 use_block_drop_zone_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_block_drop_zone_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 { use_block_drop_zone_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +/** @typedef {import('../../utils/math').WPPoint} WPPoint */ + +/** + * The orientation of a block list. + * + * @typedef {'horizontal'|'vertical'|undefined} WPBlockListOrientation + */ + +/** + * Given a list of block DOM elements finds the index that a block should be dropped + * at. + * + * @param {Element[]} elements Array of DOM elements that represent each block in a block list. + * @param {WPPoint} position The position of the item being dragged. + * @param {WPBlockListOrientation} orientation The orientation of a block list. + * + * @return {number|undefined} The block index that's closest to the drag position. + */ + +function getNearestBlockIndex(elements, position, orientation) { + var allowedEdges = orientation === 'horizontal' ? ['left', 'right'] : ['top', 'bottom']; + var candidateIndex; + var candidateDistance; + elements.forEach(function (element, index) { + // Ensure the element is a block. It should have the `wp-block` class. + if (!element.classList.contains('wp-block')) { + return; + } + + var rect = element.getBoundingClientRect(); + + var _getDistanceToNearest = getDistanceToNearestEdge(position, rect, allowedEdges), + _getDistanceToNearest2 = Object(slicedToArray["a" /* default */])(_getDistanceToNearest, 2), + distance = _getDistanceToNearest2[0], + edge = _getDistanceToNearest2[1]; + + if (candidateDistance === undefined || distance < candidateDistance) { + // If the user is dropping to the trailing edge of the block + // add 1 to the index to represent dragging after. + var isTrailingEdge = edge === 'bottom' || edge === 'right'; + var offset = isTrailingEdge ? 1 : 0; // If the target is the dragged block itself and another 1 to + // index as the dragged block is set to `display: none` and + // should be skipped in the calculation. + + var isTargetDraggedBlock = isTrailingEdge && elements[index + 1] && elements[index + 1].classList.contains('is-dragging'); + offset += isTargetDraggedBlock ? 1 : 0; // Update the currently known best candidate. + + candidateDistance = distance; + candidateIndex = index + offset; + } + }); + return candidateIndex; +} +/** + * @typedef {Object} WPBlockDropZoneConfig + * @property {Object} element A React ref object pointing to the block list's DOM element. + * @property {string} rootClientId The root client id for the block list. + */ + +/** + * A React hook that can be used to make a block list handle drag and drop. + * + * @param {WPBlockDropZoneConfig} dropZoneConfig configuration data for the drop zone. + * + * @return {number|undefined} The block index that's closest to the drag position. + */ + +function useBlockDropZone(_ref) { + var element = _ref.element, + _ref$rootClientId = _ref.rootClientId, + targetRootClientId = _ref$rootClientId === void 0 ? '' : _ref$rootClientId; + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + targetBlockIndex = _useState2[0], + setTargetBlockIndex = _useState2[1]; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _getBlockListSettings; + + var _select = select('core/block-editor'), + getBlockListSettings = _select.getBlockListSettings, + getTemplateLock = _select.getTemplateLock; + + return { + isLockedAll: getTemplateLock(targetRootClientId) === 'all', + orientation: (_getBlockListSettings = getBlockListSettings(targetRootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation + }; + }, [targetRootClientId]), + isLockedAll = _useSelect.isLockedAll, + orientation = _useSelect.orientation; + + var dropEventHandlers = useOnBlockDrop(targetRootClientId, targetBlockIndex); + + var _useDropZone = Object(external_this_wp_components_["__unstableUseDropZone"])(use_block_drop_zone_objectSpread({ element: element, - onFilesDrop: onFilesDrop, - onHTMLDrop: onHTMLDrop, - onDrop: onDrop, isDisabled: isLockedAll, withPosition: true - }), + }, dropEventHandlers)), position = _useDropZone.position; Object(external_this_wp_element_["useEffect"])(function () { @@ -24404,7 +26616,8 @@ function BlockList(_ref, ref) { getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, hasMultiSelection = _select.hasMultiSelection, getGlobalBlockCount = _select.getGlobalBlockCount, - isTyping = _select.isTyping; + isTyping = _select.isTyping, + isDraggingBlocks = _select.isDraggingBlocks; return { blockClientIds: getBlockOrder(rootClientId), @@ -24412,7 +26625,8 @@ function BlockList(_ref, ref) { multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation, hasMultiSelection: hasMultiSelection(), - enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD + enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD, + isDraggingBlocks: isDraggingBlocks() }; } @@ -24422,20 +26636,23 @@ function BlockList(_ref, ref) { multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, orientation = _useSelect.orientation, hasMultiSelection = _useSelect.hasMultiSelection, - enableAnimation = _useSelect.enableAnimation; + enableAnimation = _useSelect.enableAnimation, + isDraggingBlocks = _useSelect.isDraggingBlocks; + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var element = __experimentalPassedProps.ref || ref || fallbackRef; var Container = rootClientId ? __experimentalTagName : root_container; var dropTargetIndex = useBlockDropZone({ - element: ref, + element: element, rootClientId: rootClientId }); - var isAppenderDropTarget = dropTargetIndex === blockClientIds.length; + var isAppenderDropTarget = dropTargetIndex === blockClientIds.length && isDraggingBlocks; return Object(external_this_wp_element_["createElement"])(Container, Object(esm_extends["a" /* default */])({}, __experimentalPassedProps, { - ref: ref, + ref: element, className: classnames_default()('block-editor-block-list__layout', className, __experimentalPassedProps.className) }), blockClientIds.map(function (clientId, index) { var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; - var isDropTarget = dropTargetIndex === index; + var isDropTarget = dropTargetIndex === index && isDraggingBlocks; return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { key: clientId, value: !isBlockInSelection @@ -24468,11 +26685,10 @@ var ForwardedBlockList = Object(external_this_wp_element_["forwardRef"])(BlockLi // depending on the block selection. /* harmony default export */ var block_list = (Object(external_this_wp_element_["forwardRef"])(function (props, ref) { - var fallbackRef = Object(external_this_wp_element_["useRef"])(); return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { value: false }, Object(external_this_wp_element_["createElement"])(ForwardedBlockList, Object(esm_extends["a" /* default */])({ - ref: ref || fallbackRef + ref: ref }, props))); })); @@ -24650,7 +26866,7 @@ function InserterPreviewPanel(_ref) { __experimentalPadding: 16, viewportWidth: 500, blocks: hoveredItemBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(item.name, { - attributes: preview_panel_objectSpread({}, hoveredItemBlockType.example.attributes, {}, item.initialAttributes), + attributes: preview_panel_objectSpread(preview_panel_objectSpread({}, hoveredItemBlockType.example.attributes), item.initialAttributes), innerBlocks: hoveredItemBlockType.example.innerBlocks }) : Object(external_this_wp_blocks_["createBlock"])(item.name, item.initialAttributes) })) : Object(external_this_wp_element_["createElement"])("div", { @@ -24666,10 +26882,10 @@ function InserterPreviewPanel(_ref) { var CompositeState_3a25dcee = __webpack_require__(51); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js -var Composite = __webpack_require__(119); +var Composite = __webpack_require__(122); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/CompositeItem.js -var CompositeItem = __webpack_require__(120); +var CompositeItem = __webpack_require__(123); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js @@ -24751,7 +26967,6 @@ function InserterListItem(_ref) { - function BlockTypesList(_ref) { var _ref$items = _ref.items, items = _ref$items === void 0 ? [] : _ref$items, @@ -24761,8 +26976,7 @@ function BlockTypesList(_ref) { children = _ref.children, label = _ref.label; var composite = Object(CompositeState_3a25dcee["g" /* u */])(); - var normalizedItems = includeVariationsInInserterItems(items); - var orderId = normalizedItems.reduce(function (acc, item) { + var orderId = items.reduce(function (acc, item) { return acc + '--' + item.id; }, ''); // This ensures the composite state refreshes when the list order changes. @@ -24780,7 +26994,7 @@ function BlockTypesList(_ref) { role: "listbox", className: "block-editor-block-types-list", "aria-label": label - }), normalizedItems.map(function (item) { + }), items.map(function (item) { return Object(external_this_wp_element_["createElement"])(inserter_list_item, { key: item.id, className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), @@ -25006,7 +27220,7 @@ function BlockTypesTab(_ref) { })(filteredItems); }, [filteredItems, categories]); var itemsPerCollection = Object(external_this_wp_element_["useMemo"])(function () { - // Create a new Object to avoid mutating collection + // Create a new Object to avoid mutating collection. var result = block_types_tab_objectSpread({}, collections); Object.keys(collections).forEach(function (namespace) { @@ -25019,7 +27233,13 @@ function BlockTypesTab(_ref) { } }); return result; - }, [filteredItems, collections]); // Announce search results on change + }, [filteredItems, collections]); // Hide block preview on unmount. + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + return onHover(null); + }; + }, []); // Announce search results on change. Object(external_this_wp_element_["useEffect"])(function () { var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])( @@ -25108,6 +27328,63 @@ function BlockTypesTab(_ref) { } /* harmony default export */ var block_types_tab = (Object(external_this_wp_components_["withSpokenMessages"])(BlockTypesTab)); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/pattern-panel.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function PatternInserterPanel(_ref) { + var selectedCategory = _ref.selectedCategory, + patternCategories = _ref.patternCategories, + onClickCategory = _ref.onClickCategory, + children = _ref.children; + + var categoryOptions = function categoryOptions() { + var options = []; + patternCategories.map(function (patternCategory) { + return options.push({ + value: patternCategory.name, + label: patternCategory.label + }); + }); + return options; + }; + + var onChangeSelect = function onChangeSelect(selected) { + onClickCategory(patternCategories.find(function (patternCategory) { + return selected === patternCategory.name; + })); + }; + + var getPanelHeaderClassName = function getPanelHeaderClassName() { + return classnames_default()('block-editor-inserter__panel-header', 'block-editor-inserter__panel-header-patterns'); + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: getPanelHeaderClassName() + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + className: "block-editor-inserter__panel-dropdown", + label: Object(external_this_wp_i18n_["__"])('Filter patterns'), + hideLabelFromVision: true, + value: selectedCategory.name, + onChange: onChangeSelect, + options: categoryOptions() + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__panel-content" + }, children)); +} + +/* harmony default export */ var pattern_panel = (PatternInserterPanel); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-patterns-state.js /** * External dependencies @@ -25149,10 +27426,10 @@ var use_patterns_state_usePatternsState = function usePatternsState(onInsert) { var onClickPattern = Object(external_this_wp_element_["useCallback"])(function (pattern, blocks) { onInsert(Object(external_this_lodash_["map"])(blocks, function (block) { return Object(external_this_wp_blocks_["cloneBlock"])(block); - })); + }), pattern.name); createSuccessNotice(Object(external_this_wp_i18n_["sprintf"])( /* translators: %s: block pattern title. */ - Object(external_this_wp_i18n_["__"])('Pattern "%s" inserted.'), pattern.title), { + Object(external_this_wp_i18n_["__"])('Block pattern "%s" inserted.'), pattern.title), { type: 'snackbar' }); }, []); @@ -25262,19 +27539,20 @@ function BlockPatternList(_ref2) { + function BlockPatternsSearchResults(_ref) { var filterValue = _ref.filterValue, onInsert = _ref.onInsert; var _usePatternsState = use_patterns_state(onInsert), _usePatternsState2 = Object(slicedToArray["a" /* default */])(_usePatternsState, 3), - patterns = _usePatternsState2[0], + allPatterns = _usePatternsState2[0], onClick = _usePatternsState2[2]; - var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(patterns); var filteredPatterns = Object(external_this_wp_element_["useMemo"])(function () { - return search_items_searchItems(patterns, filterValue); - }, [filterValue, patterns]); + return search_items_searchItems(allPatterns, filterValue); + }, [filterValue, allPatterns]); + var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(filteredPatterns); if (filterValue) { return !!filteredPatterns.length ? Object(external_this_wp_element_["createElement"])(panel, { @@ -25287,70 +27565,88 @@ function BlockPatternsSearchResults(_ref) { } } -function BlockPatternsPerCategories(_ref2) { - var onInsert = _ref2.onInsert; +function BlockPatternsCategory(_ref2) { + var onInsert = _ref2.onInsert, + selectedCategory = _ref2.selectedCategory, + onClickCategory = _ref2.onClickCategory; var _usePatternsState3 = use_patterns_state(onInsert), _usePatternsState4 = Object(slicedToArray["a" /* default */])(_usePatternsState3, 3), - patterns = _usePatternsState4[0], - categories = _usePatternsState4[1], - onClick = _usePatternsState4[2]; + allPatterns = _usePatternsState4[0], + allCategories = _usePatternsState4[1], + onClick = _usePatternsState4[2]; // Remove any empty categories + + var populatedCategories = Object(external_this_wp_element_["useMemo"])(function () { + return allCategories.filter(function (category) { + return allPatterns.some(function (pattern) { + return pattern.categories.includes(category.name); + }); + }); + }, [allPatterns, allCategories]); + var patternCategory = selectedCategory ? selectedCategory : populatedCategories[0]; + Object(external_this_wp_element_["useEffect"])(function () { + if (allPatterns.some(function (pattern) { + return getPatternIndex(pattern) === Infinity; + }) && !populatedCategories.find(function (category) { + return category.name === 'uncategorized'; + })) { + populatedCategories.push({ + name: 'uncategorized', + label: Object(external_this_wp_i18n_["_x"])('Uncategorized') + }); + } + }, [populatedCategories, allPatterns]); var getPatternIndex = Object(external_this_wp_element_["useCallback"])(function (pattern) { if (!pattern.categories || !pattern.categories.length) { return Infinity; } - var indexedCategories = Object(external_this_lodash_["fromPairs"])(categories.map(function (_ref3, index) { + var indexedCategories = Object(external_this_lodash_["fromPairs"])(populatedCategories.map(function (_ref3, index) { var name = _ref3.name; return [name, index]; })); - return Math.min.apply(Math, Object(toConsumableArray["a" /* default */])(pattern.categories.map(function (category) { - return indexedCategories[category] !== undefined ? indexedCategories[category] : Infinity; + return Math.min.apply(Math, Object(toConsumableArray["a" /* default */])(pattern.categories.map(function (cat) { + return indexedCategories[cat] !== undefined ? indexedCategories[cat] : Infinity; }))); - }, [categories]); // Ordering the patterns per category is important for the async rendering. + }, [populatedCategories]); + var currentCategoryPatterns = Object(external_this_wp_element_["useMemo"])(function () { + return allPatterns.filter(function (pattern) { + return patternCategory.name === 'uncategorized' ? getPatternIndex(pattern) === Infinity : pattern.categories && pattern.categories.includes(patternCategory.name); + }); + }, [allPatterns, patternCategory]); // Ordering the patterns is important for the async rendering. var orderedPatterns = Object(external_this_wp_element_["useMemo"])(function () { - return patterns.sort(function (a, b) { + return currentCategoryPatterns.sort(function (a, b) { return getPatternIndex(a) - getPatternIndex(b); }); - }, [patterns, getPatternIndex]); - var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(orderedPatterns); // Uncategorized Patterns - - var uncategorizedPatterns = Object(external_this_wp_element_["useMemo"])(function () { - return patterns.filter(function (pattern) { - return getPatternIndex(pattern) === Infinity; - }); - }, [patterns, getPatternIndex]); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, categories.map(function (patternCategory) { - var categoryPatterns = patterns.filter(function (pattern) { - return pattern.categories && pattern.categories.includes(patternCategory.name); - }); - return !!categoryPatterns.length && Object(external_this_wp_element_["createElement"])(panel, { - key: patternCategory.name, - title: patternCategory.label - }, Object(external_this_wp_element_["createElement"])(block_patterns_list, { - shownPatterns: currentShownPatterns, - blockPatterns: categoryPatterns, - onClickPattern: onClick - })); - }), !!uncategorizedPatterns.length && Object(external_this_wp_element_["createElement"])(panel, { - title: Object(external_this_wp_i18n_["_x"])('Uncategorized') + }, [currentCategoryPatterns, getPatternIndex]); + var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(orderedPatterns); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !!currentCategoryPatterns.length && Object(external_this_wp_element_["createElement"])(pattern_panel, { + key: patternCategory.name, + title: patternCategory.title, + selectedCategory: patternCategory, + patternCategories: populatedCategories, + onClickCategory: onClickCategory }, Object(external_this_wp_element_["createElement"])(block_patterns_list, { shownPatterns: currentShownPatterns, - blockPatterns: uncategorizedPatterns, + blockPatterns: currentCategoryPatterns, onClickPattern: onClick }))); } function BlockPatternsTabs(_ref4) { var onInsert = _ref4.onInsert, - filterValue = _ref4.filterValue; + onClickCategory = _ref4.onClickCategory, + filterValue = _ref4.filterValue, + selectedCategory = _ref4.selectedCategory; return filterValue ? Object(external_this_wp_element_["createElement"])(BlockPatternsSearchResults, { onInsert: onInsert, filterValue: filterValue - }) : Object(external_this_wp_element_["createElement"])(BlockPatternsPerCategories, { - onInsert: onInsert + }) : Object(external_this_wp_element_["createElement"])(BlockPatternsCategory, { + selectedCategory: selectedCategory, + onInsert: onInsert, + onClickCategory: onClickCategory }); } @@ -25501,7 +27797,8 @@ function use_insertion_point_objectSpread(target) { for (var i = 1; i < argument */ function useInsertionPoint(_ref) { - var rootClientId = _ref.rootClientId, + var onSelect = _ref.onSelect, + rootClientId = _ref.rootClientId, clientId = _ref.clientId, isAppender = _ref.isAppender, selectBlockOnInsert = _ref.selectBlockOnInsert; @@ -25558,13 +27855,13 @@ function useInsertionPoint(_ref) { return getBlockOrder(destinationRootClientId).length; } - var onInsertBlocks = function onInsertBlocks(blocks) { + var onInsertBlocks = function onInsertBlocks(blocks, meta) { var selectedBlock = getSelectedBlock(); if (!isAppender && selectedBlock && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(selectedBlock)) { - replaceBlocks(selectedBlock.clientId, blocks); + replaceBlocks(selectedBlock.clientId, blocks, null, null, meta); } else { - insertBlocks(blocks, getInsertionIndex(), destinationRootClientId, selectBlockOnInsert); + insertBlocks(blocks, getInsertionIndex(), destinationRootClientId, selectBlockOnInsert, meta); } if (!selectBlockOnInsert) { @@ -25573,6 +27870,10 @@ function useInsertionPoint(_ref) { Object(external_this_wp_a11y_["speak"])(message); } + + if (onSelect) { + onSelect(); + } }; var onToggleInsertionPoint = function onToggleInsertionPoint(show) { @@ -25621,7 +27922,8 @@ function InserterTabs(_ref) { _ref$showPatterns = _ref.showPatterns, showPatterns = _ref$showPatterns === void 0 ? false : _ref$showPatterns, _ref$showReusableBloc = _ref.showReusableBlocks, - showReusableBlocks = _ref$showReusableBloc === void 0 ? false : _ref$showReusableBloc; + showReusableBlocks = _ref$showReusableBloc === void 0 ? false : _ref$showReusableBloc, + onSelect = _ref.onSelect; var tabs = [tabs_blocksTab]; if (showPatterns) { @@ -25634,7 +27936,8 @@ function InserterTabs(_ref) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TabPanel"], { className: "block-editor-inserter__tabs", - tabs: tabs + tabs: tabs, + onSelect: onSelect }, children); } @@ -25678,15 +27981,25 @@ function InserterMenu(_ref) { showInserterHelpPanel = _ref.showInserterHelpPanel, showMostUsedBlocks = _ref.showMostUsedBlocks; - var _useState = Object(external_this_wp_element_["useState"])(''), + var _useState = Object(external_this_wp_element_["useState"])('blocks'), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - filterValue = _useState2[0], - setFilterValue = _useState2[1]; + activeTab = _useState2[0], + setActiveTab = _useState2[1]; - var _useState3 = Object(external_this_wp_element_["useState"])(null), + var _useState3 = Object(external_this_wp_element_["useState"])(''), _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - hoveredItem = _useState4[0], - setHoveredItem = _useState4[1]; + filterValue = _useState4[0], + setFilterValue = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(null), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + hoveredItem = _useState6[0], + setHoveredItem = _useState6[1]; + + var _useState7 = Object(external_this_wp_element_["useState"])(null), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + selectedPatternCategory = _useState8[0], + setSelectedPatternCategory = _useState8[1]; var _useInsertionPoint = use_insertion_point({ rootClientId: rootClientId, @@ -25726,11 +28039,22 @@ function InserterMenu(_ref) { onSelect(); }; + var onInsertPattern = function onInsertPattern(blocks, patternName) { + onInsertBlocks(blocks, { + patternName: patternName + }); + onSelect(); + }; + var onHover = function onHover(item) { onToggleInsertionPoint(!!item); setHoveredItem(item); }; + var onClickPatternCategory = function onClickPatternCategory(patternCategory) { + setSelectedPatternCategory(patternCategory); + }; + var blocksTab = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-inserter__block-list" }, Object(external_this_wp_element_["createElement"])(block_types_tab, { @@ -25745,15 +28069,29 @@ function InserterMenu(_ref) { as: "h2" }, Object(external_this_wp_i18n_["__"])('A tip for using the block editor')), Object(external_this_wp_element_["createElement"])(tips, null))); var patternsTab = Object(external_this_wp_element_["createElement"])(block_patterns_tab, { - onInsert: onInsert, - filterValue: filterValue + onInsert: onInsertPattern, + filterValue: filterValue, + onClickCategory: onClickPatternCategory, + selectedCategory: selectedPatternCategory }); var reusableBlocksTab = Object(external_this_wp_element_["createElement"])(reusable_blocks_tab, { rootClientId: destinationRootClientId, onInsert: onInsert, onHover: onHover, filterValue: filterValue - }); // Disable reason (no-autofocus): The inserter menu is a modal display, not one which + }); + + var searchFormPlaceholder = function searchFormPlaceholder() { + if (activeTab === 'reusable') { + return Object(external_this_wp_i18n_["__"])('Search for a reusable block'); + } + + if (activeTab === 'patterns') { + return Object(external_this_wp_i18n_["__"])('Search for a pattern'); + } + + return Object(external_this_wp_i18n_["__"])('Search for a block'); + }; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which // is always visible, and one which already incurs this behavior of autoFocus via // Popover's focusOnMount. // Disable reason (no-static-element-interactions): Navigational key-presses within @@ -25761,6 +28099,7 @@ function InserterMenu(_ref) { /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ + return Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-inserter__menu", onKeyPress: stopKeyPropagation, @@ -25770,11 +28109,16 @@ function InserterMenu(_ref) { }, Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-inserter__content" }, Object(external_this_wp_element_["createElement"])(search_form, { - onChange: setFilterValue, - value: filterValue + onChange: function onChange(value) { + if (hoveredItem) setHoveredItem(null); + setFilterValue(value); + }, + value: filterValue, + placeholder: searchFormPlaceholder() }), (showPatterns || hasReusableBlocks) && Object(external_this_wp_element_["createElement"])(inserter_tabs, { showPatterns: showPatterns, - showReusableBlocks: hasReusableBlocks + showReusableBlocks: hasReusableBlocks, + onSelect: setActiveTab }, function (tab) { if (tab.name === 'blocks') { return blocksTab; @@ -25799,6 +28143,7 @@ function InserterMenu(_ref) { * External dependencies */ + /** * WordPress dependencies */ @@ -25822,7 +28167,7 @@ function InserterMenu(_ref) { var SEARCH_THRESHOLD = 6; -var SHOWN_BLOCK_TYPES = 6; +var quick_inserter_SHOWN_BLOCK_TYPES = 6; var SHOWN_BLOCK_PATTERNS = 2; var quick_inserter_preventArrowKeysPropagation = function preventArrowKeysPropagation(event) { @@ -25843,7 +28188,7 @@ function QuickInserterList(_ref) { onSelectBlockPattern = _ref.onSelectBlockPattern, onHover = _ref.onHover; var shownBlockTypes = Object(external_this_wp_element_["useMemo"])(function () { - return Object(external_this_lodash_["orderBy"])(blockTypes, ['frecency'], ['desc']).slice(0, SHOWN_BLOCK_TYPES); + return Object(external_this_lodash_["orderBy"])(blockTypes, ['frecency'], ['desc']).slice(0, quick_inserter_SHOWN_BLOCK_TYPES); }, [blockTypes]); var shownBlockPatterns = Object(external_this_wp_element_["useMemo"])(function () { return blockPatterns.slice(0, SHOWN_BLOCK_PATTERNS); @@ -25871,7 +28216,8 @@ function QuickInserterList(_ref) { } function QuickInserter(_ref2) { - var rootClientId = _ref2.rootClientId, + var onSelect = _ref2.onSelect, + rootClientId = _ref2.rootClientId, clientId = _ref2.clientId, isAppender = _ref2.isAppender, selectBlockOnInsert = _ref2.selectBlockOnInsert, @@ -25883,6 +28229,7 @@ function QuickInserter(_ref2) { setFilterValue = _useState2[1]; var _useInsertionPoint = use_insertion_point({ + onSelect: onSelect, rootClientId: rootClientId, clientId: clientId, isAppender: isAppender, @@ -25913,17 +28260,17 @@ function QuickInserter(_ref2) { var filteredBlockPatterns = Object(external_this_wp_element_["useMemo"])(function () { return search_items_searchItems(patterns, filterValue); }, [filterValue, patterns]); - var setInsererIsOpened = Object(external_this_wp_data_["useSelect"])(function (select) { + var setInserterIsOpened = Object(external_this_wp_data_["useSelect"])(function (select) { return select('core/block-editor').getSettings().__experimentalSetIsInserterOpened; }, []); var previousBlockClientId = Object(external_this_wp_data_["useSelect"])(function (select) { return select('core/block-editor').getPreviousBlockClientId(clientId); }, [clientId]); Object(external_this_wp_element_["useEffect"])(function () { - if (setInsererIsOpened) { - setInsererIsOpened(false); + if (setInserterIsOpened) { + setInserterIsOpened(false); } - }, [setInsererIsOpened]); + }, [setInserterIsOpened]); var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), selectBlock = _useDispatch.selectBlock; // Announce search results on change @@ -25949,7 +28296,7 @@ function QuickInserter(_ref2) { selectBlock(previousBlockClientId); // eslint-disable-next-line @wordpress/react-no-unsafe-timeout setTimeout(function () { - setInsererIsOpened(true); + setInserterIsOpened(true); }); }; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which // is always visible, and one which already incurs this behavior of autoFocus via @@ -25961,21 +28308,25 @@ function QuickInserter(_ref2) { return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__quick-inserter", + className: classnames_default()('block-editor-inserter__quick-inserter', { + 'has-search': showSearch, + 'has-expand': setInserterIsOpened + }), onKeyPress: quick_inserter_stopKeyPropagation, onKeyDown: quick_inserter_preventArrowKeysPropagation }, showSearch && Object(external_this_wp_element_["createElement"])(search_form, { value: filterValue, onChange: function onChange(value) { setFilterValue(value); - } + }, + placeholder: Object(external_this_wp_i18n_["__"])('Search for a block') }), Object(external_this_wp_element_["createElement"])(QuickInserterList, { blockTypes: filteredBlockTypes, blockPatterns: showPatterns ? filteredBlockPatterns : [], onSelectBlockPattern: onSelectBlockPattern, onSelectBlockType: onSelectBlockType, onHover: onToggleInsertionPoint - }), setInsererIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + }), setInserterIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { className: "block-editor-inserter__quick-inserter-expand", onClick: onBrowseAll, "aria-label": Object(external_this_wp_i18n_["__"])('Browse all. This will open the main inserter panel in the editor toolbar.') @@ -25995,7 +28346,8 @@ function QuickInserter(_ref2) { -function inserter_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (inserter_isNativeReflectConstruct()) { 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 inserter_createSuper(Derived) { var hasNativeReflectConstruct = inserter_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 inserter_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; } } @@ -26029,7 +28381,8 @@ var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { isOpen = _ref.isOpen, blockTitle = _ref.blockTitle, hasSingleBlockType = _ref.hasSingleBlockType, - toggleProps = _ref.toggleProps; + _ref$toggleProps = _ref.toggleProps, + toggleProps = _ref$toggleProps === void 0 ? {} : _ref$toggleProps; var label; if (hasSingleBlockType) { @@ -26039,16 +28392,30 @@ var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { label = Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'); } + var onClick = toggleProps.onClick, + rest = Object(objectWithoutProperties["a" /* default */])(toggleProps, ["onClick"]); // Handle both onClick functions from the toggle and the parent component + + + function handleClick(event) { + if (onToggle) { + onToggle(event); + } + + if (onClick) { + onClick(event); + } + } + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({ icon: plus["a" /* default */], label: label, tooltipPosition: "bottom", - onClick: onToggle, + onClick: handleClick, className: "block-editor-inserter__toggle", "aria-haspopup": !hasSingleBlockType ? 'true' : false, "aria-expanded": !hasSingleBlockType ? isOpen : false, disabled: disabled - }, toggleProps)); + }, rest)); }; var inserter_Inserter = /*#__PURE__*/function (_Component) { @@ -26134,6 +28501,7 @@ var inserter_Inserter = /*#__PURE__*/function (_Component) { if (isQuick) { return Object(external_this_wp_element_["createElement"])(quick_inserter, { + onSelect: onClose, rootClientId: rootClientId, clientId: clientId, isAppender: isAppender, @@ -26404,13 +28772,10 @@ var FocusCapture = Object(external_this_wp_element_["forwardRef"])(function (_re -/** - * Browser constants - */ -var writing_flow_window = window, - getSelection = writing_flow_window.getSelection, - writing_flow_getComputedStyle = writing_flow_window.getComputedStyle; +function writing_flow_getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} /** * Given an element, returns true if the element is a tabbable text field, or * false otherwise. @@ -26420,6 +28785,7 @@ var writing_flow_window = window, * @return {boolean} Whether element is a tabbable text field. */ + var isTabbableTextField = Object(external_this_lodash_["overEvery"])([external_this_wp_dom_["isTextField"], external_this_wp_dom_["focus"].tabbable.isTabbableIndex]); /** * Returns true if the element should consider edge navigation upon a keyboard @@ -26846,18 +29212,20 @@ function WritingFlow(_ref) { } return; - } // When presing any key other than up or down, the initial vertical + } + + var ownerDocument = container.current.ownerDocument; + var defaultView = ownerDocument.defaultView; // When presing any key other than up or down, the initial vertical // position must ALWAYS be reset. The vertical position is saved so it // can be restored as well as possible on sebsequent vertical arrow key // presses. It may not always be possible to restore the exact same // position (such as at an empty line), so it wouldn't be good to // compute the position right before any vertical arrow key press. - if (!isVertical) { verticalRect.current = null; } else if (!verticalRect.current) { - verticalRect.current = Object(external_this_wp_dom_["computeCaretRect"])(); + verticalRect.current = Object(external_this_wp_dom_["computeCaretRect"])(defaultView); } // This logic inside this condition needs to be checked before // the check for event.nativeEvent.defaultPrevented. // The logic handles meta+a keypress and this event is default prevented @@ -26926,7 +29294,7 @@ function WritingFlow(_ref) { Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closestTabbable, isReverse, verticalRect.current); event.preventDefault(); } - } else if (isHorizontal && getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverseDir) && !keepCaretInsideBlock) { + } else if (isHorizontal && defaultView.getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverseDir) && !keepCaretInsideBlock) { var _closestTabbable = getClosestTabbable(target, isReverseDir, container.current); Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(_closestTabbable, isReverseDir); @@ -27345,19 +29713,9 @@ function BlockSelectionButton(_ref) { -function useUpdateLayoutEffect(effect, deps) { - var mounted = Object(external_this_wp_element_["useRef"])(false); - Object(external_this_wp_element_["useLayoutEffect"])(function () { - if (mounted.current) { - return effect(); - } - - mounted.current = true; - }, deps); -} function hasOnlyToolbarItem(elements) { - var dataProp = 'experimentalToolbarItem'; + var dataProp = 'toolbarItem'; return !elements.some(function (element) { return !(dataProp in element.dataset); }); @@ -27398,10 +29756,18 @@ function useIsAccessibleToolbar(ref) { var determineIsAccessibleToolbar = Object(external_this_wp_element_["useCallback"])(function () { var tabbables = external_this_wp_dom_["focus"].tabbable.find(ref.current); - setIsAccessibleToolbar(hasOnlyToolbarItem(tabbables)); + var onlyToolbarItem = hasOnlyToolbarItem(tabbables); + + if (!onlyToolbarItem) { + external_this_wp_deprecated_default()('Using custom components as toolbar controls', { + alternative: 'ToolbarItem or ToolbarButton components', + link: 'https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols' + }); + } + + setIsAccessibleToolbar(onlyToolbarItem); }, []); - Object(external_this_wp_element_["useLayoutEffect"])(determineIsAccessibleToolbar, []); - useUpdateLayoutEffect(function () { + Object(external_this_wp_element_["useLayoutEffect"])(function () { // Toolbar buttons may be rendered asynchronously, so we use // MutationObserver to check if the toolbar subtree has been modified var observer = new window.MutationObserver(determineIsAccessibleToolbar); @@ -27447,7 +29813,7 @@ function NavigableToolbar(_ref) { if (isAccessibleToolbar) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], Object(esm_extends["a" /* default */])({ - __experimentalAccessibilityLabel: props['aria-label'], + label: props['aria-label'], ref: wrapper }, props), children); } @@ -27461,24 +29827,26 @@ function NavigableToolbar(_ref) { /* harmony default export */ var navigable_toolbar = (NavigableToolbar); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drag-handle.js - - - - - - - -function block_mover_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_mover_isNativeReflectConstruct()) { 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 block_mover_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 */ +var dragHandle = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + width: "18", + height: "18", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 18 18" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z" +})); +/* harmony default export */ var drag_handle = (dragHandle); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/draggable-chip.js + + /** * WordPress dependencies @@ -27493,89 +29861,345 @@ function block_mover_isNativeReflectConstruct() { if (typeof Reflect === "undefi */ -var block_mover_BlockMover = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(BlockMover, _Component); +function BlockDraggableChip(_ref) { + var clientIds = _ref.clientIds; + var icon = Object(external_this_wp_data_["useSelect"])(function (select) { + var _getBlockType; - var _super = block_mover_createSuper(BlockMover); + if (clientIds.length !== 1) { + return; + } - function BlockMover() { - var _this; + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName; - Object(classCallCheck["a" /* default */])(this, BlockMover); + var _clientIds = Object(slicedToArray["a" /* default */])(clientIds, 1), + firstId = _clientIds[0]; - _this = _super.apply(this, arguments); - _this.state = { - isFocused: false + var blockName = getBlockName(firstId); + return (_getBlockType = Object(external_this_wp_blocks_["getBlockType"])(blockName)) === null || _getBlockType === void 0 ? void 0 : _getBlockType.icon; + }, [clientIds]); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-draggable-chip-wrapper" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-draggable-chip" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Flex"], { + justify: "center", + className: "block-editor-block-draggable-chip__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FlexItem"], null, icon ? Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon + }) : Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: Number of blocks. */ + Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', clientIds.length), clientIds.length)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FlexItem"], null, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: drag_handle + }))))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js +/** + * WordPress dependencies + */ + + +var SCROLL_INACTIVE_DISTANCE_PX = 50; +var SCROLL_INTERVAL_MS = 25; +var PIXELS_PER_SECOND_PER_PERCENTAGE = 1000; +var VELOCITY_MULTIPLIER = PIXELS_PER_SECOND_PER_PERCENTAGE * (SCROLL_INTERVAL_MS / 1000); +/** + * React hook that scrolls the scroll container when a block is being dragged. + * + * @return {Function[]} `startScrolling`, `scrollOnDragOver`, `stopScrolling` + * functions to be called in `onDragStart`, `onDragOver` + * and `onDragEnd` events respectively. + */ + +function useScrollWhenDragging() { + var dragStartY = Object(external_this_wp_element_["useRef"])(null); + var velocityY = Object(external_this_wp_element_["useRef"])(null); + var scrollParentY = Object(external_this_wp_element_["useRef"])(null); + var scrollEditorInterval = Object(external_this_wp_element_["useRef"])(null); // Clear interval when unmounting. + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + if (scrollEditorInterval.current) { + clearInterval(scrollEditorInterval.current); + scrollEditorInterval.current = null; + } }; - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + }, []); + var startScrolling = Object(external_this_wp_element_["useCallback"])(function (event) { + dragStartY.current = event.clientY; // Find nearest parent(s) to scroll. + + scrollParentY.current = Object(external_this_wp_dom_["getScrollContainer"])(event.target); + scrollEditorInterval.current = setInterval(function () { + if (scrollParentY.current && velocityY.current) { + var newTop = scrollParentY.current.scrollTop + velocityY.current; // Setting `behavior: 'smooth'` as a scroll property seems to hurt performance. + // Better to use a small scroll interval. + + scrollParentY.current.scroll({ + top: newTop + }); + } + }, SCROLL_INTERVAL_MS); + }, []); + var scrollOnDragOver = Object(external_this_wp_element_["useCallback"])(function (event) { + if (!scrollParentY.current) { + return; + } + + var scrollParentHeight = scrollParentY.current.offsetHeight; + var offsetDragStartPosition = dragStartY.current - scrollParentY.current.offsetTop; + var offsetDragPosition = event.clientY - scrollParentY.current.offsetTop; + + if (event.clientY > offsetDragStartPosition) { + // User is dragging downwards. + var moveableDistance = Math.max(scrollParentHeight - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); + var dragDistance = Math.max(offsetDragPosition - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); + var distancePercentage = dragDistance / moveableDistance; + velocityY.current = VELOCITY_MULTIPLIER * distancePercentage; + } else if (event.clientY < offsetDragStartPosition) { + // User is dragging upwards. + var _moveableDistance = Math.max(offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); + + var _dragDistance = Math.max(offsetDragStartPosition - offsetDragPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); + + var _distancePercentage = _dragDistance / _moveableDistance; + + velocityY.current = -VELOCITY_MULTIPLIER * _distancePercentage; + } else { + velocityY.current = 0; + } + }, []); + + var stopScrolling = function stopScrolling() { + dragStartY.current = null; + scrollParentY.current = null; + + if (scrollEditorInterval.current) { + clearInterval(scrollEditorInterval.current); + scrollEditorInterval.current = null; + } + }; + + return [startScrolling, scrollOnDragOver, stopScrolling]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +var block_draggable_BlockDraggable = function BlockDraggable(_ref) { + var children = _ref.children, + clientIds = _ref.clientIds, + cloneClassname = _ref.cloneClassname, + _onDragStart = _ref.onDragStart, + _onDragEnd = _ref.onDragEnd, + elementId = _ref.elementId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId, + getTemplateLock = _select.getTemplateLock; + + var rootClientId = getBlockRootClientId(clientIds[0]); + var templateLock = rootClientId ? getTemplateLock(rootClientId) : null; + return { + srcRootClientId: rootClientId, + isDraggable: 'all' !== templateLock + }; + }, [clientIds]), + srcRootClientId = _useSelect.srcRootClientId, + isDraggable = _useSelect.isDraggable; + + var isDragging = Object(external_this_wp_element_["useRef"])(false); + + var _useScrollWhenDraggin = useScrollWhenDragging(), + _useScrollWhenDraggin2 = Object(slicedToArray["a" /* default */])(_useScrollWhenDraggin, 3), + startScrolling = _useScrollWhenDraggin2[0], + scrollOnDragOver = _useScrollWhenDraggin2[1], + stopScrolling = _useScrollWhenDraggin2[2]; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + startDraggingBlocks = _useDispatch.startDraggingBlocks, + stopDraggingBlocks = _useDispatch.stopDraggingBlocks; // Stop dragging blocks if the block draggable is unmounted + + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + if (isDragging.current) { + stopDraggingBlocks(); + } + }; + }, []); + + if (!isDraggable) { + return children({ + isDraggable: false + }); } - Object(createClass["a" /* default */])(BlockMover, [{ - key: "onFocus", - value: function onFocus() { - this.setState({ - isFocused: true - }); - } - }, { - key: "onBlur", - value: function onBlur() { - this.setState({ - isFocused: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - isFirst = _this$props.isFirst, - isLast = _this$props.isLast, - clientIds = _this$props.clientIds, - isLocked = _this$props.isLocked, - isHidden = _this$props.isHidden, - rootClientId = _this$props.rootClientId, - orientation = _this$props.orientation; - var isFocused = this.state.isFocused; + var transferData = { + type: 'block', + srcClientIds: clientIds, + srcRootClientId: srcRootClientId + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { + cloneClassname: cloneClassname, + elementId: elementId || "block-".concat(clientIds[0]), + transferData: transferData, + onDragStart: function onDragStart(event) { + startDraggingBlocks(clientIds); + isDragging.current = true; + startScrolling(event); - if (isLocked || isFirst && isLast && !rootClientId) { - return null; - } // We emulate a disabled state because forcefully applying the `disabled` - // attribute on the buttons while it has focus causes the screen to change - // to an unfocused state (body as active element) without firing blur on, - // the rendering parent, leaving it unable to react to focus out. + if (_onDragStart) { + _onDragStart(); + } + }, + onDragOver: scrollOnDragOver, + onDragEnd: function onDragEnd() { + stopDraggingBlocks(); + isDragging.current = false; + stopScrolling(); + + if (_onDragEnd) { + _onDragEnd(); + } + }, + __experimentalDragComponent: Object(external_this_wp_element_["createElement"])(BlockDraggableChip, { + clientIds: clientIds + }) + }, function (_ref2) { + var onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return children({ + isDraggable: true, + onDraggableStart: onDraggableStart, + onDraggableEnd: onDraggableEnd + }); + }); +}; + +/* harmony default export */ var block_draggable = (block_draggable_BlockDraggable); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('block-editor-block-mover', { - 'is-visible': isFocused || !isHidden, - 'is-horizontal': orientation === 'horizontal' - }) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], { - onFocus: this.onFocus, - onBlur: this.onBlur - }, function (itemProps) { - return Object(external_this_wp_element_["createElement"])(BlockMoverUpButton, Object(esm_extends["a" /* default */])({ - clientIds: clientIds - }, itemProps)); - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], { - onFocus: this.onFocus, - onBlur: this.onBlur - }, function (itemProps) { - return Object(external_this_wp_element_["createElement"])(BlockMoverDownButton, Object(esm_extends["a" /* default */])({ - clientIds: clientIds - }, itemProps)); - }))); - } - }]); - return BlockMover; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_mover = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +function BlockMover(_ref) { + var isFirst = _ref.isFirst, + isLast = _ref.isLast, + clientIds = _ref.clientIds, + isLocked = _ref.isLocked, + isHidden = _ref.isHidden, + rootClientId = _ref.rootClientId, + orientation = _ref.orientation, + hideDragHandle = _ref.hideDragHandle; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isFocused = _useState2[0], + setIsFocused = _useState2[1]; + + var onFocus = function onFocus() { + return setIsFocused(true); + }; + + var onBlur = function onBlur() { + return setIsFocused(false); + }; + + if (isLocked || isFirst && isLast && !rootClientId) { + return null; + } // We emulate a disabled state because forcefully applying the `disabled` + // attribute on the buttons while it has focus causes the screen to change + // to an unfocused state (body as active element) without firing blur on, + // the rendering parent, leaving it unable to react to focus out. + + + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('block-editor-block-mover', { + 'is-visible': isFocused || !isHidden, + 'is-horizontal': orientation === 'horizontal' + }) + }, !hideDragHandle && Object(external_this_wp_element_["createElement"])(block_draggable, { + clientIds: clientIds, + cloneClassname: "block-editor-block-mover__drag-clone" + }, function (_ref2) { + var isDraggable = _ref2.isDraggable, + onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: drag_handle, + className: "block-editor-block-mover__drag-handle", + "aria-hidden": "true", + label: Object(external_this_wp_i18n_["_n"])('Drag block', 'Drag blocks', clientIds.length) // Should not be able to tab to drag handle as this + // button can only be used with a pointer device. + , + tabIndex: "-1", + onDragStart: onDraggableStart, + onDragEnd: onDraggableEnd, + draggable: isDraggable + }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + className: "block-editor-block-mover__move-button-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], { + onFocus: onFocus, + onBlur: onBlur + }, function (itemProps) { + return Object(external_this_wp_element_["createElement"])(BlockMoverUpButton, Object(esm_extends["a" /* default */])({ + clientIds: clientIds + }, itemProps)); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], { + onFocus: onFocus, + onBlur: onBlur + }, function (itemProps) { + return Object(external_this_wp_element_["createElement"])(BlockMoverDownButton, Object(esm_extends["a" /* default */])({ + clientIds: clientIds + }, itemProps)); + }))); +} + +/* harmony default export */ var block_mover = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { var _getBlockListSettings; - var clientIds = _ref.clientIds; + var clientIds = _ref3.clientIds; var _select = select('core/block-editor'), getBlock = _select.getBlock, @@ -27603,7 +30227,7 @@ var block_mover_BlockMover = /*#__PURE__*/function (_Component) { isLast: isLast, orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation }; -})(block_mover_BlockMover)); +})(BlockMover)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-parent-selector/index.js @@ -27686,41 +30310,22 @@ var stack_stack = Object(external_this_wp_element_["createElement"])(external_th })); /* harmony default export */ var library_stack = (stack_stack); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/utils.js +function utils_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = utils_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function utils_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return utils_arrayLikeToArray(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 utils_arrayLikeToArray(o, minLen); } - - -function block_styles_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 block_styles_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_styles_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 { block_styles_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function block_styles_createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = block_styles_unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } - -function block_styles_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return block_styles_arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return block_styles_arrayLikeToArray(o, minLen); } - -function block_styles_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } +function utils_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /** * External dependencies */ - /** * WordPress dependencies */ - - - - - -/** - * Internal dependencies - */ - - /** * Returns the active style from the given className. * @@ -27731,7 +30336,7 @@ function block_styles_arrayLikeToArray(arr, len) { if (len == null || len > arr. */ function getActiveStyle(styles, className) { - var _iterator = block_styles_createForOfIteratorHelper(new external_this_wp_tokenList_default.a(className).values()), + var _iterator = utils_createForOfIteratorHelper(new external_this_wp_tokenList_default.a(className).values()), _step; try { @@ -27780,6 +30385,36 @@ function replaceActiveStyle(className, activeStyle, newStyle) { return list.value; } +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js + + + + +function block_styles_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 block_styles_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_styles_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 { block_styles_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + var block_styles_useGenericPreviewBlock = function useGenericPreviewBlock(block, type) { return Object(external_this_wp_element_["useMemo"])(function () { return type.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(block.name, { @@ -27874,8 +30509,8 @@ function BlockStyleItem(_ref2) { styleClassName = _ref2.styleClassName, itemRole = _ref2.itemRole; var previewBlocks = Object(external_this_wp_element_["useMemo"])(function () { - return block_styles_objectSpread({}, genericPreviewBlock, { - attributes: block_styles_objectSpread({}, genericPreviewBlock.attributes, { + return block_styles_objectSpread(block_styles_objectSpread({}, genericPreviewBlock), {}, { + attributes: block_styles_objectSpread(block_styles_objectSpread({}, genericPreviewBlock.attributes), {}, { className: styleClassName }) }); @@ -27940,15 +30575,14 @@ var block_transformations_menu_BlockTransformationsMenu = function BlockTransfor return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { key: name, className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(name), - icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }), onClick: function onClick(event) { event.preventDefault(); onSelect(name); } - }, title); + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }), title); })); }; @@ -27965,7 +30599,7 @@ var block_transformations_menu_BlockTransformationsMenu = function BlockTransfor -function block_switcher_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_switcher_isNativeReflectConstruct()) { 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 block_switcher_createSuper(Derived) { var hasNativeReflectConstruct = block_switcher_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 block_switcher_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; } } @@ -28016,7 +30650,7 @@ function PreviewBlockPopover(_ref) { }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(block_preview, { viewportWidth: 500, blocks: hoveredBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredBlock.name, { - attributes: block_switcher_objectSpread({}, hoveredBlockType.example.attributes, { + attributes: block_switcher_objectSpread(block_switcher_objectSpread({}, hoveredBlockType.example.attributes), {}, { className: hoveredClassName }), innerBlocks: hoveredBlockType.example.innerBlocks @@ -28109,7 +30743,7 @@ var block_switcher_BlockSwitcher = /*#__PURE__*/function (_Component) { var blockSwitcherLabel = 1 === blocks.length ? Object(external_this_wp_i18n_["__"])('Change block type or style') : Object(external_this_wp_i18n_["sprintf"])( /* translators: %s: number of blocks. */ Object(external_this_wp_i18n_["_n"])('Change type of %d block', 'Change type of %d blocks', blocks.length), blocks.length); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { className: "block-editor-block-switcher", label: blockSwitcherLabel, @@ -28186,7 +30820,7 @@ var block_switcher_BlockSwitcher = /*#__PURE__*/function (_Component) { }))(block_switcher_BlockSwitcher)); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(44); +var external_this_wp_blob_ = __webpack_require__(43); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-paste-event-data.js /** @@ -28353,9 +30987,11 @@ function CopyHandler(_ref) { if (!hasMultiSelection()) { - // If copying, only consider actual text selection as selection. + var target = event.target; + var ownerDocument = target.ownerDocument; // If copying, only consider actual text selection as selection. // Otherwise, any focus on an input field is considered. - var hasSelection = event.type === 'copy' || event.type === 'cut' ? Object(external_this_wp_dom_["documentHasUncollapsedSelection"])() : Object(external_this_wp_dom_["documentHasSelection"])(); // Let native copy behaviour take over in input fields. + + var hasSelection = event.type === 'copy' || event.type === 'cut' ? Object(external_this_wp_dom_["documentHasUncollapsedSelection"])(ownerDocument) : Object(external_this_wp_dom_["documentHasSelection"])(ownerDocument); // Let native copy behaviour take over in input fields. if (hasSelection) { return; @@ -28458,7 +31094,8 @@ function BlockActions(_ref) { insertBeforeBlock = _useDispatch.insertBeforeBlock, flashBlock = _useDispatch.flashBlock, setBlockMovingClientId = _useDispatch.setBlockMovingClientId, - setNavigationMode = _useDispatch.setNavigationMode; + setNavigationMode = _useDispatch.setNavigationMode, + selectBlock = _useDispatch.selectBlock; var notifyCopy = useNotifyCopy(); return children({ @@ -28481,6 +31118,7 @@ function BlockActions(_ref) { }, onMoveTo: function onMoveTo() { setNavigationMode(true); + selectBlock(clientIds[0]); setBlockMovingClientId(clientIds[0]); }, onGroup: function onGroup() { @@ -28641,36 +31279,6 @@ function BlockConvertButton(_ref) { }; }))(BlockConvertButton)); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-unknown-convert-button.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var block_unknown_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId; - var block = select('core/block-editor').getBlock(clientId); - return { - block: block, - shouldRender: block && block.name === Object(external_this_wp_blocks_["getFreeformContentHandlerName"])() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var block = _ref2.block; - return { - onClick: function onClick() { - return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ - HTML: Object(external_this_wp_blocks_["serialize"])(block) - })); - } - }; -}))(BlockConvertButton)); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js /** * WordPress dependencies @@ -28717,12 +31325,12 @@ var block_settings_menu_controls_BlockSettingsMenuControlsSlot = function BlockS getSelectedBlockClientIds = _select.getSelectedBlockClientIds; var ids = clientIds !== null ? clientIds : getSelectedBlockClientIds(); - return Object(external_this_lodash_["map"])(getBlocksByClientId(ids), function (block) { + return Object(external_this_lodash_["map"])(Object(external_this_lodash_["compact"])(getBlocksByClientId(ids)), function (block) { return block.name; }); }, [clientIds]); return Object(external_this_wp_element_["createElement"])(block_settings_menu_controls_Slot, { - fillProps: block_settings_menu_controls_objectSpread({}, fillProps, { + fillProps: block_settings_menu_controls_objectSpread(block_settings_menu_controls_objectSpread({}, fillProps), {}, { selectedBlocks: selectedBlocks }) }, function (fills) { @@ -28767,7 +31375,6 @@ BlockSettingsMenuControls.Slot = block_settings_menu_controls_BlockSettingsMenuC - var block_settings_dropdown_POPOVER_PROPS = { className: 'block-editor-block-settings-menu__popover', position: 'bottom right', @@ -28848,8 +31455,6 @@ function BlockSettingsDropdown(_ref) { fillProps: { onClose: onClose } - }), count === 1 && Object(external_this_wp_element_["createElement"])(block_unknown_convert_button, { - clientId: firstBlockClientId }), count === 1 && Object(external_this_wp_element_["createElement"])(block_html_convert_button, { clientId: firstBlockClientId }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { @@ -28887,7 +31492,7 @@ function BlockSettingsDropdown(_ref) { }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { onClick: Object(external_this_lodash_["flow"])(onClose, onRemove, updateSelection), shortcut: shortcuts.remove - }, Object(external_this_wp_i18n_["_n"])('Remove Block', 'Remove Blocks', count)))); + }, Object(external_this_wp_i18n_["_n"])('Remove block', 'Remove blocks', count)))); }); }); } @@ -28911,7 +31516,7 @@ function BlockSettingsMenu(_ref) { var clientIds = _ref.clientIds, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientIds"]); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { return Object(external_this_wp_element_["createElement"])(block_settings_dropdown, Object(esm_extends["a" /* default */])({ clientIds: clientIds, toggleProps: toggleProps @@ -28920,269 +31525,6 @@ function BlockSettingsMenu(_ref) { } /* harmony default export */ var block_settings_menu = (BlockSettingsMenu); -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/handle.js - - -/** - * WordPress dependencies - */ - -var handle = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M7 16.5h10V15H7v1.5zm0-9V9h10V7.5H7z" -})); -/* harmony default export */ var library_handle = (handle); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/draggable-chip.js - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -function BlockDraggableChip(_ref) { - var clientIds = _ref.clientIds; - var icon = Object(external_this_wp_data_["useSelect"])(function (select) { - if (clientIds.length !== 1) { - return; - } - - var _select = select('core/block-editor'), - getBlockName = _select.getBlockName; - - var _clientIds = Object(slicedToArray["a" /* default */])(clientIds, 1), - firstId = _clientIds[0]; - - var blockName = getBlockName(firstId); - return Object(external_this_wp_blocks_["getBlockType"])(blockName).icon; - }, [clientIds]); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-draggable-chip-wrapper" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-draggable-chip" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Flex"], { - justify: "center", - className: "block-editor-block-draggable-chip__content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FlexItem"], null, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: library_handle - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FlexItem"], null, icon ? Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon - }) : Object(external_this_wp_i18n_["sprintf"])( - /* translators: %d: Number of blocks. */ - Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', clientIds.length), clientIds.length))))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js -/** - * WordPress dependencies - */ - - -var SCROLL_INACTIVE_DISTANCE_PX = 50; -var SCROLL_INTERVAL_MS = 25; -var PIXELS_PER_SECOND_PER_PERCENTAGE = 1000; -var VELOCITY_MULTIPLIER = PIXELS_PER_SECOND_PER_PERCENTAGE * (SCROLL_INTERVAL_MS / 1000); -/** - * React hook that scrolls the scroll container when a block is being dragged. - * - * @return {Function[]} `startScrolling`, `scrollOnDragOver`, `stopScrolling` - * functions to be called in `onDragStart`, `onDragOver` - * and `onDragEnd` events respectively. - */ - -function useScrollWhenDragging() { - var dragStartY = Object(external_this_wp_element_["useRef"])(null); - var velocityY = Object(external_this_wp_element_["useRef"])(null); - var scrollParentY = Object(external_this_wp_element_["useRef"])(null); - var scrollEditorInterval = Object(external_this_wp_element_["useRef"])(null); // Clear interval when unmounting. - - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - if (scrollEditorInterval.current) { - clearInterval(scrollEditorInterval.current); - scrollEditorInterval.current = null; - } - }; - }, []); - var startScrolling = Object(external_this_wp_element_["useCallback"])(function (event) { - dragStartY.current = event.clientY; // Find nearest parent(s) to scroll. - - scrollParentY.current = Object(external_this_wp_dom_["getScrollContainer"])(event.target); - scrollEditorInterval.current = setInterval(function () { - if (scrollParentY.current && velocityY.current) { - var newTop = scrollParentY.current.scrollTop + velocityY.current; // Setting `behavior: 'smooth'` as a scroll property seems to hurt performance. - // Better to use a small scroll interval. - - scrollParentY.current.scroll({ - top: newTop - }); - } - }, SCROLL_INTERVAL_MS); - }, []); - var scrollOnDragOver = Object(external_this_wp_element_["useCallback"])(function (event) { - if (!scrollParentY.current) { - return; - } - - var scrollParentHeight = scrollParentY.current.offsetHeight; - var offsetDragStartPosition = dragStartY.current - scrollParentY.current.offsetTop; - var offsetDragPosition = event.clientY - scrollParentY.current.offsetTop; - - if (event.clientY > offsetDragStartPosition) { - // User is dragging downwards. - var moveableDistance = Math.max(scrollParentHeight - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); - var dragDistance = Math.max(offsetDragPosition - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); - var distancePercentage = dragDistance / moveableDistance; - velocityY.current = VELOCITY_MULTIPLIER * distancePercentage; - } else if (event.clientY < offsetDragStartPosition) { - // User is dragging upwards. - var _moveableDistance = Math.max(offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); - - var _dragDistance = Math.max(offsetDragStartPosition - offsetDragPosition - SCROLL_INACTIVE_DISTANCE_PX, 0); - - var _distancePercentage = _dragDistance / _moveableDistance; - - velocityY.current = -VELOCITY_MULTIPLIER * _distancePercentage; - } else { - velocityY.current = 0; - } - }, []); - - var stopScrolling = function stopScrolling() { - dragStartY.current = null; - scrollParentY.current = null; - - if (scrollEditorInterval.current) { - clearInterval(scrollEditorInterval.current); - scrollEditorInterval.current = null; - } - }; - - return [startScrolling, scrollOnDragOver, stopScrolling]; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - -var block_draggable_BlockDraggable = function BlockDraggable(_ref) { - var children = _ref.children, - clientIds = _ref.clientIds, - cloneClassname = _ref.cloneClassname, - _onDragStart = _ref.onDragStart, - _onDragEnd = _ref.onDragEnd; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockRootClientId = _select.getBlockRootClientId, - getTemplateLock = _select.getTemplateLock; - - var rootClientId = getBlockRootClientId(clientIds[0]); - var templateLock = rootClientId ? getTemplateLock(rootClientId) : null; - return { - srcRootClientId: rootClientId, - isDraggable: 'all' !== templateLock - }; - }, [clientIds]), - srcRootClientId = _useSelect.srcRootClientId, - isDraggable = _useSelect.isDraggable; - - var isDragging = Object(external_this_wp_element_["useRef"])(false); - - var _useScrollWhenDraggin = useScrollWhenDragging(), - _useScrollWhenDraggin2 = Object(slicedToArray["a" /* default */])(_useScrollWhenDraggin, 3), - startScrolling = _useScrollWhenDraggin2[0], - scrollOnDragOver = _useScrollWhenDraggin2[1], - stopScrolling = _useScrollWhenDraggin2[2]; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - startDraggingBlocks = _useDispatch.startDraggingBlocks, - stopDraggingBlocks = _useDispatch.stopDraggingBlocks; // Stop dragging blocks if the block draggable is unmounted - - - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - if (isDragging.current) { - stopDraggingBlocks(); - } - }; - }, []); - - if (!isDraggable) { - return children({ - isDraggable: false - }); - } - - var transferData = { - type: 'block', - srcClientIds: clientIds, - srcRootClientId: srcRootClientId - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { - cloneClassname: cloneClassname, - elementId: "block-".concat(clientIds[0]), - transferData: transferData, - onDragStart: function onDragStart(event) { - startDraggingBlocks(); - isDragging.current = true; - startScrolling(event); - - if (_onDragStart) { - _onDragStart(); - } - }, - onDragOver: scrollOnDragOver, - onDragEnd: function onDragEnd() { - stopDraggingBlocks(); - isDragging.current = false; - stopScrolling(); - - if (_onDragEnd) { - _onDragEnd(); - } - }, - __experimentalDragComponent: Object(external_this_wp_element_["createElement"])(BlockDraggableChip, { - clientIds: clientIds - }) - }, function (_ref2) { - var onDraggableStart = _ref2.onDraggableStart, - onDraggableEnd = _ref2.onDraggableEnd; - return children({ - isDraggable: true, - onDraggableStart: onDraggableStart, - onDraggableEnd: onDraggableEnd - }); - }); -}; - -/* harmony default export */ var block_draggable = (block_draggable_BlockDraggable); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/utils.js @@ -29195,9 +31537,9 @@ var block_draggable_BlockDraggable = function BlockDraggable(_ref) { */ -var utils_window = window, - utils_clearTimeout = utils_window.clearTimeout, - utils_setTimeout = utils_window.setTimeout; +var _window = window, + utils_clearTimeout = _window.clearTimeout, + utils_setTimeout = _window.setTimeout; var DEBOUNCE_TIMEOUT = 200; /** * Hook that creates a showMover state, as well as debounced show/hide callbacks. @@ -29225,7 +31567,10 @@ function useDebouncedShowMovers(_ref) { var timeoutRef = Object(external_this_wp_element_["useRef"])(); var handleOnChange = function handleOnChange(nextIsFocused) { - setShowMovers(nextIsFocused); + if (ref === null || ref === void 0 ? void 0 : ref.current) { + setShowMovers(nextIsFocused); + } + onChange(nextIsFocused); }; @@ -29317,7 +31662,7 @@ function useShowMoversGestures(_ref2) { var registerRef = Object(external_this_wp_element_["useRef"])(false); var isFocusedWithin = function isFocusedWithin() { - return (ref === null || ref === void 0 ? void 0 : ref.current) && ref.current.contains(document.activeElement); + return (ref === null || ref === void 0 ? void 0 : ref.current) && ref.current.contains(ref.current.ownerDocument.activeElement); }; Object(external_this_wp_element_["useEffect"])(function () { @@ -29364,6 +31709,9 @@ function useShowMoversGestures(_ref2) { }; } +// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/expanded-block-controls-container.js +var expanded_block_controls_container = __webpack_require__(276); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js @@ -29380,6 +31728,7 @@ function useShowMoversGestures(_ref2) { + /** * Internal dependencies */ @@ -29393,7 +31742,9 @@ function useShowMoversGestures(_ref2) { function BlockToolbar(_ref) { - var hideDragHandle = _ref.hideDragHandle; + var hideDragHandle = _ref.hideDragHandle, + _ref$__experimentalEx = _ref.__experimentalExpandedControl, + __experimentalExpandedControl = _ref$__experimentalEx === void 0 ? false : _ref$__experimentalEx; var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), @@ -29459,7 +31810,8 @@ function BlockToolbar(_ref) { var shouldShowVisualToolbar = isValid && isVisual; var isMultiToolbar = blockClientIds.length > 1; var classes = classnames_default()('block-editor-block-toolbar', shouldShowMovers && 'is-showing-movers'); - return Object(external_this_wp_element_["createElement"])("div", { + var Wrapper = __experimentalExpandedControl ? expanded_block_controls_container["a" /* default */] : 'div'; + return Object(external_this_wp_element_["createElement"])(Wrapper, { className: classes }, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ ref: nodeRef @@ -29467,24 +31819,14 @@ function BlockToolbar(_ref) { className: "block-editor-block-toolbar__block-parent-selector-wrapper" }, Object(external_this_wp_element_["createElement"])(BlockParentSelector, { clientIds: blockClientIds - })), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(block_switcher, { + })), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + className: "block-editor-block-toolbar__block-controls" + }, Object(external_this_wp_element_["createElement"])(block_switcher, { clientIds: blockClientIds - })), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(block_draggable, { + }), Object(external_this_wp_element_["createElement"])(block_mover, { clientIds: blockClientIds, - cloneClassname: "block-editor-block-toolbar__drag-clone" - }, function (_ref2) { - var isDraggable = _ref2.isDraggable, - onDraggableStart = _ref2.onDraggableStart, - onDraggableEnd = _ref2.onDraggableEnd; - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-toolbar__drag-handle-area", - draggable: isDraggable && !hideDragHandle, - onDragStart: onDraggableStart, - onDragEnd: onDraggableEnd - }, Object(external_this_wp_element_["createElement"])(block_mover, { - clientIds: blockClientIds - })); - }), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls.Slot, { + hideDragHandle: hideDragHandle + }))), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls["a" /* default */].Slot, { bubblesVirtually: true, className: "block-editor-block-toolbar__slot" }), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, { @@ -29857,7 +32199,7 @@ function root_container_selector(select) { */ -function onDragStart(event) { +function root_container_onDragStart(event) { // Ensure we target block content, not block controls. if (getBlockClientId(event.target)) { event.preventDefault(); @@ -29909,7 +32251,7 @@ function RootContainer(_ref, ref) { ref: ref, className: classnames_default()(className, 'is-root-container'), onFocus: onFocus, - onDragStart: onDragStart + onDragStart: root_container_onDragStart }, Object(external_this_wp_element_["createElement"])(SetBlockNodes.Provider, { value: setBlockNodes }, Object(external_this_wp_element_["createElement"])(root_container_Context.Provider, { @@ -29951,6 +32293,7 @@ function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.leng + /** * Internal dependencies */ @@ -29960,13 +32303,30 @@ function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.leng -var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ref, wrapper) { - var children = _ref.children, - _ref$tagName = _ref.tagName, - TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName, - __unstableIsHtml = _ref.__unstableIsHtml, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "tagName", "__unstableIsHtml"]); +/** + * This hook is used to lighly mark an element as a block element. Call this + * hook and pass the returned props to the element to mark as a block. If you + * define a ref for the element, it is important to pass the ref to this hook, + * which the hooks in turn will pass to the component through the props it + * returns. Optionally, you can also pass any other props through this hook, and + * they will be merged and returned. + * + * @param {Object} props Optional. Props to pass to the element. Must contain + * the ref if one is defined. + * @param {Object} options Options for internal use only. + * @param {boolean} options.__unstableIsHtml + * + * @return {Object} Props to pass to the element to mark as a block. + */ +function useBlockWrapperProps() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + __unstableIsHtml = _ref.__unstableIsHtml; + + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var ref = props.ref || fallbackRef; var onSelectionStart = Object(external_this_wp_element_["useContext"])(root_container_Context); var setBlockNodes = Object(external_this_wp_element_["useContext"])(SetBlockNodes); @@ -29983,7 +32343,8 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ name = _useContext.name, mode = _useContext.mode, blockTitle = _useContext.blockTitle, - wrapperProps = _useContext.wrapperProps; + _useContext$wrapperPr = _useContext.wrapperProps, + wrapperProps = _useContext$wrapperPr === void 0 ? {} : _useContext$wrapperPr; var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), @@ -30005,10 +32366,6 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ insertDefaultBlock = _useDispatch.insertDefaultBlock, removeBlock = _useDispatch.removeBlock; - var fallbackRef = Object(external_this_wp_element_["useRef"])(); - var isAligned = wrapperProps && !!wrapperProps['data-align']; - wrapper = wrapper || fallbackRef; - var _useState = Object(external_this_wp_element_["useState"])(false), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), isHovered = _useState2[0], @@ -30020,9 +32377,9 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ Object(external_this_wp_element_["useEffect"])(function () { if (isSelected || isFirstMultiSelected || isLastMultiSelected) { - var node = wrapper.current; + var node = ref.current; setBlockNodes(function (nodes) { - return block_wrapper_objectSpread({}, nodes, Object(defineProperty["a" /* default */])({}, clientId, node)); + return block_wrapper_objectSpread(block_wrapper_objectSpread({}, nodes), {}, Object(defineProperty["a" /* default */])({}, clientId, node)); }); return function () { setBlockNodes(function (nodes) { @@ -30030,7 +32387,20 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ }); }; } - }, [isSelected, isFirstMultiSelected, isLastMultiSelected]); // translators: %s: Type of block (i.e. Text, Image etc) + }, [isSelected, isFirstMultiSelected, isLastMultiSelected]); // Set new block node if it changes. + // This effect should happen on every render, so no dependencies should be + // added. + + Object(external_this_wp_element_["useEffect"])(function () { + var node = ref.current; + setBlockNodes(function (nodes) { + if (!nodes[clientId] || nodes[clientId] === node) { + return nodes; + } + + return block_wrapper_objectSpread(block_wrapper_objectSpread({}, nodes), {}, Object(defineProperty["a" /* default */])({}, clientId, node)); + }); + }); // translators: %s: Type of block (i.e. Text, Image etc) var blockLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block: %s'), blockTitle); // Handing the focus of the block on creation and update @@ -30039,23 +32409,24 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ */ var focusTabbable = function focusTabbable() { - // Focus is captured by the wrapper node, so while focus transition + var ownerDocument = ref.current.ownerDocument; // Focus is captured by the wrapper node, so while focus transition // should only consider tabbables within editable display, since it // may be the wrapper itself or a side control which triggered the // focus event, don't unnecessary transition to an inner tabbable. - if (document.activeElement && isInsideRootBlock(wrapper.current, document.activeElement)) { + + if (ownerDocument.activeElement && isInsideRootBlock(ref.current, ownerDocument.activeElement)) { return; } // Find all tabbables within node. - var textInputs = external_this_wp_dom_["focus"].tabbable.find(wrapper.current).filter(external_this_wp_dom_["isTextField"]) // Exclude inner blocks and block appenders - .filter(function (node) { - return isInsideRootBlock(wrapper.current, node) && !node.closest('.block-list-appender'); + var textInputs = external_this_wp_dom_["focus"].tabbable.find(ref.current).filter(function (node) { + return Object(external_this_wp_dom_["isTextField"])(node) && // Exclude inner blocks and block appenders + isInsideRootBlock(ref.current, node) && !node.closest('.block-list-appender'); }); // If reversed (e.g. merge via backspace), use the last in the set of // tabbables. var isReverse = -1 === initialPosition; - var target = (isReverse ? external_this_lodash_["last"] : external_this_lodash_["first"])(textInputs) || wrapper.current; + var target = (isReverse ? external_this_lodash_["last"] : external_this_lodash_["first"])(textInputs) || ref.current; Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, isReverse); }; @@ -30065,112 +32436,129 @@ var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ } }, [shouldFocusFirstElement]); // Block Reordering animation - use_moving_animation(wrapper, isSelected || isPartOfMultiSelection, isSelected || isFirstMultiSelected, enableAnimation, index); - /** - * Interprets keydown event intent to remove or insert after block if key - * event occurs on wrapper node. This can occur when the block has no text - * fields of its own, particularly after initial insertion, to allow for - * easy deletion and continuous writing flow to add additional content. - * - * @param {KeyboardEvent} event Keydown event. - */ + use_moving_animation(ref, isSelected || isPartOfMultiSelection, isSelected || isFirstMultiSelected, enableAnimation, index); + Object(external_this_wp_element_["useEffect"])(function () { + if (!isSelected) { + return; + } + /** + * Interprets keydown event intent to remove or insert after block if + * key event occurs on wrapper node. This can occur when the block has + * no text fields of its own, particularly after initial insertion, to + * allow for easy deletion and continuous writing flow to add additional + * content. + * + * @param {KeyboardEvent} event Keydown event. + */ - var onKeyDown = function onKeyDown(event) { - var keyCode = event.keyCode, - target = event.target; - if (props.onKeyDown) { - props.onKeyDown(event); + function onKeyDown(event) { + var keyCode = event.keyCode, + target = event.target; + + if (keyCode !== external_this_wp_keycodes_["ENTER"] && keyCode !== external_this_wp_keycodes_["BACKSPACE"] && keyCode !== external_this_wp_keycodes_["DELETE"]) { + return; + } + + if (target !== ref.current || Object(external_this_wp_dom_["isTextField"])(target)) { + return; + } + + event.preventDefault(); + + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + insertDefaultBlock({}, rootClientId, index + 1); + } else { + removeBlock(clientId); + } } - if (keyCode !== external_this_wp_keycodes_["ENTER"] && keyCode !== external_this_wp_keycodes_["BACKSPACE"] && keyCode !== external_this_wp_keycodes_["DELETE"]) { + function onMouseLeave(_ref2) { + var buttons = _ref2.buttons; + + // The primary button must be pressed to initiate selection. + // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons + if (buttons === 1) { + onSelectionStart(clientId); + } + } + + ref.current.addEventListener('keydown', onKeyDown); + ref.current.addEventListener('mouseleave', onMouseLeave); + return function () { + ref.current.removeEventListener('mouseleave', onMouseLeave); + ref.current.removeEventListener('keydown', onKeyDown); + }; + }, [isSelected, onSelectionStart, insertDefaultBlock, removeBlock]); + Object(external_this_wp_element_["useEffect"])(function () { + if (!isNavigationMode) { return; } - if (target !== wrapper.current || Object(external_this_wp_dom_["isTextField"])(target)) { - return; + function onMouseOver(event) { + if (event.defaultPrevented) { + return; + } + + event.preventDefault(); + + if (isHovered) { + return; + } + + setHovered(true); } - event.preventDefault(); + function onMouseOut(event) { + if (event.defaultPrevented) { + return; + } - if (keyCode === external_this_wp_keycodes_["ENTER"]) { - insertDefaultBlock({}, rootClientId, index + 1); - } else { - removeBlock(clientId); + event.preventDefault(); + + if (!isHovered) { + return; + } + + setHovered(false); } - }; - - var onMouseLeave = function onMouseLeave(_ref2) { - var which = _ref2.which, - buttons = _ref2.buttons; - - // The primary button must be pressed to initiate selection. Fall back - // to `which` if the standard `buttons` property is falsy. There are - // cases where Firefox might always set `buttons` to `0`. - // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons - // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which - if ((buttons || which) === 1) { - onSelectionStart(clientId); - } - }; + ref.current.addEventListener('mouseover', onMouseOver); + ref.current.addEventListener('mouseout', onMouseOut); + return function () { + ref.current.removeEventListener('mouseover', onMouseOver); + ref.current.removeEventListener('mouseout', onMouseOut); + }; + }, [isNavigationMode, isHovered, setHovered]); var htmlSuffix = mode === 'html' && !__unstableIsHtml ? '-visual' : ''; - var blockElementId = "block-".concat(clientId).concat(htmlSuffix); + return block_wrapper_objectSpread(block_wrapper_objectSpread(block_wrapper_objectSpread({}, wrapperProps), props), {}, { + ref: ref, + id: "block-".concat(clientId).concat(htmlSuffix), + tabIndex: 0, + role: 'group', + 'aria-label': blockLabel, + 'data-block': clientId, + 'data-type': name, + 'data-title': blockTitle, + className: classnames_default()(className, props.className, wrapperProps.className, { + 'is-hovered': isHovered + }), + style: block_wrapper_objectSpread(block_wrapper_objectSpread({}, wrapperProps.style), props.style) + }); +} +var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ref3, ref) { + var children = _ref3.children, + _ref3$tagName = _ref3.tagName, + TagName = _ref3$tagName === void 0 ? 'div' : _ref3$tagName, + props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["children", "tagName"]); - function onMouseOver(event) { - if (event.defaultPrevented) { - return; - } - - event.preventDefault(); - - if (isHovered) { - return; - } - - setHovered(true); - } - - function onMouseOut(event) { - if (event.defaultPrevented) { - return; - } - - event.preventDefault(); - - if (!isHovered) { - return; - } - - setHovered(false); - } - - return (// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events - Object(external_this_wp_element_["createElement"])(TagName // Overrideable props. - , Object(esm_extends["a" /* default */])({ - "aria-label": blockLabel, - role: "group" - }, Object(external_this_lodash_["omit"])(wrapperProps, ['data-align']), props, { - id: blockElementId, - ref: wrapper, - className: classnames_default()(className, props.className, wrapperProps && wrapperProps.className, { - 'is-hovered': isHovered, - 'wp-block': !isAligned - }), - "data-block": clientId, - "data-type": name, - "data-title": blockTitle // Only allow shortcuts when a blocks is selected. - , - onKeyDown: isSelected ? onKeyDown : undefined // Only allow selection to be started from a selected block. - , - onMouseLeave: isSelected ? onMouseLeave : undefined // No need to have these listeners for hover class in edit mode. - , - onMouseOver: isNavigationMode ? onMouseOver : undefined, - onMouseOut: isNavigationMode ? onMouseOut : undefined, - tabIndex: "0", - style: block_wrapper_objectSpread({}, wrapperProps ? wrapperProps.style : {}, {}, props.style || {}) - }), children) - ); + external_this_wp_deprecated_default()('wp.blockEditor.__experimentalBlock', { + alternative: 'wp.blockEditor.__experimentalUseBlockWrapperProps' + }); + var blockWrapperProps = useBlockWrapperProps(block_wrapper_objectSpread(block_wrapper_objectSpread({}, props), {}, { + ref: ref + })); + return Object(external_this_wp_element_["createElement"])(TagName, blockWrapperProps, children); }); var ExtendedBlockComponent = block_wrapper_elements.reduce(function (acc, element) { acc[element] = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { @@ -30189,6 +32577,7 @@ var Block = ExtendedBlockComponent; + function block_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 block_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_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 { block_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -30197,6 +32586,7 @@ function block_objectSpread(target) { for (var i = 1; i < arguments.length; i++) * External dependencies */ + /** * WordPress dependencies */ @@ -30228,56 +32618,66 @@ var BlockListBlockContext = Object(external_this_wp_element_["createContext"])() */ function mergeWrapperProps(propsA, propsB) { - var newProps = block_objectSpread({}, propsA, {}, propsB); + var newProps = block_objectSpread(block_objectSpread({}, propsA), propsB); if (propsA && propsB && propsA.className && propsB.className) { newProps.className = classnames_default()(propsA.className, propsB.className); } if (propsA && propsB && propsA.style && propsB.style) { - newProps.style = block_objectSpread({}, propsA.style, {}, propsB.style); + newProps.style = block_objectSpread(block_objectSpread({}, propsA.style), propsB.style); } return newProps; } -function block_BlockListBlock(_ref) { - var mode = _ref.mode, - isFocusMode = _ref.isFocusMode, - isLocked = _ref.isLocked, - clientId = _ref.clientId, - rootClientId = _ref.rootClientId, - isSelected = _ref.isSelected, - isMultiSelected = _ref.isMultiSelected, - isPartOfMultiSelection = _ref.isPartOfMultiSelection, - isFirstMultiSelected = _ref.isFirstMultiSelected, - isLastMultiSelected = _ref.isLastMultiSelected, - isTypingWithinBlock = _ref.isTypingWithinBlock, - isAncestorOfSelectedBlock = _ref.isAncestorOfSelectedBlock, - isSelectionEnabled = _ref.isSelectionEnabled, - className = _ref.className, - name = _ref.name, - isValid = _ref.isValid, - attributes = _ref.attributes, - wrapperProps = _ref.wrapperProps, - setAttributes = _ref.setAttributes, - onReplace = _ref.onReplace, - onInsertBlocksAfter = _ref.onInsertBlocksAfter, - onMerge = _ref.onMerge, - toggleSelection = _ref.toggleSelection, - index = _ref.index, - enableAnimation = _ref.enableAnimation; +function block_Block(_ref) { + var children = _ref.children, + isHtml = _ref.isHtml, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "isHtml"]); + + return Object(external_this_wp_element_["createElement"])("div", useBlockWrapperProps(props, { + __unstableIsHtml: isHtml + }), children); +} + +function block_BlockListBlock(_ref2) { + var mode = _ref2.mode, + isFocusMode = _ref2.isFocusMode, + isLocked = _ref2.isLocked, + clientId = _ref2.clientId, + rootClientId = _ref2.rootClientId, + isSelected = _ref2.isSelected, + isMultiSelected = _ref2.isMultiSelected, + isPartOfMultiSelection = _ref2.isPartOfMultiSelection, + isFirstMultiSelected = _ref2.isFirstMultiSelected, + isLastMultiSelected = _ref2.isLastMultiSelected, + isTypingWithinBlock = _ref2.isTypingWithinBlock, + isAncestorOfSelectedBlock = _ref2.isAncestorOfSelectedBlock, + isSelectionEnabled = _ref2.isSelectionEnabled, + className = _ref2.className, + name = _ref2.name, + isValid = _ref2.isValid, + attributes = _ref2.attributes, + wrapperProps = _ref2.wrapperProps, + setAttributes = _ref2.setAttributes, + onReplace = _ref2.onReplace, + onInsertBlocksAfter = _ref2.onInsertBlocksAfter, + onMerge = _ref2.onMerge, + toggleSelection = _ref2.toggleSelection, + index = _ref2.index, + enableAnimation = _ref2.enableAnimation; // In addition to withSelect, we should favor using useSelect in this // component going forward to avoid leaking new props to the public API // (editor.BlockListBlock filter) var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), - isDraggingBlocks = _select.isDraggingBlocks, + isBlockBeingDragged = _select.isBlockBeingDragged, isBlockHighlighted = _select.isBlockHighlighted; return { - isDragging: isDraggingBlocks(), + isDragging: isBlockBeingDragged(clientId), isHighlighted: isBlockHighlighted(clientId) }; }, [clientId]), @@ -30317,15 +32717,15 @@ function block_BlockListBlock(_ref) { var wrapperClassName = classnames_default()(generatedClassName, customClassName, 'block-editor-block-list__block', { 'wp-block': !isAligned, 'has-warning': !isValid || !!hasError || isUnregisteredBlock, - 'is-selected': isSelected, + 'is-selected': isSelected && !isDragging, 'is-highlighted': isHighlighted, 'is-multi-selected': isMultiSelected, 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), - 'is-dragging': isDragging && (isSelected || isPartOfMultiSelection), + 'is-dragging': isDragging, 'is-typing': isTypingWithinBlock, 'is-focused': isFocusMode && (isSelected || isAncestorOfSelectedBlock), 'is-focus-mode': isFocusMode, - 'has-child-selected': isAncestorOfSelectedBlock + 'has-child-selected': isAncestorOfSelectedBlock && !isDragging }, className); // We wrap the BlockEdit component in a div that hides it when editing in // HTML mode. This allows us to render all of the ancillary pieces // (InspectorControls, etc.) which are inside `BlockEdit` but not @@ -30369,7 +32769,7 @@ function block_BlockListBlock(_ref) { name: name, mode: mode, blockTitle: blockType.title, - wrapperProps: wrapperProps + wrapperProps: Object(external_this_lodash_["omit"])(wrapperProps, ['data-align']) }; var memoizedValue = Object(external_this_wp_element_["useMemo"])(function () { return value; @@ -30377,7 +32777,7 @@ function block_BlockListBlock(_ref) { var block; if (!isValid) { - block = Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_invalid_warning, { + block = Object(external_this_wp_element_["createElement"])(block_Block, null, Object(external_this_wp_element_["createElement"])(block_invalid_warning, { clientId: clientId }), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))); } else if (mode === 'html') { @@ -30387,28 +32787,28 @@ function block_BlockListBlock(_ref) { style: { display: 'none' } - }, blockEdit), Object(external_this_wp_element_["createElement"])(Block.div, { - __unstableIsHtml: true + }, blockEdit), Object(external_this_wp_element_["createElement"])(block_Block, { + isHtml: true }, Object(external_this_wp_element_["createElement"])(block_html, { clientId: clientId }))); } else if (lightBlockWrapper) { block = blockEdit; } else { - block = Object(external_this_wp_element_["createElement"])(Block.div, wrapperProps, blockEdit); + block = Object(external_this_wp_element_["createElement"])(block_Block, wrapperProps, blockEdit); } return Object(external_this_wp_element_["createElement"])(BlockListBlockContext.Provider, { value: memoizedValue }, Object(external_this_wp_element_["createElement"])(block_crash_boundary, { onError: onBlockError - }, block), !!hasError && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_crash_warning, null))); + }, block), !!hasError && Object(external_this_wp_element_["createElement"])(block_Block, null, Object(external_this_wp_element_["createElement"])(block_crash_warning, null))); } -var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId, - rootClientId = _ref2.rootClientId, - isLargeViewport = _ref2.isLargeViewport; +var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var clientId = _ref3.clientId, + rootClientId = _ref3.rootClientId, + isLargeViewport = _ref3.isLargeViewport; var _select2 = select('core/block-editor'), isBlockSelected = _select2.isBlockSelected, @@ -30441,10 +32841,10 @@ var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (sel // the state. It happens now because the order in withSelect rendering // is not correct. - var _ref3 = block || {}, - name = _ref3.name, - attributes = _ref3.attributes, - isValid = _ref3.isValid; + var _ref4 = block || {}, + name = _ref4.name, + attributes = _ref4.attributes, + isValid = _ref4.isValid; var isFirstMultiSelected = isFirstMultiSelectedBlock(clientId); // Do not add new properties here, use `useSelect` instead to avoid // leaking new props to the public API (editor.BlockListBlock filter). @@ -30476,8 +32876,8 @@ var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (sel isAncestorOfSelectedBlock: isAncestorOfSelectedBlock }; }); -var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref4) { - var select = _ref4.select; +var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref5) { + var select = _ref5.select; var _dispatch = dispatch('core/block-editor'), updateBlockAttributes = _dispatch.updateBlockAttributes, @@ -30549,8 +32949,8 @@ var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function }), applyWithSelect, applyWithDispatch, // block is sometimes not mounted at the right time, causing it be undefined // see issue for more info // https://github.com/WordPress/gutenberg/issues/17013 -Object(external_this_wp_compose_["ifCondition"])(function (_ref5) { - var block = _ref5.block; +Object(external_this_wp_compose_["ifCondition"])(function (_ref6) { + var block = _ref6.block; return !!block; }), Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); @@ -30597,7 +32997,10 @@ function BlockNavigationBlockSelectButton(_ref, ref) { siblingBlockCount = _ref.siblingBlockCount, level = _ref.level, tabIndex = _ref.tabIndex, - onFocus = _ref.onFocus; + onFocus = _ref.onFocus, + onDragStart = _ref.onDragStart, + onDragEnd = _ref.onDragEnd, + draggable = _ref.draggable; var name = block.name, attributes = block.attributes; var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); @@ -30611,7 +33014,10 @@ function BlockNavigationBlockSelectButton(_ref, ref) { "aria-describedby": descriptionId, ref: ref, tabIndex: tabIndex, - onFocus: onFocus + onFocus: onFocus, + onDragStart: onDragStart, + onDragEnd: onDragEnd, + draggable: draggable }, Object(external_this_wp_element_["createElement"])(BlockIcon, { icon: blockType.icon, showColors: true @@ -30698,7 +33104,7 @@ function BlockNavigationBlockSlot(props, ref) { icon: blockType.icon, showColors: true }), external_this_wp_element_["Children"].map(fills, function (fill) { - return Object(external_this_wp_element_["cloneElement"])(fill, block_slot_objectSpread({}, fill.props, {}, forwardedFillProps)); + return Object(external_this_wp_element_["cloneElement"])(fill, block_slot_objectSpread(block_slot_objectSpread({}, fill.props), forwardedFillProps)); }), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], null, Object(external_this_wp_i18n_["__"])('(selected block)')), Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-block-navigation-block-slot__description", id: descriptionId @@ -30721,10 +33127,16 @@ var block_slot_BlockNavigationBlockFill = function BlockNavigationBlockFill(prop +/** + * External dependencies + */ + /** * WordPress dependencies */ + + /** * Internal dependencies */ @@ -30732,6 +33144,7 @@ var block_slot_BlockNavigationBlockFill = function BlockNavigationBlockFill(prop + var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { var onClick = _ref.onClick, block = _ref.block, @@ -30742,27 +33155,73 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef" props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick", "block", "isSelected", "position", "siblingBlockCount", "level"]); var _useBlockNavigationCo = context_useBlockNavigationContext(), - withBlockNavigationSlots = _useBlockNavigationCo.__experimentalFeatures; + __experimentalFeatures = _useBlockNavigationCo.__experimentalFeatures, + _useBlockNavigationCo2 = _useBlockNavigationCo.blockDropTarget, + blockDropTarget = _useBlockNavigationCo2 === void 0 ? {} : _useBlockNavigationCo2; - return withBlockNavigationSlots ? Object(external_this_wp_element_["createElement"])(block_slot, Object(esm_extends["a" /* default */])({ - ref: ref, - className: "block-editor-block-navigation-block-contents", - block: block, - onClick: onClick, - isSelected: isSelected, - position: position, - siblingBlockCount: siblingBlockCount, - level: level - }, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({ - ref: ref, - className: "block-editor-block-navigation-block-contents", - block: block, - onClick: onClick, - isSelected: isSelected, - position: position, - siblingBlockCount: siblingBlockCount, - level: level - }, props)); + var clientId = block.clientId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId, + hasBlockMovingClientId = _select.hasBlockMovingClientId, + getSelectedBlockClientId = _select.getSelectedBlockClientId; + + return { + rootClientId: getBlockRootClientId(clientId) || '', + blockMovingClientId: hasBlockMovingClientId(), + selectedBlockInBlockEditor: getSelectedBlockClientId() + }; + }, [clientId]), + rootClientId = _useSelect.rootClientId, + blockMovingClientId = _useSelect.blockMovingClientId, + selectedBlockInBlockEditor = _useSelect.selectedBlockInBlockEditor; + + var isBlockMoveTarget = blockMovingClientId && selectedBlockInBlockEditor === clientId; + var dropTargetRootClientId = blockDropTarget.rootClientId, + dropTargetClientId = blockDropTarget.clientId, + dropPosition = blockDropTarget.dropPosition; + var isDroppingBefore = dropTargetRootClientId === rootClientId && dropTargetClientId === clientId && dropPosition === 'top'; + var isDroppingAfter = dropTargetRootClientId === rootClientId && dropTargetClientId === clientId && dropPosition === 'bottom'; + var isDroppingToInnerBlocks = dropTargetRootClientId === clientId && dropPosition === 'inside'; + var className = classnames_default()('block-editor-block-navigation-block-contents', { + 'is-dropping-before': isDroppingBefore || isBlockMoveTarget, + 'is-dropping-after': isDroppingAfter, + 'is-dropping-to-inner-blocks': isDroppingToInnerBlocks + }); + return Object(external_this_wp_element_["createElement"])(block_draggable, { + clientIds: [block.clientId], + elementId: "block-navigation-block-".concat(block.clientId) + }, function (_ref2) { + var isDraggable = _ref2.isDraggable, + onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return __experimentalFeatures ? Object(external_this_wp_element_["createElement"])(block_slot, Object(esm_extends["a" /* default */])({ + ref: ref, + className: className, + block: block, + onClick: onClick, + isSelected: isSelected, + position: position, + siblingBlockCount: siblingBlockCount, + level: level, + draggable: isDraggable && __experimentalFeatures, + onDragStart: onDraggableStart, + onDragEnd: onDraggableEnd + }, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({ + ref: ref, + className: className, + block: block, + onClick: onClick, + isSelected: isSelected, + position: position, + siblingBlockCount: siblingBlockCount, + level: level, + draggable: isDraggable && __experimentalFeatures, + onDragStart: onDraggableStart, + onDragEnd: onDraggableEnd + }, props)); + }); }); /* harmony default export */ var block_contents = (BlockNavigationBlockContents); @@ -30818,10 +33277,18 @@ function BlockNavigationBlock(_ref) { isFocused = _useState4[0], setIsFocused = _useState4[1]; + var clientId = block.clientId; + var isDragging = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + isBlockBeingDragged = _select.isBlockBeingDragged, + isAncestorBeingDragged = _select.isAncestorBeingDragged; + + return isBlockBeingDragged(clientId) || isAncestorBeingDragged(clientId); + }, [clientId]); + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), selectEditorBlock = _useDispatch.selectBlock; - var clientId = block.clientId; var hasSiblings = siblingBlockCount > 0; var hasRenderedMovers = showBlockMovers && hasSiblings; var hasVisibleMovers = isHovered || isFocused; @@ -30842,7 +33309,8 @@ function BlockNavigationBlock(_ref) { }, [withExperimentalFeatures, isSelected]); return Object(external_this_wp_element_["createElement"])(BlockNavigationLeaf, { className: classnames_default()({ - 'is-selected': isSelected + 'is-selected': isSelected, + 'is-dragging': isDragging }), onMouseEnter: function onMouseEnter() { return setIsHovered(true); @@ -30859,7 +33327,9 @@ function BlockNavigationBlock(_ref) { level: level, position: position, rowCount: rowCount, - path: path + path: path, + id: "block-navigation-block-".concat(clientId), + "data-block": clientId }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridCell"], { className: "block-editor-block-navigation-block__contents-cell", colSpan: hasRenderedMovers ? undefined : 2, @@ -30895,7 +33365,7 @@ function BlockNavigationBlock(_ref) { tabIndex = _ref3.tabIndex, onFocus = _ref3.onFocus; return Object(external_this_wp_element_["createElement"])(BlockMoverUpButton, { - __experimentalOrientation: "vertical", + orientation: "vertical", clientIds: [clientId], ref: ref, tabIndex: tabIndex, @@ -30906,7 +33376,7 @@ function BlockNavigationBlock(_ref) { tabIndex = _ref4.tabIndex, onFocus = _ref4.onFocus; return Object(external_this_wp_element_["createElement"])(BlockMoverDownButton, { - __experimentalOrientation: "vertical", + orientation: "vertical", clientIds: [clientId], ref: ref, tabIndex: tabIndex, @@ -30961,12 +33431,18 @@ function BlockNavigationBlock(_ref) { // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/appender.js +/** + * External dependencies + */ + /** * WordPress dependencies */ + + /** * Internal dependencies */ @@ -30981,12 +33457,22 @@ function BlockNavigationAppender(_ref) { rowCount = _ref.rowCount, terminatedLevels = _ref.terminatedLevels, path = _ref.path; + var isDragging = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + isBlockBeingDragged = _select.isBlockBeingDragged, + isAncestorBeingDragged = _select.isAncestorBeingDragged; + + return isBlockBeingDragged(parentBlockClientId) || isAncestorBeingDragged(parentBlockClientId); + }, [parentBlockClientId]); var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationAppender); var descriptionId = "block-navigation-appender-row__description_".concat(instanceId); var appenderPositionDescription = Object(external_this_wp_i18n_["sprintf"])( /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */ Object(external_this_wp_i18n_["__"])('Add block at position %1$d, Level %2$d'), position, level); return Object(external_this_wp_element_["createElement"])(BlockNavigationLeaf, { + className: classnames_default()({ + 'is-dragging': isDragging + }), level: level, position: position, rowCount: rowCount, @@ -31006,6 +33492,7 @@ function BlockNavigationAppender(_ref) { terminatedLevels: terminatedLevels }), Object(external_this_wp_element_["createElement"])(inserter, { rootClientId: parentBlockClientId, + __experimentalIsQuick: true, __experimentalSelectBlockOnInsert: false, "aria-describedby": descriptionId, toggleProps: { @@ -31112,6 +33599,303 @@ BlockNavigationBranch.defaultProps = { selectBlock: function selectBlock() {} }; +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/use-block-navigation-drop-zone.js + + + +function use_block_navigation_drop_zone_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 use_block_navigation_drop_zone_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_block_navigation_drop_zone_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 { use_block_navigation_drop_zone_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function use_block_navigation_drop_zone_createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = use_block_navigation_drop_zone_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function use_block_navigation_drop_zone_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return use_block_navigation_drop_zone_arrayLikeToArray(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 use_block_navigation_drop_zone_arrayLikeToArray(o, minLen); } + +function use_block_navigation_drop_zone_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +/** @typedef {import('../../utils/math').WPPoint} WPPoint */ + +/** @typedef {import('@wordpress/element').RefObject} RefObject */ + +/** + * The type of a drag event. + * + * @typedef {'default'|'file'|'html'} WPDragEventType + */ + +/** + * An array representing data for blocks in the DOM used by drag and drop. + * + * @typedef {Object} WPBlockNavigationDropZoneBlocks + * @property {string} clientId The client id for the block. + * @property {string} rootClientId The root client id for the block. + * @property {number} blockIndex The block's index. + * @property {Element} element The DOM element representing the block. + * @property {number} innerBlockCount The number of inner blocks the block has. + * @property {boolean} isDraggedBlock Whether the block is currently being dragged. + * @property {boolean} canInsertDraggedBlocksAsSibling Whether the dragged block can be a sibling of this block. + * @property {boolean} canInsertDraggedBlocksAsChild Whether the dragged block can be a child of this block. + */ + +/** + * An object containing details of a drop target. + * + * @typedef {Object} WPBlockNavigationDropZoneTarget + * @property {string} blockIndex The insertion index. + * @property {string} rootClientId The root client id for the block. + * @property {string|undefined} clientId The client id for the block. + * @property {'top'|'bottom'|'inside'} dropPosition The position relative to the block that the user is dropping to. + * 'inside' refers to nesting as an inner block. + */ + +/** + * A react hook that returns data about blocks used for computing where a user + * can drop to when dragging and dropping blocks. + * + * @param {Object} ref A React ref of a containing element for block navigation. + * @param {WPPoint} position The current drag position. + * @param {WPDragEventType} dragEventType The drag event type. + * + * @return {RefObject} A React ref containing the blocks data. + */ + +function useDropTargetBlocksData(ref, position, dragEventType) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var selectors = select('core/block-editor'); + return { + canInsertBlocks: selectors.canInsertBlocks, + getBlockRootClientId: selectors.getBlockRootClientId, + getBlockIndex: selectors.getBlockIndex, + getBlockCount: selectors.getBlockCount, + getDraggedBlockClientIds: selectors.getDraggedBlockClientIds + }; + }, []), + getBlockRootClientId = _useSelect.getBlockRootClientId, + getBlockIndex = _useSelect.getBlockIndex, + getBlockCount = _useSelect.getBlockCount, + getDraggedBlockClientIds = _useSelect.getDraggedBlockClientIds, + canInsertBlocks = _useSelect.canInsertBlocks; + + var blocksData = Object(external_this_wp_element_["useRef"])(); // Compute data about blocks only when the user + // starts dragging, as determined by `hasPosition`. + + var hasPosition = !!position; + Object(external_this_wp_element_["useEffect"])(function () { + if (!ref.current || !hasPosition) { + return; + } + + var isBlockDrag = dragEventType === 'default'; + var draggedBlockClientIds = isBlockDrag ? getDraggedBlockClientIds() : undefined; + var blockElements = Array.from(ref.current.querySelectorAll('[data-block]')); + blocksData.current = blockElements.map(function (blockElement) { + var clientId = blockElement.dataset.block; + var rootClientId = getBlockRootClientId(clientId); + return { + clientId: clientId, + rootClientId: rootClientId, + blockIndex: getBlockIndex(clientId, rootClientId), + element: blockElement, + isDraggedBlock: isBlockDrag ? draggedBlockClientIds.includes(clientId) : false, + innerBlockCount: getBlockCount(clientId), + canInsertDraggedBlocksAsSibling: isBlockDrag ? canInsertBlocks(draggedBlockClientIds, rootClientId) : true, + canInsertDraggedBlocksAsChild: isBlockDrag ? canInsertBlocks(draggedBlockClientIds, clientId) : true + }; + }); + }, [// `ref` shouldn't actually change during a drag operation, but + // is specified for completeness as it's used within the hook. + ref, hasPosition, dragEventType, canInsertBlocks, getBlockCount, getBlockIndex, getBlockRootClientId, getDraggedBlockClientIds]); + return blocksData; +} +/** + * Is the point contained by the rectangle. + * + * @param {WPPoint} point The point. + * @param {DOMRect} rect The rectangle. + * + * @return {boolean} True if the point is contained by the rectangle, false otherwise. + */ + + +function isPointContainedByRect(point, rect) { + return rect.left <= point.x && rect.right >= point.x && rect.top <= point.y && rect.bottom >= point.y; +} +/** + * Determines whether the user positioning the dragged block to nest as an + * inner block. + * + * Presently this is determined by whether the cursor is on the right hand side + * of the block. + * + * @param {WPPoint} point The point representing the cursor position when dragging. + * @param {DOMRect} rect The rectangle. + */ + + +function isNestingGesture(point, rect) { + var blockCenterX = rect.left + rect.width / 2; + return point.x > blockCenterX; +} // Block navigation is always a vertical list, so only allow dropping +// to the above or below a block. + + +var ALLOWED_DROP_EDGES = ['top', 'bottom']; +/** + * Given blocks data and the cursor position, compute the drop target. + * + * @param {WPBlockNavigationDropZoneBlocks} blocksData Data about the blocks in block navigation. + * @param {WPPoint} position The point representing the cursor position when dragging. + * + * @return {WPBlockNavigationDropZoneTarget} An object containing data about the drop target. + */ + +function getBlockNavigationDropTarget(blocksData, position) { + var candidateEdge; + var candidateBlockData; + var candidateDistance; + var candidateRect; + + var _iterator = use_block_navigation_drop_zone_createForOfIteratorHelper(blocksData), + _step; + + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var blockData = _step.value; + + if (blockData.isDraggedBlock) { + continue; + } + + var rect = blockData.element.getBoundingClientRect(); + + var _getDistanceToNearest = getDistanceToNearestEdge(position, rect, ALLOWED_DROP_EDGES), + _getDistanceToNearest2 = Object(slicedToArray["a" /* default */])(_getDistanceToNearest, 2), + distance = _getDistanceToNearest2[0], + edge = _getDistanceToNearest2[1]; + + var isCursorWithinBlock = isPointContainedByRect(position, rect); + + if (candidateDistance === undefined || distance < candidateDistance || isCursorWithinBlock) { + candidateDistance = distance; + var index = blocksData.indexOf(blockData); + var previousBlockData = blocksData[index - 1]; // If dragging near the top of a block and the preceding block + // is at the same level, use the preceding block as the candidate + // instead, as later it makes determining a nesting drop easier. + + if (edge === 'top' && previousBlockData && previousBlockData.rootClientId === blockData.rootClientId && !previousBlockData.isDraggedBlock) { + candidateBlockData = previousBlockData; + candidateEdge = 'bottom'; + candidateRect = previousBlockData.element.getBoundingClientRect(); + } else { + candidateBlockData = blockData; + candidateEdge = edge; + candidateRect = rect; + } // If the mouse position is within the block, break early + // as the user would intend to drop either before or after + // this block. + // + // This solves an issue where some rows in the block navigation + // tree overlap slightly due to sub-pixel rendering. + + + if (isCursorWithinBlock) { + break; + } + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + if (!candidateBlockData) { + return; + } + + var isDraggingBelow = candidateEdge === 'bottom'; // If the user is dragging towards the bottom of the block check whether + // they might be trying to nest the block as a child. + // If the block already has inner blocks, this should always be treated + // as nesting since the next block in the tree will be the first child. + + if (isDraggingBelow && candidateBlockData.canInsertDraggedBlocksAsChild && (candidateBlockData.innerBlockCount > 0 || isNestingGesture(position, candidateRect))) { + return { + rootClientId: candidateBlockData.clientId, + blockIndex: 0, + dropPosition: 'inside' + }; + } // If dropping as a sibling, but block cannot be inserted in + // this context, return early. + + + if (!candidateBlockData.canInsertDraggedBlocksAsSibling) { + return; + } + + var offset = isDraggingBelow ? 1 : 0; + return { + rootClientId: candidateBlockData.rootClientId, + clientId: candidateBlockData.clientId, + blockIndex: candidateBlockData.blockIndex + offset, + dropPosition: candidateEdge + }; +} +/** + * A react hook for implementing a drop zone in block navigation. + * + * @param {Object} ref A React ref of a containing element for block navigation. + * + * @return {WPBlockNavigationDropZoneTarget} The drop target. + */ + + +function useBlockNavigationDropZone(ref) { + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + _useState2$ = _useState2[0], + target = _useState2$ === void 0 ? {} : _useState2$, + setTarget = _useState2[1]; + + var targetRootClientId = target.rootClientId, + targetBlockIndex = target.blockIndex; + var dropEventHandlers = useOnBlockDrop(targetRootClientId, targetBlockIndex); + + var _useDropZone = Object(external_this_wp_components_["__unstableUseDropZone"])(use_block_navigation_drop_zone_objectSpread({ + element: ref, + withPosition: true + }, dropEventHandlers)), + position = _useDropZone.position, + dragEventType = _useDropZone.type; + + var blocksData = useDropTargetBlocksData(ref, position, dragEventType); // Calculate the drop target based on the drag position. + + Object(external_this_wp_element_["useEffect"])(function () { + if (position) { + var newTarget = getBlockNavigationDropTarget(blocksData.current, position); + + if (newTarget) { + setTarget(newTarget); + } + } + }, [blocksData, position]); + + if (position) { + return target; + } +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/tree.js @@ -31128,6 +33912,7 @@ BlockNavigationBranch.defaultProps = { + /** * Wrap `BlockNavigationRows` with `TreeGrid`. BlockNavigationRows is a * recursive component (it renders itself), so this ensures TreeGrid is only @@ -31141,14 +33926,23 @@ function BlockNavigationTree(_ref) { var __experimentalFeatures = _ref.__experimentalFeatures, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__experimentalFeatures"]); + var treeGridRef = Object(external_this_wp_element_["useRef"])(); + var blockDropTarget = useBlockNavigationDropZone(treeGridRef); + + if (!__experimentalFeatures) { + blockDropTarget = undefined; + } + var contextValue = Object(external_this_wp_element_["useMemo"])(function () { return { - __experimentalFeatures: __experimentalFeatures + __experimentalFeatures: __experimentalFeatures, + blockDropTarget: blockDropTarget }; - }, [__experimentalFeatures]); + }, [__experimentalFeatures, blockDropTarget]); return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGrid"], { className: "block-editor-block-navigation-tree", - "aria-label": Object(external_this_wp_i18n_["__"])('Block navigation structure') + "aria-label": Object(external_this_wp_i18n_["__"])('Block navigation structure'), + ref: treeGridRef }, Object(external_this_wp_element_["createElement"])(BlockNavigationContext.Provider, { value: contextValue }, Object(external_this_wp_element_["createElement"])(BlockNavigationBranch, props))); @@ -31190,7 +33984,7 @@ function BlockNavigation(_ref) { className: "block-editor-block-navigation__container" }, Object(external_this_wp_element_["createElement"])("p", { className: "block-editor-block-navigation__label" - }, Object(external_this_wp_i18n_["__"])('Block navigation')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationTree, { + }, Object(external_this_wp_i18n_["__"])('List view')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationTree, { blocks: [rootBlock], selectedBlockClientId: selectedBlockClientId, selectBlock: selectBlock, @@ -31208,13 +34002,13 @@ function BlockNavigation(_ref) { var _select = select('core/block-editor'), getSelectedBlockClientId = _select.getSelectedBlockClientId, getBlockHierarchyRootClientId = _select.getBlockHierarchyRootClientId, - getBlock = _select.getBlock, - getBlocks = _select.getBlocks; + __unstableGetBlockWithBlockTree = _select.__unstableGetBlockWithBlockTree, + __unstableGetBlockTree = _select.__unstableGetBlockTree; var selectedBlockClientId = getSelectedBlockClientId(); return { - rootBlocks: getBlocks(), - rootBlock: selectedBlockClientId ? getBlock(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, + rootBlocks: __unstableGetBlockTree(), + rootBlock: selectedBlockClientId ? __unstableGetBlockWithBlockTree(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, selectedBlockClientId: selectedBlockClientId }; }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { @@ -31273,8 +34067,11 @@ function BlockNavigationDropdownToggle(_ref) { ref: innerRef, icon: MenuIcon, "aria-expanded": isOpen, - onClick: isEnabled ? onToggle : undefined, - label: Object(external_this_wp_i18n_["__"])('Block navigation'), + "aria-haspopup": "true", + onClick: isEnabled ? onToggle : undefined + /* translators: button label text should, if possible, be under 16 characters. */ + , + label: Object(external_this_wp_i18n_["__"])('Outline'), className: "block-editor-block-navigation", shortcut: shortcut, "aria-disabled": !isEnabled @@ -31316,7 +34113,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__(125); +var external_this_wp_shortcode_ = __webpack_require__(129); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js @@ -31410,7 +34207,7 @@ var format_toolbar_FormatToolbar = function FormatToolbar() { }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { name: "RichText.ToolbarControls" }, function (fills) { - return fills.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return fills.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { icon: chevron_down["a" /* default */], label: Object(external_this_wp_i18n_["__"])('More rich text controls'), @@ -31581,14 +34378,33 @@ function RichTextWrapper(_ref2, forwardedRef) { __unstableEmbedURLOnPaste = _ref2.__unstableEmbedURLOnPaste, disableFormats = _ref2.__unstableDisableFormats, disableLineBreaks = _ref2.disableLineBreaks, - props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "className", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "start", "reversed", "style", "preserveWhiteSpace", "__unstableEmbedURLOnPaste", "__unstableDisableFormats", "disableLineBreaks"]); + unstableOnFocus = _ref2.unstableOnFocus, + __unstableAllowPrefixTransformations = _ref2.__unstableAllowPrefixTransformations, + __unstableMultilineRootTag = _ref2.__unstableMultilineRootTag, + __unstableMobileNoFocusOnMount = _ref2.__unstableMobileNoFocusOnMount, + deleteEnter = _ref2.deleteEnter, + placeholderTextColor = _ref2.placeholderTextColor, + textAlign = _ref2.textAlign, + selectionColor = _ref2.selectionColor, + tagsToEliminate = _ref2.tagsToEliminate, + rootTagsToEliminate = _ref2.rootTagsToEliminate, + disableEditingMenu = _ref2.disableEditingMenu, + fontSize = _ref2.fontSize, + fontFamily = _ref2.fontFamily, + fontWeight = _ref2.fontWeight, + fontStyle = _ref2.fontStyle, + minWidth = _ref2.minWidth, + maxWidth = _ref2.maxWidth, + onBlur = _ref2.onBlur, + setRef = _ref2.setRef, + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "className", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "start", "reversed", "style", "preserveWhiteSpace", "__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; var fallbackRef = Object(external_this_wp_element_["useRef"])(); var ref = forwardedRef || fallbackRef; - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId, onCaretVerticalPositionChange = _useBlockEditContext.onCaretVerticalPositionChange, blockIsSelected = _useBlockEditContext.isSelected; @@ -31927,7 +34743,7 @@ function RichTextWrapper(_ref2, forwardedRef) { __unstableMarkAutomaticChange(); }, [onReplace, __unstableMarkAutomaticChange]); - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_richText_["__experimentalRichText"], Object(esm_extends["a" /* default */])({}, props, { + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_richText_["__experimentalRichText"], { clientId: clientId, identifier: identifier, ref: ref, @@ -31961,12 +34777,34 @@ function RichTextWrapper(_ref2, forwardedRef) { preserveWhiteSpace: preserveWhiteSpace, disabled: disabled, start: startAttr, - reversed: reversed // Native props. + reversed: reversed, + unstableOnFocus: unstableOnFocus, + __unstableAllowPrefixTransformations: __unstableAllowPrefixTransformations, + __unstableMultilineRootTag: __unstableMultilineRootTag // Native props. , onCaretVerticalPositionChange: onCaretVerticalPositionChange, blockIsSelected: originalIsSelected !== undefined ? originalIsSelected : blockIsSelected, - shouldBlurOnUnmount: shouldBlurOnUnmount - }), function (_ref9) { + shouldBlurOnUnmount: shouldBlurOnUnmount, + __unstableMobileNoFocusOnMount: __unstableMobileNoFocusOnMount, + deleteEnter: deleteEnter, + placeholderTextColor: placeholderTextColor, + textAlign: textAlign, + selectionColor: selectionColor, + tagsToEliminate: tagsToEliminate, + rootTagsToEliminate: rootTagsToEliminate, + disableEditingMenu: disableEditingMenu, + fontSize: fontSize, + fontFamily: fontFamily, + fontWeight: fontWeight, + fontStyle: fontStyle, + minWidth: minWidth, + maxWidth: maxWidth, + onBlur: onBlur, + setRef: setRef // Destructuring the id prop before { ...props } doesn't work + // correctly on web https://github.com/WordPress/gutenberg/pull/25624 + , + id: props.id + }, function (_ref9) { var nestedIsSelected = _ref9.isSelected, value = _ref9.value, onChange = _ref9.onChange, @@ -31990,7 +34828,7 @@ function RichTextWrapper(_ref2, forwardedRef) { var listBoxId = _ref10.listBoxId, activeId = _ref10.activeId, _onKeyDown = _ref10.onKeyDown; - return Object(external_this_wp_element_["createElement"])(TagName, Object(esm_extends["a" /* default */])({}, editableProps, { + return Object(external_this_wp_element_["createElement"])(TagName, Object(esm_extends["a" /* default */])({}, editableProps, props, { "aria-autocomplete": listBoxId ? 'list' : undefined, "aria-owns": listBoxId, "aria-activedescendant": activeId, @@ -32089,7 +34927,7 @@ function BlockNavigationEditor(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js -var layout = __webpack_require__(299); +var layout = __webpack_require__(315); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js @@ -32241,7 +35079,7 @@ function BlockVerticalAlignmentToolbar(_ref) { icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon, label: Object(external_this_wp_i18n_["_x"])('Change vertical alignment', 'Block vertical alignment setting label'), controls: controls.map(function (control) { - return block_vertical_alignment_toolbar_objectSpread({}, block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[control], { + return block_vertical_alignment_toolbar_objectSpread(block_vertical_alignment_toolbar_objectSpread({}, block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[control]), {}, { isActive: value === control, role: isCollapsed ? 'menuitemradio' : undefined, onClick: applyOrUnset(control) @@ -32256,6 +35094,13 @@ function BlockVerticalAlignmentToolbar(_ref) { /* harmony default export */ var block_vertical_alignment_toolbar = (BlockVerticalAlignmentToolbar); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js + + + +function with_color_context_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 with_color_context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_color_context_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 { with_color_context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * External dependencies */ @@ -32265,17 +35110,25 @@ function BlockVerticalAlignmentToolbar(_ref) { */ +/** + * Internal dependencies + */ -/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var settings = select('core/block-editor').getSettings(); - var colors = ownProps.colors === undefined ? settings.colors : ownProps.colors; - var disableCustomColors = ownProps.disableCustomColors === undefined ? settings.disableCustomColors : ownProps.disableCustomColors; - return { - colors: colors, - disableCustomColors: disableCustomColors, - hasColorsToChoose: !Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors + +/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + var colorsFeature = useEditorFeature('color.palette'); + var disableCustomColorsFeature = !useEditorFeature('color.custom'); + var colors = props.colors === undefined ? colorsFeature : props.colors; + var disableCustomColors = props.disableCustomColors === undefined ? disableCustomColorsFeature : props.disableCustomColors; + var hasColorsToChoose = !Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors; + return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_color_context_objectSpread(with_color_context_objectSpread({}, props), {}, { + colors: colors, + disableCustomColors: disableCustomColors, + hasColorsToChoose: hasColorsToChoose + })); }; -}), 'withColorContext')); +}, 'withColorContext')); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/index.js /** @@ -32315,24 +35168,20 @@ function ColorPaletteControl(_ref) { -/** - * External dependencies - */ - /** * WordPress dependencies */ +/** + * Internal dependencies + */ +var gradient_picker_EMPTY_ARRAY = []; function GradientPickerWithGradients(props) { - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); - }, []), - gradients = _useSelect.gradients, - disableCustomGradients = _useSelect.disableCustomGradients; - + var gradients = useEditorFeature('color.gradients') || gradient_picker_EMPTY_ARRAY; + var disableCustomGradients = !useEditorFeature('color.customGradient'); return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalGradientPicker"], Object(esm_extends["a" /* default */])({ gradients: props.gradients !== undefined ? props.gradient : gradients, disableCustomGradients: props.disableCustomGradients !== undefined ? props.disableCustomGradients : disableCustomGradients @@ -32360,12 +35209,12 @@ function GradientPickerWithGradients(props) { - /** * Internal dependencies */ + function GradientPickerControl(_ref) { var className = _ref.className, value = _ref.value, @@ -32374,12 +35223,8 @@ function GradientPickerControl(_ref) { label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Gradient Presets') : _ref$label, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "value", "onChange", "label"]); - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); - }, []), - _useSelect$gradients = _useSelect.gradients, - gradients = _useSelect$gradients === void 0 ? [] : _useSelect$gradients, - disableCustomGradients = _useSelect.disableCustomGradients; + var gradients = useEditorFeature('color.gradients'); + var disableCustomGradients = !useEditorFeature('color.customGradient'); if (Object(external_this_lodash_["isEmpty"])(gradients) && disableCustomGradients) { return null; @@ -32409,16 +35254,14 @@ function GradientPickerControl(_ref) { - /** * Internal dependencies */ + function GradientPanel(props) { - var gradients = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().gradients; - }, []); + var gradients = useEditorFeature('color.gradients'); if (Object(external_this_lodash_["isEmpty"])(gradients)) { return null; @@ -32537,7 +35380,7 @@ function ImageSizeControl(_ref) { var withClientId = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { return function (props) { - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId; return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { @@ -32900,7 +35743,7 @@ function ControlledInnerBlocks(props) { var ForwardedInnerBlocks = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { - var _useBlockEditContext = useBlockEditContext(), + var _useBlockEditContext = Object(block_edit_context["b" /* useBlockEditContext */])(), clientId = _useBlockEditContext.clientId; var fallbackRef = Object(external_this_wp_element_["useRef"])(); @@ -32930,6 +35773,9 @@ 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__(215); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js @@ -32966,7 +35812,7 @@ var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDraw var handleSettingChange = function handleSettingChange(setting) { return function (newValue) { - onChange(settings_drawer_objectSpread({}, value, Object(defineProperty["a" /* default */])({}, setting.id, newValue))); + onChange(settings_drawer_objectSpread(settings_drawer_objectSpread({}, value), {}, Object(defineProperty["a" /* default */])({}, setting.id, newValue))); }; }; @@ -32988,78 +35834,8 @@ var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDraw /* harmony default export */ var settings_drawer = (settings_drawer_LinkControlSettingsDrawer); -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js - - -/** - * WordPress dependencies - */ - -var globe = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" -})); -/* harmony default export */ var library_globe = (globe); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var search_item_LinkControlSearchItem = function LinkControlSearchItem(_ref) { - var itemProps = _ref.itemProps, - suggestion = _ref.suggestion, - _ref$isSelected = _ref.isSelected, - isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected, - onClick = _ref.onClick, - _ref$isURL = _ref.isURL, - isURL = _ref$isURL === void 0 ? false : _ref$isURL, - _ref$searchTerm = _ref.searchTerm, - searchTerm = _ref$searchTerm === void 0 ? '' : _ref$searchTerm; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { - onClick: onClick, - className: classnames_default()('block-editor-link-control__search-item', { - 'is-selected': isSelected, - 'is-url': isURL, - 'is-entity': !isURL - }) - }), isURL && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { - className: "block-editor-link-control__search-item-icon", - icon: library_globe - }), Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-header" - }, Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-title" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextHighlight"], { - text: suggestion.title, - highlight: searchTerm - })), Object(external_this_wp_element_["createElement"])("span", { - "aria-hidden": !isURL, - className: "block-editor-link-control__search-item-info" - }, !isURL && (Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(suggestion.url)) || ''), isURL && Object(external_this_wp_i18n_["__"])('Press ENTER to add this link'))), suggestion.type && Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-type" - }, suggestion.type)); -}; -/* harmony default export */ var search_item = (search_item_LinkControlSearchItem); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(202); - // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var dom_scroll_into_view_lib = __webpack_require__(123); +var dom_scroll_into_view_lib = __webpack_require__(126); 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 @@ -33072,7 +35848,7 @@ var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_sc -function url_input_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (url_input_isNativeReflectConstruct()) { 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 url_input_createSuper(Derived) { var hasNativeReflectConstruct = url_input_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 url_input_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; } } @@ -33099,6 +35875,8 @@ function url_input_isNativeReflectConstruct() { if (typeof Reflect === "undefine var stopEventPropagation = function stopEventPropagation(event) { return event.stopPropagation(); }; +/* eslint-disable jsx-a11y/no-autofocus */ + var url_input_URLInput = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(URLInput, _Component); @@ -33125,7 +35903,9 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) { _this.state = { suggestions: [], showSuggestions: false, - selectedSuggestion: null + selectedSuggestion: null, + suggestionsListboxId: '', + suggestionOptionIdPrefix: '' }; return _this; } @@ -33400,31 +36180,82 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) { }, { key: "render", value: function render() { - var _this5 = this; - + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderControl(), this.renderSuggestions()); + } + }, { + key: "renderControl", + value: function renderControl() { var _this$props4 = this.props, label = _this$props4.label, - instanceId = _this$props4.instanceId, className = _this$props4.className, isFullWidth = _this$props4.isFullWidth, - renderSuggestions = _this$props4.__experimentalRenderSuggestions, + instanceId = _this$props4.instanceId, _this$props4$placehol = _this$props4.placeholder, placeholder = _this$props4$placehol === void 0 ? Object(external_this_wp_i18n_["__"])('Paste URL or type to search') : _this$props4$placehol, + renderControl = _this$props4.__experimentalRenderControl, _this$props4$value = _this$props4.value, value = _this$props4$value === void 0 ? '' : _this$props4$value, _this$props4$autoFocu = _this$props4.autoFocus, - autoFocus = _this$props4$autoFocu === void 0 ? true : _this$props4$autoFocu, - _this$props4$__experi = _this$props4.__experimentalShowInitialSuggestions, - __experimentalShowInitialSuggestions = _this$props4$__experi === void 0 ? false : _this$props4$__experi; - + autoFocus = _this$props4$autoFocu === void 0 ? true : _this$props4$autoFocu; var _this$state3 = this.state, + loading = _this$state3.loading, showSuggestions = _this$state3.showSuggestions, - suggestions = _this$state3.suggestions, selectedSuggestion = _this$state3.selectedSuggestion, - loading = _this$state3.loading; - var id = "url-input-control-".concat(instanceId); - var suggestionsListboxId = "block-editor-url-input-suggestions-".concat(instanceId); - var suggestionOptionIdPrefix = "block-editor-url-input-suggestion-".concat(instanceId); + suggestionsListboxId = _this$state3.suggestionsListboxId, + suggestionOptionIdPrefix = _this$state3.suggestionOptionIdPrefix; + var controlProps = { + id: "url-input-control-".concat(instanceId), + label: label, + className: classnames_default()('block-editor-url-input', className, { + 'is-full-width': isFullWidth + }) + }; + var inputProps = { + value: value, + required: true, + autoFocus: autoFocus, + className: 'block-editor-url-input__input', + type: 'text', + onChange: this.onChange, + onFocus: this.onFocus, + onInput: stopEventPropagation, + placeholder: placeholder, + onKeyDown: this.onKeyDown, + role: 'combobox', + 'aria-label': Object(external_this_wp_i18n_["__"])('URL'), + 'aria-expanded': showSuggestions, + 'aria-autocomplete': 'list', + 'aria-owns': suggestionsListboxId, + 'aria-activedescendant': selectedSuggestion !== null ? "".concat(suggestionOptionIdPrefix, "-").concat(selectedSuggestion) : undefined, + ref: this.inputRef + }; + + if (renderControl) { + return renderControl(controlProps, inputProps, loading); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], controlProps, Object(external_this_wp_element_["createElement"])("input", inputProps), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); + } + }, { + key: "renderSuggestions", + value: function renderSuggestions() { + var _this5 = this; + + var _this$props5 = this.props, + className = _this$props5.className, + renderSuggestions = _this$props5.__experimentalRenderSuggestions, + _this$props5$value = _this$props5.value, + value = _this$props5$value === void 0 ? '' : _this$props5$value, + _this$props5$__experi = _this$props5.__experimentalShowInitialSuggestions, + __experimentalShowInitialSuggestions = _this$props5$__experi === void 0 ? false : _this$props5$__experi; + + var _this$state4 = this.state, + showSuggestions = _this$state4.showSuggestions, + suggestions = _this$state4.suggestions, + selectedSuggestion = _this$state4.selectedSuggestion, + suggestionsListboxId = _this$state4.suggestionsListboxId, + suggestionOptionIdPrefix = _this$state4.suggestionOptionIdPrefix, + loading = _this$state4.loading; var suggestionsListProps = { id: suggestionsListboxId, ref: this.autocompleteRef, @@ -33440,64 +36271,46 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) { 'aria-selected': index === selectedSuggestion }; }; - /* eslint-disable jsx-a11y/no-autofocus */ + if (Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length) { + return renderSuggestions({ + suggestions: suggestions, + selectedSuggestion: selectedSuggestion, + suggestionsListProps: suggestionsListProps, + buildSuggestionItemProps: buildSuggestionItemProps, + isLoading: loading, + handleSuggestionClick: this.handleOnClick, + isInitialSuggestions: __experimentalShowInitialSuggestions && !(value && value.length) + }); + } - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: label, - id: id, - className: classnames_default()('block-editor-url-input', className, { - 'is-full-width': isFullWidth - }) - }, Object(external_this_wp_element_["createElement"])("input", { - className: "block-editor-url-input__input", - autoFocus: autoFocus, - type: "text", - "aria-label": Object(external_this_wp_i18n_["__"])('URL'), - required: true, - value: value, - onChange: this.onChange, - onFocus: this.onFocus, - onInput: stopEventPropagation, - placeholder: placeholder, - onKeyDown: this.onKeyDown, - role: "combobox", - "aria-expanded": showSuggestions, - "aria-autocomplete": "list", - "aria-owns": suggestionsListboxId, - "aria-activedescendant": selectedSuggestion !== null ? "".concat(suggestionOptionIdPrefix, "-").concat(selectedSuggestion) : undefined, - ref: this.inputRef - }), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && renderSuggestions({ - suggestions: suggestions, - selectedSuggestion: selectedSuggestion, - suggestionsListProps: suggestionsListProps, - buildSuggestionItemProps: buildSuggestionItemProps, - isLoading: loading, - handleSuggestionClick: this.handleOnClick, - isInitialSuggestions: __experimentalShowInitialSuggestions && !(value && value.length) - }), !Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - position: "bottom", - noArrow: true, - focusOnMount: false - }, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { - className: classnames_default()('block-editor-url-input__suggestions', "".concat(className, "__suggestions")) - }), suggestions.map(function (suggestion, index) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, buildSuggestionItemProps(suggestion, index), { - key: suggestion.id, - className: classnames_default()('block-editor-url-input__suggestion', { - 'is-selected': index === selectedSuggestion - }), - onClick: function onClick() { - return _this5.handleOnClick(suggestion); - } - }), suggestion.title); - })))); - /* eslint-enable jsx-a11y/no-autofocus */ + if (!Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + position: "bottom", + noArrow: true, + focusOnMount: false + }, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { + className: classnames_default()('block-editor-url-input__suggestions', "".concat(className, "__suggestions")) + }), suggestions.map(function (suggestion, index) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, buildSuggestionItemProps(suggestion, index), { + key: suggestion.id, + className: classnames_default()('block-editor-url-input__suggestion', { + 'is-selected': index === selectedSuggestion + }), + onClick: function onClick() { + return _this5.handleOnClick(suggestion); + } + }), suggestion.title); + }))); + } + + return null; } }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(_ref, _ref2) { var value = _ref.value, + instanceId = _ref.instanceId, disableSuggestions = _ref.disableSuggestions, _ref$__experimentalSh = _ref.__experimentalShowInitialSuggestions, __experimentalShowInitialSuggestions = _ref$__experimentalSh === void 0 ? false : _ref$__experimentalSh; @@ -33515,13 +36328,17 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) { } return { - showSuggestions: shouldShowSuggestions + showSuggestions: shouldShowSuggestions, + suggestionsListboxId: "block-editor-url-input-suggestions-".concat(instanceId), + suggestionOptionIdPrefix: "block-editor-url-input-suggestion-".concat(instanceId) }; } }]); return URLInput; }(external_this_wp_element_["Component"]); +/* eslint-enable jsx-a11y/no-autofocus */ + /** * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-input/README.md */ @@ -33542,89 +36359,20 @@ var url_input_URLInput = /*#__PURE__*/function (_Component) { }; }))(url_input_URLInput)); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js - +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus-circle.js /** * WordPress dependencies */ - - - -/** - * Internal dependencies - */ - - - -var search_input_LinkControlSearchInput = function LinkControlSearchInput(_ref) { - var placeholder = _ref.placeholder, - value = _ref.value, - onChange = _ref.onChange, - onSelect = _ref.onSelect, - renderSuggestions = _ref.renderSuggestions, - fetchSuggestions = _ref.fetchSuggestions, - showInitialSuggestions = _ref.showInitialSuggestions, - errorMessage = _ref.errorMessage; - - var _useState = Object(external_this_wp_element_["useState"])(), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - selectedSuggestion = _useState2[0], - setSelectedSuggestion = _useState2[1]; - /** - * Handles the user moving between different suggestions. Does not handle - * choosing an individual item. - * - * @param {string} selection the url of the selected suggestion. - * @param {Object} suggestion the suggestion object. - */ - - - var selectItemHandler = function selectItemHandler(selection, suggestion) { - onChange(selection); - setSelectedSuggestion(suggestion); - }; - - function selectSuggestionOrCurrentInputValue(event) { - // Avoid default forms behavior, since it's being handled custom here. - event.preventDefault(); // Interpret the selected value as either the selected suggestion, if - // exists, or otherwise the current input value as entered. - - onSelect(selectedSuggestion || { - url: value - }); - } - - return Object(external_this_wp_element_["createElement"])("form", { - onSubmit: selectSuggestionOrCurrentInputValue - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-link-control__search-input-wrapper" - }, Object(external_this_wp_element_["createElement"])(url_input, { - className: "block-editor-link-control__search-input", - value: value, - onChange: selectItemHandler, - placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : Object(external_this_wp_i18n_["__"])('Search or type url'), - __experimentalRenderSuggestions: renderSuggestions, - __experimentalFetchLinkSuggestions: fetchSuggestions, - __experimentalHandleURLSuggestions: true, - __experimentalShowInitialSuggestions: showInitialSuggestions - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-link-control__search-actions" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - type: "submit", - label: Object(external_this_wp_i18n_["__"])('Submit'), - icon: keyboard_return["a" /* default */], - className: "block-editor-link-control__search-submit" - }))), errorMessage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { - className: "block-editor-link-control__search-error", - status: "error", - isDismissible: false - }, errorMessage)); -}; - -/* harmony default export */ var search_input = (search_input_LinkControlSearchInput); +var plusCircle = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" +})); +/* harmony default export */ var plus_circle = (plusCircle); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-create-button.js @@ -33634,6 +36382,7 @@ var search_input_LinkControlSearchInput = function LinkControlSearchInput(_ref) * External dependencies */ + /** * WordPress dependencies */ @@ -33641,52 +36390,69 @@ var search_input_LinkControlSearchInput = function LinkControlSearchInput(_ref) + var search_create_button_LinkControlSearchCreate = function LinkControlSearchCreate(_ref) { var searchTerm = _ref.searchTerm, onClick = _ref.onClick, itemProps = _ref.itemProps, - isSelected = _ref.isSelected; + isSelected = _ref.isSelected, + buttonText = _ref.buttonText; if (!searchTerm) { return null; } + var text; + + if (buttonText) { + text = Object(external_this_lodash_["isFunction"])(buttonText) ? buttonText(searchTerm) : buttonText; + } else { + text = Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: search term. */ + Object(external_this_wp_i18n_["__"])('Create: %s'), searchTerm), { + mark: Object(external_this_wp_element_["createElement"])("mark", null) + }); + } + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { className: classnames_default()('block-editor-link-control__search-create block-editor-link-control__search-item', { 'is-selected': isSelected }), onClick: onClick - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + }), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { className: "block-editor-link-control__search-item-icon", - icon: "insert" + icon: plus_circle }), Object(external_this_wp_element_["createElement"])("span", { className: "block-editor-link-control__search-item-header" }, Object(external_this_wp_element_["createElement"])("span", { className: "block-editor-link-control__search-item-title" - }, Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["sprintf"])( - /* translators: %s: search term. */ - Object(external_this_wp_i18n_["__"])('New page: %s'), searchTerm), { - mark: Object(external_this_wp_element_["createElement"])("mark", null) - })))); + }, text))); }; /* harmony default export */ var search_create_button = (search_create_button_LinkControlSearchCreate); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js +/** + * WordPress dependencies + */ + +var globe = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" +})); +/* harmony default export */ var library_globe = (globe); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js - -function link_control_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 link_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { link_control_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 { link_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - /** * External dependencies */ - /** * WordPress dependencies */ @@ -33695,6 +36461,327 @@ function link_control_objectSpread(target) { for (var i = 1; i < arguments.lengt +var search_item_LinkControlSearchItem = function LinkControlSearchItem(_ref) { + var itemProps = _ref.itemProps, + suggestion = _ref.suggestion, + _ref$isSelected = _ref.isSelected, + isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected, + onClick = _ref.onClick, + _ref$isURL = _ref.isURL, + isURL = _ref$isURL === void 0 ? false : _ref$isURL, + _ref$searchTerm = _ref.searchTerm, + searchTerm = _ref$searchTerm === void 0 ? '' : _ref$searchTerm, + _ref$shouldShowType = _ref.shouldShowType, + shouldShowType = _ref$shouldShowType === void 0 ? false : _ref$shouldShowType; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { + onClick: onClick, + className: classnames_default()('block-editor-link-control__search-item', { + 'is-selected': isSelected, + 'is-url': isURL, + 'is-entity': !isURL + }) + }), isURL && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-editor-link-control__search-item-icon", + icon: library_globe + }), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-header" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-title" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextHighlight"], { + text: suggestion.title, + highlight: searchTerm + })), Object(external_this_wp_element_["createElement"])("span", { + "aria-hidden": !isURL, + className: "block-editor-link-control__search-item-info" + }, !isURL && (Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(suggestion.url)) || ''), isURL && Object(external_this_wp_i18n_["__"])('Press ENTER to add this link'))), shouldShowType && suggestion.type && Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-type" + }, suggestion.type === 'post_tag' ? 'tag' : suggestion.type)); +}; +/* harmony default export */ var search_item = (search_item_LinkControlSearchItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/constants.js +// Used as a unique identifier for the "Create" option within search results. +// Used to help distinguish the "Create" suggestion within the search results in +// order to handle it as a unique case. +var CREATE_TYPE = '__CREATE__'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-results.js + + +/** + * WordPress dependencies + */ + + +/** + * External dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function LinkControlSearchResults(_ref) { + var instanceId = _ref.instanceId, + withCreateSuggestion = _ref.withCreateSuggestion, + currentInputValue = _ref.currentInputValue, + handleSuggestionClick = _ref.handleSuggestionClick, + suggestionsListProps = _ref.suggestionsListProps, + buildSuggestionItemProps = _ref.buildSuggestionItemProps, + suggestions = _ref.suggestions, + selectedSuggestion = _ref.selectedSuggestion, + isLoading = _ref.isLoading, + isInitialSuggestions = _ref.isInitialSuggestions, + createSuggestionButtonText = _ref.createSuggestionButtonText, + suggestionsQuery = _ref.suggestionsQuery; + var resultsListClasses = classnames_default()('block-editor-link-control__search-results', { + 'is-loading': isLoading + }); + var directLinkEntryTypes = ['url', 'mailto', 'tel', 'internal']; + var isSingleDirectEntryResult = suggestions.length === 1 && directLinkEntryTypes.includes(suggestions[0].type.toLowerCase()); + var shouldShowCreateSuggestion = withCreateSuggestion && !isSingleDirectEntryResult && !isInitialSuggestions; // If the query has a specified type, then we can skip showing them in the result. See #24839. + + var shouldShowSuggestionsTypes = !(suggestionsQuery === null || suggestionsQuery === void 0 ? void 0 : suggestionsQuery.type); // According to guidelines aria-label should be added if the label + // itself is not visible. + // See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role + + var searchResultsLabelId = "block-editor-link-control-search-results-label-".concat(instanceId); + var labelText = isInitialSuggestions ? Object(external_this_wp_i18n_["__"])('Recently updated') : Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: search term. */ + Object(external_this_wp_i18n_["__"])('Search results for "%s"'), currentInputValue); // VisuallyHidden rightly doesn't accept custom classNames + // so we conditionally render it as a wrapper to visually hide the label + // when that is required. + + var searchResultsLabel = Object(external_this_wp_element_["createElement"])(isInitialSuggestions ? external_this_wp_element_["Fragment"] : external_this_wp_components_["VisuallyHidden"], {}, // empty props + Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-results-label", + id: searchResultsLabelId + }, labelText)); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-results-wrapper" + }, searchResultsLabel, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { + className: resultsListClasses, + "aria-labelledby": searchResultsLabelId + }), suggestions.map(function (suggestion, index) { + if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) { + return Object(external_this_wp_element_["createElement"])(search_create_button, { + searchTerm: currentInputValue, + buttonText: createSuggestionButtonText, + onClick: function onClick() { + return handleSuggestionClick(suggestion); + } // Intentionally only using `type` here as + // the constant is enough to uniquely + // identify the single "CREATE" suggestion. + , + key: suggestion.type, + itemProps: buildSuggestionItemProps(suggestion, index), + isSelected: index === selectedSuggestion + }); + } // If we're not handling "Create" suggestions above then + // we don't want them in the main results so exit early + + + if (CREATE_TYPE === suggestion.type) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(search_item, { + key: "".concat(suggestion.id, "-").concat(suggestion.type), + itemProps: buildSuggestionItemProps(suggestion, index), + suggestion: suggestion, + index: index, + onClick: function onClick() { + handleSuggestionClick(suggestion); + }, + isSelected: index === selectedSuggestion, + isURL: directLinkEntryTypes.includes(suggestion.type.toLowerCase()), + searchTerm: currentInputValue, + shouldShowType: shouldShowSuggestionsTypes + }); + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/is-url-like.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Determines whether a given value could be a URL. Note this does not + * guarantee the value is a URL only that it looks like it might be one. For + * example, just because a string has `www.` in it doesn't make it a URL, + * but it does make it highly likely that it will be so in the context of + * creating a link it makes sense to treat it like one. + * + * @param {string} val the candidate for being URL-like (or not). + * @return {boolean} whether or not the value is potentially a URL. + */ + +function isURLLike(val) { + var isInternal = Object(external_this_lodash_["startsWith"])(val, '#'); + return Object(external_this_wp_url_["isURL"])(val) || val && val.includes('www.') || isInternal; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/use-search-handler.js + + + + +function use_search_handler_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 use_search_handler_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_search_handler_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 { use_search_handler_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + + +var handleNoop = function handleNoop() { + return Promise.resolve([]); +}; +var use_search_handler_handleDirectEntry = function handleDirectEntry(val) { + var type = 'URL'; + var protocol = Object(external_this_wp_url_["getProtocol"])(val) || ''; + + if (protocol.includes('mailto')) { + type = 'mailto'; + } + + if (protocol.includes('tel')) { + type = 'tel'; + } + + if (Object(external_this_lodash_["startsWith"])(val, '#')) { + type = 'internal'; + } + + return Promise.resolve([{ + id: val, + title: val, + url: type === 'URL' ? Object(external_this_wp_url_["prependHTTP"])(val) : val, + type: type + }]); +}; + +var handleEntitySearch = /*#__PURE__*/function () { + var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(val, suggestionsQuery, fetchSearchSuggestions, directEntryHandler, withCreateSuggestion, withURLSuggestion) { + var isInitialSuggestions, results, couldBeURL; + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + isInitialSuggestions = suggestionsQuery.isInitialSuggestions; + _context.next = 3; + return Promise.all([fetchSearchSuggestions(val, suggestionsQuery), directEntryHandler(val)]); + + case 3: + results = _context.sent; + couldBeURL = !val.includes(' '); // If it's potentially a URL search then concat on a URL search suggestion + // just for good measure. That way once the actual results run out we always + // have a URL option to fallback on. + + if (couldBeURL && withURLSuggestion && !isInitialSuggestions) { + results = results[0].concat(results[1]); + } else { + results = results[0]; + } // If displaying initial suggestions just return plain results. + + + if (!isInitialSuggestions) { + _context.next = 8; + break; + } + + return _context.abrupt("return", results); + + case 8: + return _context.abrupt("return", isURLLike(val) || !withCreateSuggestion ? results : results.concat({ + // the `id` prop is intentionally ommitted here because it + // is never exposed as part of the component's public API. + // see: https://github.com/WordPress/gutenberg/pull/19775#discussion_r378931316. + title: val, + // must match the existing ``s text value + url: val, + // must match the existing ``s text value + type: CREATE_TYPE + })); + + case 9: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + + return function handleEntitySearch(_x, _x2, _x3, _x4, _x5, _x6) { + return _ref.apply(this, arguments); + }; +}(); + +function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggestion, withURLSuggestion) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + fetchSearchSuggestions: getSettings().__experimentalFetchLinkSuggestions + }; + }, []), + fetchSearchSuggestions = _useSelect.fetchSearchSuggestions; + + var directEntryHandler = allowDirectEntry ? use_search_handler_handleDirectEntry : handleNoop; + return Object(external_this_wp_element_["useCallback"])(function (val, _ref2) { + var isInitialSuggestions = _ref2.isInitialSuggestions; + return isURLLike(val) ? directEntryHandler(val, { + isInitialSuggestions: isInitialSuggestions + }) : handleEntitySearch(val, use_search_handler_objectSpread(use_search_handler_objectSpread({}, suggestionsQuery), {}, { + isInitialSuggestions: isInitialSuggestions + }), fetchSearchSuggestions, directEntryHandler, withCreateSuggestion, withURLSuggestion); + }, [directEntryHandler, fetchSearchSuggestions, withCreateSuggestion]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js + + + + + + +function search_input_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 search_input_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { search_input_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 { search_input_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + @@ -33706,15 +36793,312 @@ function link_control_objectSpread(target) { for (var i = 1; i < arguments.lengt +var noopSearchHandler = Promise.resolve([]); +var LinkControlSearchInput = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { + var value = _ref.value, + children = _ref.children, + _ref$currentLink = _ref.currentLink, + currentLink = _ref$currentLink === void 0 ? {} : _ref$currentLink, + _ref$className = _ref.className, + className = _ref$className === void 0 ? null : _ref$className, + _ref$placeholder = _ref.placeholder, + placeholder = _ref$placeholder === void 0 ? null : _ref$placeholder, + _ref$withCreateSugges = _ref.withCreateSuggestion, + withCreateSuggestion = _ref$withCreateSugges === void 0 ? false : _ref$withCreateSugges, + _ref$onCreateSuggesti = _ref.onCreateSuggestion, + onCreateSuggestion = _ref$onCreateSuggesti === void 0 ? external_this_lodash_["noop"] : _ref$onCreateSuggesti, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onSelect = _ref.onSelect, + onSelect = _ref$onSelect === void 0 ? external_this_lodash_["noop"] : _ref$onSelect, + _ref$showSuggestions = _ref.showSuggestions, + showSuggestions = _ref$showSuggestions === void 0 ? true : _ref$showSuggestions, + _ref$renderSuggestion = _ref.renderSuggestions, + renderSuggestions = _ref$renderSuggestion === void 0 ? function (props) { + return Object(external_this_wp_element_["createElement"])(LinkControlSearchResults, props); + } : _ref$renderSuggestion, + _ref$fetchSuggestions = _ref.fetchSuggestions, + fetchSuggestions = _ref$fetchSuggestions === void 0 ? null : _ref$fetchSuggestions, + _ref$allowDirectEntry = _ref.allowDirectEntry, + allowDirectEntry = _ref$allowDirectEntry === void 0 ? true : _ref$allowDirectEntry, + _ref$showInitialSugge = _ref.showInitialSuggestions, + showInitialSuggestions = _ref$showInitialSugge === void 0 ? false : _ref$showInitialSugge, + _ref$suggestionsQuery = _ref.suggestionsQuery, + suggestionsQuery = _ref$suggestionsQuery === void 0 ? {} : _ref$suggestionsQuery, + _ref$withURLSuggestio = _ref.withURLSuggestion, + withURLSuggestion = _ref$withURLSuggestio === void 0 ? true : _ref$withURLSuggestio, + createSuggestionButtonText = _ref.createSuggestionButtonText; + var genericSearchHandler = useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggestion, withURLSuggestion); + var searchHandler = showSuggestions ? fetchSuggestions || genericSearchHandler : noopSearchHandler; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(LinkControlSearchInput); -var link_control_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockEditorLinkControlViewer'), - ViewerSlot = link_control_createSlotFill.Slot, - ViewerFill = link_control_createSlotFill.Fill; // Used as a unique identifier for the "Create" option within search results. -// Used to help distinguish the "Create" suggestion within the search results in -// order to handle it as a unique case. + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + focusedSuggestion = _useState2[0], + setFocusedSuggestion = _useState2[1]; + /** + * Handles the user moving between different suggestions. Does not handle + * choosing an individual item. + * + * @param {string} selection the url of the selected suggestion. + * @param {Object} suggestion the suggestion object. + */ -var CREATE_TYPE = '__CREATE__'; + var onInputChange = function onInputChange(selection, suggestion) { + onChange(selection); + setFocusedSuggestion(suggestion); + }; + + var onFormSubmit = function onFormSubmit(event) { + event.preventDefault(); + onSuggestionSelected(focusedSuggestion || { + url: value + }); + }; + + var handleRenderSuggestions = function handleRenderSuggestions(props) { + return renderSuggestions(search_input_objectSpread(search_input_objectSpread({}, props), {}, { + instanceId: instanceId, + withCreateSuggestion: withCreateSuggestion, + currentInputValue: value, + createSuggestionButtonText: createSuggestionButtonText, + suggestionsQuery: suggestionsQuery, + handleSuggestionClick: function handleSuggestionClick(suggestion) { + if (props.handleSuggestionClick) { + props.handleSuggestionClick(suggestion); + } + + onSuggestionSelected(suggestion); + } + })); + }; + + var onSuggestionSelected = /*#__PURE__*/function () { + var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(selectedSuggestion) { + var suggestion, _suggestion; + + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + suggestion = selectedSuggestion; + + if (!(CREATE_TYPE === selectedSuggestion.type)) { + _context.next = 12; + break; + } + + _context.prev = 2; + _context.next = 5; + return onCreateSuggestion(selectedSuggestion.title); + + case 5: + suggestion = _context.sent; + + if ((_suggestion = suggestion) === null || _suggestion === void 0 ? void 0 : _suggestion.url) { + onSelect(suggestion); + } + + _context.next = 11; + break; + + case 9: + _context.prev = 9; + _context.t0 = _context["catch"](2); + + case 11: + return _context.abrupt("return"); + + case 12: + if (allowDirectEntry || suggestion && Object.keys(suggestion).length >= 1) { + onSelect( // Some direct entries don't have types or IDs, and we still need to clear the previous ones. + search_input_objectSpread(search_input_objectSpread({}, Object(external_this_lodash_["omit"])(currentLink, 'id', 'url')), suggestion), suggestion); + } + + case 13: + case "end": + return _context.stop(); + } + } + }, _callee, null, [[2, 9]]); + })); + + return function onSuggestionSelected(_x) { + return _ref2.apply(this, arguments); + }; + }(); + + return Object(external_this_wp_element_["createElement"])("form", { + onSubmit: onFormSubmit + }, Object(external_this_wp_element_["createElement"])(url_input, { + className: className, + value: value, + onChange: onInputChange, + placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : Object(external_this_wp_i18n_["__"])('Search or type url'), + __experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null, + __experimentalFetchLinkSuggestions: searchHandler, + __experimentalHandleURLSuggestions: true, + __experimentalShowInitialSuggestions: showInitialSuggestions, + ref: ref + }), children); +}); +/* harmony default export */ var search_input = (LinkControlSearchInput); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/viewer-slot.js +/** + * WordPress dependencies + */ + + +var viewer_slot_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockEditorLinkControlViewer'), + ViewerSlot = viewer_slot_createSlotFill.Slot, + ViewerFill = viewer_slot_createSlotFill.Fill; + + +/* harmony default export */ var viewer_slot = (ViewerSlot); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/link-preview.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function LinkPreview(_ref) { + var value = _ref.value, + onEditClick = _ref.onEditClick; + var displayURL = value && Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(value.url)) || ''; + return Object(external_this_wp_element_["createElement"])("div", { + "aria-label": Object(external_this_wp_i18n_["__"])('Currently selected'), + "aria-selected": "true", + className: classnames_default()('block-editor-link-control__search-item', { + 'is-current': true + }) + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-header" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + className: "block-editor-link-control__search-item-title", + href: value.url + }, value && value.title || displayURL), value && value.title && Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-info" + }, displayURL)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + onClick: function onClick() { + return onEditClick(); + }, + className: "block-editor-link-control__search-item-action" + }, Object(external_this_wp_i18n_["__"])('Edit')), Object(external_this_wp_element_["createElement"])(ViewerSlot, { + fillProps: value + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/use-create-page.js + + + + +/** + * WordPress dependencies + */ + + +function useCreatePage(handleCreatePage) { + var cancelableCreateSuggestion = Object(external_this_wp_element_["useRef"])(); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isCreatingPage = _useState2[0], + setIsCreatingPage = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(null), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + errorMessage = _useState4[0], + setErrorMessage = _useState4[1]; + + var createPage = /*#__PURE__*/function () { + var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(suggestionTitle) { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + setIsCreatingPage(true); + setErrorMessage(null); + _context.prev = 2; + // Make cancellable in order that we can avoid setting State + // if the component unmounts during the call to `createSuggestion` + cancelableCreateSuggestion.current = makeCancelable( // Using Promise.resolve to allow createSuggestion to return a + // non-Promise based value. + Promise.resolve(handleCreatePage(suggestionTitle))); + _context.next = 6; + return cancelableCreateSuggestion.current.promise; + + case 6: + return _context.abrupt("return", _context.sent); + + case 9: + _context.prev = 9; + _context.t0 = _context["catch"](2); + + if (!(_context.t0 && _context.t0.isCanceled)) { + _context.next = 13; + break; + } + + return _context.abrupt("return"); + + case 13: + setErrorMessage(_context.t0.message || Object(external_this_wp_i18n_["__"])('An unknown error occurred during creation. Please try again.')); + throw _context.t0; + + case 15: + _context.prev = 15; + setIsCreatingPage(false); + return _context.finish(15); + + case 18: + case "end": + return _context.stop(); + } + } + }, _callee, null, [[2, 9, 15, 18]]); + })); + + return function createPage(_x) { + return _ref.apply(this, arguments); + }; + }(); + /** + * Handles cancelling any pending Promises that have been made cancelable. + */ + + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + // componentDidUnmount + if (cancelableCreateSuggestion.current) { + cancelableCreateSuggestion.current.cancel(); + } + }; + }, []); + return { + createPage: createPage, + isCreatingPage: isCreatingPage, + errorMessage: errorMessage + }; +} /** * Creates a wrapper around a promise which allows it to be programmatically * cancelled. @@ -33743,6 +37127,33 @@ var makeCancelable = function makeCancelable(promise) { } }; }; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + /** * Default properties associated with a link control value. * @@ -33774,8 +37185,6 @@ var makeCancelable = function makeCancelable(promise) { * @property {string} title Human-readable label to show in user interface. */ -/* eslint-disable jsdoc/valid-types */ - /** * Properties associated with a link control value, composed as a union of the * default properties and any custom settings values. @@ -33783,8 +37192,6 @@ var makeCancelable = function makeCancelable(promise) { * @typedef {WPLinkControlDefaultValue&WPLinkControlSettingsValue} WPLinkControlValue */ -/* eslint-enable */ - /** @typedef {(nextValue:WPLinkControlValue)=>void} WPLinkControlOnChangeProp */ /** @@ -33804,18 +37211,21 @@ var makeCancelable = function makeCancelable(promise) { /** * @typedef WPLinkControlProps * - * @property {(WPLinkControlSetting[])=} settings An array of settings objects. Each object will used to - * render a `ToggleControl` for that setting. - * @property {boolean=} forceIsEditingLink If passed as either `true` or `false`, controls the - * internal editing state of the component to respective - * show or not show the URL input field. - * @property {WPLinkControlValue=} value Current link value. - * @property {WPLinkControlOnChangeProp=} onChange Value change handler, called with the updated value if - * the user selects a new link or updates settings. - * @property {boolean=} noDirectEntry Whether to disable direct entries or not. - * @property {boolean=} showSuggestions Whether to present suggestions when typing the URL. - * @property {boolean=} showInitialSuggestions Whether to present initial suggestions immediately. - * @property {WPLinkControlCreateSuggestionProp=} createSuggestion Handler to manage creation of link value from suggestion. + * @property {(WPLinkControlSetting[])=} settings An array of settings objects. Each object will used to + * render a `ToggleControl` for that setting. + * @property {boolean=} forceIsEditingLink If passed as either `true` or `false`, controls the + * internal editing state of the component to respective + * show or not show the URL input field. + * @property {WPLinkControlValue=} value Current link value. + * @property {WPLinkControlOnChangeProp=} onChange Value change handler, called with the updated value if + * the user selects a new link or updates settings. + * @property {boolean=} noDirectEntry Whether to allow turning a URL-like search query directly into a link. + * @property {boolean=} showSuggestions Whether to present suggestions when typing the URL. + * @property {boolean=} showInitialSuggestions Whether to present initial suggestions immediately. + * @property {boolean=} withCreateSuggestion Whether to allow creation of link value from suggestion. + * @property {Object=} suggestionsQuery Query parameters to pass along to wp.blockEditor.__experimentalFetchLinkSuggestions. + * @property {boolean=} noURLSuggestion Whether to add a fallback suggestion which treats the search query as a URL. + * @property {string|Function|undefined} createSuggestionButtonText The text to use in the button that calls createSuggestion. */ /** @@ -33826,7 +37236,6 @@ var makeCancelable = function makeCancelable(promise) { * @param {WPLinkControlProps} props Component props. */ - function LinkControl(_ref) { var searchInputPlaceholder = _ref.searchInputPlaceholder, value = _ref.value, @@ -33839,45 +37248,35 @@ function LinkControl(_ref) { showSuggestions = _ref$showSuggestions === void 0 ? true : _ref$showSuggestions, showInitialSuggestions = _ref.showInitialSuggestions, forceIsEditingLink = _ref.forceIsEditingLink, - createSuggestion = _ref.createSuggestion; - var cancelableOnCreate = Object(external_this_wp_element_["useRef"])(); - var cancelableCreateSuggestion = Object(external_this_wp_element_["useRef"])(); + createSuggestion = _ref.createSuggestion, + withCreateSuggestion = _ref.withCreateSuggestion, + _ref$inputValue = _ref.inputValue, + propInputValue = _ref$inputValue === void 0 ? '' : _ref$inputValue, + _ref$suggestionsQuery = _ref.suggestionsQuery, + suggestionsQuery = _ref$suggestionsQuery === void 0 ? {} : _ref$suggestionsQuery, + _ref$noURLSuggestion = _ref.noURLSuggestion, + noURLSuggestion = _ref$noURLSuggestion === void 0 ? false : _ref$noURLSuggestion, + createSuggestionButtonText = _ref.createSuggestionButtonText; + + if (withCreateSuggestion === undefined && createSuggestion) { + withCreateSuggestion = true; + } + var wrapperNode = Object(external_this_wp_element_["useRef"])(); - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(LinkControl); var _useState = Object(external_this_wp_element_["useState"])(value && value.url || ''), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - inputValue = _useState2[0], - setInputValue = _useState2[1]; + internalInputValue = _useState2[0], + setInternalInputValue = _useState2[1]; + + var currentInputValue = propInputValue || internalInputValue; var _useState3 = Object(external_this_wp_element_["useState"])(forceIsEditingLink !== undefined ? forceIsEditingLink : !value || !value.url), _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), isEditingLink = _useState4[0], setIsEditingLink = _useState4[1]; - var _useState5 = Object(external_this_wp_element_["useState"])(false), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - isResolvingLink = _useState6[0], - setIsResolvingLink = _useState6[1]; - - var _useState7 = Object(external_this_wp_element_["useState"])(null), - _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), - errorMessage = _useState8[0], - setErrorMessage = _useState8[1]; - var isEndingEditWithFocus = Object(external_this_wp_element_["useRef"])(false); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - fetchSearchSuggestions: getSettings().__experimentalFetchLinkSuggestions - }; - }, []), - fetchSearchSuggestions = _useSelect.fetchSearchSuggestions; - - var displayURL = value && Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(value.url)) || ''; Object(external_this_wp_element_["useEffect"])(function () { if (forceIsEditingLink !== undefined && forceIsEditingLink !== isEditingLink) { setIsEditingLink(forceIsEditingLink); @@ -33891,7 +37290,7 @@ function LinkControl(_ref) { // edit mode would render the read-only mode's link element, it isn't // guaranteed. The link input may continue to be shown if the next value // is still unassigned after calling `onChange`. - var hadFocusLoss = isEndingEditWithFocus.current && wrapperNode.current && !wrapperNode.current.contains(document.activeElement); + var hadFocusLoss = isEndingEditWithFocus.current && wrapperNode.current && !wrapperNode.current.contains(wrapperNode.current.ownerDocument.activeElement); if (hadFocusLoss) { // Prefer to focus a natural focusable descendent of the wrapper, @@ -33902,381 +37301,68 @@ function LinkControl(_ref) { isEndingEditWithFocus.current = false; }, [isEditingLink]); - /** - * Handles cancelling any pending Promises that have been made cancelable. - */ - - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - // componentDidUnmount - if (cancelableOnCreate.current) { - cancelableOnCreate.current.cancel(); - } - - if (cancelableCreateSuggestion.current) { - cancelableCreateSuggestion.current.cancel(); - } - }; - }, []); - /** - * onChange LinkControlSearchInput event handler - * - * @param {string} val Current value returned by the search. - */ - - var onInputChange = function onInputChange() { - var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - setInputValue(val); - }; - - var handleDirectEntry = noDirectEntry ? function () { - return Promise.resolve([]); - } : function (val) { - var type = 'URL'; - var protocol = Object(external_this_wp_url_["getProtocol"])(val) || ''; - - if (protocol.includes('mailto')) { - type = 'mailto'; - } - - if (protocol.includes('tel')) { - type = 'tel'; - } - - if (Object(external_this_lodash_["startsWith"])(val, '#')) { - type = 'internal'; - } - - return Promise.resolve([{ - id: val, - title: val, - url: type === 'URL' ? Object(external_this_wp_url_["prependHTTP"])(val) : val, - type: type - }]); - }; - - var handleEntitySearch = /*#__PURE__*/function () { - var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(val, args) { - var results, couldBeURL; - return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return Promise.all([fetchSearchSuggestions(val, link_control_objectSpread({}, args.isInitialSuggestions ? { - perPage: 3 - } : {})), handleDirectEntry(val)]); - - case 2: - results = _context.sent; - couldBeURL = !val.includes(' '); // If it's potentially a URL search then concat on a URL search suggestion - // just for good measure. That way once the actual results run out we always - // have a URL option to fallback on. - - results = couldBeURL && !args.isInitialSuggestions ? results[0].concat(results[1]) : results[0]; // If displaying initial suggestions just return plain results. - - if (!args.isInitialSuggestions) { - _context.next = 7; - break; - } - - return _context.abrupt("return", results); - - case 7: - return _context.abrupt("return", isURLLike(val) || !createSuggestion ? results : results.concat({ - // the `id` prop is intentionally ommitted here because it - // is never exposed as part of the component's public API. - // see: https://github.com/WordPress/gutenberg/pull/19775#discussion_r378931316. - title: val, - // must match the existing ``s text value - url: val, - // must match the existing ``s text value - type: CREATE_TYPE - })); - - case 8: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - - return function handleEntitySearch(_x, _x2) { - return _ref2.apply(this, arguments); - }; - }(); /** * Cancels editing state and marks that focus may need to be restored after * the next render, if focus was within the wrapper when editing finished. */ - function stopEditing() { var _wrapperNode$current; - isEndingEditWithFocus.current = !!((_wrapperNode$current = wrapperNode.current) === null || _wrapperNode$current === void 0 ? void 0 : _wrapperNode$current.contains(document.activeElement)); + isEndingEditWithFocus.current = !!((_wrapperNode$current = wrapperNode.current) === null || _wrapperNode$current === void 0 ? void 0 : _wrapperNode$current.contains(wrapperNode.current.ownerDocument.activeElement)); setIsEditingLink(false); } - /** - * Determines whether a given value could be a URL. Note this does not - * guarantee the value is a URL only that it looks like it might be one. For - * example, just because a string has `www.` in it doesn't make it a URL, - * but it does make it highly likely that it will be so in the context of - * creating a link it makes sense to treat it like one. - * - * @param {string} val the candidate for being URL-like (or not). - * @return {boolean} whether or not the value is potentially a URL. - */ + var _useCreatePage = useCreatePage(createSuggestion), + createPage = _useCreatePage.createPage, + isCreatingPage = _useCreatePage.isCreatingPage, + errorMessage = _useCreatePage.errorMessage; - function isURLLike(val) { - var isInternal = Object(external_this_lodash_["startsWith"])(val, '#'); - return Object(external_this_wp_url_["isURL"])(val) || val && val.includes('www.') || isInternal; - } // Effects - - - var getSearchHandler = Object(external_this_wp_element_["useCallback"])(function (val, args) { - if (!showSuggestions) { - return Promise.resolve([]); - } - - return isURLLike(val) ? handleDirectEntry(val, args) : handleEntitySearch(val, args); - }, [handleDirectEntry, fetchSearchSuggestions]); - - var handleOnCreate = /*#__PURE__*/function () { - var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2(suggestionTitle) { - var newSuggestion; - return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - setIsResolvingLink(true); - setErrorMessage(null); - _context2.prev = 2; - // Make cancellable in order that we can avoid setting State - // if the component unmounts during the call to `createSuggestion` - cancelableCreateSuggestion.current = makeCancelable( // Using Promise.resolve to allow createSuggestion to return a - // non-Promise based value. - Promise.resolve(createSuggestion(suggestionTitle))); - _context2.next = 6; - return cancelableCreateSuggestion.current.promise; - - case 6: - newSuggestion = _context2.sent; - // ******** - // NOTE: if the above Promise rejects then code below here will never run - // ******** - setIsResolvingLink(false); // Only set link if request is resolved, otherwise enable edit mode. - - if (newSuggestion) { - onChange(newSuggestion); - stopEditing(); - } else { - setIsEditingLink(true); - } - - _context2.next = 18; - break; - - case 11: - _context2.prev = 11; - _context2.t0 = _context2["catch"](2); - - if (!(_context2.t0 && _context2.t0.isCanceled)) { - _context2.next = 15; - break; - } - - return _context2.abrupt("return"); - - case 15: - setErrorMessage(_context2.t0.message || Object(external_this_wp_i18n_["__"])('An unknown error occurred during creation. Please try again.')); - setIsResolvingLink(false); - setIsEditingLink(true); - - case 18: - case "end": - return _context2.stop(); - } - } - }, _callee2, null, [[2, 11]]); - })); - - return function handleOnCreate(_x3) { - return _ref3.apply(this, arguments); - }; - }(); - - var handleSelectSuggestion = function handleSelectSuggestion(suggestion) { - var _value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - setIsEditingLink(false); - - var __value = link_control_objectSpread({}, _value); // Some direct entries don't have types or IDs, and we still need to clear the previous ones. - - - delete __value.type; - delete __value.id; - onChange(link_control_objectSpread({}, __value, {}, suggestion)); - }; // Render Components - - - var renderSearchResults = function renderSearchResults(_ref4) { - var suggestionsListProps = _ref4.suggestionsListProps, - buildSuggestionItemProps = _ref4.buildSuggestionItemProps, - suggestions = _ref4.suggestions, - selectedSuggestion = _ref4.selectedSuggestion, - isLoading = _ref4.isLoading, - isInitialSuggestions = _ref4.isInitialSuggestions; - var resultsListClasses = classnames_default()('block-editor-link-control__search-results', { - 'is-loading': isLoading - }); - var directLinkEntryTypes = ['url', 'mailto', 'tel', 'internal']; - var isSingleDirectEntryResult = suggestions.length === 1 && directLinkEntryTypes.includes(suggestions[0].type.toLowerCase()); - var shouldShowCreateSuggestion = createSuggestion && !isSingleDirectEntryResult && !isInitialSuggestions; // According to guidelines aria-label should be added if the label - // itself is not visible. - // See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role - - var searchResultsLabelId = "block-editor-link-control-search-results-label-".concat(instanceId); - var labelText = isInitialSuggestions ? Object(external_this_wp_i18n_["__"])('Recently updated') : Object(external_this_wp_i18n_["sprintf"])( - /* translators: %s: search term. */ - Object(external_this_wp_i18n_["__"])('Search results for "%s"'), inputValue); // VisuallyHidden rightly doesn't accept custom classNames - // so we conditionally render it as a wrapper to visually hide the label - // when that is required. - - var searchResultsLabel = Object(external_this_wp_element_["createElement"])(isInitialSuggestions ? external_this_wp_element_["Fragment"] : external_this_wp_components_["VisuallyHidden"], {}, // empty props - Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-results-label", - id: searchResultsLabelId - }, labelText)); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-link-control__search-results-wrapper" - }, searchResultsLabel, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { - className: resultsListClasses, - "aria-labelledby": searchResultsLabelId - }), suggestions.map(function (suggestion, index) { - if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) { - return Object(external_this_wp_element_["createElement"])(search_create_button, { - searchTerm: inputValue, - onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee3() { - return external_this_regeneratorRuntime_default.a.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return handleOnCreate(suggestion.title); - - case 2: - case "end": - return _context3.stop(); - } - } - }, _callee3); - })) // Intentionally only using `type` here as - // the constant is enough to uniquely - // identify the single "CREATE" suggestion. - , - key: suggestion.type, - itemProps: buildSuggestionItemProps(suggestion, index), - isSelected: index === selectedSuggestion - }); - } // If we're not handling "Create" suggestions above then - // we don't want them in the main results so exit early - - - if (CREATE_TYPE === suggestion.type) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(search_item, { - key: "".concat(suggestion.id, "-").concat(suggestion.type), - itemProps: buildSuggestionItemProps(suggestion, index), - suggestion: suggestion, - index: index, - onClick: function onClick() { - stopEditing(); - onChange(link_control_objectSpread({}, value, {}, suggestion)); - }, - isSelected: index === selectedSuggestion, - isURL: directLinkEntryTypes.includes(suggestion.type.toLowerCase()), - searchTerm: inputValue - }); - }))); + var handleSelectSuggestion = function handleSelectSuggestion(updatedValue) { + onChange(updatedValue); + stopEditing(); }; return Object(external_this_wp_element_["createElement"])("div", { tabIndex: -1, ref: wrapperNode, className: "block-editor-link-control" - }, isResolvingLink && Object(external_this_wp_element_["createElement"])("div", { + }, isCreatingPage && Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-link-control__loading" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), " ", Object(external_this_wp_i18n_["__"])('Creating'), "\u2026"), (isEditingLink || !value) && !isResolvingLink && Object(external_this_wp_element_["createElement"])(search_input, { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), " ", Object(external_this_wp_i18n_["__"])('Creating'), "\u2026"), (isEditingLink || !value) && !isCreatingPage && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-input-wrapper" + }, Object(external_this_wp_element_["createElement"])(search_input, { + currentLink: value, + className: "block-editor-link-control__search-input", placeholder: searchInputPlaceholder, - value: inputValue, - onChange: onInputChange, - onSelect: /*#__PURE__*/function () { - var _ref6 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee4(suggestion) { - return external_this_regeneratorRuntime_default.a.wrap(function _callee4$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - if (!(CREATE_TYPE === suggestion.type)) { - _context4.next = 5; - break; - } - - _context4.next = 3; - return handleOnCreate(inputValue); - - case 3: - _context4.next = 6; - break; - - case 5: - if (!noDirectEntry || Object.keys(suggestion).length > 1) { - handleSelectSuggestion(suggestion, value); - stopEditing(); - } - - case 6: - case "end": - return _context4.stop(); - } - } - }, _callee4); - })); - - return function (_x4) { - return _ref6.apply(this, arguments); - }; - }(), - renderSuggestions: showSuggestions ? renderSearchResults : null, - fetchSuggestions: getSearchHandler, + value: currentInputValue, + withCreateSuggestion: withCreateSuggestion, + onCreateSuggestion: createPage, + onChange: setInternalInputValue, + onSelect: handleSelectSuggestion, showInitialSuggestions: showInitialSuggestions, - errorMessage: errorMessage - }), value && !isEditingLink && !isResolvingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { - "aria-label": Object(external_this_wp_i18n_["__"])('Currently selected'), - "aria-selected": "true", - className: classnames_default()('block-editor-link-control__search-item', { - 'is-current': true - }) - }, Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-header" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - className: "block-editor-link-control__search-item-title", - href: value.url - }, value && value.title || displayURL), value && value.title && Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-info" - }, displayURL)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - onClick: function onClick() { + allowDirectEntry: !noDirectEntry, + showSuggestions: showSuggestions, + suggestionsQuery: suggestionsQuery, + withURLSuggestion: !noURLSuggestion, + createSuggestionButtonText: createSuggestionButtonText + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-actions" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + type: "submit", + label: Object(external_this_wp_i18n_["__"])('Submit'), + icon: keyboard_return["a" /* default */], + className: "block-editor-link-control__search-submit" + })))), errorMessage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + className: "block-editor-link-control__search-error", + status: "error", + isDismissible: false + }, errorMessage)), value && !isEditingLink && !isCreatingPage && Object(external_this_wp_element_["createElement"])(LinkPreview, { + value: value, + onEditClick: function onEditClick() { return setIsEditingLink(true); - }, - className: "block-editor-link-control__search-item-action" - }, Object(external_this_wp_i18n_["__"])('Edit')), Object(external_this_wp_element_["createElement"])(ViewerSlot, { - fillProps: value - }))), Object(external_this_wp_element_["createElement"])(settings_drawer, { + } + }), Object(external_this_wp_element_["createElement"])(settings_drawer, { value: value, settings: settings, onChange: onChange @@ -34295,14 +37381,14 @@ LinkControl.ViewerFill = ViewerFill; var media_media = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z" + 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" })); /* harmony default export */ var library_media = (media_media); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(203); +var upload = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js /** @@ -34333,24 +37419,22 @@ var MediaUpload = function MediaUpload() { */ function MediaUploadCheck(_ref) { - var hasUploadPermissions = _ref.hasUploadPermissions, - _ref$fallback = _ref.fallback, + var _ref$fallback = _ref.fallback, fallback = _ref$fallback === void 0 ? null : _ref$fallback, children = _ref.children; + var hasUploadPermissions = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return !!getSettings().mediaUpload; + }, []); return hasUploadPermissions ? children : fallback; } /** * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-upload/README.md */ -/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - hasUploadPermissions: !!getSettings().mediaUpload - }; -})(MediaUploadCheck)); +/* harmony default export */ var check = (MediaUploadCheck); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js @@ -34480,6 +37564,7 @@ var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { ref: editMediaButtonRef, "aria-expanded": isOpen, + "aria-haspopup": "true", onClick: onToggle, onKeyDown: openOnArrowDown }, name)); @@ -34554,8 +37639,8 @@ var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { }; }), Object(external_this_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(media_replace_flow_MediaReplaceFlow)); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js -var pencil = __webpack_require__(300); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules +var library_edit = __webpack_require__(483); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer-url.js @@ -34624,7 +37709,7 @@ function LinkViewer(_ref) { urlLabel: urlLabel, className: linkClassName }), onEditLinkClick && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: pencil["a" /* default */], + icon: library_edit["a" /* default */], label: Object(external_this_wp_i18n_["__"])('Edit'), onClick: onEditLinkClick })); @@ -34677,15 +37762,6 @@ function LinkEditor(_ref) { - - - - - -function url_popover_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (url_popover_isNativeReflectConstruct()) { 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 url_popover_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; } } - /** * WordPress dependencies */ @@ -34700,93 +37776,60 @@ function url_popover_isNativeReflectConstruct() { if (typeof Reflect === "undefi -var url_popover_URLPopover = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(URLPopover, _Component); +function URLPopover(_ref) { + var additionalControls = _ref.additionalControls, + children = _ref.children, + renderSettings = _ref.renderSettings, + _ref$position = _ref.position, + position = _ref$position === void 0 ? 'bottom center' : _ref$position, + _ref$focusOnMount = _ref.focusOnMount, + focusOnMount = _ref$focusOnMount === void 0 ? 'firstElement' : _ref$focusOnMount, + popoverProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["additionalControls", "children", "renderSettings", "position", "focusOnMount"]); - var _super = url_popover_createSuper(URLPopover); + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isSettingsExpanded = _useState2[0], + setIsSettingsExpanded = _useState2[1]; - function URLPopover() { - var _this; + var showSettings = !!renderSettings && isSettingsExpanded; - Object(classCallCheck["a" /* default */])(this, URLPopover); + var toggleSettingsVisibility = function toggleSettingsVisibility() { + setIsSettingsExpanded(!isSettingsExpanded); + }; - _this = _super.apply(this, arguments); - _this.toggleSettingsVisibility = _this.toggleSettingsVisibility.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - isSettingsExpanded: false - }; - return _this; - } + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], Object(esm_extends["a" /* default */])({ + className: "block-editor-url-popover", + focusOnMount: focusOnMount, + position: position + }, popoverProps), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__input-container" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__row" + }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-url-popover__settings-toggle", + icon: chevron_down["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Link settings'), + onClick: toggleSettingsVisibility, + "aria-expanded": isSettingsExpanded + })), showSettings && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__row block-editor-url-popover__settings" + }, renderSettings())), additionalControls && !showSettings && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__additional-controls" + }, additionalControls)); +} - Object(createClass["a" /* default */])(URLPopover, [{ - key: "toggleSettingsVisibility", - value: function toggleSettingsVisibility() { - this.setState({ - isSettingsExpanded: !this.state.isSettingsExpanded - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - additionalControls = _this$props.additionalControls, - children = _this$props.children, - renderSettings = _this$props.renderSettings, - _this$props$position = _this$props.position, - position = _this$props$position === void 0 ? 'bottom center' : _this$props$position, - _this$props$focusOnMo = _this$props.focusOnMount, - focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo, - popoverProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["additionalControls", "children", "renderSettings", "position", "focusOnMount"]); - - var isSettingsExpanded = this.state.isSettingsExpanded; - var showSettings = !!renderSettings && isSettingsExpanded; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], Object(esm_extends["a" /* default */])({ - className: "block-editor-url-popover", - focusOnMount: focusOnMount, - position: position - }, popoverProps), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__input-container" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__row" - }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-url-popover__settings-toggle", - icon: chevron_down["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Link settings'), - onClick: this.toggleSettingsVisibility, - "aria-expanded": isSettingsExpanded - })), showSettings && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__row block-editor-url-popover__settings" - }, renderSettings())), additionalControls && !showSettings && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__additional-controls" - }, additionalControls)); - } - }]); - - return URLPopover; -}(external_this_wp_element_["Component"]); - -url_popover_URLPopover.LinkEditor = LinkEditor; -url_popover_URLPopover.LinkViewer = LinkViewer; +URLPopover.LinkEditor = LinkEditor; +URLPopover.LinkViewer = LinkViewer; /** * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-popover/README.md */ -/* harmony default export */ var url_popover = (url_popover_URLPopover); +/* harmony default export */ var url_popover = (URLPopover); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-placeholder/index.js - - - - - - -function media_placeholder_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (media_placeholder_isNativeReflectConstruct()) { 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 media_placeholder_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 */ @@ -34802,7 +37845,6 @@ function media_placeholder_isNativeReflectConstruct() { if (typeof Reflect === " - /** * Internal dependencies */ @@ -34836,406 +37878,325 @@ var media_placeholder_InsertFromURLPopover = function InsertFromURLPopover(_ref) }))); }; -var media_placeholder_MediaPlaceholder = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(MediaPlaceholder, _Component); +function MediaPlaceholder(_ref2) { + var _ref2$value = _ref2.value, + value = _ref2$value === void 0 ? {} : _ref2$value, + allowedTypes = _ref2.allowedTypes, + className = _ref2.className, + icon = _ref2.icon, + _ref2$labels = _ref2.labels, + labels = _ref2$labels === void 0 ? {} : _ref2$labels, + mediaPreview = _ref2.mediaPreview, + notices = _ref2.notices, + isAppender = _ref2.isAppender, + accept = _ref2.accept, + addToGallery = _ref2.addToGallery, + _ref2$multiple = _ref2.multiple, + multiple = _ref2$multiple === void 0 ? false : _ref2$multiple, + dropZoneUIOnly = _ref2.dropZoneUIOnly, + disableDropZone = _ref2.disableDropZone, + disableMediaButtons = _ref2.disableMediaButtons, + onError = _ref2.onError, + onSelect = _ref2.onSelect, + onCancel = _ref2.onCancel, + onSelectURL = _ref2.onSelectURL, + onDoubleClick = _ref2.onDoubleClick, + _ref2$onFilesPreUploa = _ref2.onFilesPreUpload, + onFilesPreUpload = _ref2$onFilesPreUploa === void 0 ? external_this_lodash_["noop"] : _ref2$onFilesPreUploa, + _ref2$onHTMLDrop = _ref2.onHTMLDrop, + onHTMLDrop = _ref2$onHTMLDrop === void 0 ? external_this_lodash_["noop"] : _ref2$onHTMLDrop, + children = _ref2.children; + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; - var _super = media_placeholder_createSuper(MediaPlaceholder); + return getSettings().mediaUpload; + }, []); - function MediaPlaceholder() { - var _this; + var _useState = Object(external_this_wp_element_["useState"])(''), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + src = _useState2[0], + setSrc = _useState2[1]; - Object(classCallCheck["a" /* default */])(this, MediaPlaceholder); + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isURLInputVisible = _useState4[0], + setIsURLInputVisible = _useState4[1]; - _this = _super.apply(this, arguments); - _this.state = { - src: '', - isURLInputVisible: false - }; - _this.onChangeSrc = _this.onChangeSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSubmitSrc = _this.onSubmitSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUpload = _this.onUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFilesUpload = _this.onFilesUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.openURLInput = _this.openURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.closeURLInput = _this.closeURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } + Object(external_this_wp_element_["useEffect"])(function () { + var _value$src; - Object(createClass["a" /* default */])(MediaPlaceholder, [{ - key: "onlyAllowsImages", - value: function onlyAllowsImages() { - var allowedTypes = this.props.allowedTypes; + setSrc((_value$src = value === null || value === void 0 ? void 0 : value.src) !== null && _value$src !== void 0 ? _value$src : ''); + }, [value]); - if (!allowedTypes) { - return false; - } - - return Object(external_this_lodash_["every"])(allowedTypes, function (allowedType) { - return allowedType === 'image' || Object(external_this_lodash_["startsWith"])(allowedType, 'image/'); - }); + var onlyAllowsImages = function onlyAllowsImages() { + if (!allowedTypes || allowedTypes.length === 0) { + return false; } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.setState({ - src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') - }); + + return allowedTypes.every(function (allowedType) { + return allowedType === 'image' || allowedType.startsWith('image/'); + }); + }; + + var onChangeSrc = function onChangeSrc(event) { + setSrc(event.target.value); + }; + + var openURLInput = function openURLInput() { + setIsURLInputVisible(true); + }; + + var closeURLInput = function closeURLInput() { + setIsURLInputVisible(false); + }; + + var onSubmitSrc = function onSubmitSrc(event) { + event.preventDefault(); + + if (src && onSelectURL) { + onSelectURL(src); + closeURLInput(); } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (Object(external_this_lodash_["get"])(prevProps.value, ['src'], '') !== Object(external_this_lodash_["get"])(this.props.value, ['src'], '')) { - this.setState({ - src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') - }); - } - } - }, { - key: "onChangeSrc", - value: function onChangeSrc(event) { - this.setState({ - src: event.target.value - }); - } - }, { - key: "onSubmitSrc", - value: function onSubmitSrc(event) { - event.preventDefault(); + }; - if (this.state.src && this.props.onSelectURL) { - this.props.onSelectURL(this.state.src); - this.closeURLInput(); - } - } - }, { - key: "onUpload", - value: function onUpload(event) { - this.onFilesUpload(event.target.files); - } - }, { - key: "onFilesUpload", - value: function onFilesUpload(files) { - var _this2 = this; + var onFilesUpload = function onFilesUpload(files) { + onFilesPreUpload(files); + var setMedia; - var _this$props = this.props, - addToGallery = _this$props.addToGallery, - allowedTypes = _this$props.allowedTypes, - mediaUpload = _this$props.mediaUpload, - multiple = _this$props.multiple, - onError = _this$props.onError, - onSelect = _this$props.onSelect, - _this$props$onFilesPr = _this$props.onFilesPreUpload, - onFilesPreUpload = _this$props$onFilesPr === void 0 ? external_this_lodash_["noop"] : _this$props$onFilesPr; - onFilesPreUpload(files); - var setMedia; + if (multiple) { + if (addToGallery) { + // Since the setMedia function runs multiple times per upload group + // and is passed newMedia containing every item in its group each time, we must + // filter out whatever this upload group had previously returned to the + // gallery before adding and returning the image array with replacement newMedia + // values. + // Define an array to store urls from newMedia between subsequent function calls. + var lastMediaPassed = []; - if (multiple) { - if (addToGallery) { - // To allow changes to a gallery to be made while uploads are in progress - // (including trigging multiple upload groups and removing already in place images), - // we must be able to add newMedia based on the current value of the Gallery - // whenever the setMedia function runs (not destructuring 'value' from props). - // Additionally, since the setMedia function runs multiple times per upload group - // and is passed newMedia containing every item in its group each time, we must - // also filter out whatever this upload group had previously returned to the - // gallery before adding and returning the image array with replacement newMedia - // values. - // Define an array to store urls from newMedia between subsequent function calls. - var lastMediaPassed = []; - - setMedia = function setMedia(newMedia) { - // Remove any images this upload group is responsible for (lastMediaPassed). - // Their replacements are contained in newMedia. - var filteredMedia = (_this2.props.value || []).filter(function (item) { - // If Item has id, only remove it if lastMediaPassed has an item with that id. - if (item.id) { - return !lastMediaPassed.some( // Be sure to convert to number for comparison. - function (_ref2) { - var id = _ref2.id; - return Number(id) === Number(item.id); - }); - } // Compare transient images via .includes since gallery may append extra info onto the url. - - - return !lastMediaPassed.some(function (_ref3) { - var urlSlug = _ref3.urlSlug; - return item.url.includes(urlSlug); + setMedia = function setMedia(newMedia) { + // Remove any images this upload group is responsible for (lastMediaPassed). + // Their replacements are contained in newMedia. + var filteredMedia = (value !== null && value !== void 0 ? value : []).filter(function (item) { + // If Item has id, only remove it if lastMediaPassed has an item with that id. + if (item.id) { + return !lastMediaPassed.some( // Be sure to convert to number for comparison. + function (_ref3) { + var id = _ref3.id; + return Number(id) === Number(item.id); }); - }); // Return the filtered media array along with newMedia. + } // Compare transient images via .includes since gallery may append extra info onto the url. - onSelect(filteredMedia.concat(newMedia)); // Reset lastMediaPassed and set it with ids and urls from newMedia. - lastMediaPassed = newMedia.map(function (media) { - // Add everything up to '.fileType' to compare via .includes. - var cutOffIndex = media.url.lastIndexOf('.'); - var urlSlug = media.url.slice(0, cutOffIndex); - return { - id: media.id, - urlSlug: urlSlug - }; + return !lastMediaPassed.some(function (_ref4) { + var urlSlug = _ref4.urlSlug; + return item.url.includes(urlSlug); }); - }; - } else { - setMedia = onSelect; - } - } else { - setMedia = function setMedia(_ref4) { - var _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 1), - media = _ref5[0]; + }); // Return the filtered media array along with newMedia. - return onSelect(media); + onSelect(filteredMedia.concat(newMedia)); // Reset lastMediaPassed and set it with ids and urls from newMedia. + + lastMediaPassed = newMedia.map(function (media) { + // Add everything up to '.fileType' to compare via .includes. + var cutOffIndex = media.url.lastIndexOf('.'); + var urlSlug = media.url.slice(0, cutOffIndex); + return { + id: media.id, + urlSlug: urlSlug + }; + }); }; + } else { + setMedia = onSelect; } + } else { + setMedia = function setMedia(_ref5) { + var _ref6 = Object(slicedToArray["a" /* default */])(_ref5, 1), + media = _ref6[0]; - mediaUpload({ - allowedTypes: allowedTypes, - filesList: files, - onFileChange: setMedia, - onError: onError - }); + return onSelect(media); + }; } - }, { - key: "openURLInput", - value: function openURLInput() { - this.setState({ - isURLInputVisible: true - }); + + mediaUpload({ + allowedTypes: allowedTypes, + filesList: files, + onFileChange: setMedia, + onError: onError + }); + }; + + var onUpload = function onUpload(event) { + onFilesUpload(event.target.files); + }; + + var renderPlaceholder = function renderPlaceholder(content, onClick) { + var instructions = labels.instructions, + title = labels.title; + + if (!mediaUpload && !onSelectURL) { + instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); } - }, { - key: "closeURLInput", - value: function closeURLInput() { - this.setState({ - isURLInputVisible: false - }); - } - }, { - key: "renderPlaceholder", - value: function renderPlaceholder(content, onClick) { - var _this$props2 = this.props, - _this$props2$allowedT = _this$props2.allowedTypes, - allowedTypes = _this$props2$allowedT === void 0 ? [] : _this$props2$allowedT, - className = _this$props2.className, - icon = _this$props2.icon, - isAppender = _this$props2.isAppender, - _this$props2$labels = _this$props2.labels, - labels = _this$props2$labels === void 0 ? {} : _this$props2$labels, - onDoubleClick = _this$props2.onDoubleClick, - mediaPreview = _this$props2.mediaPreview, - notices = _this$props2.notices, - onSelectURL = _this$props2.onSelectURL, - mediaUpload = _this$props2.mediaUpload, - children = _this$props2.children; - var instructions = labels.instructions; - var title = labels.title; - if (!mediaUpload && !onSelectURL) { - instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); - } + if (instructions === undefined || title === undefined) { + var typesAllowed = allowedTypes !== null && allowedTypes !== void 0 ? allowedTypes : []; - if (instructions === undefined || title === undefined) { - var isOneType = 1 === allowedTypes.length; - var isAudio = isOneType && 'audio' === allowedTypes[0]; - var isImage = isOneType && 'image' === allowedTypes[0]; - var isVideo = isOneType && 'video' === allowedTypes[0]; + var _typesAllowed = Object(slicedToArray["a" /* default */])(typesAllowed, 1), + firstAllowedType = _typesAllowed[0]; - if (instructions === undefined && mediaUpload) { - instructions = Object(external_this_wp_i18n_["__"])('Upload a media file or pick one from your media library.'); + var isOneType = 1 === typesAllowed.length; + var isAudio = isOneType && 'audio' === firstAllowedType; + var isImage = isOneType && 'image' === firstAllowedType; + var isVideo = isOneType && 'video' === firstAllowedType; - if (isAudio) { - instructions = Object(external_this_wp_i18n_["__"])('Upload an audio file, pick one from your media library, or add one with a URL.'); - } else if (isImage) { - instructions = Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.'); - } else if (isVideo) { - instructions = Object(external_this_wp_i18n_["__"])('Upload a video file, pick one from your media library, or add one with a URL.'); - } - } + if (instructions === undefined && mediaUpload) { + instructions = Object(external_this_wp_i18n_["__"])('Upload a media file or pick one from your media library.'); - if (title === undefined) { - title = Object(external_this_wp_i18n_["__"])('Media'); - - if (isAudio) { - title = Object(external_this_wp_i18n_["__"])('Audio'); - } else if (isImage) { - title = Object(external_this_wp_i18n_["__"])('Image'); - } else if (isVideo) { - title = Object(external_this_wp_i18n_["__"])('Video'); - } + if (isAudio) { + instructions = Object(external_this_wp_i18n_["__"])('Upload an audio file, pick one from your media library, or add one with a URL.'); + } else if (isImage) { + instructions = Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.'); + } else if (isVideo) { + instructions = Object(external_this_wp_i18n_["__"])('Upload a video file, pick one from your media library, or add one with a URL.'); } } - var placeholderClassName = classnames_default()('block-editor-media-placeholder', className, { - 'is-appender': isAppender - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: icon, - label: title, - instructions: instructions, - className: placeholderClassName, - notices: notices, - onClick: onClick, - onDoubleClick: onDoubleClick, - preview: mediaPreview - }, content, children); - } - }, { - key: "renderDropZone", - value: function renderDropZone() { - var _this$props3 = this.props, - disableDropZone = _this$props3.disableDropZone, - _this$props3$onHTMLDr = _this$props3.onHTMLDrop, - onHTMLDrop = _this$props3$onHTMLDr === void 0 ? external_this_lodash_["noop"] : _this$props3$onHTMLDr; + if (title === undefined) { + title = Object(external_this_wp_i18n_["__"])('Media'); - if (disableDropZone) { - return null; + if (isAudio) { + title = Object(external_this_wp_i18n_["__"])('Audio'); + } else if (isImage) { + title = Object(external_this_wp_i18n_["__"])('Image'); + } else if (isVideo) { + title = Object(external_this_wp_i18n_["__"])('Video'); + } } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { - onFilesDrop: this.onFilesUpload, - onHTMLDrop: onHTMLDrop - }); } - }, { - key: "renderCancelLink", - value: function renderCancelLink() { - var onCancel = this.props.onCancel; - return onCancel && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-media-placeholder__cancel-button", - title: Object(external_this_wp_i18n_["__"])('Cancel'), - isLink: true, - onClick: onCancel - }, Object(external_this_wp_i18n_["__"])('Cancel')); - } - }, { - key: "renderUrlSelectionUI", - value: function renderUrlSelectionUI() { - var onSelectURL = this.props.onSelectURL; - if (!onSelectURL) { - return null; + var placeholderClassName = classnames_default()('block-editor-media-placeholder', className, { + 'is-appender': isAppender + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: icon, + label: title, + instructions: instructions, + className: placeholderClassName, + notices: notices, + onClick: onClick, + onDoubleClick: onDoubleClick, + preview: mediaPreview + }, content, children); + }; + + var renderDropZone = function renderDropZone() { + if (disableDropZone) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { + onFilesDrop: onFilesUpload, + onHTMLDrop: onHTMLDrop + }); + }; + + var renderCancelLink = function renderCancelLink() { + return onCancel && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-media-placeholder__cancel-button", + title: Object(external_this_wp_i18n_["__"])('Cancel'), + isLink: true, + onClick: onCancel + }, Object(external_this_wp_i18n_["__"])('Cancel')); + }; + + var renderUrlSelectionUI = function renderUrlSelectionUI() { + return onSelectURL && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-media-placeholder__url-input-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-media-placeholder__button", + onClick: openURLInput, + isPressed: isURLInputVisible, + isTertiary: true + }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { + src: src, + onChange: onChangeSrc, + onSubmit: onSubmitSrc, + onClose: closeURLInput + })); + }; + + var renderMediaUploadChecked = function renderMediaUploadChecked() { + var mediaLibraryButton = Object(external_this_wp_element_["createElement"])(media_upload, { + addToGallery: addToGallery, + gallery: multiple && onlyAllowsImages(), + multiple: multiple, + onSelect: onSelect, + allowedTypes: allowedTypes, + value: Array.isArray(value) ? value.map(function (_ref7) { + var id = _ref7.id; + return id; + }) : value.id, + render: function render(_ref8) { + var open = _ref8.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isTertiary: true, + onClick: function onClick(event) { + event.stopPropagation(); + open(); + } + }, Object(external_this_wp_i18n_["__"])('Media Library')); } + }); - var _this$state = this.state, - isURLInputVisible = _this$state.isURLInputVisible, - src = _this$state.src; - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-media-placeholder__url-input-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-media-placeholder__button", - onClick: this.openURLInput, - isPressed: isURLInputVisible, - isTertiary: true - }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { - src: src, - onChange: this.onChangeSrc, - onSubmit: this.onSubmitSrc, - onClose: this.closeURLInput + if (mediaUpload && isAppender) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + onChange: onUpload, + accept: accept, + multiple: multiple, + render: function render(_ref9) { + var openFileDialog = _ref9.openFileDialog; + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isPrimary: true, + className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button') + }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, renderUrlSelectionUI(), renderCancelLink()); + return renderPlaceholder(content, openFileDialog); + } })); } - }, { - key: "renderMediaUploadChecked", - value: function renderMediaUploadChecked() { - var _this3 = this; - var _this$props4 = this.props, - accept = _this$props4.accept, - addToGallery = _this$props4.addToGallery, - _this$props4$allowedT = _this$props4.allowedTypes, - allowedTypes = _this$props4$allowedT === void 0 ? [] : _this$props4$allowedT, - isAppender = _this$props4.isAppender, - mediaUpload = _this$props4.mediaUpload, - _this$props4$multiple = _this$props4.multiple, - multiple = _this$props4$multiple === void 0 ? false : _this$props4$multiple, - onSelect = _this$props4.onSelect, - _this$props4$value = _this$props4.value, - value = _this$props4$value === void 0 ? {} : _this$props4$value; - var mediaLibraryButton = Object(external_this_wp_element_["createElement"])(media_upload, { - addToGallery: addToGallery, - gallery: multiple && this.onlyAllowsImages(), - multiple: multiple, - onSelect: onSelect, - allowedTypes: allowedTypes, - value: Object(external_this_lodash_["isArray"])(value) ? value.map(function (_ref6) { - var id = _ref6.id; - return id; - }) : value.id, - render: function render(_ref7) { - var open = _ref7.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isTertiary: true, - onClick: function onClick(event) { - event.stopPropagation(); - open(); - } - }, Object(external_this_wp_i18n_["__"])('Media Library')); - } - }); - - if (mediaUpload && isAppender) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - onChange: this.onUpload, - accept: accept, - multiple: multiple, - render: function render(_ref8) { - var openFileDialog = _ref8.openFileDialog; - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isPrimary: true, - className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button') - }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, _this3.renderUrlSelectionUI(), _this3.renderCancelLink()); - return _this3.renderPlaceholder(content, openFileDialog); - } - })); - } - - if (mediaUpload) { - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - isPrimary: true, - className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), - onChange: this.onUpload, - accept: accept, - multiple: multiple - }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, this.renderUrlSelectionUI(), this.renderCancelLink()); - return this.renderPlaceholder(content); - } - - return this.renderPlaceholder(mediaLibraryButton); + if (mediaUpload) { + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + isPrimary: true, + className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), + onChange: onUpload, + accept: accept, + multiple: multiple + }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, renderUrlSelectionUI(), renderCancelLink()); + return renderPlaceholder(content); } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - disableMediaButtons = _this$props5.disableMediaButtons, - dropZoneUIOnly = _this$props5.dropZoneUIOnly; - if (dropZoneUIOnly || disableMediaButtons) { - if (dropZoneUIOnly) { - external_this_wp_deprecated_default()('wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop', { - alternative: 'disableMediaButtons' - }); - } - - return Object(external_this_wp_element_["createElement"])(check, null, this.renderDropZone()); - } - - return Object(external_this_wp_element_["createElement"])(check, { - fallback: this.renderPlaceholder(this.renderUrlSelectionUI()) - }, this.renderMediaUploadChecked()); - } - }]); - - return MediaPlaceholder; -}(external_this_wp_element_["Component"]); -var media_placeholder_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - mediaUpload: getSettings().mediaUpload + return renderPlaceholder(mediaLibraryButton); }; -}); + + if (dropZoneUIOnly || disableMediaButtons) { + if (dropZoneUIOnly) { + external_this_wp_deprecated_default()('wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop', { + alternative: 'disableMediaButtons' + }); + } + + return Object(external_this_wp_element_["createElement"])(check, null, renderDropZone()); + } + + return Object(external_this_wp_element_["createElement"])(check, { + fallback: renderPlaceholder(renderUrlSelectionUI()) + }, renderMediaUploadChecked()); +} /** * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-placeholder/README.md */ -/* harmony default export */ var media_placeholder = (Object(external_this_wp_compose_["compose"])(media_placeholder_applyWithSelect, Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder'))(media_placeholder_MediaPlaceholder)); +/* harmony default export */ var media_placeholder = (Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder')(MediaPlaceholder)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editable-text/index.js @@ -35510,7 +38471,7 @@ function RichTextToolbarButton(_ref) { -function input_event_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (input_event_isNativeReflectConstruct()) { 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 input_event_createSuper(Derived) { var hasNativeReflectConstruct = input_event_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 input_event_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; } } @@ -35560,9 +38521,6 @@ var input_event_unstableRichTextInputEvent = /*#__PURE__*/function (_Component) return __unstableRichTextInputEvent; }(external_this_wp_element_["Component"]); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js -var library_edit = __webpack_require__(301); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/tool-selector/index.js @@ -35604,15 +38562,18 @@ function ToolSelector(props, ref) { ref: ref, icon: isNavigationTool ? selectIcon : library_edit["a" /* default */], "aria-expanded": isOpen, - onClick: onToggle, - label: Object(external_this_wp_i18n_["__"])('Tools') + "aria-haspopup": "true", + onClick: onToggle + /* translators: button label text should, if possible, be under 16 characters. */ + , + label: Object(external_this_wp_i18n_["__"])('Modes') })); }, position: "bottom right", renderContent: function renderContent() { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { role: "menu", - "aria-label": Object(external_this_wp_i18n_["__"])('Tools') + "aria-label": Object(external_this_wp_i18n_["__"])('Modes') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItemsChoice"], { value: isNavigationTool ? 'select' : 'edit', onSelect: onSwitchMode, @@ -35635,7 +38596,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__(179); +var library_link = __webpack_require__(184); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js @@ -35661,7 +38622,7 @@ var arrowLeft = Object(external_this_wp_element_["createElement"])(external_this -function button_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (button_isNativeReflectConstruct()) { 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 button_createSuper(Derived) { var hasNativeReflectConstruct = button_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 button_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; } } @@ -35757,7 +38718,7 @@ var button_URLInputButton = /*#__PURE__*/function (_Component) { /* harmony default export */ var url_input_button = (button_URLInputButton); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(153); +var library_close = __webpack_require__(157); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/image-url-input-ui.js @@ -36059,7 +39020,7 @@ var image_url_input_ui_ImageURLInputUI = function ImageURLInputUI(_ref) { // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var library_check = __webpack_require__(154); +var library_check = __webpack_require__(158); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preview-options/index.js @@ -36075,6 +39036,7 @@ var library_check = __webpack_require__(154); + function PreviewOptions(_ref) { var children = _ref.children, className = _ref.className, @@ -36082,50 +39044,50 @@ function PreviewOptions(_ref) { isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled, deviceType = _ref.deviceType, setDeviceType = _ref.setDeviceType; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + var isMobile = Object(external_this_wp_compose_["useViewportMatch"])('small', '<'); + if (isMobile) return null; + var popoverProps = { + className: classnames_default()(className, 'block-editor-post-preview__dropdown-content'), + position: 'bottom left' + }; + var toggleProps = { + isTertiary: true, + className: 'block-editor-post-preview__button-toggle', + disabled: !isEnabled, + + /* translators: button label text should, if possible, be under 16 characters. */ + children: Object(external_this_wp_i18n_["__"])('Preview') + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { className: "block-editor-post-preview__dropdown", - contentClassName: classnames_default()(className, 'block-editor-post-preview__dropdown-content'), - popoverProps: { - role: 'menu' - }, - position: "bottom left", - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isTertiary: true, - onClick: onToggle, - className: "block-editor-post-preview__button-toggle", - "aria-expanded": isOpen, - disabled: !isEnabled - }, Object(external_this_wp_i18n_["__"])('Preview')); - }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "block-editor-post-preview__button-resize", - onClick: function onClick() { - return setDeviceType('Desktop'); - }, - icon: deviceType === 'Desktop' && library_check["a" /* default */] - }, Object(external_this_wp_i18n_["__"])('Desktop')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "block-editor-post-preview__button-resize", - onClick: function onClick() { - return setDeviceType('Tablet'); - }, - icon: deviceType === 'Tablet' && library_check["a" /* default */] - }, Object(external_this_wp_i18n_["__"])('Tablet')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "block-editor-post-preview__button-resize", - onClick: function onClick() { - return setDeviceType('Mobile'); - }, - icon: deviceType === 'Mobile' && library_check["a" /* default */] - }, Object(external_this_wp_i18n_["__"])('Mobile'))), children); - } + popoverProps: popoverProps, + toggleProps: toggleProps, + icon: null + }, function () { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Desktop'); + }, + icon: deviceType === 'Desktop' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Desktop')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Tablet'); + }, + icon: deviceType === 'Tablet' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Tablet')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Mobile'); + }, + icon: deviceType === 'Mobile' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Mobile'))), children); }); } // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js -var css_mediaquery = __webpack_require__(264); +var css_mediaquery = __webpack_require__(278); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-simulated-media-query/index.js /** @@ -36378,7 +39340,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__(147); +var external_this_wp_wordcount_ = __webpack_require__(127); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js @@ -36512,13 +39474,15 @@ var block_inspector_BlockInspector = function BlockInspector(_ref) { selectedBlockClientId = _ref.selectedBlockClientId, selectedBlockName = _ref.selectedBlockName, _ref$showNoBlockSelec = _ref.showNoBlockSelectedMessage, - showNoBlockSelectedMessage = _ref$showNoBlockSelec === void 0 ? true : _ref$showNoBlockSelec; + showNoBlockSelectedMessage = _ref$showNoBlockSelec === void 0 ? true : _ref$showNoBlockSelec, + _ref$bubblesVirtually = _ref.bubblesVirtually, + bubblesVirtually = _ref$bubblesVirtually === void 0 ? true : _ref$bubblesVirtually; if (count > 1) { return Object(external_this_wp_element_["createElement"])("div", { className: "block-editor-block-inspector" }, Object(external_this_wp_element_["createElement"])(multi_selection_inspector, null), Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, { - bubblesVirtually: true + bubblesVirtually: bubblesVirtually })); } @@ -36549,16 +39513,18 @@ var block_inspector_BlockInspector = function BlockInspector(_ref) { }), Object(external_this_wp_blocks_["hasBlockSupport"])(blockType.name, 'defaultStylePicker', true) && Object(external_this_wp_element_["createElement"])(DefaultStylePicker, { blockName: blockType.name }))), Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, { - bubblesVirtually: true + bubblesVirtually: bubblesVirtually }), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(block_inspector_AdvancedControls, { - slotName: inspector_advanced_controls.slotName + slotName: inspector_advanced_controls.slotName, + bubblesVirtually: bubblesVirtually })), Object(external_this_wp_element_["createElement"])(skip_to_selected_block, { key: "back" })); }; var block_inspector_AdvancedControls = function AdvancedControls(_ref2) { - var slotName = _ref2.slotName; + var slotName = _ref2.slotName, + bubblesVirtually = _ref2.bubblesVirtually; var slot = Object(external_this_wp_components_["__experimentalUseSlot"])(slotName); var hasFills = Boolean(slot.fills && slot.fills.length); @@ -36571,7 +39537,7 @@ var block_inspector_AdvancedControls = function AdvancedControls(_ref2) { title: Object(external_this_wp_i18n_["__"])('Advanced'), initialOpen: false }, Object(external_this_wp_element_["createElement"])(inspector_advanced_controls.Slot, { - bubblesVirtually: true + bubblesVirtually: bubblesVirtually })); }; @@ -36607,7 +39573,7 @@ var block_inspector_AdvancedControls = function AdvancedControls(_ref2) { -function block_selection_clearer_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_selection_clearer_isNativeReflectConstruct()) { 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 block_selection_clearer_createSuper(Derived) { var hasNativeReflectConstruct = block_selection_clearer_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 block_selection_clearer_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; } } @@ -36698,7 +39664,7 @@ var block_selection_clearer_BlockSelectionClearer = /*#__PURE__*/function (_Comp })])(block_selection_clearer_BlockSelectionClearer)); // EXTERNAL MODULE: ./node_modules/traverse/index.js -var traverse = __webpack_require__(265); +var traverse = __webpack_require__(279); var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/parse.js @@ -37398,7 +40364,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__(164); +var inherits_browser = __webpack_require__(168); 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 @@ -37957,7 +40923,7 @@ function getResourcePath(str, baseURL) { function processURL(baseURL) { return function (meta) { - return url_rewrite_objectSpread({}, meta, { + return url_rewrite_objectSpread(url_rewrite_objectSpread({}, meta), {}, { newUrl: 'url(' + meta.before + meta.quote + getResourcePath(meta.value, baseURL) + meta.quote + meta.after + ')' }); }; @@ -38013,7 +40979,7 @@ var rewrite = function rewrite(rootURL) { return function (node) { if (node.type === 'declaration') { var updatedURLs = getURLs(node.value).map(processURL(rootURL)); - return url_rewrite_objectSpread({}, node, { + return url_rewrite_objectSpread(url_rewrite_objectSpread({}, node), {}, { value: replaceURLs(node.value, updatedURLs) }); } @@ -38055,7 +41021,7 @@ var wrap = function wrap(namespace) { }; if (node.type === 'rule') { - return wrap_objectSpread({}, node, { + return wrap_objectSpread(wrap_objectSpread({}, node), {}, { selectors: node.selectors.map(updateSelector) }); } @@ -38313,7 +41279,7 @@ function KeyboardShortcuts() { Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/unselect', Object(external_this_wp_element_["useCallback"])(function (event) { event.preventDefault(); clearSelectedBlock(); - window.getSelection().removeAllRanges(); + event.target.ownerDocument.defaultView.getSelection().removeAllRanges(); }, [clientIds, clearSelectedBlock]), { isDisabled: clientIds.length < 2 }); @@ -38557,7 +41523,8 @@ function ObserveTyping(_ref) { function toggleEventBindings(isBound) { var bindFn = isBound ? 'addEventListener' : 'removeEventListener'; - document[bindFn]('selectionchange', stopTypingOnSelectionUncollapse); + typingContainer.current.ownerDocument[bindFn]('selectionchange', stopTypingOnSelectionUncollapse); + typingContainer.current.ownerDocument[bindFn]('mousemove', stopTypingOnMouseMove); document[bindFn]('mousemove', stopTypingOnMouseMove); } /** @@ -38593,8 +41560,9 @@ function ObserveTyping(_ref) { */ - function stopTypingOnSelectionUncollapse() { - var selection = window.getSelection(); + function stopTypingOnSelectionUncollapse(_ref2) { + var target = _ref2.target; + var selection = target.defaultView.getSelection(); var isCollapsed = selection.rangeCount > 0 && selection.getRangeAt(0).collapsed; if (!isCollapsed) { @@ -38698,7 +41666,7 @@ function PreserveScrollInReorder() { -function typewriter_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (typewriter_isNativeReflectConstruct()) { 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 typewriter_createSuper(Derived) { var hasNativeReflectConstruct = typewriter_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 typewriter_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; } } @@ -38734,6 +41702,8 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { _this.computeCaretRect = _this.computeCaretRect.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onScrollResize = _this.onScrollResize.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.isSelectionEligibleForScroll = _this.isSelectionEligibleForScroll.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getDocument = _this.getDocument.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getWindow = _this.getWindow.bind(Object(assertThisInitialized["a" /* default */])(_this)); return _this; } @@ -38742,24 +41712,34 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { value: function componentDidMount() { // When the user scrolls or resizes, the scroll position should be // reset. - window.addEventListener('scroll', this.onScrollResize, true); - window.addEventListener('resize', this.onScrollResize, true); + this.getWindow().addEventListener('scroll', this.onScrollResize, true); + this.getWindow().addEventListener('resize', this.onScrollResize, true); } }, { key: "componentWillUnmount", value: function componentWillUnmount() { - window.removeEventListener('scroll', this.onScrollResize, true); - window.removeEventListener('resize', this.onScrollResize, true); - document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + this.getWindow().removeEventListener('scroll', this.onScrollResize, true); + this.getWindow().removeEventListener('resize', this.onScrollResize, true); + this.getDocument().removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); if (this.onScrollResize.rafId) { - window.cancelAnimationFrame(this.onScrollResize.rafId); + this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId); } if (this.onKeyDown.rafId) { - window.cancelAnimationFrame(this.onKeyDown.rafId); + this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId); } } + }, { + key: "getDocument", + value: function getDocument() { + return this.ref.current.ownerDocument; + } + }, { + key: "getWindow", + value: function getWindow() { + return this.getDocument().defaultView; + } /** * Resets the scroll position to be maintained. */ @@ -38768,7 +41748,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { key: "computeCaretRect", value: function computeCaretRect() { if (this.isSelectionEligibleForScroll()) { - this.caretRect = Object(external_this_wp_dom_["computeCaretRect"])(); + this.caretRect = Object(external_this_wp_dom_["computeCaretRect"])(this.getWindow()); } } /** @@ -38779,7 +41759,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { }, { key: "computeCaretRectOnSelectionChange", value: function computeCaretRectOnSelectionChange() { - document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + this.getDocument().removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); this.computeCaretRect(); } }, { @@ -38791,7 +41771,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { return; } - this.onScrollResize.rafId = window.requestAnimationFrame(function () { + this.onScrollResize.rafId = this.getWindow().requestAnimationFrame(function () { _this2.computeCaretRect(); delete _this2.onScrollResize.rafId; @@ -38807,14 +41787,14 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { }, { key: "isSelectionEligibleForScroll", value: function isSelectionEligibleForScroll() { - return this.props.selectedBlockClientId && this.ref.current.contains(document.activeElement) && document.activeElement.isContentEditable; + return this.props.selectedBlockClientId && this.ref.current.contains(this.getDocument().activeElement) && this.getDocument().activeElement.isContentEditable; } }, { key: "isLastEditableNode", value: function isLastEditableNode() { var editableNodes = this.ref.current.querySelectorAll('[contenteditable="true"]'); var lastEditableNode = editableNodes[editableNodes.length - 1]; - return lastEditableNode === document.activeElement; + return lastEditableNode === this.getDocument().activeElement; } /** * Maintains the scroll position after a selection change caused by a @@ -38832,7 +41812,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { return; } - var currentCaretRect = Object(external_this_wp_dom_["computeCaretRect"])(); + var currentCaretRect = Object(external_this_wp_dom_["computeCaretRect"])(this.getWindow()); if (!currentCaretRect) { return; @@ -38866,10 +41846,10 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { return; } - var windowScroll = scrollContainer === document.body; - var scrollY = windowScroll ? window.scrollY : scrollContainer.scrollTop; + var windowScroll = scrollContainer === this.getDocument().body; + var scrollY = windowScroll ? this.getWindow().scrollY : scrollContainer.scrollTop; var scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top; - var relativeScrollPosition = windowScroll ? this.caretRect.top / window.innerHeight : (this.caretRect.top - scrollContainerY) / (window.innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element + var relativeScrollPosition = windowScroll ? this.caretRect.top / this.getWindow().innerHeight : (this.caretRect.top - scrollContainerY) / (this.getWindow().innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element // is the last one, and the caret is positioned within the initial // trigger percentage of the page, do not scroll the page. // The typewriter effect should not kick in until an empty page has been @@ -38882,7 +41862,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { return; } - var scrollContainerHeight = windowScroll ? window.innerHeight : scrollContainer.clientHeight; // Abort if the target scroll position would scroll the caret out of + var scrollContainerHeight = windowScroll ? this.getWindow().innerHeight : scrollContainer.clientHeight; // Abort if the target scroll position would scroll the caret out of // view. if ( // The caret is under the lower fold. @@ -38894,7 +41874,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { } if (windowScroll) { - window.scrollBy(0, diff); + this.getWindow().scrollBy(0, diff); } else { scrollContainer.scrollTop += diff; } @@ -38907,7 +41887,7 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { }, { key: "addSelectionChangeListener", value: function addSelectionChangeListener() { - document.addEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + this.getDocument().addEventListener('selectionchange', this.computeCaretRectOnSelectionChange); } }, { key: "onKeyDown", @@ -38917,11 +41897,11 @@ var typewriter_Typewriter = /*#__PURE__*/function (_Component) { event.persist(); // Ensure the any remaining request is cancelled. if (this.onKeyDown.rafId) { - window.cancelAnimationFrame(this.onKeyDown.rafId); + this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId); } // Use an animation frame for a smooth result. - this.onKeyDown.rafId = window.requestAnimationFrame(function () { + this.onKeyDown.rafId = this.getWindow().requestAnimationFrame(function () { _this3.maintainCaretPosition(event); delete _this3.onKeyDown.rafId; @@ -38975,58 +41955,6 @@ var TypewriterOrIEBypass = isIE ? function (props) { /* harmony default export */ var typewriter = (TypewriterOrIEBypass); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-editor-feature/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * Hook that retrieves the setting for the given editor feature. - * It works with nested objects using by finding the value at path. - * - * @param {string} featurePath The path to the feature. - * - * @return {any} Returns the value defined for the setting. - * - * @example - * ```js - * const isEnabled = useEditorFeature( 'typography.dropCap' ); - * ``` - */ - -function useEditorFeature(featurePath) { - var _useBlockEditContext = useBlockEditContext(), - blockName = _useBlockEditContext.name; - - var path = "__experimentalFeatures.".concat(featurePath); - var setting = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/blocks'), - getBlockSupport = _select.getBlockSupport; - - var blockSupportValue = getBlockSupport(blockName, path); - - if (blockSupportValue !== undefined) { - return blockSupportValue; - } - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - return Object(external_this_lodash_["get"])(getSettings(), path); - }, [blockName, path]); - return setting; -} - // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js /* * Block Creation Components @@ -39122,9 +42050,68 @@ function useEditorFeature(featurePath) { +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/theme.js +/** + * Internal dependencies + */ + +/** + * Given an array of theme colors checks colors for validity + * + * @param {Array} colors The array of theme colors + * + * @return {Array} The array of valid theme colors or the default colors + */ + +function validateThemeColors(colors) { + if (colors === undefined) { + colors = SETTINGS_DEFAULTS.colors; + } else { + var validColors = colors.filter(function (c) { + return c.color; + }); + + if (validColors.length === 0) { + colors = SETTINGS_DEFAULTS.colors; + } else if (validColors.length < colors.length) { + // Filter out invalid colors + colors = validColors; + } + } + + return colors; +} +/** + * Given an array of theme gradients checks gradients for validity + * + * @param {Array} gradients The array of theme gradients + * + * @return {Array} The array of valid theme gradients or the default gradients + */ + +function validateThemeGradients(gradients) { + if (gradients === undefined) { + gradients = SETTINGS_DEFAULTS.gradients; + } else { + var validGradients = gradients.filter(function (c) { + return c.gradient; + }); + + if (validGradients.length === 0) { + gradients = SETTINGS_DEFAULTS.gradients; + } else if (validGradients.length < gradients.length) { + // Filter out invalid gradients + gradients = validGradients; + } + } + + return gradients; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/index.js + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js /** * WordPress dependencies @@ -39146,5 +42133,71 @@ function useEditorFeature(featurePath) { +/***/ }), +/* 452 */, +/* 453 */, +/* 454 */, +/* 455 */, +/* 456 */, +/* 457 */, +/* 458 */, +/* 459 */, +/* 460 */, +/* 461 */, +/* 462 */, +/* 463 */, +/* 464 */, +/* 465 */, +/* 466 */, +/* 467 */, +/* 468 */, +/* 469 */, +/* 470 */, +/* 471 */, +/* 472 */, +/* 473 */, +/* 474 */, +/* 475 */, +/* 476 */, +/* 477 */, +/* 478 */, +/* 479 */, +/* 480 */, +/* 481 */, +/* 482 */, +/* 483 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js + + +/** + * WordPress dependencies + */ + +var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" +})); +/* harmony default export */ var library_pencil = (pencil); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js +/** + * Internal dependencies + */ + +/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); + + /***/ }) /******/ ]); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index d4f9f42e91..f8618052de 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=438)}([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){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,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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),c=n(29);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,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";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r=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,b=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,d=e.keys,f=void 0===d?(null==l?void 0:l.__keys)||[]:d,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),b=u[0],d=u[1],p=l(b,Object(o.a)({ref:t},d)),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,b)),v.__keys=f,v.unstable_propsAreEqual=b||a.a,v}},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,n){"use strict";n.d(t,"a",(function(){return d})),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(17),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 b(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function d(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),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:b,format:e.format||d,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(d(r));return c}function B(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(d({h:r,s:o,v:c})),c=(c+a)%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,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=d(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 d(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)}},d.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 d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),c=n/100;return d({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})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,c=d.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},d.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=d(t[s]));return d.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var x=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"},P=d.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 R(e){return s(1,u(0,e))}function D(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 D(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=d:void 0===(r=function(){return d}.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(17),o=n(49),c=n(48),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,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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=n(70),u=(n(80),n(46)),b=n(59),d=n(69),f=n(72),p=n(57),m=n(71);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(d.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,d=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"},d):d,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(b.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){!function(){e.exports=this.wp.htmlEntities}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(74),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(106),n(13)},function(e,t){!function(){e.exports=this.wp.viewport}()},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 b=i[e.key];if("function"==typeof b&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void b(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 b}));var r=n(17),o=n(49),c=n(48),i=n(13),a=n(70),l=(n(80),n(46)),s=n(53),u=n(73);var b=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),b=u[0],d=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&&d(!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;b&&r&&(d(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,b]);return Object(r.b)({"data-active":b||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:b})},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(17),o=n(49),c=n(48),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(122);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(172);t.default=r.default},,,function(e,t){!function(){e.exports=this.wp.notices}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(47);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function c(e,t,n){return e.dispatchEvent(o(e,t,n))}},,,,function(e,t,n){"use strict"},,,,function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r1?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{b=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>b+64&&(b=t);for(var j=Math.floor(t-b),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()},b=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(b?n.runAsync(l,s):n.diff(l).start(s))}),a):b?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 be(e){return(parseFloat(e)%360+360)%360/360}function de(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|de(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(be(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(be(n[1]),fe(n[2]),fe(n[3]))|de(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("--"),b=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,b):e.style[s]=b}for(var d in a){var f=l?d:ke[d]||(ke[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[d])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=b(),l=i.useRef(!0),s=i.useRef(null),d=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;d.current&&(e=v.fn(d.current,s.current.getAnimatedValue())),d.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(d,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 d.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=R,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],b=l[1],d=l[2],f=i.useMemo((function(){return function(e){return b((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,d]: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),d=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=b(),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,b=a.from,d=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||{}:b,o),to:p(d,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 R=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=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:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,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),b=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:d&&"enter"===t});u.update(b),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(17),o=n(49),c=n(48),i=n(67),a=n(13),l=n(63),s=(n(80),n(46)),u=n(53),b=n(57),d=n(73),f=n(78),p=n(82),m=n(47),v=n(94),O=n(102),g=n(51),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:[d.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,d=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,_,d),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(b.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(d.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(17),o=n(49),c=n(48),i=n(13),a=n(63),l=(n(80),n(46)),s=n(53),u=n(69),b=n(72),d=n(71),f=n(84),p=n(82),m=n(47),v=n(51),O=n(93),g=n(95),h=n(96);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),R=Object(l.a)(y),D=!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(b.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(d.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=R.current)||void 0===t||t.call(R,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:D?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(47);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(177)},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(15),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){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";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){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,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,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){!function(){e.exports=this.wp.blob}()},,,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,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,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(16),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(16),o=n(50),c=n(49),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(16),o=n(50),c=n(49),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(46)),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(16),o=n(50),c=n(49),i=n(13),a=n(71),l=(n(81),n(46)),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.viewport}()},function(e,t){!function(){e.exports=this.wp.warning}()},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(16),o=n(50),c=n(49),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(125);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(177);t.default=r.default},,function(e,t){!function(){e.exports=this.wp.notices}()},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=W(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=W(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):K++,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=W},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(16),o=n(50),c=n(49),i=n(67),a=n(13),l=n(63),s=(n(81),n(46)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(48),v=n(96),O=n(104),g=n(51),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(16),o=n(50),c=n(49),i=n(13),a=n(63),l=(n(81),n(46)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(87),p=n(82),m=n(48),v=n(51),O=n(95),g=n(97),h=n(98);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(48);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(182)},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(167),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&&b()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",b,!1),e.removeEventListener("keyup",b,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",b,!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",b,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",b,!1),e.addEventListener("autosize:update",b,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:b}),"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),b()}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 b(){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=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 b(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(b){var d=n?c(b):b,f={},p=!0,m={node:d,node_:b,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;ee.length?n:e})),s.value=e.join(b)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var d=t[i-1];return i>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[i-2].value+=d.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,b=l+s,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[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,b=d[n-1],f=d[n+1],p=(f?f.newPos:0)-n;b&&(d[n-1]=void 0);var m=b&&b.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>b)return r();p()||e()}),0)}();else for(;u<=b;){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?U:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(G)):t}var W=Object(b.createContext)({}),q=W.Provider,$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(b.useContext)(W).isEmbedButton,r=t.name,o=n?[]:K(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(b.createElement)(w,{key:"align-controls"},Object(b.createElement)(V,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(b.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(O.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(b.createElement)(e,t);var i=K(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=z({},a,{"data-align":r})),Object(b.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(v.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=z({},e.attributes,{align:{type:"string"}})),e})),Object(v.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(v.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return K(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=f()("align".concat(r),e.className)),e}));var X=Object(g.createSlotFill)("InspectorAdvancedControls"),Q=X.Fill,Z=X.Slot;function J(e){var t=e.children;return k().isSelected?Object(b.createElement)(Q,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Z;var ee=J;function te(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 ne=/[\s#]/g;var re=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(e,t),Object(b.createElement)(ee,null,Object(b.createElement)(g.TextControl,{className:"html-anchor-control",label:Object(I.__)("HTML anchor"),help:Object(b.createElement)(b.Fragment,null,Object(I.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(b.createElement)(g.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(I.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(ne,"-"),t.setAttributes({anchor:e})},autoComplete:"off"}))):Object(b.createElement)(e,t)}}),"withInspectorControl");function oe(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}Object(v.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(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(v.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t0&&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=k(),i=c.clientId,a=Object(O.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,d=a.customGradient,f=Object(O.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(b.useCallback)((function(e){var t,r,c=ge(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),v=me(s);return{gradientClass:v,gradientValue:s?ve(l,s):d,setGradient:m}}var je=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},ke=n(15);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}var _e=Object(I.__)("(Color: %s)"),Ee=Object(I.__)("(Gradient: %s)"),Ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function Se(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=fe(r,t=a),u=s&&s.name;n=Object(I.sprintf)(_e,u||t)}}else if("gradient"===i&&l){var d=Oe(o,t=l),f=d&&d.name;n=Object(I.sprintf)(Ee,f||t)}return Object(b.createElement)(b.Fragment,null,c,!!t&&Object(b.createElement)(g.ColorIndicator,{colorValue:t,"aria-label":n}))}function we(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,l=e.onGradientChange,u=e.colorValue,d=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),v=l&&(!Object(p.isEmpty)(n)||!o),O=Object(b.useState)(d?"gradient":!!m&&"color"),h=Object(le.a)(O,2),j=h[0],k=h[1];return m||v?Object(b.createElement)(g.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(b.createElement)("fieldset",null,Object(b.createElement)("legend",null,Object(b.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(b.createElement)(g.BaseControl.VisualLabel,null,Object(b.createElement)(Se,{currentTab:j,label:i,colorValue:u,gradientValue:d})))),m&&v&&Object(b.createElement)(g.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(I.__)("Solid")),Object(b.createElement)(g.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(I.__)("Gradient"))),("color"===j||!v)&&Object(b.createElement)(g.ColorPalette,Object(s.a)({value:u,onChange:v?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(b.createElement)(g.__experimentalGradientPicker,Object(s.a)({value:d,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ie(e){var t=Object(O.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Ce)}));return Object(b.createElement)(we,function(e){for(var t=1;t=24?"large":"small"})?null:Object(b.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=Object(g.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return y()?Object(b.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!==window.Node.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){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(b.useState)(),s=Object(le.a)(l,2),u=s[0],d=s[1],f=Object(b.useState)(),p=Object(le.a)(f,2),m=p[0],v=p[1];return Object(b.useEffect)((function(){if(o){var e=qe(n);if(e){v(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;d(r)}}})),Object(b.createElement)(We,null,Object(b.createElement)(Le,{title:Object(I.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(b.createElement)(He,{backgroundColor:u,textColor:m})))}function Qe(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 Ze(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(O.useSelect)((function(e){return!e("core/block-editor").getSettings().enableCustomLineHeight}));return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var dt=n(152),ft=n.n(dt),pt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function mt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function vt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(O.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(g.FontSizePicker);function gt(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 ht(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=kt(),r=n.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!r}var Et=Object(m.createHigherOrderComponent)((function(e){return function(t){var n,r=kt(),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,u=ht({},t);if(Object(c.hasBlockSupport)(o,"__experimentalFontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var d,f=pt(r,a,null==l||null===(d=l.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=ht({},s,{style:ht({fontSize:f},null==s?void 0:s.style)})}return Object(b.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(v.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",jt),Object(v.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),jt(r,e,n)},e})),Object(v.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Et);var Ct=["__experimentalLineHeight","__experimentalFontSize"];function St(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[_t(e),bt(e)];return t.filter(Boolean).length===t.length}(e),n=wt(e.name);return t||!n?null:Object(b.createElement)(We,null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Typography")},Object(b.createElement)(yt,e),Object(b.createElement)(ut,e)))}var wt=function(e){return"web"===b.Platform.OS&&Ct.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function It(e){var t=e.units,n=Object(ke.a)(e,["units"]),r=Bt(t);return Object(b.createElement)(g.__experimentalUnitControl,Object(s.a)({units:r},n))}function Bt(e){var t=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().enableCustomUnits}),[]),n=!t;return Array.isArray(t)?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):!n&&e}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 Pt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=At({},Nt,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t),o=r[0],c=r.slice(1),i=Object(le.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=Ft(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Ht=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(b.createElement)(St,Object(s.a)({key:"typography"},t)),Object(b.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(b.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(b.createElement)(Rt,{key:"spacing"},Object(b.createElement)(Tt,t))]}}),"withToolbarControls");Object(v.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Lt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Vt),Object(v.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Lt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Vt(r,e,n)},e})),Object(v.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ht);var zt=n(20),Ut=n(19),Gt=n(12),Kt=n(23),Wt=n(16),qt=n(22);function $t(){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}}function Yt(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 Xt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function bn(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(I.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(I.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,d=void 0===s?l:s,m=a.textColorTargetRef,v=void 0===m?l:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:On}}),[j]),_=y.attributes,E=y.settingsColors,C=Object(O.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(b.useCallback)((function(e){return S(j,e)}),[S,j]),B=Object(b.useMemo)((function(){return on()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,d=void 0===s?"":s,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(u.a)({},t,o):c&&(O=Object(u.a)({},t,c));var g={className:f()(d,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:fn({},O,{},v)};return Object(p.isFunction)(l)?l(g):b.Children.map(l,(function(e){return Object(b.cloneElement)(e,{className:f()(e.props.className,g.className),style:fn({},g.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(b.useMemo)((function(){return on()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(b.useState)(),T=Object(le.a)(P,2),N=T[0],R=T[1],D=Object(b.useState)(),A=Object(le.a)(D,2),M=A[0],L=A[1];return Object(b.useEffect)((function(){if(c){var e,t=!1,n=!1,r=un(Object(p.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&&L(mn(v.current).color),t){for(var l=d.current,s=mn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===vn.ELEMENT_NODE;)l=l.parentNode,s=mn(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ae.a)(g))),Object(b.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=fn({},n,{color:_[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(p.startCase)(o):l,u=r.componentName,b=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,d=r.color,f=void 0===d?n.color:d,m=r.colors,v=void 0===m?E:m,O=_[Object(p.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===f}));return e[b]=B(o,i,a,f,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=f,e[b].setColor=x(o,v),t[b]={value:g?g.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:M,panelChildren:i};return fn({},n,{ColorPanel:Object(b.createElement)(sn,a),InspectorControlsColorPanel:Object(b.createElement)(hn,a)})}),[_,w,M,N].concat(Object(ae.a)(g)))}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(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Dn=function(e,t){return Object(p.differenceWith)(e,Rn(t),(function(e,t){return t.includes(e)}))},An=function(e,t,n,r){var o=Rn(r);return 0===o.length?e:Mn(e,r,{getCategory:function(e){var n;return null===(n=Object(p.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){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Rn(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t0&&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=Rn(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,b=n.getKeywords,d=void 0===b?c:b,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,v=void 0===m?a:m,O=n.getVariations,g=void 0===O?l:O;return e.filter((function(e){var t=u(e),n=d(e),o=p(e),c=v(e),i=g(e),a=[t].concat(Object(ae.a)(n),[o,c],Object(ae.a)(i)).join(" ");return 0===Dn(r,a).length}))},Ln=function(e,t){var n=Object(O.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(b.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(le.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function Fn(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 Vn(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(I.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(I.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(I.sprintf)(Object(I._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(I.sprintf)(Object(I._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(I.sprintf)(Object(I.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var b=s("down");if("down"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===b)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=s("up");if("up"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===d)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===d)return Object(I.sprintf)(Object(I.__)("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(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var xr=function(e,t,n){return"up"===e?"horizontal"===t?n?Cr.a:Sr.a:wr.a:"down"===e?"horizontal"===t?n?Sr.a:Cr.a:Ir.a:null},Pr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(I.__)("Move right"):Object(I.__)("Move left"):Object(I.__)("Move up"):"down"===e?"horizontal"===t?n?Object(I.__)("Move left"):Object(I.__)("Move right"):Object(I.__)("Move down"):null},Tr=Object(b.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(ke.a)(e,["clientIds","direction","orientation"]),a=Object(m.useInstanceId)(Tr),l=Object(p.castArray)(n).length,u=Object(O.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,b=t.getBlockListSettings,d=Object(p.castArray)(n),f=Object(p.first)(d),m=a(f),v=i(f,m),O=i(Object(p.last)(d),m),g=l(m),h=s(f),j=0===v,k=O===g.length-1,y=(b(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]),d=u.blockType,v=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.orientation,C=void 0===E?"vertical":E,S=Object(O.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(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:xr(r,C,_),label:Pr(r,C,_),"aria-describedby":x},i,{onClick:v?null:function(e){B(n,h),i.onClick&&i.onClick(e)},"aria-disabled":v})),Object(b.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Br(l,d&&d.title,y,j,k,"up"===r?-1:1,C,_)))})),Nr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"up",ref:t},e))})),Rr=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Tr,Object(s.a)({direction:"down",ref:t},e))}));function Dr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(b.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Ar=Object(b.createContext)({__experimentalFeatures:!1}),Mr=function(){return Object(b.useContext)(Ar)},Lr=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Fr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(b.createElement)("div",{className:f()(t,"block-editor-warning")},Object(b.createElement)("div",{className:"block-editor-warning__contents"},Object(b.createElement)("p",{className:"block-editor-warning__message"},r),(b.Children.count(n)>0||o)&&Object(b.createElement)("div",{className:"block-editor-warning__actions"},b.Children.count(n)>0&&b.Children.map(n,(function(e,t){return Object(b.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(b.createElement)(g.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{icon:Lr,label:Object(I.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(b.createElement)(g.MenuGroup,null,o.map((function(e,t){return Object(b.createElement)(g.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},Vr=n(263),Hr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(b.createElement)("div",{className:i},Object(b.createElement)("div",{className:"block-editor-block-compare__content"},Object(b.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(b.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(b.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(b.createElement)("div",{className:"block-editor-block-compare__action"},Object(b.createElement)(g.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var zr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,d={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.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(Vr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(b.createElement)("span",{key:t,className:n},e.value)}))}(d.rawContent,m.rawContent);return Object(b.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(b.createElement)(Hr,{title:Object(I.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(I.__)("Convert to HTML"),rawContent:d.rawContent,renderedContent:d.renderedContent}),Object(b.createElement)(Hr,{title:Object(I.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:v,renderedContent:m.renderedContent}))};function Ur(){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}}var Gr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ur()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(e){var t;return Object(zt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(Gt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(Gt.a)(t)),t}return Object(Ut.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(I.__)("Convert to Classic Block"),onClick:r},{title:Object(I.__)("Attempt Block Recovery"),onClick:o}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Fr,{actions:[Object(b.createElement)(g.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(I._x)("Resolve","imperative verb")),a&&Object(b.createElement)(g.Button,{key:"edit",onClick:t,isPrimary:!0},Object(I.__)("Convert to HTML"))],secondaryActions:s},Object(I.__)("This block contains unexpected or invalid content.")),l&&Object(b.createElement)(g.Modal,{title:Object(I.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(b.createElement)(zr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(I.__)("Convert to Blocks")})))}}]),r}(b.Component),Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(m.compose)([Object(O.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(O.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)))}}}))])(Gr),qr=Object(b.createElement)(Fr,{className:"block-editor-block-list__block-crash-warning"},Object(I.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(){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}}var Xr=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Yr()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),Qr=n(97),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(b.useState)(""),r=Object(le.a)(n,2),o=r[0],i=r[1],a=Object(O.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(O.useDispatch)("core/block-editor").updateBlock;return Object(b.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(b.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)}})};function eo(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 to(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 no(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ro=n(291),oo=[Object(b.createInterpolateElement)(Object(I.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(b.createInterpolateElement)(Object(I.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(b.createElement)("kbd",null)}),Object(I.__)("Drag files into the editor to automatically insert media blocks."),Object(I.__)("Change a block's type by pressing the block icon on the toolbar.")];var co=function(){var e=Object(b.useState)(Math.floor(Math.random()*oo.length)),t=Object(le.a)(e,1)[0];return Object(b.createElement)(g.Tip,null,oo[t])},io=n(176),ao=n(137),lo=n(292);var so=function e(t){var n=t.className,r=t.onChange,o=t.value,c=Object(m.useInstanceId)(e),i=Object(b.useRef)();return Object(b.createElement)("div",{className:f()("block-editor-inserter__search",n)},Object(b.createElement)(g.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(c)},Object(I.__)("Search for a block")),Object(b.createElement)("input",{ref:i,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(c),type:"search",placeholder:Object(I.__)("Search for a block"),autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(b.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(b.createElement)(g.Button,{icon:io.a,label:Object(I.__)("Reset search"),onClick:function(){r(""),i.current.focus()}}),!o&&Object(b.createElement)(ao.a,{icon:lo.a})))};var uo=function(e){var t=e.blockType;return Object(b.createElement)("div",{className:"block-editor-block-card"},Object(b.createElement)(Un,{icon:t.icon,showColors:!0}),Object(b.createElement)("div",{className:"block-editor-block-card__content"},Object(b.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(b.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},bo={insertUsage:{}},fo={alignWide:!1,colors:[{name:Object(I.__)("Black"),slug:"black",color:"#000000"},{name:Object(I.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(I.__)("White"),slug:"white",color:"#ffffff"},{name:Object(I.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(I.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(I.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(I.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(I.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(I.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(I.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(I.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(I.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(I._x)("Small","font size name"),size:13,slug:"small"},{name:Object(I._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(I._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(I._x)("Large","font size name"),size:36,slug:"large"},{name:Object(I._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(I.__)("Thumbnail")},{slug:"medium",name:Object(I.__)("Medium")},{slug:"large",name:Object(I.__)("Large")},{slug:"full",name:Object(I.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("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(I.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(I.__)("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(I.__)("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(I.__)("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(I.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(I.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function po(e,t,n){return[].concat(Object(ae.a)(e.slice(0,n)),Object(ae.a)(Object(p.castArray)(t)),Object(ae.a)(e.slice(n)))}function mo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ae.a)(e);return o.splice(t,r),po(o,e.slice(t,t+r),n)}function vo(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 Oo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,go(o,r))})),n}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),ho(n.innerBlocks,n.clientId))}),{})}function jo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ae.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(ke.a)(o,["innerBlocks"]);r.push.apply(r,Object(ae.a)(c)),n[i.clientId]=t(i)}return n}function ko(e){return jo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function yo(e){return jo(e,(function(e){return e.attributes}))}function _o(e,t){return e===t?Oo({},e):t}function Eo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Co=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var So=Object(p.flow)(O.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=Oo({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Oo({},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(p.mapValues)(jo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(jo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(c)));break;case"UPDATE_BLOCK":r.cache=Oo({},r.cache,{},Co(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Oo({},r.cache,{},Co(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Co(o(n.replacedClientIds));r.cache=Oo({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Co(Object(p.keys)(jo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Oo({},Object(p.omit)(r.cache,n.removedClientIds),{},Co(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ae.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Oo({},r.cache,{},Co(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Oo({},r.cache,{},Co(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Oo({},r.cache,{},Co(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(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ae.a)(n),[o],Object(ae.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return Oo({},t,{byClientId:Oo({},Object(p.omit)(t.byClientId,r),{},ko(n.blocks)),attributes:Oo({},Object(p.omit)(t.attributes,r),{},yo(n.blocks)),order:Oo({},Object(p.omit)(t.order,r),{},Object(p.omit)(go(n.blocks),o)),parents:Oo({},Object(p.omit)(t.parents,r),{},ho(n.blocks)),cache:Oo({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(jo(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){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Oo({},c,{isPersistentChange:a})}return c=Oo({},c,{isPersistentChange:i?!n:!Eo(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 ko(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},ko(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Oo({},e,Object(u.a)({},t.clientId,Oo({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},ko(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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 yo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Oo({},e,{},yo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Oo({},e,Object(u.a)({},t.clientId,Oo({},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 Oo({},n,Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=_o(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:Oo({},e,{},n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Oo({},Object(p.omit)(e,t.replacedClientIds),{},yo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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 go(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},Object(p.omit)(go(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=go(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return Oo({},e,{},c,Object(u.a)({},r,po(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,s=t.fromRootClientId,b=void 0===s?"":s,d=t.toRootClientId,f=void 0===d?"":d,m=t.clientIds,v=t.index,O=void 0===v?e[f].length:v;if(b===f){var g=e[f],h=g.indexOf(m[0]);return Oo({},e,Object(u.a)({},f,mo(e[f],h,O,m.length)))}return Oo({},e,(l={},Object(u.a)(l,b,p.without.apply(void 0,[e[b]].concat(Object(ae.a)(m)))),Object(u.a)(l,f,po(e[f],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var C=E.indexOf(_);return Oo({},e,Object(u.a)({},y,mo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(S),x=Object(p.last)(S),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return Oo({},e,Object(u.a)({},I,mo(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=go(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Oo({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ae.a)(e),Object(ae.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ae.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 ho(t.blocks);case"RECEIVE_BLOCKS":return Oo({},e,{},ho(t.blocks));case"INSERT_BLOCKS":return Oo({},e,{},ho(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return Oo({},e,{},t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Oo({},Object(p.omit)(e,t.replacedClientIds),{},ho(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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?Oo({},e,Object(u.a)({},r,o)):e}});function wo(){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}var Io=Object(O.combineReducers)({blocks:So,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},isDraggingBlocks: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!0;case"STOP_DRAGGING_BLOCKS":return!1}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 wo(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 wo(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 Oo({},e,Object(u.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(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Oo({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.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"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}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 Oo({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Oo({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bo,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),Oo({},e,{insertUsage:Oo({},e.insertUsage,Object(u.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(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return Oo({},e,Object(u.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}}),Bo=n(110),xo=n.n(Bo),Po=n(262),To=n.n(Po),No=n(40);function Ro(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Mo(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 ac(e){var t;return mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ho)}function lc(e){var t;return mr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ic(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(){return{type:"START_MULTI_SELECT"}}function uc(){return{type:"STOP_MULTI_SELECT"}}function bc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function dc(){return{type:"CLEAR_SELECTED_BLOCK"}}function fc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function pc(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(null==r?void 0:r.includes("is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return Fo({},e,{attributes:Fo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function mc(e,t,n,r){var o,c,i;return mr.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=pc,a.t1=Object(p.castArray)(t),a.next=5,Ro("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,Ro("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c1&&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,Ro("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,Ro("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()}}),Go)}function kc(e){var t,n,r,o=arguments;return mr.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,jc([e],t,n,r);case 5:case"end":return c.stop()}}),Ko)}function yc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return _c([e],t,n,r)}function _c(e,t,n){var r,o,c,i,a,l=arguments;return mr.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=pc,s.t1=Object(p.castArray)(e),s.next=5,Ro("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=Ao(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,Ro("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Wo,null,[[9,21,24,27]])}function Ec(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Cc(){return{type:"HIDE_INSERTION_POINT"}}function Sc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function wc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ic(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Bc(e){var t,n,r,o,c=arguments;return mr.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(p.castArray)(e),i.next=6,Ro("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,Ro("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,ac(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,Ro("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(ec(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),qo)}function xc(e,t){return Bc([e],t)}function Pc(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 Tc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Nc(){return{type:"START_TYPING"}}function Rc(){return{type:"STOP_TYPING"}}function Dc(){return{type:"START_DRAGGING_BLOCKS"}}function Ac(){return{type:"STOP_DRAGGING_BLOCKS"}}function Mc(){return{type:"ENTER_FORMATTED_TEXT"}}function Lc(){return{type:"EXIT_FORMATTED_TEXT"}}function Fc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Vc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return yc(Object(c.createBlock)(r,e),n,t)}function Hc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function zc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Uc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Gc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Kc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Wc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function qc(){var e,t=arguments;return mr.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(Fe.speak)(Object(I.__)("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(Fe.speak)(Object(I.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),$o)}function $c(){var e,t=arguments;return mr.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(Fe.speak)(Object(I.__)("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()}}),Yo)}function Yc(e){var t,n,r,o,i,a,l=arguments;return mr.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,Ro("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,Ro("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.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(p.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,Ro("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,_c(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,bc(Object(p.first)(a).clientId,Object(p.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Xo)}function Xc(e){var t,n;return mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Qo)}function Qc(e){var t,n;return mr.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,Ro("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Ro("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Ro("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Vc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Zc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Jc(e){return mr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Zc(e,!1);case 6:case"end":return t.stop()}}),Jo)}function ei(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ti=n(42);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 ri(e){for(var t=1;t2&&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]})),wi=Object(ti.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Si(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:ii(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ii(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Bi(e,t){for(var n,r=_i(e),o=[].concat(Object(ae.a)(Si(e,t)),[t]),c=[].concat(Object(ae.a)(Si(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=_i(e)),void 0===t&&(t=n<0?Mi(e):Li(e)),!t)return null;var r=Ci(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 Pi(e,t){return xi(e,t,-1)}function Ti(e,t){return xi(e,t,1)}function Ni(e){return e.initialPosition}var Ri=Object(ti.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return ci;if(t.clientId===n.clientId)return[t.clientId];var r=Ci(e,t.clientId);if(null===r)return ci;var o=Gi(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 Di(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?ci:Ri(e)}var Ai=Object(ti.a)((function(e){var t=Di(e);return t.length?t.map((function(t){return si(e,t)})):ci}),(function(e){return[].concat(Object(ae.a)(Ri.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Mi(e){return Object(p.first)(Di(e))||null}function Li(e){return Object(p.last)(Di(e))||null}function Fi(e,t){return Mi(e)===t}function Vi(e,t){return-1!==Di(e).indexOf(t)}var Hi=Object(ti.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Vi(e,n=Ci(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function zi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Ui(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Gi(e,t){return e.blocks.order[t||""]||ci}function Ki(e,t,n){return Gi(e,n).indexOf(t)}function Wi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function qi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Gi(e,t),(function(t){return Wi(e,t)||Vi(e,t)||n&&qi(e,t,n)}))}function $i(e,t){if(!t)return!1;var n=Di(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(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=va(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!ia(e,n);if(s)return!1;var u=ma(e,n),b=Object(p.get)(u,["allowedBlocks"]),d=r(b,t),f=o.parent,m=ii(e,n),v=r(f,m);return null!==d&&null!==v?d||v:null!==d?d:null===v||v},la=Object(ti.a)(aa,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return la(e,ii(e,t),n)}))}function ua(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ba=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&aa(e,t.name,n)},da=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=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}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(mi(e,fi(e)),{name:t.name}));var i=ua(e,r)||{},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:r,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:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=ha(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=ua(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:oi,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return ba(e,n,t)})).map(r),a=aa(e,"core/block",t)?ya(e).map(o):[];return[].concat(Object(ae.a)(i),Object(ae.a)(a))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),fa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}));if(n)return!0;var r=aa(e,"core/block",t)&&ya(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,ya(e),Object(c.getBlockTypes)()]})),pa=Object(ti.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return ba(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function ma(e,t){return e.blockListSettings[t]}function va(e){return e.settings}function Oa(e){return e.blocks.isPersistentChange}var ga=Object(ti.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ha=Object(ti.a)((function(e,t){var n=Object(p.find)(ya(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[ya(e)]}));function ja(e){return e.blocks.isIgnoredChange}function ka(e){return e.lastBlockAttributesChange}function ya(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],ci)}function _a(e){return e.isNavigationMode}function Ea(e){return e.hasBlockMovingClientId}function Ca(e){return!!e.automaticChangeStatus}function Sa(e,t){return e.highlightedBlock===t}function wa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Ia(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 Ba(e){for(var t=1;t=d&&u<=f?u:u6||j.length>6,P=Object(b.useMemo)((function(){return An(j,k,y,l)}),[l,j,k,y]),T=Object(b.useMemo)((function(){return Mn(S,l)}),[l,S]),N=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),R=Object(O.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(n)}),[n]);Object(b.useEffect)((function(){N&&N(!1)}),[N]);var D=Object(O.useDispatch)("core/block-editor").selectBlock;return Object(b.useEffect)((function(){if(l){var e=P.length+T.length,t=Object(I.sprintf)(Object(I._n)("%d result found.","%d results found.",e),e);c(t)}}),[l,c]),Object(b.createElement)("div",{className:"block-editor-inserter__quick-inserter",onKeyPress:Pl,onKeyDown:xl},x&&Object(b.createElement)(so,{value:l,onChange:function(e){s(e)}}),Object(b.createElement)(Tl,{blockTypes:P,blockPatterns:B?T:[],onSelectBlockPattern:w,onSelectBlockType:_,onHover:m}),N&&Object(b.createElement)(g.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){D(R),setTimeout((function(){N(!0)}))},"aria-label":Object(I.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(I.__)("Browse all")))}));function Rl(){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}}var Dl=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(I.sprintf)(Object(I._x)("Add %s","directly add the only allowed block"),c):Object(I._x)("Add block","Generic label for block inserter button"),Object(b.createElement)(g.Button,Object(s.a)({icon:ro.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},Al=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Rl()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Gt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Gt.a)(e)),e.renderContent=e.renderContent.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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?Dl: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(b.createElement)(Nl,{rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(b.createElement)(Bl,{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(b.createElement)(g.Dropdown,{className:"block-editor-inserter",contentClassName:f()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(I.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(b.Component),Ml=Object(m.compose)([Object(O.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(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(O.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(I.sprintf)(Object(I.__)("%s block added"),l.title);Object(Fe.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(Al),Ll=Object(b.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(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(O.useDispatch)("core/block-editor").setNavigationMode;return Object(b.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=hr.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=hr.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Fl=window,Vl=Fl.getSelection,Hl=Fl.getComputedStyle,zl=Object(p.overEvery)([hr.isTextField,hr.focus.tabbable.isTabbableIndex]);function Ul(e,t,n,r){var o,c=hr.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!hr.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(hr.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 Gl(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,b=t.isNavigationMode,d=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:b(),hasBlockMovingClientId:d,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function Kl(e){var t=e.children,n=Object(b.useRef)(),r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(b.useRef)(),i=Object(b.useRef)(),a=Object(b.useRef)(),l=Object(b.useRef)(),s=Object(O.useSelect)(Gl,[]),u=s.selectedBlockClientId,d=s.selectionStartClientId,m=s.selectionBeforeEndClientId,v=s.selectionAfterEndClientId,g=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.hasBlockMovingClientId,E=s.isSelectionEnabled,C=s.blockSelectionStart,S=s.isMultiSelecting,w=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,R=Object(O.useDispatch)("core/block-editor"),D=R.multiSelect,A=R.selectBlock,M=R.clearSelectedBlock,L=R.setNavigationMode,F=R.setBlockMovingClientId,V=R.moveBlockToPosition,H=Object(b.useState)(!1),z=Object(le.a)(H,2),U=z[0],G=z[1];Object(b.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var K=f()("block-editor-writing-flow",{"is-navigate-mode":y,"is-block-moving-mode":!!_(),"can-insert-moving-block":U});return Object(b.createElement)("div",{className:K},Object(b.createElement)(Ll,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(b.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,b=t===it.UP,f=t===it.DOWN,O=t===it.LEFT,E=t===it.RIGHT,C=t===it.TAB,S=t===it.ESCAPE,I=t===it.ENTER,R=t===it.SPACE,H=b||O,z=O||E,U=b||f,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?hr.isVerticalEdge:hr.isHorizontalEdge;if(y){var Y,X=C&&W||b,Q=C&&!W||f,Z=O,J=E;if(X)Y=m;else if(Q)Y=v;else if(Z){var ee;Y=null!==(ee=B(u))&&void 0!==ee?ee:u}else if(J){var te;Y=null!==(te=x([u])[0])&&void 0!==te?te:u}var ne=_();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(I||R)&&ne){var re=B(ne),oe=B(u),ce=w(ne,re),ie=w(u,oe);cen}));if(r){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Fe.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,l,i+1,d),y=f()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!u});return Object(b.createElement)("div",Object(s.a)({className:y},r),Object(b.createElement)(g.Button,{ref:h,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==it.BACKSPACE&&n!==it.DELETE||(v(t),e.preventDefault())},label:k},Object(b.createElement)(Yn,{clientId:t})))};function Xl(e){var t,n,r,o=Object(b.useState)(!0),c=Object(le.a)(o,2),i=c[0],a=c[1],l=Object(b.useCallback)((function(){var t=hr.focus.tabbable.find(e.current);a(!t.some((function(e){return!("experimentalToolbarItem"in e.dataset)})))}),[]);return Object(b.useLayoutEffect)(l,[]),t=function(){var t=new window.MutationObserver(l);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}},n=[i],r=Object(b.useRef)(!1),Object(b.useLayoutEffect)((function(){if(r.current)return t();r.current=!0}),n),i}function Ql(e,t,n){var r=Object(b.useState)(t),o=Object(le.a)(r,1)[0],c=Object(b.useCallback)((function(){var t,n,r;t=e.current,n=hr.focus.tabbable.find(t),(r=Object(le.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(b.useEffect)((function(){o&&c()}),[n,o,c])}var Zl=function(e){var t=e.children,n=e.focusOnMount,r=Object(ke.a)(e,["children","focusOnMount"]),o=Object(b.useRef)(),c=Xl(o);return Ql(o,n,c),c?Object(b.createElement)(g.Toolbar,Object(s.a)({__experimentalAccessibilityLabel:r["aria-label"],ref:o},r),t):Object(b.createElement)(g.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};function Jl(){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}}var es=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Jl()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Gt.a)(e)),e.onBlur=e.onBlur.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,i=e.rootClientId,a=e.orientation,l=this.state.isFocused;return o||t&&n&&!i?null:Object(b.createElement)("div",{className:f()("block-editor-block-mover",{"is-visible":l||!c,"is-horizontal":"horizontal"===a})},Object(b.createElement)(g.ToolbarGroup,null,Object(b.createElement)(g.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(b.createElement)(Nr,Object(s.a)({clientIds:r},e))})),Object(b.createElement)(g.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(b.createElement)(Rr,Object(s.a)({clientIds:r},e))}))))}}]),r}(b.Component),ts=Object(O.withSelect)((function(e,t){var n,r=t.clientIds,o=e("core/block-editor"),i=o.getBlock,a=o.getBlockIndex,l=o.getBlockListSettings,s=o.getTemplateLock,u=o.getBlockOrder,b=o.getBlockRootClientId,d=Object(p.castArray)(r),f=Object(p.first)(d),m=i(f),v=b(Object(p.first)(d)),O=a(f,v),g=0===O,h=a(Object(p.last)(d),v)===u(v).length-1;return{blockType:m?Object(c.getBlockType)(m.name):null,isLocked:"all"===s(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=l(v))||void 0===n?void 0:n.orientation}}))(es);function ns(){var e=Object(O.useDispatch)("core/block-editor").selectBlock,t=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=(0,t.getBlockParents)((0,t.getSelectedBlockClientId)()),o=r[r.length-1],i=n(o);return{parentBlockType:Object(c.getBlockType)(i),firstParentClientId:o}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return void 0!==r?Object(b.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(b.createElement)(g.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(I.sprintf)(Object(I.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(b.createElement)(Un,{icon:n.icon})})):null}var rs=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 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.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function os(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){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function as(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(O.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(ms),Os=n(44);function gs(){var e=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(O.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(O.useDispatch)("core/notices").createSuccessNotice;return Object(b.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(I.sprintf)(Object(I.__)('Copied "%s" to clipboard.'),a):Object(I.sprintf)(Object(I.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(I.sprintf)(Object(I._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(I.sprintf)(Object(I._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var hs=function(e){var t=e.children,n=Object(b.useRef)(),r=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(O.useDispatch)("core/block-editor"),u=s.flashBlock,d=s.removeBlocks,f=s.replaceBlocks,m=gs(),v=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a())if("copy"===e.type||"cut"===e.type?Object(hr.documentHasUncollapsedSelection)():Object(hr.documentHasSelection)())return;if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(t[0]),m(e.type,t);var r=o(t),l=Object(c.serialize)(r);e.clipboardData.setData("text/plain",l),e.clipboardData.setData("text/html",l)}if("cut"===e.type)d(t);else if("paste"===e.type){var s=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.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(p.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),b=s.plainText,O=s.html,g=Object(c.pasteHandler)({HTML:O,plainText:b,mode:"BLOCKS",canUserUseUnfilteredHTML:v});f(t,g,g.length-1,-1)}}}};return Object(b.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function js(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(O.useSelect)((function(e){return e("core/blocks")}),[]),b=u.getDefaultBlockName,d=u.getGroupingBlockName,f=l(t),m=a(t[0]),v=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(b(),m),h=Object(O.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=gs();return n({canDuplicate:v,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onMoveTo:function(){w(!0),S(t[0])},onGroup:function(){if(f.length){var e=d(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),I("copy",e)}})}var ks=Object(m.compose)([Object(O.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(O.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.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(I.__)("Edit as HTML"):Object(I.__)("Edit visually");return Object(b.createElement)(g.MenuItem,{onClick:r},!i&&s)}));function ys(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(I.__)("Convert to Blocks");return Object(b.createElement)(g.MenuItem,{onClick:n},!r&&o)}var _s=Object(m.compose)(Object(O.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(O.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)}))}}})))(ys),Es=Object(m.compose)(Object(O.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(O.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.serialize)(n)}))}}})))(ys),Cs=Object(g.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Ss=Cs.Fill,ws=Cs.Slot;Ss.Slot=ws;var Is=Ss;function Bs(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 xs(e){for(var t=1;tc){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY1,C=f()("block-editor-block-toolbar",y&&"is-showing-movers");return Object(b.createElement)("div",{className:C},Object(b.createElement)("div",Object(s.a)({ref:v},j),!E&&Object(b.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(b.createElement)(ns,{clientIds:r})),(_||E)&&Object(b.createElement)(vs,{clientIds:r})),(_||E)&&Object(b.createElement)(Vs,{clientIds:r,cloneClassname:"block-editor-block-toolbar__drag-clone"},(function(e){var n=e.isDraggable,o=e.onDraggableStart,c=e.onDraggableEnd;return Object(b.createElement)("div",{className:"block-editor-block-toolbar__drag-handle-area",draggable:n&&!t,onDragStart:o,onDragEnd:c},Object(b.createElement)(ts,{clientIds:r}))})),_&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(w.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(b.createElement)(fr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(b.createElement)(Ms,{clientIds:r}))}var Ws=function(e){var t=e.focusOnMount,n=Object(ke.a)(e,["focusOnMount"]),r=Object(O.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(b.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(b.createElement)(Zl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(I.__)("Block tools")},n),Object(b.createElement)(Ks,null)))};function qs(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 $s(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(O.useSelect)(qs,[]),a=i.isNavigationMode,s=i.isMultiSelecting,u=i.isTyping,d=i.isCaretWithinFormattedText,p=i.hasMultiSelection,v=i.hasFixedToolbar,h=i.lastClientId,j=Object(m.useViewportMatch)("medium"),k=Object(b.useState)(!1),y=Object(le.a)(k,2),_=y[0],E=y[1],C=Object(b.useState)(!1),S=Object(le.a)(C,2),w=S[0],I=S[1],B=Object(b.useContext)(Zs),x=!a&&o&&r,P=a,T=!a&&!v&&j&&!x&&!s&&(!u||d),N=!(a||T||v||o);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(b.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var R=B[t];if(c&&(R=document.getElementById("block-"+c)),!R)return null;var D=R;if(p){var A=B[h];if(!A)return null;D={top:R,bottom:A}}var M=x?"top left right":"top right left";return Object(b.createElement)(g.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:D,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:R,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(b.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(b.createElement)(Ml,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(b.createElement)(Ws,{focusOnMount:_}),P&&Object(b.createElement)(Yl,{clientId:t,rootClientId:n}),x&&Object(b.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(b.createElement)(Ml,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Ys(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,b=i(s)||{},d=b.name,f=b.attributes,m=void 0===f?{}:f,v=b.isValid,O=a(s),g=l(O),h=Object(p.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:d,isValid:v,isEmptyDefaultBlock:d&&Object(c.isUnmodifiedDefaultBlock)({name:d,attributes:m}),capturingClientId:u}}}function Xs(){var e=Object(O.useSelect)(Ys,[]);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(b.createElement)($s,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Qs=Object(b.createContext)(),Zs=Object(b.createContext)(),Js=Object(b.createContext)();function eu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function tu(e){Ye(e.target)&&e.preventDefault()}var nu=Object(b.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(O.useSelect)(eu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(O.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(O.useSelect)(to,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(O.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,d=l.multiSelect,f=l.selectBlock,p=Object(b.useRef)(),m=Object(b.useRef)(),v=Object(b.useRef)();Object(b.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=eo(i,"start"),l=eo(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var b=window.getSelection();if(b.rangeCount&&!b.isCollapsed){var d=qe(a),f=b.getRangeAt(0),p=f.startContainer,m=f.endContainer;!d||d.contains(p)&&d.contains(m)||b.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(b.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(no(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;v.current.contains(c)&&v.current.focus()}}else{var a=[].concat(Object(ae.a)(i(m.current)),[m.current]),l=[].concat(Object(ae.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;d(a[s],l[s])}}else no(e.current,!0)}),[f,i,d]),h=Object(b.useCallback)((function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){g({isSelectionEnd:!0}),u()}))}),[g,u]);return Object(b.useEffect)((function(){return function(){document.removeEventListener("selectionchange",g),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[g,h]),Object(b.useCallback)((function(t){n&&(m.current=t,v.current=document.activeElement,s(),document.addEventListener("selectionchange",g),window.addEventListener("mouseup",h),no(e.current,!1))}),[n,s,h])}(t),s=Object(b.useState)({}),u=Object(le.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)($l,{containerRef:t},Object(b.createElement)(Zs.Provider,{value:d},Object(b.createElement)(Xs,null),Object(b.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:tu},Object(b.createElement)(Js.Provider,{value:p},Object(b.createElement)(Qs.Provider,{value:l},n)))))})),ru=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function ou(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;t0,w=v||y,B=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":w}),x=Mr().__experimentalFeatures,P=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":w});return Object(b.useEffect)((function(){x&&n&&d.current.focus()}),[x,n]),Object(b.createElement)(Er,{className:f()({"is-selected":n}),onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)},onFocus:function(){return _(!0)},onBlur:function(){return _(!1)},level:c,position:o,rowCount:i,path:u},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:S?void 0:2,ref:d},(function(e){var l=e.ref,u=e.tabIndex,d=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(b.createElement)(Dr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(b.createElement)(ju,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:u,onFocus:d}))})),S&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Nr,{__experimentalOrientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(b.createElement)(g.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(b.createElement)(Rr,{__experimentalOrientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),x&&Object(b.createElement)(g.__experimentalTreeGridCell,{className:P},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(b.createElement)(As,{clientIds:[C],icon:Or.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{onClick:Object(vr.a)(mr.a.mark((function e(){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(null);case 2:return e.next=4,E(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(I.__)("Go to block")))}))})))}function yu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(yu),l="block-navigation-appender-row__description_".concat(a),s=Object(I.sprintf)(Object(I.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(b.createElement)(Er,{level:r,position:n,rowCount:o,path:i},Object(b.createElement)(g.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(b.createElement)(Dr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(b.createElement)(Ml,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(b.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function _u(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,u=e.terminatedLevels,d=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,v=!a,O=Object(p.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(b.createElement)(b.Fragment,null,Object(p.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=k===u?[].concat(Object(ae.a)(d),[s]):d,p=[].concat(Object(ae.a)(m),[u]),v=i&&!!l&&!!l.length,O=g(a);return Object(b.createElement)(b.Fragment,{key:a},Object(b.createElement)(ku,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:d,path:p}),(v||O)&&Object(b.createElement)(_u,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(b.createElement)(yu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:d,path:[].concat(Object(ae.a)(m),[y])}))}function Eu(e){var t=e.__experimentalFeatures,n=Object(ke.a)(e,["__experimentalFeatures"]),r=Object(b.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(b.createElement)(g.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(I.__)("Block navigation structure")},Object(b.createElement)(Ar.Provider,{value:r},Object(b.createElement)(_u,n)))}_u.defaultProps={selectBlock:function(){}};var Cu=Object(m.compose)(Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(O.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.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(b.createElement)("div",{className:"block-editor-block-navigation__container"},Object(b.createElement)("p",{className:"block-editor-block-navigation__label"},Object(I.__)("Block navigation")),i&&Object(b.createElement)(Eu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(b.createElement)(Eu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Su=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(b.createElement)(g.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function wu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(ke.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(b.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(O.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(b.createElement)(g.Button,Object(s.a)({},c,{ref:o,icon:Su,"aria-expanded":r,onClick:t?n:void 0,label:Object(I.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Iu=Object(b.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(ke.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(O.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(b.createElement)(g.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(b.createElement)(wu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(b.createElement)(Cu,{onSelect:t,__experimentalFeatures:r})}})})),Bu=n(125),xu=[it.rawShortcut.primary("z"),it.rawShortcut.primaryShift("z"),it.rawShortcut.primary("y")],Pu=Object(b.createElement)(g.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(xu.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Tu=function(){return Pu};function Nu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var Ru={position:"bottom right",isAlternate:!0},Du=function(){return Object(b.createElement)("div",{className:"block-editor-format-toolbar"},Object(b.createElement)(g.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(b.createElement)(g.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(b.createElement)(g.__experimentalToolbarItem,null,(function(t){return Object(b.createElement)(g.DropdownMenu,{icon:Ir.a,label:Object(I.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(le.a)(e,1)[0].props})),"title"),popoverProps:Ru})}))}))))},Au=function(e){var t=e.inline,n=e.anchorRef;return t?Object(b.createElement)(g.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(b.createElement)(Du,null)):Object(b.createElement)(fr,null,Object(b.createElement)(Du,null))};function Mu(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 Lu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Fu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?Fu.EMPTY_ARRAY:t||n?t||(cr()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}Fu.EMPTY_ARRAY=[];var Vu=Object(b.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,d=t.isSelected,p=t.multiline,v=t.inlineToolbar,g=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,C=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,A=t.style,M=t.preserveWhiteSpace,L=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(ke.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(b.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(O.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),v=i(),O=a().__experimentalUndo;void 0===d?t=m.clientId===W&&m.attributeKey===N:d&&(t=m.clientId===W);var g={};if("native"===b.Platform.OS){var h=W&&s(W);g={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,me=a,ve=l;Array.isArray(a)&&(me=c.children.toHTML(a),ve=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Oe=Object(b.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ge=Object(b.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),he=Object(b.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(le.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:de}))),s+=1),l?(n.push.apply(n,Object(ae.a)(t)),s+=t.length):T&&n.push(T()),(l||T)&&Object(i.isEmpty)(a)||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:de})));var u=l?s:1,b=l?-1:null;y(n,u,b)}}),[y,x,de,T]),je=Object(b.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){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&&(y([l.transform({content:t.text})]),be())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,b=t.end,d=P&&u===b&&b===s.length;r||!o&&!d?V||n(Object(i.insert)(t,"\n")):!o&&d?P():o&&he(t)}}),[y,x,be,p,he,P]),ye=Object(b.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:Nu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):he(t,u))}var b,d=y&&x?"AUTO":"INLINE";"AUTO"===d&&Object(i.isEmpty)(t)&&(b=a,Object(Bu.regexp)(".*").test(b))&&(d="BLOCKS"),L&&Object(i.isEmpty)(t)&&Object(hl.isURL)(a.trim())&&(d="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ae.a)(s),Object(ae.a)(m.formats[v]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):he(t,f))}),[o,y,x,he,L,p]),_e=Object(b.useCallback)((function(e,t){if(y){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);y([u]),be()}}}}),[y,be]),Ee=Object(b.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:ve,selectionStart:Q,selectionEnd:Z,onSelectionChange:Oe,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ge,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:be,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:A,preserveWhiteSpace:M,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==d?d:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(b.createElement)(b.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(b.createElement)(Au,{inline:v,anchorRef:G.current}),t&&Object(b.createElement)(Tu,null),Object(b.createElement)(qn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(b.createElement)(a,Object(s.a)({},i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return g?(cr()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(b.createElement)("div",{className:f()("block-editor-rich-text",g)},Ee)):Ee}));Vu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(ke.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=Lu(r);!t&&i&&(t="<".concat(i,">"));var a=Object(b.createElement)(b.RawHTML,null,t);return n?Object(b.createElement)(n,Object(p.omit)(o,["format"]),a):a},Vu.isEmpty=function(e){return!e||0===e.length},Vu.Content.defaultProps={format:"string",value:""};var Hu=Vu;function zu(e){var t=e.value,n=e.onChange;return Object(b.createElement)(hu,null,Object(b.createElement)(Hu,{value:t,onChange:n,placeholder:Object(I.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var Uu=n(299);var Gu=function(e){var t=e.icon,n=void 0===t?Uu.a:t,r=e.label,o=void 0===r?Object(I.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(I.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(b.createElement)(g.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(b.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(I.__)("Block variations")},a.map((function(e){return Object(b.createElement)("li",{key:e.name},Object(b.createElement)(g.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(b.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(b.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(b.createElement)(g.Button,{isLink:!0,onClick:function(){return l()}},Object(I.__)("Skip"))))},Ku=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Wu=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function qu(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 $u={top:{icon:Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(g.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(I._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Wu,title:Object(I._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Ku,title:Object(I._x)("Vertically Align Bottom","Block vertical alignment setting")}},Yu=["top","center","bottom"],Xu={isAlternate:!0};var Qu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Yu:r,c=e.isCollapsed,i=void 0===c||c,a=$u[t],l=$u.top;return Object(b.createElement)(g.ToolbarGroup,{popoverProps:Xu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(I._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(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(hl.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(I.sprintf)(Object(I._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(I.__)("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 it.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case it.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case it.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(I.__)("Link selected.")));break;case it.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case it.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case it.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(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(I.__)("Paste URL or type to search"):a,u=t.value,d=void 0===u?"":u,m=t.autoFocus,v=void 0===m||m,O=t.__experimentalShowInitialSuggestions,h=void 0!==O&&O,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,C="url-input-control-".concat(r),S="block-editor-url-input-suggestions-".concat(r),w="block-editor-url-input-suggestion-".concat(r),B={id:S,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(w,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(b.createElement)(g.BaseControl,{label:n,id:C,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(b.createElement)("input",{className:"block-editor-url-input__input",autoFocus:v,type:"text","aria-label":Object(I.__)("URL"),required:!0,value:d,onChange:this.onChange,onFocus:this.onFocus,onInput:wb,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":S,"aria-activedescendant":null!==_?"".concat(w,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(b.createElement)(g.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(d&&d.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(b.createElement)(g.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(b.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(b.createElement)(g.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(b.Component),Bb=Object(m.compose)(m.withSafeTimeout,g.withSpokenMessages,m.withInstanceId,Object(O.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(Ib),xb=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(b.useState)(),u=Object(le.a)(s,2),d=u[0],f=u[1];return Object(b.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(d||{url:n})}},Object(b.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(b.createElement)(Bb,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(I.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(b.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(b.createElement)(g.Button,{type:"submit",label:Object(I.__)("Submit"),icon:_b.a,className:"block-editor-link-control__search-submit"}))),l&&Object(b.createElement)(g.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},Pb=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(b.createElement)(g.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(b.createElement)(g.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(b.createInterpolateElement)(Object(I.sprintf)(Object(I.__)("New page: %s"),t),{mark:Object(b.createElement)("mark",null)})))):null};function Tb(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 Nb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=Nb({},t);delete n.type,delete n.id,c(Nb({},n,{},e))};return Object(b.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(b.createElement)("div",{className:"block-editor-link-control__loading"},Object(b.createElement)(g.Spinner,null)," ",Object(I.__)("Creating"),"…"),(P||!n)&&!D&&Object(b.createElement)(xb,{placeholder:t,value:S,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(vr.a)(mr.a.mark((function e(t){return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(S);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),d=["url","mailto","tel","internal"],p=1===o.length&&d.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,v="block-editor-link-control-search-results-label-".concat(_),O=l?Object(I.__)("Recently updated"):Object(I.sprintf)(Object(I.__)('Search results for "%s"'),S),j=Object(b.createElement)(l?b.Fragment:g.VisuallyHidden,{},Object(b.createElement)("span",{className:"block-editor-link-control__search-results-label",id:v},O));return Object(b.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(b.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":v}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(b.createElement)(Pb,{searchTerm:S,onClick:Object(vr.a)(mr.a.mark((function t(){return mr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(b.createElement)(yb,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(Nb({},n,{},e))},isSelected:t===i,isURL:d.includes(e.type.toLowerCase()),searchTerm:S})}))))}:null,fetchSuggestions:$,showInitialSuggestions:d,errorMessage:F}),n&&!P&&!D&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",{"aria-label":Object(I.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(b.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(b.createElement)(g.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(b.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(b.createElement)(g.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(I.__)("Edit")),Object(b.createElement)(Db,{fillProps:n}))),Object(b.createElement)(jb,{value:n,settings:r,onChange:c}))}Lb.ViewerFill=Ab;var Fb=Lb,Vb=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(B.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Hb=n(203),zb=Object(g.withFilters)("editor.MediaUpload")((function(){return null}));var Ub=Object(O.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Gb=Object(m.compose)([Object(O.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(g.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?p.noop:a,s=e.name,u=void 0===s?Object(I.__)("Replace"):s,d=e.createNotice,f=e.removeNotice,m=Object(b.useState)(t),v=Object(le.a)(m,2),h=v[0],j=v[1],k=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(b.createRef)(),_=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(b.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){d("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(Fe.speak)(Object(I.__)("The media file has been replaced")),f(_)},S=function(e){e.keyCode===it.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(b.createElement)(g.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.ToolbarGroup,{className:"media-replace-flow"},Object(b.createElement)(g.ToolbarButton,{ref:y,"aria-expanded":t,onClick:n,onKeyDown:S},u))},renderContent:function(e){e.onClose;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(b.createElement)(zb,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(b.createElement)(g.MenuItem,{icon:Vb,onClick:t},Object(I.__)("Open Media Library"))}}),Object(b.createElement)(Ub,null,Object(b.createElement)(g.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(le.a)(e,1)[0];C(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(b.createElement)(g.MenuItem,{icon:Hb.a,onClick:function(){t()}},Object(I.__)("Upload"))}}))),i&&Object(b.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(b.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(I.__)("Current media URL:")),Object(b.createElement)(Fb,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),Kb=n(300);function Wb(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(b.createElement)(g.ExternalLink,{className:o,href:t},n||Object(hl.filterURLForDisplay)(Object(hl.safeDecodeURI)(t))):Object(b.createElement)("span",{className:o})}function qb(){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}}var $b=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(qb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Gt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ut.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,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,l=Object(ke.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,d=!!r&&u;return Object(b.createElement)(g.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(b.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(b.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(b.createElement)(g.Button,{className:"block-editor-url-popover__settings-toggle",icon:Ir.a,label:Object(I.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),d&&Object(b.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!d&&Object(b.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(b.Component);$b.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(ke.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(b.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(b.createElement)(Bb,{value:o,onChange:r,autocompleteRef:t}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Apply"),type:"submit"}))},$b.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(ke.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(b.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(b.createElement)(Wb,{url:o,urlLabel:c,className:n}),r&&Object(b.createElement)(g.Button,{icon:Kb.a,label:Object(I.__)("Edit"),onClick:r}))};var Yb=$b;function Xb(){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}}var Qb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(b.createElement)(Yb,{onClose:o},Object(b.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(b.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(I.__)("URL"),placeholder:Object(I.__)("Paste or type URL"),onChange:n,value:t}),Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:_b.a,label:Object(I.__)("Apply"),type:"submit"})))},Zb=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Xb()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(Gt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(Gt.a)(e)),e.onUpload=e.onUpload.bind(Object(Gt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(Gt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(Gt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect,u=r.onFilesPreUpload;if((void 0===u?p.noop:u)(e),a)if(o){var b=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!b.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!b.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),b=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(le.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,d=n.mediaPreview,p=n.notices,m=n.onSelectURL,v=n.mediaUpload,O=n.children,h=s.instructions,j=s.title;if(v||m||(h=Object(I.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&v&&(h=Object(I.__)("Upload a media file or pick one from your media library."),y?h=Object(I.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(I.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(I.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(I.__)("Media"),y?j=Object(I.__)("Audio"):_?j=Object(I.__)("Image"):E&&(j=Object(I.__)("Video")))}var C=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(b.createElement)(g.Placeholder,{icon:i,label:j,instructions:h,className:C,notices:p,onClick:t,onDoubleClick:u,preview:d},e,O)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(b.createElement)(g.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(I.__)("Cancel"),isLink:!0,onClick:e},Object(I.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(b.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(b.createElement)(g.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(I.__)("Insert from URL")),t&&Object(b.createElement)(Qb,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,d=t.value,m=void 0===d?{}:d,v=Object(b.createElement)(zb,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(I.__)("Media Library"))}});if(a&&i)return Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(I.__)("Upload")),v,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var O=Object(b.createElement)(b.Fragment,null,this.renderDropZone(),Object(b.createElement)(g.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(I.__)("Upload")),v,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(O)}return this.renderPlaceholder(v)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&cr()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(b.createElement)(Ub,null,this.renderDropZone())):Object(b.createElement)(Ub,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(b.Component),Jb=Object(O.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ed=Object(m.compose)(Jb,Object(g.withFilters)("editor.MediaPlaceholder"))(Zb),td=Object(b.forwardRef)((function(e,t){return Object(b.createElement)(Hu,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));td.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(ke.a)(e,["value","tagName"]);return Object(b.createElement)(o,c,n)};var nd=td,rd=Object(b.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(ke.a)(e,["__experimentalVersion"]);if(2===n)return Object(b.createElement)(nd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(ke.a)(r,["className","onChange"]);return Object(b.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function od(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(od),c=r||Object(I.sprintf)(Object(I._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(b.createElement)(b.Fragment,null,Object(b.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(b.createElement)(g.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var cd=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,u=void 0===s?{id:"all",label:Object(I.__)("All")}:s,d=e.viewports,p=void 0===d?[{id:"small",label:Object(I.__)("Small screens")},{id:"medium",label:Object(I.__)("Medium screens")},{id:"large",label:Object(I.__)("Large screens")}]:d;if(!t||!n||!c)return null;var m=r||Object(I.sprintf)(Object(I.__)("Use the same %s on all screensizes."),n),v=Object(I.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(b.createElement)(od,{property:n,viewport:u}),u);return Object(b.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(b.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(b.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(b.createElement)(g.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(b.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(b.createElement)(b.Fragment,{key:e.id},c(Object(b.createElement)(od,{property:n,viewport:e}),e))}))))))};function id(e){var t=e.character,n=e.type,r=e.onUse;return Object(m.useKeyboardShortcut)(it.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function ad(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(ke.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=it.displayShortcut[r](o)),Object(b.createElement)(g.Fill,{name:i},Object(b.createElement)(g.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function ld(){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}}var sd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(ld()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{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}}]),r}(b.Component),ud=n(301),bd=Object(b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(b.createElement)(g.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 dd=Object(b.forwardRef)((function(e,t){var n=Object(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(O.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(b.createElement)(g.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(b.createElement)(g.Button,Object(s.a)({},e,{ref:t,icon:n?bd:ud.a,"aria-expanded":o,onClick:c,label:Object(I.__)("Tools")}))},position:"bottom right",renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.NavigableMenu,{role:"menu","aria-label":Object(I.__)("Tools")},Object(b.createElement)(g.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(b.createElement)(b.Fragment,null,Object(b.createElement)(ao.a,{icon:ud.a}),Object(I.__)("Edit"))},{value:"select",label:Object(b.createElement)(b.Fragment,null,bd,Object(I.__)("Select"))}]})),Object(b.createElement)("div",{className:"block-editor-tool-selector__help"},Object(I.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),fd=n(179),pd=Object(b.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(B.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 md(){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}}var vd=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(md()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(Gt.a)(e)),e.submitLink=e.submitLink.bind(Object(Gt.a)(e)),e.state={expanded:!1},e}return Object(Ut.a)(r,[{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(I.__)("Edit link"):Object(I.__)("Insert link");return Object(b.createElement)("div",{className:"block-editor-url-input__button"},Object(b.createElement)(g.Button,{icon:fd.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(b.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(b.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(b.createElement)(g.Button,{className:"block-editor-url-input__back",icon:pd,label:Object(I.__)("Close"),onClick:this.toggle}),Object(b.createElement)(Bb,{value:t||"",onChange:n}),Object(b.createElement)(g.Button,{icon:_b.a,label:Object(I.__)("Submit"),type:"submit"}))))}}]),r}(b.Component),Od=n(153),gd=["noreferrer","noopener"],hd=Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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(b.createElement)(g.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),jd=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,u=e.rel,d=Object(b.useState)(!1),f=Object(le.a)(d,2),m=f[0],v=f[1],O=Object(b.useCallback)((function(){v(!0)})),h=Object(b.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(b.useState)(null),E=Object(le.a)(_,2),C=E[0],S=E[1],w=Object(b.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[it.LEFT,it.DOWN,it.RIGHT,it.UP,it.BACKSPACE,it.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(b.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),y(!0)})),T=Object(b.useCallback)((function(){y(!1)})),N=Object(b.useCallback)((function(){S(null),T(),v(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(gd,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(b.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(v(!1),S(null),T())}})),A=Object(b.useCallback)((function(){return function(e){C&&n({href:C}),T(),S(null),e.preventDefault()}})),M=Object(b.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){return[{linkDestination:"media",title:Object(I.__)("Media File"),url:"image"===c?i:void 0,icon:hd},{linkDestination:"attachment",title:Object(I.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(b.createElement)(g.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"}))}]},F=Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToggleControl,{label:Object(I.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(b.createElement)(g.TextControl,{label:Object(I.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==C?C:r,H=(Object(p.find)(L(),["linkDestination",t])||{}).title;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.ToolbarButton,{icon:fd.a,className:"components-toolbar__control",label:r?Object(I.__)("Edit link"):Object(I.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(b.createElement)(Yb,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(b.createElement)(g.NavigableMenu,null,Object(p.map)(L(),(function(e){return Object(b.createElement)(g.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(b.createElement)(Yb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:S,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:w}),r&&!k&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Yb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(b.createElement)(g.Button,{icon:Od.a,label:Object(I.__)("Remove link"),onClick:M}))))},kd=n(154);function yd(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(b.createElement)(g.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(g.Button,{isTertiary:!0,onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(I.__)("Preview"))},renderContent:function(){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(g.MenuGroup,null,Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&kd.a},Object(I.__)("Desktop")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&kd.a},Object(I.__)("Tablet")),Object(b.createElement)(g.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&kd.a},Object(I.__)("Mobile"))),t)}})}var _d=n(264),Ed=/\((min|max)-width:[^\(]*?\)/g;function Cd(e){return!!e.media&&!!e.media.mediaText.match(Ed)}function Sd(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function wd(e,t){return e.replace(Ed,(function(e){return Object(_d.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Id(e,t){Object(b.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(hl.getProtocol)(e.href)===window.location.protocol&&Object(hl.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i0,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;if(n>1)return Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(Td,null),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}));var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(b.createElement)("div",{className:"block-editor-block-inspector"},Object(b.createElement)(uo,{blockType:t}),r&&Object(b.createElement)("div",null,Object(b.createElement)(g.PanelBody,{title:Object(I.__)("Styles")},Object(b.createElement)(ss,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(b.createElement)(Nd,{blockName:t.name}))),Object(b.createElement)(We.Slot,{bubblesVirtually:!0}),Object(b.createElement)("div",null,Object(b.createElement)(Rd,{slotName:ee.slotName})),Object(b.createElement)(xd,{key:"back"})):l?Object(b.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected.")):null}));function Ad(){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}}var Md=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(Ad()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(Gt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(b.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(b.Component),Ld=Object(m.compose)([Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(O.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Md),Fd=n(265),Vd=n.n(Fd),Hd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zd=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 d(/^{\s*/)}function u(){return d(/^}/)}function b(){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 d(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){d(/^\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=d(/^([^{]+)/);if(e)return Ud(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=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Ud(t[0]),!d(/^:\s*/))return l("property missing ':'");var n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Hd,""),value:n?Ud(n[0]).replace(Hd,""):""});return d(/^[;\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=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\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=d(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=d(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=d(/^([-\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=d(/^@media *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(b());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Ud(t[1]),media:Ud(t[2])})}()||function(){var e=c(),t=d(/^@supports *([^{]+)/);if(t){var n=Ud(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(b());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=d(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Ud(t[1]),r=Ud(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(b());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(d(/^@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(d(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(b());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(d(/^@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(No.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=b(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Ud(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Gd=n(164),Kd=n.n(Gd),Wd=qd;function qd(e){this.options=e||{}}qd.prototype.emit=function(e){return e},qd.prototype.visit=function(e){return this[e.type](e)},qd.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?cf({},n,{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(af)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},sf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(lf(t)),r&&o.push(rf(r)),o.length?Zd(n,Object(m.compose)(o)):n}))};var uf=function(e){var t=e.styles;return Object(b.useEffect)((function(){var e=sf(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.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 bf=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.onSelect,s=void 0===l?p.noop:l,u=Object(O.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(b.createElement)(Bl,{onSelect:s,rootClientId:u,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a})};function df(){var e=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(le.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(O.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,d=o.clearSelectedBlock,f=o.moveBlocksUp,m=o.moveBlocksDown;return Object(l.useShortcut)("core/block-editor/move-up",Object(b.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/move-down",Object(b.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/duplicate",Object(b.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(b.useCallback)((function(e){e.preventDefault(),a(Object(p.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(b.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(b.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(l.useShortcut)("core/block-editor/select-all",Object(b.useCallback)((function(e){e.preventDefault(),u(Object(p.first)(n),Object(p.last)(n))}),[n,u])),Object(l.useShortcut)("core/block-editor/unselect",Object(b.useCallback)((function(e){e.preventDefault(),d(),window.getSelection().removeAllRanges()}),[t,d]),{isDisabled:t.length<2}),null}df.Register=function(){var e=Object(O.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(b.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(I.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(I.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(I.__)("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(I.__)("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(I.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(I.__)("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(I.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(I.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(I.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(I.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var ff=df;function pf(){var e=Object(O.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(b.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(hr.getScrollContainer)(e);o&&Cb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var mf=[it.UP,it.RIGHT,it.DOWN,it.LEFT,it.ENTER,it.BACKSPACE];var vf=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(b.useRef)(),o=Object(b.useRef)(),c=Object(O.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(O.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",d),document[t]("mousemove",u)}function u(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 d(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(hr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&mf.includes(t)}(e))&&a()}return Object(b.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(b.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(hr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==it.ESCAPE&&e.keyCode!==it.TAB||l()}])},t)}));function Of(){return cr()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function gf(){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}}var hf=-1!==window.navigator.userAgent.indexOf("Trident"),jf=new Set([it.UP,it.DOWN,it.LEFT,it.RIGHT]),kf=function(e){Object(qt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Wt.a)(t);if(gf()){var r=Object(Wt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Kt.a)(this,e)});function r(){var e;return Object(zt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(b.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Gt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Gt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Gt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Gt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Gt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Gt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Gt.a)(e)),e}return Object(Ut.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(hr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(hr.computeCaretRect)();if(n)if(this.caretRect)if(jf.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(hr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.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(310);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";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(171),i=n(2),a=(n(90),n(132));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(314))&&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?A:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(M)):t}var F=Object(d.createContext)({}),V=F.Provider,H=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(F).isEmbedButton,r=t.name,o=n?[]:L(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(g.a,{key:"align-controls"},Object(d.createElement)(N,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),z=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(O.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var i=L(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=R(R({},a),{},{"data-align":r})),Object(d.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(v.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=R(R({},e.attributes),{},{align:{type:"string",enum:[].concat(A,[""])}})),e})),Object(v.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",z),Object(v.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",H),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return L(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=f()("align".concat(r),e.className)),e}));var U=n(80),G=Object(j.createSlotFill)("InspectorAdvancedControls"),W=G.Fill,K=G.Slot;function q(e){var t=e.children;return Object(U.b)().isSelected?Object(d.createElement)(W,null,t):null}q.slotName="InspectorAdvancedControls",q.Slot=K;var $=q;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 X(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(v.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=ee(ee({},e.attributes),{},{className:{type:"string"}})),e})),Object(v.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",te),Object(v.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=f()(e.className,n.className)),e})),Object(v.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=ne(o),a=ne(n),l=Object(p.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var re=n(18);Object(v.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(p.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(re.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var oe=n(12),ce=n(150),ie=n(66),ae=n.n(ie),le=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},se=function(e,t){return Object(p.find)(e,{color:t})};function ue(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var de={"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 be(e){var t=Object(U.b)().name;return Object(O.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(p.get)(o,i))&&void 0!==r?r:Object(p.get)(o,c);if(void 0!==a)return a;var l=de[e]?de[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var fe=[];function pe(e){if(e)return"has-".concat(e,"-gradient-background")}function me(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ve(e,t){return Object(p.find)(e,["gradient",t])}function Oe(e,t){var n=ve(e,t);return n&&n.slug}function ge(){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(U.b)(),i=c.clientId,a=be("color.gradients")||fe,l=Object(O.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),s=l.gradient,b=l.customGradient,f=Object(O.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=Oe(a,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[a,i,p]),v=pe(s);return{gradientClass:v,gradientValue:s?me(a,s):b,setGradient:m}}var he=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},je=n(14);function ke(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 ye(e){for(var t=1;t=24?"large":"small"})?null:Object(d.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=n(167),Ue=Object(j.createSlotFill)("InspectorControls"),Ge=Ue.Fill,We=Ue.Slot;function Ke(e){var t=e.children;return Object(ze.a)()?Object(d.createElement)(Ge,null,t):null}Ke.Slot=We;var qe=Ke;function $e(e){return document.getElementById("block-"+e)}function Ye(e,t){return t.closest(".block-editor-block-list__block")===e}function Xe(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 Qe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Ze(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(d.useState)(),i=Object(oe.a)(c,2),a=i[0],l=i[1],s=Object(d.useState)(),u=Object(oe.a)(s,2),b=u[0],f=u[1];return Object(d.useEffect)((function(){if(o){var e=$e(n);if(e){f(Qe(e).color);for(var t=e,r=Qe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Qe(t=t.parentNode).backgroundColor;l(r)}}})),Object(d.createElement)(qe,null,Object(d.createElement)(Le,{title:Object(h.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(He,{backgroundColor:a,textColor:b})))}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 et(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!be("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var vt=n(156),Ot=n.n(vt),gt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function ht(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function jt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var kt=function(e){var t=be("typography.fontSizes"),n=!be("typography.customFontSize");return Object(d.createElement)(j.FontSizePicker,Object(s.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function yt(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 _t(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=be("typography.fontSizes"),r=n.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!r}var wt=Object(m.createHigherOrderComponent)((function(e){return function(t){var n,r=be("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,u=_t({},t);if(Object(c.hasBlockSupport)(o,"__experimentalFontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=gt(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;u.wrapperProps=_t(_t({},s),{},{style:_t({fontSize:f},null==s?void 0:s.style)})}return Object(d.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(v.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",Et),Object(v.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Et(r,e,n)},e})),Object(v.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",wt);var It=["__experimentalLineHeight","__experimentalFontSize"];function Bt(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[St(e),mt(e)];return t.filter(Boolean).length===t.length}(e),n=xt(e.name);return t||!n?null:Object(d.createElement)(qe,null,Object(d.createElement)(j.PanelBody,{title:Object(h.__)("Typography")},Object(d.createElement)(Ct,e),Object(d.createElement)(pt,e)))}var xt=function(e){return"web"===d.Platform.OS&&It.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function Pt(e){var t=e.units,n=Object(je.a)(e,["units"]),r=Tt(t);return Object(d.createElement)(j.__experimentalUnitControl,Object(s.a)({units:r},n))}function Tt(e){var t=be("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 Nt(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 Dt(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(ce.a)(n),o=r[0],c=r.slice(1),i=Object(oe.a)(c,1)[0];Object(p.has)(e,i)&&(t[o]=Ht(Object(p.get)(e,i)))})),t}(r)),e.style),e}var Ut=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(d.createElement)(Bt,Object(s.a)({key:"typography"},t)),Object(d.createElement)(lt,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(d.createElement)(At,{key:"spacing"},Object(d.createElement)(Rt,t))]}}),"withToolbarControls");Object(v.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Vt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(v.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",zt),Object(v.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Vt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),zt(r,e,n)},e})),Object(v.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ut);var Gt=n(21),Wt=n(20),Kt=n(15),qt=n(22),$t=n(23),Yt=n(17);function Xt(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}function Qt(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 Zt(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 pn(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(h.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(h.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,b=void 0===s?l:s,m=a.textColorTargetRef,v=void 0===m?l:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(U.b)(),k=j.clientId,y=be("color.palette")||gn,_=Object(O.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(O.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(d.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(d.useMemo)((function(){return an()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=void 0===s?"":s,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(u.a)({},t,o):c&&(O=Object(u.a)({},t,c));var g={className:f()(b,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:vn(vn({},O),v)};return Object(p.isFunction)(l)?l(g):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,g.className),style:vn(vn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(d.useMemo)((function(){return an()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),x=Object(d.useState)(),P=Object(oe.a)(x,2),T=P[0],N=P[1],D=Object(d.useState)(),R=Object(oe.a)(D,2),A=R[0],M=R[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=fn(Object(p.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(On(v.current).color),t){for(var l=b.current,s=On(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=On(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(re.a)(g))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=vn(vn({},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||hn[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(p.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===f}));return e[d]=I(o,i,a,f,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=f,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(p.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 vn(vn({},n),{},{ColorPanel:Object(d.createElement)(bn,a),InspectorControlsColorPanel:Object(d.createElement)(jn,a)})}),[E,w,A,T].concat(Object(re.a)(g)))}function yn(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;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(p.words)(Vn(e))},zn=function(e,t){return Object(p.differenceWith)(e,Hn(t),(function(e,t){return t.includes(e)}))},Un=function(e,t,n,r){return 0===Hn(r).length?e:Gn(e,r,{getCategory:function(e){var n;return null===(n=Object(p.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))}})},Gn=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=Hn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Wn(e,t,n)]})).filter((function(e){return Object(oe.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(oe.a)(e,2)[1];return Object(oe.a)(t,2)[1]-n})),o.map((function(e){return Object(oe.a)(e,1)[0]}))};function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Rn:r,c=n.getTitle,i=void 0===c?An:c,a=n.getKeywords,l=void 0===a?Mn:a,s=n.getCategory,u=void 0===s?Ln:s,d=n.getCollection,b=void 0===d?Fn:d,f=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Vn(t),j=Vn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[f,m].concat(Object(re.a)(v),[O,g]).join(" "),_=Object(p.words)(h),E=zn(_,y);0===E.length&&(k+=10)}return 0!==k&&f.startsWith("core/")&&k++,k}var Kn=function(e,t){var n=Object(O.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(d.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(oe.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]},qn=n(207);function $n(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:qn.a});var c=Object(d.createElement)(j.Icon,{icon:t&&t.src?t.src:t}),i=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:i,className:f()("block-editor-block-icon",o,{"has-colors":r})},c)}var Yn=function e(t){return Object(p.map)(t,(function(t){var n=Object(oe.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))};var Xn={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(O.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,p.noop),c=Object(oe.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(d.useMemo)((function(){return(e.trim()?Un(i,a,l,e):Object(p.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(d.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(d.createElement)(d.Fragment,null,Object(d.createElement)($n,{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,Yn(r))}}},Qn=[];var Zn=function(e){var t=Object(U.b)().name,n=e.completers,r=void 0===n?Qn:n;return r=Object(d.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([Xn])),Object(v.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(p.clone)),e=Object(v.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(d.createElement)(j.Autocomplete,Object(s.a)({},e,{completers:r}))};var Jn=function(e){var t=e.label,n=void 0===t?Object(h.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(j.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(j.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(j.ToolbarGroup,null,Object(d.createElement)(j.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ut.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(j.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function er(e){var t=e.clientId,n=Object(O.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(p.truncate)(l,{length:15})):a}var tr=function(){var e=Object(O.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(O.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(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(h.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(j.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(h.__)("Document")),!i&&Object(h.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(j.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(er,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(er,{clientId:o})))};function nr(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 rr(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(h.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(h.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(h.sprintf)(Object(h._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(h.sprintf)(Object(h._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(h.sprintf)(Object(h.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(h.sprintf)(Object(h.__)("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(h.sprintf)(Object(h.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(h.sprintf)(Object(h.__)("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(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(h.sprintf)(Object(h.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(h.sprintf)(Object(h.__)("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(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(h.sprintf)(Object(h.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Dr=function(e,t,n){return"up"===e?"horizontal"===t?n?Br.a:xr.a:Pr.a:"down"===e?"horizontal"===t?n?xr.a:Br.a:Tr.a:null},Rr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(h.__)("Move right"):Object(h.__)("Move left"):Object(h.__)("Move up"):"down"===e?"horizontal"===t?n?Object(h.__)("Move left"):Object(h.__)("Move right"):Object(h.__)("Move down"):null},Ar=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(je.a)(e,["clientIds","direction","orientation"]),a=Object(m.useInstanceId)(Ar),l=Object(p.castArray)(n).length,u=Object(O.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(p.castArray)(n),f=Object(p.first)(b),m=a(f),v=i(f,m),O=i(Object(p.last)(b),m),g=l(m),h=s(f),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]),b=u.blockType,v=u.isDisabled,g=u.rootClientId,h=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.orientation,C=void 0===E?"vertical":E,S=Object(O.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(d.createElement)(d.Fragment,null,Object(d.createElement)(j.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Dr(r,C,_),label:Rr(r,C,_),"aria-describedby":x},i,{onClick:v?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":v})),Object(d.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Nr(l,b&&b.title,y,h,k,"up"===r?-1:1,C,_)))})),Mr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Ar,Object(s.a)({direction:"up",ref:t},e))})),Lr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Ar,Object(s.a)({direction:"down",ref:t},e))}));function Fr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(d.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Vr=Object(d.createContext)({__experimentalFeatures:!1}),Hr=function(){return Object(d.useContext)(Vr)},zr=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Ur=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(j.DropdownMenu,{className:"block-editor-warning__secondary",icon:zr,label:Object(h.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(d.createElement)(j.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(j.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},Gr=n(277),Wr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(j.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Kr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,b={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.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(Gr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}(b.rawContent,m.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(Wr,{title:Object(h.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(h.__)("Convert to HTML"),rawContent:b.rawContent,renderedContent:b.renderedContent}),Object(d.createElement)(Wr,{title:Object(h.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:v,renderedContent:m.renderedContent}))};var qr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},$r=Object(m.compose)([Object(O.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(O.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,qr(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(d.useState)(!1),s=Object(oe.a)(l,2),u=s[0],b=s[1],f=Object(d.useCallback)((function(){return b(!0)}),[]),p=Object(d.useCallback)((function(){return b(!1)}),[]),m=Object(d.useMemo)((function(){return[{title:Object(h._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(h.__)("Convert to HTML"),onClick:t},{title:Object(h.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Ur,{actions:[Object(d.createElement)(j.Button,{key:"recover",onClick:o,isPrimary:!0},Object(h.__)("Attempt Block Recovery"))],secondaryActions:m},Object(h.__)("This block contains unexpected or invalid content.")),u&&Object(d.createElement)(j.Modal,{title:Object(h.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(d.createElement)(Kr,{block:i,onKeep:t,onConvert:n,convertor:qr,convertButtonText:Object(h.__)("Convert to Blocks")})))})),Yr=Object(d.createElement)(Ur,{className:"block-editor-block-list__block-crash-warning"},Object(h.__)("This block has encountered an error and cannot be previewed.")),Xr=function(){return Yr};function Qr(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Zr=function(e){Object(qt.a)(n,e);var t=Qr(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Wt.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}(d.Component),Jr=n(99),eo=n.n(Jr);var to=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(oe.a)(n,2),o=r[0],i=r[1],a=Object(O.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(O.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(eo.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)}})},no=n(35),ro=n.n(no);function oo(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 co(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 io(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ao=n(208),lo=[Object(d.createInterpolateElement)(Object(h.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(h.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(h.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(h.__)("Drag files into the editor to automatically insert media blocks."),Object(h.__)("Change a block's type by pressing the block icon on the toolbar.")];var so=function(){var e=Object(d.useState)(Math.floor(Math.random()*lo.length)),t=Object(oe.a)(e,1)[0];return Object(d.createElement)(j.Tip,null,lo[t])},uo=n(181),bo=n(142),fo=n(303);var po=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(m.useInstanceId)(e),a=Object(d.useRef)();return Object(d.createElement)("div",{className:f()("block-editor-inserter__search",n)},Object(d.createElement)(j.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(d.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(d.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(d.createElement)(j.Button,{icon:uo.a,label:Object(h.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(d.createElement)(bo.a,{icon:fo.a})))};var mo=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)($n,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},vo={insertUsage:{}},Oo={alignWide:!1,colors:[{name:Object(h.__)("Black"),slug:"black",color:"#000000"},{name:Object(h.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(h.__)("White"),slug:"white",color:"#ffffff"},{name:Object(h.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(h.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(h.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(h.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(h.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(h.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(h.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(h.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(h.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(h._x)("Small","font size name"),size:13,slug:"small"},{name:Object(h._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(h._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(h._x)("Large","font size name"),size:36,slug:"large"},{name:Object(h._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(h.__)("Thumbnail")},{slug:"medium",name:Object(h.__)("Medium")},{slug:"large",name:Object(h.__)("Large")},{slug:"full",name:Object(h.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],gradients:[{name:Object(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("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(h.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(h.__)("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(h.__)("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(h.__)("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(h.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(h.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function go(e,t,n){return[].concat(Object(re.a)(e.slice(0,n)),Object(re.a)(Object(p.castArray)(t)),Object(re.a)(e.slice(n)))}function ho(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(re.a)(e);return o.splice(t,r),go(o,e.slice(t,t+r),n)}function jo(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 ko(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,yo(o,r))})),n}function _o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),_o(n.innerBlocks,n.clientId))}),{})}function Eo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(re.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(je.a)(o,["innerBlocks"]);r.push.apply(r,Object(re.a)(c)),n[i.clientId]=t(i)}return n}function Co(e){return Eo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function So(e){return Eo(e,(function(e){return e.attributes}))}function wo(e,t){return e===t?ko({},e):t}function Io(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Bo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var xo=Object(p.flow)(O.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=ko({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ko(ko({},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(p.mapValues)(Eo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(Eo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ko(ko({},r.cache),Bo(o(c)));break;case"UPDATE_BLOCK":r.cache=ko(ko({},r.cache),Bo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ko(ko({},r.cache),Bo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Bo(o(n.replacedClientIds));r.cache=ko(ko(ko({},Object(p.omit)(r.cache,n.replacedClientIds)),Object(p.omit)(i,n.replacedClientIds)),Bo(Object(p.keys)(Eo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ko(ko({},Object(p.omit)(r.cache,n.removedClientIds)),Bo(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(re.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ko(ko({},r.cache),Bo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ko(ko({},r.cache),Bo(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ko(ko({},r.cache),Bo(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(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(re.a)(n),[o],Object(re.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return ko(ko({},t),{},{byClientId:ko(ko({},Object(p.omit)(t.byClientId,r)),Co(n.blocks)),attributes:ko(ko({},Object(p.omit)(t.attributes,r)),So(n.blocks)),order:ko(ko({},Object(p.omit)(t.order,r)),Object(p.omit)(yo(n.blocks),o)),parents:ko(ko({},Object(p.omit)(t.parents,r)),_o(n.blocks)),cache:ko(ko({},Object(p.omit)(t.cache,r)),Object(p.omit)(Object(p.mapValues)(Eo(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){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:ko(ko({},c),{},{isPersistentChange:a})}return c=ko(ko({},c),{},{isPersistentChange:i?!n:!Io(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 Co(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ko(ko({},e),Co(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:ko(ko({},e),{},Object(u.a)({},t.clientId,ko(ko({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ko(ko({},Object(p.omit)(e,t.replacedClientIds)),Co(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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 So(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ko(ko({},e),So(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ko(ko({},e),{},Object(u.a)({},t.clientId,ko(ko({},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 ko(ko({},n),{},Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=wo(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ko(ko({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ko(ko({},Object(p.omit)(e,t.replacedClientIds)),So(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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 yo(t.blocks);case"RECEIVE_BLOCKS":return ko(ko({},e),Object(p.omit)(yo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=yo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ko(ko(ko({},e),c),{},Object(u.a)({},r,go(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[f].length:v;if(d===f){var g=e[f],h=g.indexOf(m[0]);return ko(ko({},e),{},Object(u.a)({},f,ho(e[f],h,O,m.length)))}return ko(ko({},e),{},(l={},Object(u.a)(l,d,p.without.apply(void 0,[e[d]].concat(Object(re.a)(m)))),Object(u.a)(l,f,go(e[f],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var C=E.indexOf(_);return ko(ko({},e),{},Object(u.a)({},y,ho(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(S),x=Object(p.last)(S),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return ko(ko({},e),{},Object(u.a)({},I,ho(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=yo(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return ko(ko({},e),Object(p.omit)(D,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(re.a)(e),Object(re.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(re.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 _o(t.blocks);case"RECEIVE_BLOCKS":return ko(ko({},e),_o(t.blocks));case"INSERT_BLOCKS":return ko(ko({},e),_o(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ko(ko({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ko(ko({},Object(p.omit)(e,t.replacedClientIds)),_o(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.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?ko(ko({},e),{},Object(u.a)({},r,o)):e}});function Po(){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}var To=Object(O.combineReducers)({blocks:xo,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 Po(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 Po(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 ko(ko({},e),{},Object(u.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(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:ko(ko({},e),{},Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.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"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}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 ko(ko({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ko(ko({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo,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),ko(ko({},e),{},{insertUsage:ko(ko({},e.insertUsage),{},Object(u.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(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ko(ko({},e),{},Object(u.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}}),No=n(113),Do=n.n(No),Ro=n(275),Ao=n.n(Ro),Mo=n(40);function Lo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=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 Ho(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 dc(e){var t;return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Lo("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,uc(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Wo)}function bc(e){var t;return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Lo("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,uc(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Ko)}function fc(){return{type:"START_MULTI_SELECT"}}function pc(){return{type:"STOP_MULTI_SELECT"}}function mc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function vc(){return{type:"CLEAR_SELECTED_BLOCK"}}function Oc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function gc(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(null==r?void 0:r.includes("is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return Uo(Uo({},e),{},{attributes:Uo(Uo({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function hc(e,t,n,r,o){var c,i,a;return hr.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(p.castArray)(e),l.t0=gc,l.t1=Object(p.castArray)(t),l.next=5,Lo("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,Lo("core/block-editor","getBlockRootClientId",Object(p.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,Lo("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,Lo("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()}}),$o)}function Cc(e){var t,n,r,o=arguments;return hr.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,Ec([e],t,n,r);case 5:case"end":return c.stop()}}),Yo)}function Sc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return wc([e],t,n,r)}function wc(e,t,n){var r,o,c,i,a,l,s=arguments;return hr.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=gc,u.t1=Object(p.castArray)(e),u.next=6,Lo("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Vo(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,Lo("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()}}),Xo,null,[[10,22,25,28]])}function Ic(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Bc(){return{type:"HIDE_INSERTION_POINT"}}function xc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Pc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Tc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Nc(e){var t,n,r,o,c=arguments;return hr.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(p.castArray)(e),i.next=6,Lo("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,Lo("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,dc(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,Lo("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(oc(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Qo)}function Dc(e,t){return Nc([e],t)}function Rc(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 Ac(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Mc(){return{type:"START_TYPING"}}function Lc(){return{type:"STOP_TYPING"}}function Fc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Vc(){return{type:"STOP_DRAGGING_BLOCKS"}}function Hc(){return{type:"ENTER_FORMATTED_TEXT"}}function zc(){return{type:"EXIT_FORMATTED_TEXT"}}function Uc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Gc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return Sc(Object(c.createBlock)(r,e),n,t)}function Wc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Kc(e){return{type:"UPDATE_SETTINGS",settings:e}}function qc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function $c(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Yc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Xc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Qc(){var e,t=arguments;return hr.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(Fe.speak)(Object(h.__)("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(Fe.speak)(Object(h.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Zo)}function Zc(){var e,t=arguments;return hr.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(Fe.speak)(Object(h.__)("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()}}),Jo)}function Jc(e){var t,n,r,o,i,a,l=arguments;return hr.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,Lo("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,Lo("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.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(p.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,Lo("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,wc(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,mc(Object(p.first)(a).clientId,Object(p.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),ec)}function ei(e){var t,n;return hr.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,Lo("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Lo("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Lo("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Gc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),tc)}function ti(e){var t,n;return hr.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,Lo("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Lo("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Lo("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Gc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),nc)}function ni(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function ri(e){return hr.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ni(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,ni(e,!1);case 6:case"end":return t.stop()}}),rc)}function oi(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ci=n(41);function ii(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 ai(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 ai(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 ai(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(p.map)(Zi(e,t),(function(t){return gi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),ji=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Zi(t,n);return[].concat(Object(re.a)(r),Object(re.a)(e(t,r)))}))},ki=Object(ci.a)((function(e){var t=Zi(e);return[].concat(Object(re.a)(t),Object(re.a)(ji(e,t)))}),(function(e){return[e.blocks.order]})),yi=Object(ci.a)((function(e,t){var n=ki(e);return t?Object(p.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]})),_i=Object(ci.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return mi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Ei(e,t){return Zi(e,t).length}function Ci(e){return e.selectionStart}function Si(e){return e.selectionEnd}function wi(e){return e.selectionStart.clientId}function Ii(e){return e.selectionEnd.clientId}function Bi(e){var t=Ui(e).length;return t||(e.selectionStart.clientId?1:0)}function xi(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Pi(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ti(e){var t=Pi(e);return t?mi(e,t):null}function Ni(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Di=Object(ci.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]})),Ri=Object(ci.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Di(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:bi(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Ai(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Mi(e,t){for(var n,r=Pi(e),o=[].concat(Object(re.a)(Di(e,t)),[t]),c=[].concat(Object(re.a)(Di(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=Pi(e)),void 0===t&&(t=n<0?Wi(e):Ki(e)),!t)return null;var r=Ni(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 Fi(e,t){return Li(e,t,-1)}function Vi(e,t){return Li(e,t,1)}function Hi(e){return e.initialPosition}var zi=Object(ci.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return di;if(t.clientId===n.clientId)return[t.clientId];var r=Ni(e,t.clientId);if(null===r)return di;var o=Zi(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 Ui(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?di:zi(e)}var Gi=Object(ci.a)((function(e){var t=Ui(e);return t.length?t.map((function(t){return mi(e,t)})):di}),(function(e){return[].concat(Object(re.a)(zi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Wi(e){return Object(p.first)(Ui(e))||null}function Ki(e){return Object(p.last)(Ui(e))||null}function qi(e,t){return Wi(e)===t}function $i(e,t){return-1!==Ui(e).indexOf(t)}var Yi=Object(ci.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=$i(e,n=Ni(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Xi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Qi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Zi(e,t){return e.blocks.order[t||""]||di}function Ji(e,t,n){return Zi(e,n).indexOf(t)}function ea(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Zi(e,t),(function(t){return ea(e,t)||$i(e,t)||n&&ta(e,t,n)}))}function na(e,t){if(!t)return!1;var n=Ui(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(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Ia(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!Oa(e,n);if(s)return!1;var u=wa(e,n);if(n&&void 0===u)return!1;var d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=bi(e,n),v=r(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ha=Object(ci.a)(ga,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ja(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ha(e,bi(e,t),n)}))}function ka(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ya=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&ga(e,t.name,n)},_a=function(e){return function(t){return si(si({},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:si(si({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},Ea=Object(ci.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(p.some)(_i(e,ki(e)),{name:t.name}));var i=ka(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=Pa(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=ka(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,icon:n?n.icon:ui,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ya(e,t,n)})).map(o),l=ga(e,"core/block",n)?Da(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=ii(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,f=b.variations,m=void 0===f?[]:f;if(m.length){var v=_a(b);u.push.apply(u,Object(re.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(re.a)(s),u,Object(re.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Da(e),Object(c.getBlockTypes)()]})),Ca=Object(ci.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return ya(e,n,t)}));if(n)return!0;var r=ga(e,"core/block",t)&&Da(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Da(e),Object(c.getBlockTypes)()]})),Sa=Object(ci.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return ya(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function wa(e,t){return e.blockListSettings[t]}function Ia(e){return e.settings}function Ba(e){return e.blocks.isPersistentChange}var xa=Object(ci.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Pa=Object(ci.a)((function(e,t){var n=Object(p.find)(Da(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[Da(e)]}));function Ta(e){return e.blocks.isIgnoredChange}function Na(e){return e.lastBlockAttributesChange}function Da(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],di)}function Ra(e){return e.isNavigationMode}function Aa(e){return e.hasBlockMovingClientId}function Ma(e){return!!e.automaticChangeStatus}function La(e,t){return e.highlightedBlock===t}function Fa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Va(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 Ha(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||_.length>6,N=Object(d.useMemo)((function(){return Un(_,E,C,s)}),[s,_,E,C]),D=Object(d.useMemo)((function(){return Gn(B,s)}),[s,B]),R=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalSetIsInserterOpened}),[]),A=Object(O.useSelect)((function(e){return e("core/block-editor").getPreviousBlockClientId(r)}),[r]);Object(d.useEffect)((function(){R&&R(!1)}),[R]);var M=Object(O.useDispatch)("core/block-editor").selectBlock;return Object(d.useEffect)((function(){if(s){var e=N.length+D.length,t=Object(h.sprintf)(Object(h._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]),Object(d.createElement)("div",{className:f()("block-editor-inserter__quick-inserter",{"has-search":T,"has-expand":R}),onKeyPress:Zl,onKeyDown:Ql},T&&Object(d.createElement)(po,{value:s,onChange:function(e){u(e)},placeholder:Object(h.__)("Search for a block")}),Object(d.createElement)(Jl,{blockTypes:N,blockPatterns:P?D:[],onSelectBlockPattern:x,onSelectBlockType:S,onHover:g}),R&&Object(d.createElement)(j.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){M(A),setTimeout((function(){R(!0)}))},"aria-label":Object(h.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(h.__)("Browse all")))}));function ts(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var ns=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,l=void 0===a?{}:a;t=i?Object(h.sprintf)(Object(h._x)("Add %s","directly add the only allowed block"),c):Object(h._x)("Add block","Generic label for block inserter button");var u=l.onClick,b=Object(je.a)(l,["onClick"]);return Object(d.createElement)(j.Button,Object(s.a)({icon:ao.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),u&&u(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},rs=function(e){Object(qt.a)(n,e);var t=ts(n);function n(){var e;return Object(Gt.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(Wt.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?ns: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(d.createElement)(es,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(d.createElement)(Xl,{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(d.createElement)(j.Dropdown,{className:"block-editor-inserter",contentClassName:f()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(h.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(d.Component),os=Object(m.compose)([Object(O.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(p.size)(s)&&0===Object(p.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(O.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(h.sprintf)(Object(h.__)("%s block added"),l.title);Object(Fe.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(rs),cs=Object(d.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(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(O.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=$e(n);if(r){var t=_r.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=_r.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})}));var is=Object(p.overEvery)([_r.isTextField,_r.focus.tabbable.isTabbableIndex]);function as(e,t,n,r){var o,c=_r.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!_r.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(_r.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 ls(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 ss(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(O.useSelect)(ls,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,v=s.selectionAfterEndClientId,g=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(O.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(d.useState)(!1),z=Object(oe.a)(H,2),U=z[0],G=z[1];Object(d.useEffect)((function(){k&&!w&&c.current.focus()}),[k,w]);var W=f()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(d.createElement)("div",{className:W},Object(d.createElement)(cs,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===ut.UP,f=t===ut.DOWN,O=t===ut.LEFT,h=t===ut.RIGHT,C=t===ut.TAB,S=t===ut.ESCAPE,w=t===ut.ENTER,D=t===ut.SPACE,H=d||O,z=O||h,U=d||f,W=z||U,K=e.shiftKey,q=K||e.ctrlKey||e.altKey||e.metaKey,$=U?_r.isVerticalEdge:_r.isHorizontalEdge;if(_){var Y,X=C&&K||d,Q=C&&!K||f,Z=O,J=h;if(X)Y=m;else if(Q)Y=v;else if(Z){var ee;Y=null!==(ee=B(u))&&void 0!==ee?ee:u}else if(J){var te;Y=null!==(te=x([u])[0])&&void 0!==te?te:u}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(u),ce=I(ne,re),ie=I(u,oe);cen}));if(r){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Fe.speak)(k)}),[]);var h=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(h,l,i+1,b),y=f()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!u});return Object(d.createElement)("div",Object(s.a)({className:y},r),Object(d.createElement)(j.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==ut.BACKSPACE&&n!==ut.DELETE||(v(t),e.preventDefault())},label:k},Object(d.createElement)(er,{clientId:t})))};function ps(e,t,n){var r=Object(d.useState)(t),o=Object(oe.a)(r,1)[0],c=Object(d.useCallback)((function(){var t,n,r;t=e.current,n=_r.focus.tabbable.find(t),(r=Object(oe.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){o&&c()}),[n,o,c])}var ms=function(e){var t=e.children,n=e.focusOnMount,r=Object(je.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),c=function(e){var t=Object(d.useState)(!0),n=Object(oe.a)(t,2),r=n[0],o=n[1],c=Object(d.useCallback)((function(){var t=_r.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||ro()("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(d.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 ps(o,n,c),c?Object(d.createElement)(j.Toolbar,Object(s.a)({label:r["aria-label"],ref:o},r),t):Object(d.createElement)(j.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vs=Object(d.createElement)(k.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(k.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Os(e){var t=e.clientIds,n=Object(O.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(oe.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(d.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(d.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(d.createElement)(j.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(d.createElement)(j.FlexItem,null,n?Object(d.createElement)($n,{icon:n}):Object(h.sprintf)(Object(h._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)(j.FlexItem,null,Object(d.createElement)($n,{icon:vs})))))}var gs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,u=e.elementId,b=Object(O.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(d.useRef)(!1),v=(t=Object(d.useRef)(null),n=Object(d.useRef)(null),r=Object(d.useRef)(null),o=Object(d.useRef)(null),Object(d.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(d.useCallback)((function(e){t.current=e.clientY,r.current=Object(_r.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(d.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 _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(O.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ns),Rs=n(43);function As(){var e=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(O.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(O.useDispatch)("core/notices").createSuccessNotice;return Object(d.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(h.sprintf)(Object(h.__)('Copied "%s" to clipboard.'),a):Object(h.sprintf)(Object(h.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(h.sprintf)(Object(h._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(h.sprintf)(Object(h._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ms=function(e){var t=e.children,n=Object(d.useRef)(),r=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(O.useDispatch)("core/block-editor"),u=s.flashBlock,b=s.removeBlocks,f=s.replaceBlocks,m=As(),v=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(_r.documentHasUncollapsedSelection)(r):Object(_r.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(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 d=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.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(p.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),O=d.plainText,g=d.html,h=Object(c.pasteHandler)({HTML:g,plainText:O,mode:"BLOCKS",canUserUseUnfilteredHTML:v});f(t,h,h.length-1,-1)}}}};return Object(d.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Ls(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(O.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(O.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,f=l(t),m=a(t[0]),v=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(O.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=As();return n({canDuplicate:v,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onMoveTo:function(){w(!0),I(t[0]),S(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&C(e[0]),B("copy",e)}})}var Fs=Object(m.compose)([Object(O.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(O.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.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(h.__)("Edit as HTML"):Object(h.__)("Edit visually");return Object(d.createElement)(j.MenuItem,{onClick:r},!i&&s)}));var Vs=Object(m.compose)(Object(O.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(O.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(h.__)("Convert to Blocks");return Object(d.createElement)(j.MenuItem,{onClick:n},!r&&o)})),Hs=Object(j.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),zs=Hs.Fill,Us=Hs.Slot;zs.Slot=Us;var Gs=zs;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 Ks(e){for(var t=1;t1,B=f()("block-editor-block-toolbar",S&&"is-showing-movers"),x=r?ou.a:"div";return Object(d.createElement)(x,{className:B},Object(d.createElement)("div",Object(s.a)({ref:k},E),!I&&Object(d.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(d.createElement)(js,{clientIds:i})),(w||I)&&Object(d.createElement)(j.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(d.createElement)(Ds,{clientIds:i}),Object(d.createElement)(hs,{clientIds:i,hideDragHandle:t}))),w&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(g.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(Or.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(Js,{clientIds:i}))}var iu=function(e){var t=e.focusOnMount,n=Object(je.a)(e,["focusOnMount"]),r=Object(O.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(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(ms,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(h.__)("Block tools")},n),Object(d.createElement)(cu,null)))};function au(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 lu(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(O.useSelect)(au,[]),a=i.isNavigationMode,s=i.isMultiSelecting,u=i.isTyping,b=i.isCaretWithinFormattedText,p=i.hasMultiSelection,v=i.hasFixedToolbar,g=i.lastClientId,h=Object(m.useViewportMatch)("medium"),k=Object(d.useState)(!1),y=Object(oe.a)(k,2),_=y[0],E=y[1],C=Object(d.useState)(!1),S=Object(oe.a)(C,2),w=S[0],I=S[1],B=Object(d.useContext)(bu),x=!a&&o&&r,P=a,T=!a&&!v&&h&&!x&&!s&&(!u||b),N=!(a||T||v||o);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.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(p){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(d.createElement)(j.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(d.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(d.createElement)(os,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(d.createElement)(iu,{focusOnMount:_}),P&&Object(d.createElement)(fs,{clientId:t,rootClientId:n}),x&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(os,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function su(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,f=d.attributes,m=void 0===f?{}:f,v=d.isValid,O=a(s),g=l(O),h=Object(p.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 uu(){var e=Object(O.useSelect)(su,[]);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(d.createElement)(lu,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var du=Object(d.createContext)(),bu=Object(d.createContext)(),fu=Object(d.createContext)();function pu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function mu(e){Xe(e.target)&&e.preventDefault()}var vu=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(O.useSelect)(pu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(O.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(O.useSelect)(co,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(O.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),v=Object(d.useRef)();Object(d.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=$e(l),d=$e(s),b=n.getSelection(),f=t.createRange();u=oo(u,"start"),d=oo(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=$e(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(d.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Xe(r.focusNode);if(m.current===o){if(f(o),n&&(io(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;v.current.contains(c)&&v.current.focus()}}else{var a=[].concat(Object(re.a)(i(m.current)),[m.current]),l=[].concat(Object(re.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else io(e.current,!0)}),[f,i,b]),h=Object(d.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}),u()}))}),[g,u]);return Object(d.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(d.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,v.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),io(e.current,!1)}}),[n,s,h])}(t),s=Object(d.useState)({}),u=Object(oe.a)(s,2),b=u[0],p=u[1];return Object(d.createElement)(bs,{containerRef:t},Object(d.createElement)(bu.Provider,{value:b},Object(d.createElement)(uu,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Xe(e.target);t&&t!==c&&a(t)}},onDragStart:mu},Object(d.createElement)(fu.Provider,{value:p},Object(d.createElement)(du.Provider,{value:l},n)))))})),Ou=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function gu(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 hu(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(d.useRef)(),o=e.ref||r,c=Object(d.useContext)(du),i=Object(d.useContext)(fu),a=Object(d.useContext)(Cu),l=a.clientId,s=a.rootClientId,b=a.isSelected,m=a.isFirstMultiSelected,v=a.isLastMultiSelected,g=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(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:b&&!r()&&!o(),initialPosition:b?n():void 0,isNavigationMode:o}}),[b]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(O.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(d.useState)(!1),A=Object(oe.a)(R,2),M=A[0],L=A[1];Object(d.useEffect)((function(){if(b||m||v){var e=o.current;return i((function(t){return hu(hu({},t),{},Object(u.a)({},l,e))})),function(){i((function(e){return Object(p.omit)(e,l)}))}}}),[b,m,v]),Object(d.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?hu(hu({},t),{},Object(u.a)({},l,e)):t}))}));var F=Object(h.sprintf)(Object(h.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!Ye(o.current,e.activeElement)){var t=_r.focus.tabbable.find(o.current).filter((function(e){return Object(_r.isTextField)(e)&&Ye(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?p.last:p.first)(t)||o.current;Object(_r.placeCaretAtHorizontalEdge)(r,n)}};Object(d.useEffect)((function(){x&&V()}),[x]),Sr(o,b||g,b||m,j,k),Object(d.useEffect)((function(){if(b)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!==ut.ENTER&&t!==ut.BACKSPACE&&t!==ut.DELETE||n!==o.current||Object(_r.isTextField)(n)||(e.preventDefault(),t===ut.ENTER?N({},s,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[b,c,N,D]),Object(d.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 hu(hu(hu({},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:f()(y,e.className,w.className,{"is-hovered":M}),style:hu(hu({},w.style),e.style)})}var ku=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(je.a)(e,["children","tagName"]);ro()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.__experimentalUseBlockWrapperProps"});var i=ju(hu(hu({},c),{},{ref:t}));return Object(d.createElement)(o,i,n)})),yu=Ou.reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)(ku,Object(s.a)({},e,{ref:n,tagName:t}))})),e}),ku);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 Eu(e){for(var t=1;t0,B=v||_,x=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Hr().__experimentalFeatures,T=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(d.useEffect)((function(){P&&n&&b.current.focus()}),[P,n]),Object(d.createElement)(Ir,{className:f()({"is-selected":n,"is-dragging":S}),onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:u,id:"block-navigation-block-".concat(C),"data-block":C},Object(d.createElement)(j.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:b},(function(e){var l=e.ref,u=e.tabIndex,b=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(Fr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(d.createElement)(Mu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:u,onFocus:b}))})),I&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(d.createElement)(j.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Mr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(d.createElement)(j.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Lr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(d.createElement)(j.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(d.createElement)(Zs,{clientIds:[C],icon:kr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(d.createElement)(j.MenuGroup,null,Object(d.createElement)(j.MenuItem,{onClick:Object(jr.a)(hr.a.mark((function e(){return hr.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(h.__)("Go to block")))}))})))}function Fu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(O.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(m.useInstanceId)(Fu),s="block-navigation-appender-row__description_".concat(l),u=Object(h.sprintf)(Object(h.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(Ir,{className:f()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(d.createElement)(j.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(Fr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(os,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},u))})))}function Vu(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,u=e.terminatedLevels,b=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,v=!a,O=Object(p.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(d.createElement)(d.Fragment,null,Object(p.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=k===u?[].concat(Object(re.a)(b),[s]):b,p=[].concat(Object(re.a)(m),[u]),v=i&&!!l&&!!l.length,O=g(a);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(Lu,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(d.createElement)(Vu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(d.createElement)(Fu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(re.a)(m),[y])}))}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 zu(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 Uu(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 Uu(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 Uu(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}Vu.defaultProps={selectBlock:function(){}};var Wu=["top","bottom"];function Ku(e){var t=Object(d.useState)(),n=Object(oe.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=ol(o.rootClientId,o.blockIndex),a=Object(j.__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 qu(e){var t=e.__experimentalFeatures,n=Object(je.a)(e,["__experimentalFeatures"]),r=Object(d.useRef)(),o=Ku(r);t||(o=void 0);var c=Object(d.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(d.createElement)(j.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(h.__)("Block navigation structure"),ref:r},Object(d.createElement)(Vr.Provider,{value:c},Object(d.createElement)(Vu,n)))}var $u=Object(m.compose)(Object(O.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(O.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.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(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(h.__)("List view")),i&&Object(d.createElement)(qu,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(d.createElement)(qu,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Yu=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(j.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Xu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(je.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(O.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(j.Button,Object(s.a)({},c,{ref:o,icon:Yu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(h.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Qu=Object(d.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(je.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(O.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(d.createElement)(j.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(d.createElement)(Xu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)($u,{onSelect:t,__experimentalFeatures:r})}})})),Zu=n(129),Ju=[ut.rawShortcut.primary("z"),ut.rawShortcut.primaryShift("z"),ut.rawShortcut.primary("y")],ed=Object(d.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ju.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),td=function(){return ed};function nd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var rd={position:"bottom right",isAlternate:!0},od=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(j.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(j.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(j.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(j.ToolbarItem,null,(function(t){return Object(d.createElement)(j.DropdownMenu,{icon:Tr.a,label:Object(h.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(oe.a)(e,1)[0].props})),"title"),popoverProps:rd})}))}))))},cd=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(j.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(od,null)):Object(d.createElement)(Or,null,Object(d.createElement)(od,null))};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 ad(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function ld(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?ld.EMPTY_ARRAY:t||n?t||(ro()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}ld.EMPTY_ARRAY=[];var sd=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,v=t.inlineToolbar,g=t.wrapperClassName,h=t.className,j=t.autocompleters,k=t.onReplace,y=t.placeholder,_=t.keepPlaceholderOnFocus,E=t.allowedFormats,C=t.formattingControls,S=t.withoutInteractiveFormatting,w=t.onRemove,I=t.onMerge,B=t.onSplit,x=t.__unstableOnSplitAtEnd,P=t.__unstableOnSplitMiddle,T=t.identifier,N=t.start,D=t.reversed,R=t.style,A=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,L=t.__unstableDisableFormats,F=t.disableLineBreaks,V=t.unstableOnFocus,H=t.__unstableAllowPrefixTransformations,z=t.__unstableMultilineRootTag,G=t.__unstableMobileNoFocusOnMount,W=t.deleteEnter,K=t.placeholderTextColor,q=t.textAlign,$=t.selectionColor,Y=t.tagsToEliminate,X=t.rootTagsToEliminate,Q=t.disableEditingMenu,Z=t.fontSize,J=t.fontFamily,ee=t.fontWeight,te=t.fontStyle,ne=t.minWidth,ce=t.maxWidth,ie=t.onBlur,ae=t.setRef,le=Object(je.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),se=Object(m.useInstanceId)(e);T=T||se;var ue=Object(d.useRef)(),de=n||ue,be=Object(U.b)(),fe=be.clientId,pe=be.onCaretVerticalPositionChange,me=be.isSelected,ve=Object(O.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),v=i(),O=a().__experimentalUndo;void 0===b?t=m.clientId===fe&&m.attributeKey===T:b&&(t=m.clientId===fe);var g={};if("native"===d.Platform.OS){var h=fe&&s(fe);g={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,Re=a,Ae=l;Array.isArray(a)&&(Re=c.children.toHTML(a),Ae=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Me=Object(d.useCallback)((function(e,t){xe(fe,T,e,t)}),[fe,T]),Le=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),w&&Object(i.isEmpty)(t)&&n&&w(!n)}),[I,w]),Fe=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&B){var n=[],r=Object(i.split)(e),o=Object(oe.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(B(Object(i.toHTMLString)({value:c,multilineTag:Te}))),s+=1),l?(n.push.apply(n,Object(re.a)(t)),s+=t.length):P&&n.push(P()),(l||P)&&Object(i.isEmpty)(a)||n.push(B(Object(i.toHTMLString)({value:a,multilineTag:Te})));var u=l?s:1,d=l?-1:null;k(n,u,d)}}),[k,B,Te,P]),Ve=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&B;if(k){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&&(k([l.transform({content:t.text})]),Pe())}if(p)r?F||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?Fe(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=x&&u===d&&d===s.length;r||!o&&!b?F||n(Object(i.insert)(t,"\n")):!o&&b?x():o&&Fe(t)}}),[k,B,Pe,p,Fe,x]),He=Object(d.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:nd(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(i.isEmpty)(t)?k(u):Fe(t,u))}var d,b=k&&B?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Zu.regexp)(".*").test(d))&&(b="BLOCKS"),M&&Object(i.isEmpty)(t)&&Object(Vl.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(re.a)(s),Object(re.a)(m.formats[v]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(k&&Object(i.isEmpty)(t)?k(f,f.length-1,-1):Fe(t,f))}),[o,k,B,Fe,M,p]),ze=Object(d.useCallback)((function(e,t){if(k){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);k([u]),Pe()}}}}),[k,Pe]),Ue=Object(d.createElement)(i.__experimentalRichText,{clientId:fe,identifier:T,ref:de,value:Re,onChange:Ae,selectionStart:ge,selectionEnd:he,onSelectionChange:Me,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":_}),placeholder:y,allowedFormats:Ne,withoutInteractiveFormatting:S,onEnter:Ve,onDelete:Le,onPaste:He,__unstableIsSelected:ke,__unstableInputRule:ze,__unstableMultilineTag:Te,__unstableIsCaretWithinFormattedText:Oe,__unstableOnEnterFormattedText:Ie,__unstableOnExitFormattedText:Be,__unstableOnCreateUndoLevel:we,__unstableMarkAutomaticChange:Pe,__unstableDidAutomaticChange:ye,__unstableUndo:Ee,__unstableDisableFormats:L,style:R,preserveWhiteSpace:A,disabled:_e,start:N,reversed:D,unstableOnFocus:V,__unstableAllowPrefixTransformations:H,__unstableMultilineRootTag:z,onCaretVerticalPositionChange:pe,blockIsSelected:void 0!==b?b:me,shouldBlurOnUnmount:Ce,__unstableMobileNoFocusOnMount:G,deleteEnter:W,placeholderTextColor:K,textAlign:q,selectionColor:$,tagsToEliminate:Y,rootTagsToEliminate:X,disableEditingMenu:Q,fontSize:Z,fontFamily:J,fontWeight:ee,fontStyle:te,minWidth:ne,maxWidth:ce,onBlur:ie,setRef:ae,id:le.id},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&De&&Object(d.createElement)(cd,{inline:v,anchorRef:de.current}),t&&Object(d.createElement)(td,null),Object(d.createElement)(Zn,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(a,Object(s.a)({},i,le,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:N,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return g?(ro()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",g)},Ue)):Ue}));sd.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(je.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=ad(r);!t&&i&&(t="<".concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},sd.isEmpty=function(e){return!e||0===e.length},sd.Content.defaultProps={format:"string",value:""};var ud=sd;function dd(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Au,null,Object(d.createElement)(ud,{value:t,onChange:n,placeholder:Object(h.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var bd=n(315);var fd=function(e){var t=e.icon,n=void 0===t?bd.a:t,r=e.label,o=void 0===r?Object(h.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(h.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(j.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(h.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(j.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(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(j.Button,{isLink:!0,onClick:function(){return l()}},Object(h.__)("Skip"))))},pd=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(j.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),md=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(j.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function vd(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 Od(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(Vl.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(h.sprintf)(Object(h._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(h.__)("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 ut.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case ut.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case ut.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(h.__)("Link selected.")));break;case ut.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case ut.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case ut.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(d.createElement)(d.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(h.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,u=e.autoFocus,b=void 0===u||u,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,g=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:f()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:b,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:Jd,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(h.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(d.createElement)(j.BaseControl,y,Object(d.createElement)("input",_),m&&Object(d.createElement)(j.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,l=this.state,u=l.showSuggestions,b=l.suggestions,m=l.selectedSuggestion,v=l.suggestionsListboxId,O=l.suggestionOptionIdPrefix,g=l.loading,h={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(p.isFunction)(r)&&u&&b.length?r({suggestions:b,selectedSuggestion:m,suggestionsListProps:h,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(p.isFunction)(r)&&u&&b.length?Object(d.createElement)(j.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},h,{className:f()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),b.map((function(t,n){return Object(d.createElement)(j.Button,Object(s.a)({},k(0,n),{key:t.id,className:f()("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}(d.Component),tb=Object(m.compose)(m.withSafeTimeout,j.withSpokenMessages,m.withInstanceId,Object(O.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(eb),nb=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(k.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"})),rb=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(p.isFunction)(i)?i(n):i:Object(d.createInterpolateElement)(Object(h.sprintf)(Object(h.__)("Create: %s"),n),{mark:Object(d.createElement)("mark",null)}),Object(d.createElement)(j.Button,Object(s.a)({},o,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(d.createElement)(bo.a,{className:"block-editor-link-control__search-item-icon",icon:nb}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ob=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(k.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"})),cb=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,l=e.searchTerm,u=void 0===l?"":l,b=e.shouldShowType,p=void 0!==b&&b;return Object(d.createElement)(j.Button,Object(s.a)({},t,{onClick:c,className:f()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(bo.a,{className:"block-editor-link-control__search-item-icon",icon:ob}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(j.TextHighlight,{text:n.title,highlight:u})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(n.url))||""),a&&Object(h.__)("Press ENTER to add this link"))),p&&n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function ib(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,l=e.selectedSuggestion,u=e.isLoading,b=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=f()("block-editor-link-control__search-results",{"is-loading":u}),O=["url","mailto","tel","internal"],g=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!g&&!b,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=b?Object(h.__)("Recently updated"):Object(h.sprintf)(Object(h.__)('Search results for "%s"'),r),C=Object(d.createElement)(b?d.Fragment:j.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(d.createElement)("div",Object(s.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(d.createElement)(rb,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===l}):"__CREATE__"===e.type?null:Object(d.createElement)(cb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===l,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function ab(e){var t=Object(p.startsWith)(e,"#");return Object(Vl.isURL)(e)||e&&e.includes("www.")||t}function lb(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;t=1)&&y(pb(pb({},Object(p.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(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(U||{url:n})}},Object(d.createElement)(tb,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(h.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return S(pb(pb({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),Ob=vb,gb=Object(j.createSlotFill)("BlockEditorLinkControlViewer"),hb=gb.Slot,jb=gb.Fill;function kb(e){var t=e.value,n=e.onEditClick,r=t&&Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t.url))||"";return Object(d.createElement)("div",{"aria-label":Object(h.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(j.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(d.createElement)(j.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(h.__)("Edit")),Object(d.createElement)(hb,{fillProps:t}))}var yb=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 _b(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?p.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,u=e.showInitialSuggestions,b=e.forceIsEditingLink,f=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,g=e.suggestionsQuery,k=void 0===g?{}:g,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&f&&(m=!0);var C=Object(d.useRef)(),S=Object(d.useState)(n&&n.url||""),w=Object(oe.a)(S,2),I=w[0],B=w[1],x=O||I,P=Object(d.useState)(void 0!==b?b:!n||!n.url),T=Object(oe.a)(P,2),N=T[0],D=T[1],R=Object(d.useRef)(!1);Object(d.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(d.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(_r.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(d.useRef)(),n=Object(d.useState)(!1),r=Object(oe.a)(n,2),o=r[0],c=r[1],i=Object(d.useState)(null),a=Object(oe.a)(i,2),l=a[0],s=a[1],u=function(){var n=Object(jr.a)(hr.a.mark((function n(r){return hr.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=yb(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(h.__)("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(d.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:u,isCreatingPage:o,errorMessage:l}}(f),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(d.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(j.Spinner,null)," ",Object(h.__)("Creating"),"…"),(N||!n)&&!L&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(Ob,{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:u,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(j.Button,{type:"submit",label:Object(h.__)("Submit"),icon:Wd.a,className:"block-editor-link-control__search-submit"})))),F&&Object(d.createElement)(j.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(d.createElement)(kb,{value:n,onEditClick:function(){return D(!0)}}),Object(d.createElement)(Yd,{value:n,settings:r,onChange:c}))}_b.ViewerFill=jb;var Eb=_b,Cb=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.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"})),Sb=n(216),wb=Object(j.withFilters)("editor.MediaUpload")((function(){return null}));var Ib=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(O.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Bb=Object(m.compose)([Object(O.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(j.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?p.noop:a,s=e.name,u=void 0===s?Object(h.__)("Replace"):s,b=e.createNotice,f=e.removeNotice,m=Object(d.useState)(t),v=Object(oe.a)(m,2),g=v[0],k=v[1],y=Object(O.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(d.createRef)(),E=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(d.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(Fe.speak)(Object(h.__)("The media file has been replaced")),f(E)},w=function(e){e.keyCode===ut.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(j.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(j.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(j.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:w},u))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(wb,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(j.MenuItem,{icon:Cb,onClick:t},Object(h.__)("Open Media Library"))}}),Object(d.createElement)(Ib,null,Object(d.createElement)(j.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(oe.a)(e,1)[0];S(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(j.MenuItem,{icon:Sb.a,onClick:function(){t()}},Object(h.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(h.__)("Current media URL:")),Object(d.createElement)(Eb,{value:{url:g},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),xb=n(483);function Pb(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(j.ExternalLink,{className:o,href:t},n||Object(Vl.filterURLForDisplay)(Object(Vl.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Tb(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,l=Object(je.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=Object(d.useState)(!1),b=Object(oe.a)(u,2),f=b[0],p=b[1],m=!!r&&f;return Object(d.createElement)(j.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(j.Button,{className:"block-editor-url-popover__settings-toggle",icon:Tr.a,label:Object(h.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Tb.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(je.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(tb,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(j.Button,{icon:Wd.a,label:Object(h.__)("Apply"),type:"submit"}))},Tb.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(je.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(Pb,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(j.Button,{icon:xb.a,label:Object(h.__)("Edit"),onClick:r}))};var Nb=Tb,Db=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(Nb,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(h.__)("URL"),placeholder:Object(h.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Wd.a,label:Object(h.__)("Apply"),type:"submit"})))};var Rb=Object(j.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,u=e.isAppender,b=e.accept,m=e.addToGallery,v=e.multiple,g=void 0!==v&&v,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?p.noop:B,P=e.onHTMLDrop,T=void 0===P?p.noop:P,N=e.children,D=Object(O.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(d.useState)(""),A=Object(oe.a)(R,2),M=A[0],L=A[1],F=Object(d.useState)(!1),V=Object(oe.a)(F,2),H=V[0],z=V[1];Object(d.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[n]);var U=function(e){L(e.target.value)},G=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),M&&w&&(w(M),W())},q=function(e){var t;if(x(e),g)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(oe.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(h.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var b=null!=r?r:[],p=Object(oe.a)(b,1)[0],m=1===b.length,v=m&&"audio"===p,O=m&&"image"===p,g=m&&"video"===p;void 0===n&&D&&(n=Object(h.__)("Upload a media file or pick one from your media library."),v?n=Object(h.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(h.__)("Upload an image file, pick one from your media library, or add one with a URL."):g&&(n=Object(h.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(h.__)("Media"),v?i=Object(h.__)("Audio"):O?i=Object(h.__)("Image"):g&&(i=Object(h.__)("Video")))}var k=f()("block-editor-media-placeholder",o,{"is-appender":u});return Object(d.createElement)(j.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(d.createElement)(j.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return S&&Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(h.__)("Cancel"),isLink:!0,onClick:S},Object(h.__)("Cancel"))},Z=function(){return w&&Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(j.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(h.__)("Insert from URL")),H&&Object(d.createElement)(Db,{src:M,onChange:U,onSubmit:K,onClose:W}))};return k||_?(k&&ro()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(Ib,null,X())):Object(d.createElement)(Ib,{fallback:Y(Z())},function(){var e=Object(d.createElement)(wb,{addToGallery:m,gallery:g&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:g,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(d.createElement)(j.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(h.__)("Media Library"))}});if(D&&u)return Object(d.createElement)(d.Fragment,null,X(),Object(d.createElement)(j.FormFileUpload,{onChange:$,accept:b,multiple:g,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(h.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(d.createElement)(d.Fragment,null,X(),Object(d.createElement)(j.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:b,multiple:g},Object(h.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Ab=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(ud,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Ab.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(je.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var Mb=Ab,Lb=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(je.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(Mb,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(je.a)(r,["className","onChange"]);return Object(d.createElement)(eo.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Fb(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(Fb),c=r||Object(h.sprintf)(Object(h._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(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(j.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Vb=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,u=void 0===s?{id:"all",label:Object(h.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(h.__)("Small screens")},{id:"medium",label:Object(h.__)("Medium screens")},{id:"large",label:Object(h.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(h.sprintf)(Object(h.__)("Use the same %s on all screensizes."),n),v=Object(h.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(d.createElement)(Fb,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(j.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(d.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(Fb,{property:n,viewport:e}),e))}))))))};function Hb(e){var t=e.character,n=e.type,r=e.onUse;return Object(m.useKeyboardShortcut)(ut.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function zb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(je.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=ut.displayShortcut[r](o)),Object(d.createElement)(j.Fill,{name:i},Object(d.createElement)(j.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Ub(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Gb=function(e){Object(qt.a)(n,e);var t=Ub(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Wt.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}(d.Component),Wb=Object(d.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(j.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 Kb=Object(d.forwardRef)((function(e,t){var n=Object(O.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(O.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(d.createElement)(j.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(d.createElement)(j.Button,Object(s.a)({},e,{ref:t,icon:n?Wb:xb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(h.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.NavigableMenu,{role:"menu","aria-label":Object(h.__)("Modes")},Object(d.createElement)(j.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(bo.a,{icon:xb.a}),Object(h.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Wb,Object(h.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(h.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),qb=n(184),$b=Object(d.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(k.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 Yb(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Xb=function(e){Object(qt.a)(n,e);var t=Yb(n);function n(){var e;return Object(Gt.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(Wt.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(h.__)("Edit link"):Object(h.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(j.Button,{icon:qb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(j.Button,{className:"block-editor-url-input__back",icon:$b,label:Object(h.__)("Close"),onClick:this.toggle}),Object(d.createElement)(tb,{value:t||"",onChange:n}),Object(d.createElement)(j.Button,{icon:Wd.a,label:Object(h.__)("Submit"),type:"submit"}))))}}]),n}(d.Component),Qb=n(157),Zb=["noreferrer","noopener"],Jb=Object(d.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(j.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(j.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(d.createElement)(j.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),ef=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,u=e.rel,b=Object(d.useState)(!1),f=Object(oe.a)(b,2),m=f[0],v=f[1],O=Object(d.useCallback)((function(){v(!0)})),g=Object(d.useState)(!1),k=Object(oe.a)(g,2),y=k[0],_=k[1],E=Object(d.useState)(null),C=Object(oe.a)(E,2),S=C[0],w=C[1],I=Object(d.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[ut.LEFT,ut.DOWN,ut.RIGHT,ut.UP,ut.BACKSPACE,ut.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||w(""),_(!0)})),T=Object(d.useCallback)((function(){_(!1)})),N=Object(d.useCallback)((function(){w(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Zb,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},R=Object(d.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),w(null),T())}})),A=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),w(null),e.preventDefault()}})),M=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){return[{linkDestination:"media",title:Object(h.__)("Media File"),url:"image"===c?i:void 0,icon:Jb},{linkDestination:"attachment",title:Object(h.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(j.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(j.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"}))}]},F=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.ToggleControl,{label:Object(h.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?D(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(j.TextControl,{label:Object(h.__)("Link Rel"),value:D(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(d.createElement)(j.TextControl,{label:Object(h.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(L(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.ToolbarButton,{icon:qb.a,className:"components-toolbar__control",label:r?Object(h.__)("Edit link"):Object(h.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(d.createElement)(Nb,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(j.NavigableMenu,null,Object(p.map)(L(),(function(e){return Object(d.createElement)(j.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;w(null),t=e.url,o=L(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(d.createElement)(Nb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:w,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Nb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(j.Button,{icon:Qb.a,label:Object(h.__)("Remove link"),onClick:M}))))},tf=n(158);function nf(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(m.useViewportMatch)("small","<"))return null;var a={className:f()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(h.__)("Preview")};return Object(d.createElement)(j.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(j.MenuGroup,null,Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&tf.a},Object(h.__)("Desktop")),Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&tf.a},Object(h.__)("Tablet")),Object(d.createElement)(j.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&tf.a},Object(h.__)("Mobile"))),t)}))}var rf=n(278),of=/\((min|max)-width:[^\(]*?\)/g;function cf(e){return!!e.media&&!!e.media.mediaText.match(of)}function af(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function lf(e,t){return e.replace(of,(function(e){return Object(rf.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function sf(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Vl.getProtocol)(e.href)===window.location.protocol&&Object(Vl.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i0,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,u=void 0===s||s;if(n>1)return Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(ff,null),Object(d.createElement)(qe.Slot,{bubblesVirtually:u}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(mo,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(j.PanelBody,{title:Object(h.__)("Styles")},Object(d.createElement)(ws,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(pf,{blockName:t.name}))),Object(d.createElement)(qe.Slot,{bubblesVirtually:u}),Object(d.createElement)("div",null,Object(d.createElement)(mf,{slotName:$.slotName,bubblesVirtually:u})),Object(d.createElement)(df,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(h.__)("No block selected.")):null}));function Of(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var gf=function(e){Object(qt.a)(n,e);var t=Of(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(Kt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Kt.a)(e)),e}return Object(Wt.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),n}(d.Component),hf=Object(m.compose)([Object(O.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(O.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(gf),jf=n(279),kf=n.n(jf),yf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_f=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 Ef(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=Ef(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(yf,""),value:n?Ef(n[0]).replace(yf,""):""});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=Ef(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:Ef(t[1]),media:Ef(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Ef(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=Ef(t[1]),r=Ef(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(Mo.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 Ef(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Cf=n(168),Sf=n.n(Cf),wf=If;function If(e){this.options=e||{}}If.prototype.emit=function(e){return e},If.prototype.visit=function(e){return this[e.type](e)},If.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?Vf(Vf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(Hf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(zf(t)),r&&o.push(Lf(r)),o.length?Nf(n,Object(m.compose)(o)):n}))};var Gf=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Uf(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.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 Wf=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.onSelect,s=void 0===l?p.noop:l,u=Object(O.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(d.createElement)(Xl,{onSelect:s,rootClientId:u,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a})};function Kf(){var e=Object(O.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(oe.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(O.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,b=o.clearSelectedBlock,f=o.moveBlocksUp,m=o.moveBlocksDown;return Object(l.useShortcut)("core/block-editor/move-up",Object(d.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/move-down",Object(d.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),u(Object(p.first)(n),Object(p.last)(n))}),[n,u])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}Kf.Register=function(){var e=Object(O.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(h.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(h.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(h.__)("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(h.__)("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(h.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(h.__)("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(h.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(h.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(h.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(h.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var qf=Kf;function $f(){var e=Object(O.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(d.useEffect)((function(){if(n&&!r&&t){var e=$e(n);if(e){var o=Object(_r.getScrollContainer)(e);o&&Qd()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Yf=[ut.UP,ut.RIGHT,ut.DOWN,ut.LEFT,ut.ENTER,ut.BACKSPACE];var Xf=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(O.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(O.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",u),document[t]("mousemove",u)}function u(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 f(e){var t=e.type,n=e.target;!c&&Object(_r.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Yf.includes(t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(_r.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==ut.ESCAPE&&e.keyCode!==ut.TAB||l()}])},t)}));function Qf(){return ro()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Zf(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(Yt.a)(e);if(t){var o=Object(Yt.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object($t.a)(this,n)}}var Jf=-1!==window.navigator.userAgent.indexOf("Trident"),ep=new Set([ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT]),tp=function(e){Object(qt.a)(n,e);var t=Zf(n);function n(){var e;return Object(Gt.a)(this,n),(e=t.apply(this,arguments)).ref=Object(d.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(Wt.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(_r.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(_r.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(ep.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(_r.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} IconProps */ - -/* eslint-enable jsdoc/valid-types */ - -/** - * Return an SVG icon. - * - * @param {IconProps} props icon is the SVG component to render - * size is a number specifiying the icon size in pixels - * Other props will be passed to wrapped SVG component - * - * @return {JSX.Element} Icon component - */ - -function Icon(_ref) { - var icon = _ref.icon, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 24 : _ref$size, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ - width: size, - height: size - }, props)); -} - -/* harmony default export */ __webpack_exports__["a"] = (Icon); - - -/***/ }), - -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; // EXPORTS @@ -410,7 +291,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -426,12 +307,19 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 15: +/***/ 13: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -454,13 +342,77 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 154: +/***/ 142: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); + + + +function 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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); +} + +/* harmony default export */ __webpack_exports__["a"] = (Icon); + + +/***/ }), + +/***/ 15: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 158: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -472,14 +424,14 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z" + d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z" })); /* harmony default export */ __webpack_exports__["a"] = (check); /***/ }), -/***/ 16: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -493,13 +445,50 @@ function _getPrototypeOf(o) { /***/ }), -/***/ 176: +/***/ 18: +/***/ (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(); +} + +/***/ }), + +/***/ 181: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -518,13 +507,13 @@ var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 179: +/***/ 184: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -543,44 +532,21 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ 19: +/***/ (function(module, exports) { -"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__(26); - -// 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__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); - -// 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(); -} +(function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), -/***/ 19: +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 20: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -603,14 +569,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -623,13 +582,63 @@ function _classCallCheck(instance, Constructor) { /***/ }), -/***/ 202: +/***/ 213: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronRight); + + +/***/ }), + +/***/ 214: +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + + +/***/ }), + +/***/ 215: +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -648,13 +657,13 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/***/ 203: +/***/ 216: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -673,13 +682,13 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 204: +/***/ 217: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -696,13 +705,6 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /* harmony default export */ __webpack_exports__["a"] = (linkOff); -/***/ }), - -/***/ 21: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - /***/ }), /***/ 22: @@ -747,7 +749,7 @@ function _inherits(subClass, superClass) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); function _possibleConstructorReturn(self, call) { @@ -767,7 +769,7 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 26: +/***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -784,7 +786,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 266: +/***/ 280: /***/ (function(module, exports, __webpack_require__) { /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ @@ -1239,13 +1241,38 @@ return FastAverageColor; /***/ }), -/***/ 288: +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 30: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_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(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} + +/***/ }), + +/***/ 300: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -1264,13 +1291,13 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/***/ 289: +/***/ 301: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -1289,31 +1316,13 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/***/ 29: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_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(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), - -/***/ 290: +/***/ 302: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -1332,13 +1341,13 @@ var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 292: +/***/ 303: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -1357,120 +1366,20 @@ var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 293: -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronRight); - - -/***/ }), - -/***/ 294: -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); - - -/***/ }), - -/***/ 3: +/***/ 31: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["components"]; }()); +(function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/***/ 300: +/***/ 316: /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (pencil); - - -/***/ }), - -/***/ 301: -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var edit = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" -})); -/* harmony default export */ __webpack_exports__["a"] = (edit); - - -/***/ }), - -/***/ 302: -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -1489,39 +1398,14 @@ var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/***/ 303: -/***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (grid); - - -/***/ }), - -/***/ 31: +/***/ 35: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["url"]; }()); +(function() { module.exports = this["wp"]["deprecated"]; }()); /***/ }), -/***/ 35: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1532,13 +1416,6 @@ function _iterableToArray(iter) { /***/ }), -/***/ 37: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), - /***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1591,7 +1468,7 @@ function _typeof(obj) { /***/ }), -/***/ 41: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1616,11 +1493,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ 43: /***/ (function(module, exports) { +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 44: +/***/ (function(module, exports) { + (function() { module.exports = this["moment"]; }()); /***/ }), -/***/ 437: +/***/ 45: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 450: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1739,10 +1630,9 @@ __webpack_require__.d(build_module_cover_namespaceObject, "settings", function() // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/embed/index.js var embed_namespaceObject = {}; __webpack_require__.r(embed_namespaceObject); +__webpack_require__.d(embed_namespaceObject, "metadata", function() { return embed_metadata; }); __webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; }); __webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; }); -__webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; }); -__webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/file/index.js var build_module_file_namespaceObject = {}; @@ -1940,16 +1830,16 @@ var toConsumableArray = __webpack_require__(18); var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(98); +var external_this_wp_coreData_ = __webpack_require__(100); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(100); +var external_this_wp_notices_ = __webpack_require__(101); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(7); +var external_this_wp_blockEditor_ = __webpack_require__(6); // EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); +var external_this_wp_blocks_ = __webpack_require__(11); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -1961,7 +1851,7 @@ var external_this_wp_i18n_ = __webpack_require__(1); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(6); +var external_this_wp_primitives_ = __webpack_require__(7); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js @@ -1979,7 +1869,7 @@ var paragraph = Object(external_this_wp_element_["createElement"])(external_this /* harmony default export */ var library_paragraph = (paragraph); // EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); +var classnames = __webpack_require__(9); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js @@ -2001,7 +1891,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va -var deprecated_supports = { +var supports = { className: false }; var deprecated_blockAttributes = { @@ -2064,14 +1954,14 @@ var deprecated_migrateCustomColorsAndFontSizes = function migrateCustomColorsAnd }; } - return _objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customFontSize']), { + return _objectSpread(_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customFontSize'])), {}, { style: style }); }; var deprecated = [{ - supports: deprecated_supports, - attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + supports: supports, + attributes: _objectSpread(_objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, { customTextColor: { type: 'string' }, @@ -2119,8 +2009,8 @@ var deprecated = [{ }); } }, { - supports: deprecated_supports, - attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + supports: supports, + attributes: _objectSpread(_objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, { customTextColor: { type: 'string' }, @@ -2169,8 +2059,8 @@ var deprecated = [{ }); } }, { - supports: deprecated_supports, - attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + supports: supports, + attributes: _objectSpread(_objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style'])), {}, { customTextColor: { type: 'string' }, @@ -2217,8 +2107,8 @@ var deprecated = [{ }); } }, { - supports: deprecated_supports, - attributes: Object(external_this_lodash_["omit"])(_objectSpread({}, deprecated_blockAttributes, { + supports: supports, + attributes: Object(external_this_lodash_["omit"])(_objectSpread(_objectSpread({}, deprecated_blockAttributes), {}, { fontSize: { type: 'number' } @@ -2247,15 +2137,15 @@ var deprecated = [{ }, content); }, migrate: function migrate(attributes) { - return deprecated_migrateCustomColorsAndFontSizes(Object(external_this_lodash_["omit"])(_objectSpread({}, attributes, { + return deprecated_migrateCustomColorsAndFontSizes(Object(external_this_lodash_["omit"])(_objectSpread(_objectSpread({}, attributes), {}, { customFontSize: Object(external_this_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined })), ['fontSize', 'textColor', 'backgroundColor', 'style']); } }, { - supports: deprecated_supports, - attributes: _objectSpread({}, deprecated_blockAttributes, { + supports: supports, + attributes: _objectSpread(_objectSpread({}, deprecated_blockAttributes), {}, { content: { type: 'string', source: 'html', @@ -2272,8 +2162,11 @@ var deprecated = [{ }]; /* harmony default export */ var paragraph_deprecated = (deprecated); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(8); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); @@ -2301,6 +2194,7 @@ var formatLtr = Object(external_this_wp_element_["createElement"])(external_this + function edit_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 edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { edit_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 { edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -2320,12 +2214,11 @@ function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) -/** - * Browser dependencies - */ -var edit_window = window, - edit_getComputedStyle = edit_window.getComputedStyle; +function getComputedStyle(node, pseudo) { + return node.ownerDocument.defaultView.getComputedStyle(node, pseudo); +} + var querySelector = window.document.querySelector.bind(document); var edit_name = 'core/paragraph'; var PARAGRAPH_DROP_CAP_SELECTOR = 'p.has-drop-cap'; @@ -2370,7 +2263,7 @@ function useDropCap(isDropCap, fontSize, styleFontSize) { var element = querySelector(PARAGRAPH_DROP_CAP_SELECTOR); if (isDropCap && element) { - setMinimumHeight(edit_getComputedStyle(element, 'first-letter').lineHeight); + setMinimumHeight(getComputedStyle(element, 'first-letter').lineHeight); } else if (minimumHeight) { setMinimumHeight(undefined); } @@ -2391,7 +2284,6 @@ function ParagraphBlock(_ref2) { placeholder = attributes.placeholder, fontSize = attributes.fontSize, style = attributes.style; - var ref = Object(external_this_wp_element_["useRef"])(); var _useDropCap = useDropCap(dropCap, fontSize, style === null || style === void 0 ? void 0 : style.fontSize), _useDropCap2 = Object(slicedToArray["a" /* default */])(_useDropCap, 2), @@ -2402,6 +2294,12 @@ function ParagraphBlock(_ref2) { direction: direction, minHeight: dropCapMinimumHeight }; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classnames_default()(Object(defineProperty["a" /* default */])({ + 'has-drop-cap': dropCap + }, "has-text-align-".concat(align), align)), + style: styles + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: align, onChange: function onChange(newAlign) { @@ -2427,14 +2325,10 @@ function ParagraphBlock(_ref2) { }); }, help: dropCap ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.') - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - ref: ref, + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ identifier: "content", - tagName: external_this_wp_blockEditor_["__experimentalBlock"].p, - className: classnames_default()(Object(defineProperty["a" /* default */])({ - 'has-drop-cap': dropCap - }, "has-text-align-".concat(align), align)), - style: styles, + tagName: "p" + }, blockWrapperProps, { value: content, onChange: function onChange(newContent) { return setAttributes({ @@ -2446,7 +2340,7 @@ function ParagraphBlock(_ref2) { return Object(external_this_wp_blocks_["createBlock"])(edit_name); } - return Object(external_this_wp_blocks_["createBlock"])(edit_name, edit_objectSpread({}, attributes, { + return Object(external_this_wp_blocks_["createBlock"])(edit_name, edit_objectSpread(edit_objectSpread({}, attributes), {}, { content: value })); }, @@ -2457,10 +2351,10 @@ function ParagraphBlock(_ref2) { placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'), __unstableEmbedURLOnPaste: true, __unstableAllowPrefixTransformations: true - })); + }))); } -/* harmony default export */ var paragraph_edit = (ParagraphBlock); +/* harmony default export */ var edit = (ParagraphBlock); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js @@ -2535,17 +2429,12 @@ var _name$category$attrib = { }, __experimentalFontSize: true, __experimentalLineHeight: true, - __experimentalFeatures: { - typography: { - dropCap: true - } - }, __experimentalSelector: "p", __unstablePasteTextInline: true } }, transforms_name = _name$category$attrib.name; -var transforms_transforms = { +var transforms = { from: [{ type: 'raw', // Paragraph is a fallback and should be matched last. @@ -2575,7 +2464,7 @@ var transforms_transforms = { } }] }; -/* harmony default export */ var paragraph_transforms = (transforms_transforms); +/* harmony default export */ var paragraph_transforms = (transforms); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js /** @@ -2628,11 +2517,6 @@ var paragraph_metadata = { }, __experimentalFontSize: true, __experimentalLineHeight: true, - __experimentalFeatures: { - typography: { - dropCap: true - } - }, __experimentalSelector: "p", __unstablePasteTextInline: true } @@ -2672,7 +2556,7 @@ var paragraph_settings = { content: (attributes.content || '') + (attributesToMerge.content || '') }; }, - edit: paragraph_edit, + edit: edit, save: save_save }; @@ -2691,9 +2575,6 @@ var image_image = Object(external_this_wp_element_["createElement"])(external_th })); /* harmony default export */ var library_image = (image_image); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(8); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js @@ -2758,8 +2639,7 @@ var image_deprecated_blockAttributes = { type: 'number' }, linkDestination: { - type: 'string', - default: 'none' + type: 'string' }, linkTarget: { type: 'string', @@ -2872,10 +2752,10 @@ var deprecated_deprecated = [{ /* harmony default export */ var image_deprecated = (deprecated_deprecated); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(44); +var external_this_wp_blob_ = __webpack_require__(43); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(31); @@ -2896,482 +2776,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__(203); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js - - -/** - * WordPress dependencies - */ - -var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z" -})); -var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z" -})); -var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z" -})); -var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z" -})); -var embedTwitterIcon = { - foreground: '#1da1f2', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" - }))) -}; -var embedYouTubeIcon = { - foreground: '#ff0000', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" - })) -}; -var embedFacebookIcon = { - foreground: '#3b5998', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" - })) -}; -var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" -}))); -var embedWordPressIcon = { - foreground: '#0073AA', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" - }))) -}; -var embedSpotifyIcon = { - foreground: '#1db954', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" - })) -}; -var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" -})); -var embedVimeoIcon = { - foreground: '#1ab7ea', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" - }))) -}; -var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" -})); -var embedTumblrIcon = { - foreground: '#35465c', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z" - })) -}; -var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" -})); -var embedAnimotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z", - fill: "#4bc7ee" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z", - fill: "#d4cdcb" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z", - fill: "#c3d82e" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z", - fill: "#e4ecb0" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z", - fill: "#209dbd" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z", - fill: "#7cb3c9" -})); -var embedDailymotionIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z", - fill: "#333436" -})); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js -/** - * Internal dependencies - */ - -/** - * WordPress dependencies - */ - - - -var common = [{ - name: 'core-embed/twitter', - settings: { - title: 'Twitter', - icon: embedTwitterIcon, - keywords: ['tweet', Object(external_this_wp_i18n_["__"])('social')], - description: Object(external_this_wp_i18n_["__"])('Embed a tweet.') - }, - patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] -}, { - name: 'core-embed/youtube', - settings: { - title: 'YouTube', - icon: embedYouTubeIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.') - }, - patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] -}, { - name: 'core-embed/facebook', - settings: { - title: 'Facebook', - icon: embedFacebookIcon, - keywords: [Object(external_this_wp_i18n_["__"])('social')], - description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.'), - previewable: false - }, - patterns: [/^https?:\/\/www\.facebook.com\/.+/i] -}, { - name: 'core-embed/instagram', - settings: { - title: 'Instagram', - icon: embedInstagramIcon, - keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('social')], - description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.') - }, - patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] -}, { - name: 'core-embed/wordpress', - settings: { - title: 'WordPress', - icon: embedWordPressIcon, - keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')], - responsive: false, - description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.') - } -}, { - name: 'core-embed/soundcloud', - settings: { - title: 'SoundCloud', - icon: embedAudioIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.') - }, - patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] -}, { - name: 'core-embed/spotify', - settings: { - title: 'Spotify', - icon: embedSpotifyIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.') - }, - patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] -}, { - name: 'core-embed/flickr', - settings: { - title: 'Flickr', - icon: embedFlickrIcon, - keywords: [Object(external_this_wp_i18n_["__"])('image')], - description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.') - }, - patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] -}, { - name: 'core-embed/vimeo', - settings: { - title: 'Vimeo', - icon: embedVimeoIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.') - }, - patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] -}]; -var others = [{ - name: 'core-embed/animoto', - settings: { - title: 'Animoto', - icon: embedAnimotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.') - }, - patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] -}, { - name: 'core-embed/cloudup', - settings: { - title: 'Cloudup', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.') - }, - patterns: [/^https?:\/\/cloudup\.com\/.+/i] -}, { - // Deprecated since CollegeHumor content is now powered by YouTube - name: 'core-embed/collegehumor', - settings: { - title: 'CollegeHumor', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.'), - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/crowdsignal', - settings: { - title: 'Crowdsignal', - icon: embedContentIcon, - keywords: ['polldaddy', Object(external_this_wp_i18n_["__"])('survey')], - transform: [{ - type: 'block', - blocks: ['core-embed/polldaddy'], - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', { - content: content - }); - } - }], - description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.') - }, - patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i] -}, { - name: 'core-embed/dailymotion', - settings: { - title: 'Dailymotion', - icon: embedDailymotionIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.') - }, - patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] -}, { - name: 'core-embed/imgur', - settings: { - title: 'Imgur', - icon: embedPhotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.') - }, - patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] -}, { - name: 'core-embed/issuu', - settings: { - title: 'Issuu', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.') - }, - patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] -}, { - name: 'core-embed/kickstarter', - settings: { - title: 'Kickstarter', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.') - }, - patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] -}, { - name: 'core-embed/meetup-com', - settings: { - title: 'Meetup.com', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.') - }, - patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] -}, { - name: 'core-embed/mixcloud', - settings: { - title: 'Mixcloud', - icon: embedAudioIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.') - }, - patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] -}, { - // Deprecated in favour of the core-embed/crowdsignal block - name: 'core-embed/polldaddy', - settings: { - title: 'Polldaddy', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'), - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/reddit', - settings: { - title: 'Reddit', - icon: embedRedditIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.') - }, - patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] -}, { - name: 'core-embed/reverbnation', - settings: { - title: 'ReverbNation', - icon: embedAudioIcon, - description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.') - }, - patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] -}, { - name: 'core-embed/screencast', - settings: { - title: 'Screencast', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.') - }, - patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] -}, { - name: 'core-embed/scribd', - settings: { - title: 'Scribd', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.') - }, - patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] -}, { - name: 'core-embed/slideshare', - settings: { - title: 'Slideshare', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.') - }, - patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] -}, { - name: 'core-embed/smugmug', - settings: { - title: 'SmugMug', - icon: embedPhotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.'), - previewable: false - }, - patterns: [/^https?:\/\/(.+\.)?smugmug\.com\/.*/i] -}, { - // Deprecated in favour of the core-embed/speaker-deck block. - name: 'core-embed/speaker', - settings: { - title: 'Speaker', - icon: embedAudioIcon, - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/speaker-deck', - settings: { - title: 'Speaker Deck', - icon: embedContentIcon, - transform: [{ - type: 'block', - blocks: ['core-embed/speaker'], - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', { - content: content - }); - } - }], - description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.') - }, - patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] -}, { - name: 'core-embed/tiktok', - settings: { - title: 'TikTok', - icon: embedVideoIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a TikTok video.') - }, - patterns: [/^https?:\/\/(www\.)?tiktok\.com\/.+/i] -}, { - name: 'core-embed/ted', - settings: { - title: 'TED', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a TED video.') - }, - patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] -}, { - name: 'core-embed/tumblr', - settings: { - title: 'Tumblr', - icon: embedTumblrIcon, - keywords: [Object(external_this_wp_i18n_["__"])('social')], - description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.') - }, - patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] -}, { - name: 'core-embed/videopress', - settings: { - title: 'VideoPress', - icon: embedVideoIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.') - }, - patterns: [/^https?:\/\/videopress\.com\/.+/i] -}, { - name: 'core-embed/wordpress-tv', - settings: { - title: 'WordPress.tv', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.') - }, - patterns: [/^https?:\/\/wordpress\.tv\/.+/i] -}, { - name: 'core-embed/amazon-kindle', - settings: { - title: 'Amazon Kindle', - icon: embedAmazonIcon, - keywords: [Object(external_this_wp_i18n_["__"])('ebook')], - responsive: false, - description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.') - }, - patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i] -}]; +var upload = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js var ASPECT_RATIOS = [// Common video resolutions. @@ -3398,11 +2803,10 @@ var ASPECT_RATIOS = [// Common video resolutions. ratio: '0.50', className: 'wp-embed-aspect-1-2' }]; -var DEFAULT_EMBED_BLOCK = 'core/embed'; -var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; +var WP_EMBED_TYPE = 'wp-embed'; // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(105); +var dedupe = __webpack_require__(118); var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); // EXTERNAL MODULE: ./node_modules/memize/index.js @@ -3413,7 +2817,6 @@ var memize_default = /*#__PURE__*/__webpack_require__.n(memize); - function util_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 util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { util_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 { util_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -3422,7 +2825,6 @@ function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) * Internal dependencies */ - /** * External dependencies */ @@ -3436,6 +2838,65 @@ function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) +/** + * Internal dependencies + */ + +var util_metadata = { + name: "core/embed", + category: "embed", + attributes: { + url: { + type: "string" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + type: { + type: "string" + }, + providerNameSlug: { + type: "string" + }, + allowResponsive: { + type: "boolean", + "default": true + }, + responsive: { + type: "boolean", + "default": false + }, + previewable: { + type: "boolean", + "default": true + } + }, + supports: { + align: true, + reusable: false, + html: false + } +}; +var DEFAULT_EMBED_BLOCK = util_metadata.name; +/** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */ + +/** + * Returns the embed block's information by matching the provided service provider + * + * @param {string} provider The embed block's provider + * @return {WPBlockVariation} The embed block's information + */ + +var util_getEmbedInfoByProvider = function getEmbedInfoByProvider(provider) { + var _getBlockVariations; + + return (_getBlockVariations = Object(external_this_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations === void 0 ? void 0 : _getBlockVariations.find(function (_ref) { + var name = _ref.name; + return name === provider; + }); +}; /** * Returns true if any of the regular expressions match the URL. * @@ -3451,31 +2912,28 @@ var matchesPatterns = function matchesPatterns(url) { }); }; /** - * Finds the block name that should be used for the URL, based on the - * structure of the URL. + * Finds the block variation that should be used for the URL, + * based on the provided URL and the variation's patterns. * * @param {string} url The URL to test. - * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter + * @return {WPBlockVariation} The block variation that should be used for this URL */ -var util_findBlock = function findBlock(url) { - for (var _i = 0, _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); _i < _arr.length; _i++) { - var block = _arr[_i]; +var util_findMoreSuitableBlock = function findMoreSuitableBlock(url) { + var _getBlockVariations2; - if (matchesPatterns(url, block.patterns)) { - return block.name; - } - } - - return DEFAULT_EMBED_BLOCK; + return (_getBlockVariations2 = Object(external_this_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations2 === void 0 ? void 0 : _getBlockVariations2.find(function (_ref2) { + var patterns = _ref2.patterns; + return matchesPatterns(url, patterns); + }); }; -var util_isFromWordPress = function isFromWordPress(html) { - return Object(external_this_lodash_["includes"])(html, 'class="wp-embedded-content"'); +var isFromWordPress = function isFromWordPress(html) { + return html && html.includes('class="wp-embedded-content"'); }; var util_getPhotoHtml = function getPhotoHtml(photo) { // 100% width for the preview so it fits nicely into the document, some "thumbnails" are // actually the full size photo. If thumbnails not found, use full image. - var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url; + var imageUrl = photo.thumbnail_url || photo.url; var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", { src: imageUrl, alt: photo.title, @@ -3494,48 +2952,66 @@ var util_getPhotoHtml = function getPhotoHtml(photo) { * See `getAttributesFromPreview` in the generated embed edit component. * * @param {Object} props The block's props. - * @param {Object} attributesFromPreview Attributes generated from the block's most up to date preview. + * @param {Object} [attributesFromPreview] Attributes generated from the block's most up to date preview. * @return {Object|undefined} A more suitable embed block if one exists. */ -var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) { +var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props) { + var _getBlockVariations3; + + var attributesFromPreview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var preview = props.preview, - name = props.name; - var url = props.attributes.url; - - if (!url) { - return; - } - - var matchingBlock = util_findBlock(url); - - if (!Object(external_this_wp_blocks_["getBlockType"])(matchingBlock)) { - return; - } // WordPress blocks can work on multiple sites, and so don't have patterns, + _props$attributes = props.attributes; + _props$attributes = _props$attributes === void 0 ? {} : _props$attributes; + var url = _props$attributes.url, + providerNameSlug = _props$attributes.providerNameSlug, + type = _props$attributes.type; + if (!url || !Object(external_this_wp_blocks_["getBlockType"])(DEFAULT_EMBED_BLOCK)) return; + var matchedBlock = util_findMoreSuitableBlock(url); // WordPress blocks can work on multiple sites, and so don't have patterns, // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. + var isCurrentBlockWP = providerNameSlug === 'wordpress' || type === WP_EMBED_TYPE; // if current block is not WordPress and a more suitable block found + // that is different from the current one, create the new matched block - if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) { - // At this point, we have discovered a more suitable block for this url, so transform it. - if (name !== matchingBlock) { - return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, { - url: url - }); - } + var shouldCreateNewBlock = !isCurrentBlockWP && matchedBlock && (matchedBlock.attributes.providerNameSlug !== providerNameSlug || !providerNameSlug); + + if (shouldCreateNewBlock) { + return Object(external_this_wp_blocks_["createBlock"])(DEFAULT_EMBED_BLOCK, util_objectSpread({ + url: url + }, matchedBlock.attributes)); } - if (preview) { - var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead. + var wpVariation = (_getBlockVariations3 = Object(external_this_wp_blocks_["getBlockVariations"])(DEFAULT_EMBED_BLOCK)) === null || _getBlockVariations3 === void 0 ? void 0 : _getBlockVariations3.find(function (_ref3) { + var name = _ref3.name; + return name === 'wordpress'; + }); // We can't match the URL for WordPress embeds, we have to check the HTML instead. - if (util_isFromWordPress(html)) { - // If this is not the WordPress embed block, transform it into one. - if (WORDPRESS_EMBED_BLOCK !== name) { - return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, util_objectSpread({ - url: url - }, attributesFromPreview)); - } - } - } + if (!wpVariation || !preview || !isFromWordPress(preview.html) || isCurrentBlockWP) { + return; + } // This is not the WordPress embed block so transform it into one. + + + return Object(external_this_wp_blocks_["createBlock"])(DEFAULT_EMBED_BLOCK, util_objectSpread(util_objectSpread({ + url: url + }, wpVariation.attributes), attributesFromPreview)); +}; +/** + * Removes all previously set aspect ratio related classes and return the rest + * existing class names. + * + * @param {string} existingClassNames Any existing class names. + * @return {string} The class names without any aspect ratio related class. + */ + +var util_removeAspectRatioClasses = function removeAspectRatioClasses(existingClassNames) { + var aspectRatioClassNames = ASPECT_RATIOS.reduce(function (accumulator, _ref4) { + var className = _ref4.className; + accumulator[className] = false; + return accumulator; + }, { + 'wp-has-aspect-ratio': false + }); + return dedupe_default()(existingClassNames, aspectRatioClassNames); }; /** * Returns class names with any relevant responsive aspect ratio names. @@ -3551,17 +3027,7 @@ function getClassNames(html) { var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; if (!allowResponsive) { - // Remove all of the aspect ratio related class names. - var aspectRatioClassNames = { - 'wp-has-aspect-ratio': false - }; - - for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) { - var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex]; - aspectRatioClassNames[aspectRatioToRemove.className] = false; - } - - return dedupe_default()(existingClassNames, aspectRatioClassNames); + return util_removeAspectRatioClasses(existingClassNames); } var previewDocument = document.implementation.createHTMLDocument(''); @@ -3571,13 +3037,11 @@ function getClassNames(html) { if (iframe && iframe.height && iframe.width) { var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it. - for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) { - var potentialRatio = ASPECT_RATIOS[_ratioIndex]; + for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) { + var potentialRatio = ASPECT_RATIOS[ratioIndex]; if (aspectRatio >= potentialRatio.ratio) { - var _classnames; - - return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames)); + return dedupe_default()(util_removeAspectRatioClasses(existingClassNames), potentialRatio.className, 'wp-has-aspect-ratio'); } } } @@ -3626,10 +3090,10 @@ var getAttributesFromPreview = memize_default()(function (preview, title, curren var html = preview.html, providerName = preview.provider_name; - var providerNameSlug = Object(external_this_lodash_["kebabCase"])(Object(external_this_lodash_["toLower"])('' !== providerName ? providerName : title)); + var providerNameSlug = Object(external_this_lodash_["kebabCase"])((providerName || title).toLowerCase()); - if (util_isFromWordPress(html)) { - type = 'wp-embed'; + if (isFromWordPress(html)) { + type = WP_EMBED_TYPE; } if (html || 'photo' === type) { @@ -3689,7 +3153,7 @@ PERFORMANCE OF THIS SOFTWARE. var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; @@ -3775,8 +3239,16 @@ function __generator(thisArg, body) { } } -function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +var __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +}); + +function __exportStar(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); } function __values(o) { @@ -3857,11 +3329,17 @@ function __makeTemplateObject(cooked, raw) { return cooked; }; +var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}; + function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; } @@ -4117,7 +3595,7 @@ function index_module_classNames() { }).join(' ').trim(); } -var css = ".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"; +var css_248z = ".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"; var MIN_ZOOM = 1; var MAX_ZOOM = 3; @@ -4209,7 +3687,7 @@ function (_super) { }; _this.computeSizes = function () { - var _a, _b, _c, _d; + var _a, _b, _c, _d, _e, _f; var mediaRef = _this.imageRef || _this.videoRef; @@ -4223,6 +3701,10 @@ function (_super) { }; var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(mediaRef.offsetWidth, mediaRef.offsetHeight, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation); + if (((_e = _this.state.cropSize) === null || _e === void 0 ? void 0 : _e.height) !== cropSize.height || ((_f = _this.state.cropSize) === null || _f === void 0 ? void 0 : _f.width) !== cropSize.width) { + _this.props.onCropSizeChange && _this.props.onCropSizeChange(cropSize); + } + _this.setState({ cropSize: cropSize }, _this.recomputeCropPosition); @@ -4268,11 +3750,10 @@ function (_super) { }; _this.onDragStart = function (_a) { - var x = _a.x, - y = _a.y; - var _b, _c; + var x = _a.x, + y = _a.y; _this.dragStartPosition = { x: x, y: y @@ -4425,7 +3906,7 @@ function (_super) { if (!this.props.disableAutomaticStylesInjection) { this.styleRef = document.createElement('style'); this.styleRef.setAttribute('type', 'text/css'); - this.styleRef.innerHTML = css; + this.styleRef.innerHTML = css_248z; document.head.appendChild(this.styleRef); } // when rendered via SSR, the image can already be loaded and its onLoad callback will never be called @@ -4537,7 +4018,7 @@ function (_super) { containerClassName = _d.containerClassName, cropAreaClassName = _d.cropAreaClassName, mediaClassName = _d.mediaClassName; - return external_this_React_default.a.createElement("div", { + return /*#__PURE__*/external_this_React_default.a.createElement("div", { onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart, ref: function ref(el) { @@ -4546,7 +4027,7 @@ function (_super) { "data-testid": "container", style: containerStyle, className: index_module_classNames('reactEasyCrop_Container', containerClassName) - }, image ? external_this_React_default.a.createElement("img", __assign({ + }, image ? /*#__PURE__*/external_this_React_default.a.createElement("img", __assign({ alt: "", className: index_module_classNames('reactEasyCrop_Image', mediaClassName) }, mediaProps, { @@ -4558,7 +4039,7 @@ function (_super) { transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")" }), onLoad: this.onMediaLoad - })) : video && external_this_React_default.a.createElement("video", __assign({ + })) : video && /*#__PURE__*/external_this_React_default.a.createElement("video", __assign({ autoPlay: true, loop: true, muted: true, @@ -4573,7 +4054,7 @@ function (_super) { transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")" }), controls: false - })), this.state.cropSize && external_this_React_default.a.createElement("div", { + })), this.state.cropSize && /*#__PURE__*/external_this_React_default.a.createElement("div", { style: __assign(__assign({}, cropAreaStyle), { width: this.state.cropSize.width, height: this.state.cropSize.height @@ -4619,7 +4100,7 @@ function (_super) { /* harmony default export */ var index_module = (index_module_Cropper); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(154); +var check = __webpack_require__(158); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js @@ -4637,7 +4118,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__(292); +var search = __webpack_require__(303); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js @@ -4698,7 +4179,7 @@ function AspectGroup(_ref) { aspect = _ref2.aspect; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { key: aspect, - isDisabled: isDisabled, + disabled: isDisabled, onClick: function onClick() { _onClick(aspect); }, @@ -4710,7 +4191,8 @@ function AspectGroup(_ref) { } function AspectMenu(_ref3) { - var isDisabled = _ref3.isDisabled, + var toggleProps = _ref3.toggleProps, + isDisabled = _ref3.isDisabled, _onClick2 = _ref3.onClick, value = _ref3.value, defaultValue = _ref3.defaultValue; @@ -4718,6 +4200,7 @@ function AspectMenu(_ref3) { icon: aspect_ratio, label: Object(external_this_wp_i18n_["__"])('Aspect Ratio'), popoverProps: POPOVER_PROPS, + toggleProps: toggleProps, className: "wp-block-image__aspect-ratio" }, function (_ref4) { var onClose = _ref4.onClose; @@ -4982,7 +4465,7 @@ function ImageEditor(_ref5) { onChange: setZoom }); } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { return Object(external_this_wp_element_["createElement"])(AspectMenu, { toggleProps: toggleProps, isDisabled: inProgress, @@ -5084,6 +4567,8 @@ function Image(_ref) { onSelectURL = _ref.onSelectURL, onUploadError = _ref.onUploadError, containerRef = _ref.containerRef; + var captionRef = Object(external_this_wp_element_["useRef"])(); + var prevUrl = Object(external_this_wp_compose_["usePrevious"])(url); var image = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core'), getMedia = _select.getMedia; @@ -5167,7 +4652,16 @@ function Image(_ref) { }).then(function (blob) { return setExternalBlob(blob); }); - }, [id, url, isSelected, externalBlob]); + }, [id, url, isSelected, externalBlob]); // Focus the caption after inserting an image from the placeholder. This is + // done to preserve the behaviour of focussing the first tabbable element + // when a block is mounted. Previously, the image block would remount when + // the placeholder is removed. Maybe this behaviour could be removed. + + Object(external_this_wp_element_["useEffect"])(function () { + if (url && !prevUrl && isSelected) { + captionRef.current.focus(); + } + }, [url, prevUrl]); function onResizeStart() { toggleSelection(false); @@ -5461,6 +4955,7 @@ function Image(_ref) { } return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, img, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + ref: captionRef, tagName: "figcaption", placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), value: caption, @@ -5503,6 +4998,8 @@ function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; +/* global wp */ + /** * Internal dependencies */ @@ -5560,10 +5057,17 @@ function ImageEdit(_ref) { caption = attributes.caption, align = attributes.align, id = attributes.id, - linkDestination = attributes.linkDestination, width = attributes.width, height = attributes.height, sizeSlug = attributes.sizeSlug; + var altRef = Object(external_this_wp_element_["useRef"])(); + Object(external_this_wp_element_["useEffect"])(function () { + altRef.current = alt; + }, [alt]); + var captionRef = Object(external_this_wp_element_["useRef"])(); + Object(external_this_wp_element_["useEffect"])(function () { + captionRef.current = caption; + }, [caption]); var ref = Object(external_this_wp_element_["useRef"])(); var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), @@ -5578,6 +5082,8 @@ function ImageEdit(_ref) { } function onSelectImage(media) { + var _wp, _wp$media, _wp$media$view, _wp$media$view$settin, _wp$media$view$settin2; + if (!media || !media.url) { setAttributes({ url: undefined, @@ -5593,14 +5099,14 @@ function ImageEdit(_ref) { // written by the user, make sure the text is not overwritten. if (edit_isTemporaryImage(id, url)) { - if (alt) { + if (altRef.current) { mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']); } } // If a caption text was meanwhile written by the user, // make sure the text is not overwritten by empty captions. - if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) { + if (captionRef.current && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) { mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['caption']); } @@ -5618,21 +5124,53 @@ function ImageEdit(_ref) { additionalAttributes = { url: url }; + } // Check if default link setting should be used. + + + var linkDestination = attributes.linkDestination; + + if (!linkDestination) { + // Use the WordPress option to determine the proper default. + // The constants used in Gutenberg do not match WP options so a little more complicated than ideal. + // TODO: fix this in a follow up PR, requires updating media-text and ui component. + switch (((_wp = wp) === null || _wp === void 0 ? void 0 : (_wp$media = _wp.media) === null || _wp$media === void 0 ? void 0 : (_wp$media$view = _wp$media.view) === null || _wp$media$view === void 0 ? void 0 : (_wp$media$view$settin = _wp$media$view.settings) === null || _wp$media$view$settin === void 0 ? void 0 : (_wp$media$view$settin2 = _wp$media$view$settin.defaultProps) === null || _wp$media$view$settin2 === void 0 ? void 0 : _wp$media$view$settin2.link) || LINK_DESTINATION_NONE) { + case 'file': + case LINK_DESTINATION_MEDIA: + linkDestination = LINK_DESTINATION_MEDIA; + break; + + case 'post': + case LINK_DESTINATION_ATTACHMENT: + linkDestination = LINK_DESTINATION_ATTACHMENT; + break; + + case LINK_DESTINATION_CUSTOM: + linkDestination = LINK_DESTINATION_CUSTOM; + break; + + case LINK_DESTINATION_NONE: + linkDestination = LINK_DESTINATION_NONE; + break; + } } // Check if the image is linked to it's media. - if (linkDestination === LINK_DESTINATION_MEDIA) { - // Update the media link. - mediaAttributes.href = media.url; - } // Check if the image is linked to the attachment page. + var href; + switch (linkDestination) { + case LINK_DESTINATION_MEDIA: + href = media.url; + break; - if (linkDestination === LINK_DESTINATION_ATTACHMENT) { - // Update the media link. - mediaAttributes.href = media.link; + case LINK_DESTINATION_ATTACHMENT: + href = media.link; + break; } - setAttributes(image_edit_objectSpread({}, mediaAttributes, {}, additionalAttributes)); + mediaAttributes.href = href; + setAttributes(image_edit_objectSpread(image_edit_objectSpread(image_edit_objectSpread({}, mediaAttributes), additionalAttributes), {}, { + linkDestination: linkDestination + })); } function onSelectURL(newURL) { @@ -5650,7 +5188,7 @@ function ImageEdit(_ref) { width: undefined, height: undefined } : {}; - setAttributes(image_edit_objectSpread({}, extraUpdatedAttributes, { + setAttributes(image_edit_objectSpread(image_edit_objectSpread({}, extraUpdatedAttributes), {}, { align: nextAlign })); } @@ -5676,6 +5214,11 @@ function ImageEdit(_ref) { allowedTypes: ALLOWED_MEDIA_TYPES, onError: function onError(message) { noticeOperations.createErrorNotice(message); + setAttributes({ + src: undefined, + id: undefined, + url: undefined + }); } }); } @@ -5724,15 +5267,12 @@ function ImageEdit(_ref) { 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), 'is-resized': !!width || !!height, 'is-focused': isSelected - }, "size-".concat(sizeSlug), sizeSlug)); // Focussing the image caption after inserting an image relies on the - // component remounting. This needs to be fixed. - - var key = !!url; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, { + }, "size-".concat(sizeSlug), sizeSlug)); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ ref: ref, - className: classes, - key: key - }, url && Object(external_this_wp_element_["createElement"])(Image, { + className: classes + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, url && Object(external_this_wp_element_["createElement"])(Image, { attributes: attributes, setAttributes: setAttributes, isSelected: isSelected, @@ -5864,7 +5404,7 @@ var schema = function schema(_ref2) { return { figure: { require: ['img'], - children: transforms_objectSpread({}, imageSchema, { + children: transforms_objectSpread(transforms_objectSpread({}, imageSchema), {}, { a: { attributes: ['href', 'rel', 'target'], children: imageSchema @@ -5877,7 +5417,7 @@ var schema = function schema(_ref2) { }; }; -var image_transforms_transforms = { +var transforms_transforms = { from: [{ type: 'raw', isMatch: function isMatch(node) { @@ -5983,7 +5523,7 @@ var image_transforms_transforms = { } }] }; -/* harmony default export */ var image_transforms = (image_transforms_transforms); +/* harmony default export */ var image_transforms = (transforms_transforms); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js /** @@ -6059,8 +5599,7 @@ var image_metadata = { type: "string" }, linkDestination: { - type: "string", - "default": "none" + type: "string" }, linkTarget: { type: "string", @@ -6083,7 +5622,7 @@ var image_settings = { description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'), icon: library_image, keywords: ['img', // "img" is not translated as it is intended to reflect the HTML tag. - Object(external_this_wp_i18n_["__"])('photo')], + Object(external_this_wp_i18n_["__"])('photo'), Object(external_this_wp_i18n_["__"])('picture')], example: { attributes: { sizeSlug: 'large', @@ -6198,14 +5737,14 @@ var deprecated_migrateCustomColors = function migrateCustomColors(attributes) { text: attributes.customTextColor } }; - return deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor']), { + return deprecated_objectSpread(deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor'])), {}, { style: style }); }; var heading_deprecated_deprecated = [{ supports: blockSupports, - attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, { customTextColor: { type: 'string' }, @@ -6236,7 +5775,7 @@ var heading_deprecated_deprecated = [{ }); } }, { - attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, { customTextColor: { type: 'string' }, @@ -6269,7 +5808,7 @@ var heading_deprecated_deprecated = [{ supports: blockSupports }, { supports: blockSupports, - attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + attributes: deprecated_objectSpread(deprecated_objectSpread({}, heading_deprecated_blockAttributes), {}, { customTextColor: { type: 'string' }, @@ -6302,7 +5841,7 @@ var heading_deprecated_deprecated = [{ /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(21); +var external_this_wp_keycodes_ = __webpack_require__(19); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js @@ -6429,7 +5968,7 @@ function HeadingLevelDropdown(_ref) { renderContent: function renderContent() { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { className: "block-library-heading-level-toolbar", - __experimentalAccessibilityLabel: Object(external_this_wp_i18n_["__"])('Change heading level') + label: Object(external_this_wp_i18n_["__"])('Change heading level') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { isCollapsed: false, controls: HEADING_LEVELS.map(function (targetLevel) { @@ -6456,6 +5995,7 @@ function HeadingLevelDropdown(_ref) { + function heading_edit_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 heading_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { heading_edit_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 { heading_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -6489,6 +6029,10 @@ function HeadingEdit(_ref) { level = attributes.level, placeholder = attributes.placeholder; var tagName = 'h' + level; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)), + style: mergedStyle + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(HeadingLevelDropdown, { selectedLevel: level, onChange: function onChange(newLevel) { @@ -6503,9 +6047,9 @@ function HeadingEdit(_ref) { align: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ identifier: "content", - tagName: external_this_wp_blockEditor_["__experimentalBlock"][tagName], + tagName: tagName, value: content, onChange: function onChange(value) { return setAttributes({ @@ -6518,7 +6062,7 @@ function HeadingEdit(_ref) { return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); } - return Object(external_this_wp_blocks_["createBlock"])('core/heading', heading_edit_objectSpread({}, attributes, { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', heading_edit_objectSpread(heading_edit_objectSpread({}, attributes), {}, { content: value })); }, @@ -6526,11 +6070,9 @@ function HeadingEdit(_ref) { onRemove: function onRemove() { return onReplace([]); }, - className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)), placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'), - textAlign: align, - style: mergedStyle - })); + textAlign: align + }, blockWrapperProps))); } /* harmony default export */ var heading_edit = (HeadingEdit); @@ -6631,13 +6173,16 @@ var transforms_name$category$attrib = { var heading_transforms_transforms = { from: [{ type: 'block', + isMultiBlock: true, blocks: ['core/paragraph'], - transform: function transform(_ref) { - var content = _ref.content, - anchor = _ref.anchor; - return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, { - content: content, - anchor: anchor + transform: function transform(attributes) { + return attributes.map(function (_ref) { + var content = _ref.content, + anchor = _ref.anchor; + return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, { + content: content, + anchor: anchor + }); }); } }, { @@ -6673,7 +6218,7 @@ var heading_transforms_transforms = { return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, attributes); } - }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) { + }].concat(Object(toConsumableArray["a" /* default */])([1, 2, 3, 4, 5, 6].map(function (level) { return { type: 'prefix', prefix: Array(level + 1).join('#'), @@ -6687,13 +6232,16 @@ var heading_transforms_transforms = { }))), to: [{ type: 'block', + isMultiBlock: true, blocks: ['core/paragraph'], - transform: function transform(_ref4) { - var content = _ref4.content, - anchor = _ref4.anchor; - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: content, - anchor: anchor + transform: function transform(attributes) { + return attributes.map(function (_ref4) { + var content = _ref4.content, + anchor = _ref4.anchor; + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: content, + anchor: anchor + }); }); } }] @@ -6867,7 +6415,7 @@ var quote_deprecated_deprecated = [{ })); } }, { - attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, { + attributes: quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes), {}, { style: { type: 'number', default: 1 @@ -6875,7 +6423,7 @@ var quote_deprecated_deprecated = [{ }), migrate: function migrate(attributes) { if (attributes.style === 2) { - return quote_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style']), { + return quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style'])), {}, { className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' }); } @@ -6902,7 +6450,7 @@ var quote_deprecated_deprecated = [{ })); } }, { - attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, { + attributes: quote_deprecated_objectSpread(quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes), {}, { citation: { type: 'string', source: 'html', @@ -6967,6 +6515,9 @@ function QuoteEdit(_ref) { var align = attributes.align, value = attributes.value, citation = attributes.citation; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)) + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: align, onChange: function onChange(nextAlign) { @@ -6974,9 +6525,7 @@ function QuoteEdit(_ref) { align: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], { - className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { identifier: "value", multiline: true, value: value, @@ -6997,7 +6546,7 @@ function QuoteEdit(_ref) { Object(external_this_wp_i18n_["__"])('Write quote…'), onReplace: onReplace, onSplit: function onSplit(piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_edit_objectSpread({}, attributes, { + return Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_edit_objectSpread(quote_edit_objectSpread({}, attributes), {}, { value: piece })); }, @@ -7055,7 +6604,7 @@ function quote_save_save(_ref) { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(25); @@ -7231,7 +6780,7 @@ var quote_transforms_transforms = { } var quotePieces = pieces.slice(1); - var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_transforms_objectSpread({}, attrs, { + var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_transforms_objectSpread(quote_transforms_objectSpread({}, attrs), {}, { citation: citation, value: Object(external_this_wp_richText_["toHTMLString"])({ value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(), @@ -7297,7 +6846,8 @@ var quote_metadata = { } }, supports: { - anchor: true + anchor: true, + lightBlockWrapper: true } }; @@ -7338,12 +6888,12 @@ var quote_settings = { } if (!value || value === '

    ') { - return quote_objectSpread({}, attributes, { + return quote_objectSpread(quote_objectSpread({}, attributes), {}, { citation: citation }); } - return quote_objectSpread({}, attributes, { + return quote_objectSpread(quote_objectSpread({}, attributes), {}, { value: attributes.value + value, citation: citation }); @@ -7411,6 +6961,153 @@ function gallery_deprecated_objectSpread(target) { for (var i = 1; i < arguments var gallery_deprecated_deprecated = [{ + 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: true + }, + linkTo: { + type: 'string', + default: 'none' + }, + sizeSlug: { + type: 'string', + default: 'large' + } + }, + supports: { + align: true + }, + isEligible: function isEligible(_ref) { + var linkTo = _ref.linkTo; + return !linkTo || linkTo === 'attachment' || linkTo === 'media'; + }, + migrate: function migrate(attributes) { + var linkTo = attributes.linkTo; + + if (!attributes.linkTo) { + linkTo = 'none'; + } else if (attributes.linkTo === 'attachment') { + linkTo = 'post'; + } else if (attributes.linkTo === 'media') { + linkTo = 'file'; + } + + return gallery_deprecated_objectSpread(gallery_deprecated_objectSpread({}, attributes), {}, { + linkTo: linkTo + }); + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + caption = attributes.caption, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("figure", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, Object(external_this_wp_element_["createElement"])("ul", { + className: "blocks-gallery-grid" + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.fullUrl || image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-full-url": image.fullUrl, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-item__caption", + value: image.caption + }))); + })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-caption", + value: caption + })); + } +}, { attributes: { images: { type: 'array', @@ -7475,25 +7172,25 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - isEligible: function isEligible(_ref) { - var ids = _ref.ids; + isEligible: function isEligible(_ref3) { + var ids = _ref3.ids; return ids && ids.some(function (id) { return typeof id === 'string'; }); }, migrate: function migrate(attributes) { - return gallery_deprecated_objectSpread({}, attributes, { + return gallery_deprecated_objectSpread(gallery_deprecated_objectSpread({}, attributes), {}, { ids: Object(external_this_lodash_["map"])(attributes.ids, function (id) { var parsedId = parseInt(id, 10); return Number.isInteger(parsedId) ? parsedId : null; }) }); }, - save: function save(_ref2) { - var attributes = _ref2.attributes; + save: function save(_ref4) { + var attributes = _ref4.attributes; var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + _attributes$columns2 = attributes.columns, + columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, imageCrop = attributes.imageCrop, caption = attributes.caption, linkTo = attributes.linkTo; @@ -7598,11 +7295,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref3) { - var attributes = _ref3.attributes; + save: function save(_ref5) { + var attributes = _ref5.attributes; var images = attributes.images, - _attributes$columns2 = attributes.columns, - columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, + _attributes$columns3 = attributes.columns, + columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; return Object(external_this_wp_element_["createElement"])("ul", { @@ -7687,9 +7384,9 @@ var gallery_deprecated_deprecated = [{ default: 'none' } }, - isEligible: function isEligible(_ref4) { - var images = _ref4.images, - ids = _ref4.ids; + isEligible: function isEligible(_ref6) { + var images = _ref6.images, + ids = _ref6.ids; return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_this_lodash_["some"])(images, function (id, index) { if (!id && ids[index] !== null) { return true; @@ -7699,9 +7396,9 @@ var gallery_deprecated_deprecated = [{ })); }, migrate: function migrate(attributes) { - return gallery_deprecated_objectSpread({}, attributes, { - ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref5) { - var id = _ref5.id; + return gallery_deprecated_objectSpread(gallery_deprecated_objectSpread({}, attributes), {}, { + ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref7) { + var id = _ref7.id; if (!id) { return null; @@ -7714,11 +7411,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref6) { - var attributes = _ref6.attributes; + save: function save(_ref8) { + var attributes = _ref8.attributes; var images = attributes.images, - _attributes$columns3 = attributes.columns, - columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, + _attributes$columns4 = attributes.columns, + columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; return Object(external_this_wp_element_["createElement"])("ul", { @@ -7796,11 +7493,11 @@ var gallery_deprecated_deprecated = [{ supports: { align: true }, - save: function save(_ref7) { - var attributes = _ref7.attributes; + save: function save(_ref9) { + var attributes = _ref9.attributes; var images = attributes.images, - _attributes$columns4 = attributes.columns, - columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, + _attributes$columns5 = attributes.columns, + columns = _attributes$columns5 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns5, align = attributes.align, imageCrop = attributes.imageCrop, linkTo = attributes.linkTo; @@ -7840,25 +7537,25 @@ var gallery_deprecated_deprecated = [{ /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(81); +var external_this_wp_viewport_ = __webpack_require__(89); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js @@ -7873,16 +7570,21 @@ var sharedIcon = Object(external_this_wp_element_["createElement"])(external_thi }); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(294); +var chevron_left = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(293); +var chevron_right = __webpack_require__(213); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js -var library_edit = __webpack_require__(301); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules +var library_edit = __webpack_require__(483); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js -var close_small = __webpack_require__(176); +var close_small = __webpack_require__(181); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/constants.js +var constants_LINK_DESTINATION_NONE = 'none'; +var constants_LINK_DESTINATION_MEDIA = 'file'; +var constants_LINK_DESTINATION_ATTACHMENT = 'post'; // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js @@ -7893,7 +7595,7 @@ var close_small = __webpack_require__(176); -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -7921,6 +7623,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re + var gallery_image_isTemporaryImage = function isTemporaryImage(id, url) { return !id && Object(external_this_wp_blob_["isBlobURL"])(url); }; @@ -8102,11 +7805,11 @@ var gallery_image_GalleryImage = /*#__PURE__*/function (_Component) { var href; switch (linkTo) { - case 'media': + case constants_LINK_DESTINATION_MEDIA: href = url; break; - case 'attachment': + case constants_LINK_DESTINATION_ATTACHMENT: href = link; break; } @@ -8334,7 +8037,7 @@ function gallery_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function gallery_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_edit_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 { gallery_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (edit_isNativeReflectConstruct()) { 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 edit_createSuper(Derived) { var hasNativeReflectConstruct = edit_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 edit_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; } } @@ -8361,15 +8064,16 @@ function edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || + var MAX_COLUMNS = 8; var linkOptions = [{ - value: 'attachment', + value: constants_LINK_DESTINATION_ATTACHMENT, label: Object(external_this_wp_i18n_["__"])('Attachment Page') }, { - value: 'media', + value: constants_LINK_DESTINATION_MEDIA, label: Object(external_this_wp_i18n_["__"])('Media File') }, { - value: 'none', + value: constants_LINK_DESTINATION_NONE, label: Object(external_this_wp_i18n_["__"])('None') }]; var edit_ALLOWED_MEDIA_TYPES = ['image']; @@ -8426,7 +8130,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { } if (attributes.images) { - attributes = gallery_edit_objectSpread({}, attributes, { + attributes = gallery_edit_objectSpread(gallery_edit_objectSpread({}, attributes), {}, { // Unlike images[ n ].id which is a string, always ensure the // ids array contains numbers as per its attribute type. ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref) { @@ -8573,7 +8277,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { }); this.setAttributes({ images: newImages.map(function (newImage) { - return gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug), { + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug)), {}, { caption: _this7.selectCaption(newImage, images, attachmentCaptions), // The id value is stored in a data attribute, so when the // block is parsed it's converted to a string. Converting @@ -8635,7 +8339,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { } setAttributes({ - images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [gallery_edit_objectSpread({}, images[index], {}, attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) + images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [gallery_edit_objectSpread(gallery_edit_objectSpread({}, images[index]), attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) }); } }, { @@ -8670,7 +8374,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { } var url = Object(external_this_lodash_["get"])(resizedImages, [parseInt(image.id, 10), sizeSlug]); - return gallery_edit_objectSpread({}, image, {}, url && { + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, image), url && { url: url }); }); @@ -8715,6 +8419,15 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { selectedImage: null, captionSelected: false }); + } // linkTo attribute must be saved so blocks don't break when changing image_default_link_type in options.php + + + if (!this.props.attributes.linkTo) { + var _window, _window$wp, _window$wp$media, _window$wp$media$view, _window$wp$media$view2, _window$wp$media$view3; + + this.setAttributes({ + linkTo: ((_window = window) === null || _window === void 0 ? void 0 : (_window$wp = _window.wp) === null || _window$wp === void 0 ? void 0 : (_window$wp$media = _window$wp.media) === null || _window$wp$media === void 0 ? void 0 : (_window$wp$media$view = _window$wp$media.view) === null || _window$wp$media$view === void 0 ? void 0 : (_window$wp$media$view2 = _window$wp$media$view.settings) === null || _window$wp$media$view2 === void 0 ? void 0 : (_window$wp$media$view3 = _window$wp$media$view2.defaultProps) === null || _window$wp$media$view3 === void 0 ? void 0 : _window$wp$media$view3.link) || constants_LINK_DESTINATION_NONE + }); } } }, { @@ -8828,9 +8541,9 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { var sizes = Object(external_this_lodash_["reduce"])(imageSizes, function (currentSizes, size) { var defaultUrl = Object(external_this_lodash_["get"])(image, ['sizes', size.slug, 'url']); var mediaDetailsUrl = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', size.slug, 'source_url']); - return gallery_edit_objectSpread({}, currentSizes, Object(defineProperty["a" /* default */])({}, size.slug, defaultUrl || mediaDetailsUrl)); + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, currentSizes), {}, Object(defineProperty["a" /* default */])({}, size.slug, defaultUrl || mediaDetailsUrl)); }, {}); - return gallery_edit_objectSpread({}, currentResizedImages, Object(defineProperty["a" /* default */])({}, parseInt(id, 10), sizes)); + return gallery_edit_objectSpread(gallery_edit_objectSpread({}, currentResizedImages), {}, Object(defineProperty["a" /* default */])({}, parseInt(id, 10), sizes)); }, {}); } @@ -8855,6 +8568,7 @@ var edit_GalleryEdit = /*#__PURE__*/function (_Component) { */ + function gallery_save_save(_ref) { var attributes = _ref.attributes; var images = attributes.images, @@ -8871,11 +8585,11 @@ function gallery_save_save(_ref) { var href; switch (linkTo) { - case 'media': + case constants_LINK_DESTINATION_MEDIA: href = image.fullUrl || image.url; break; - case 'attachment': + case constants_LINK_DESTINATION_ATTACHMENT: href = image.link; break; } @@ -8922,6 +8636,7 @@ function gallery_save_save(_ref) { + var parseShortcodeIds = function parseShortcodeIds(ids) { if (!ids) { return []; @@ -9004,10 +8719,14 @@ var gallery_transforms_transforms = { type: 'string', shortcode: function shortcode(_ref7) { var _ref7$named$link = _ref7.named.link, - link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link; - return link === 'file' ? 'media' : link; + link = _ref7$named$link === void 0 ? constants_LINK_DESTINATION_ATTACHMENT : _ref7$named$link; + return link; } } + }, + isMatch: function isMatch(_ref8) { + var named = _ref8.named; + return undefined !== named.ids; } }, { // When created by drag and dropping multiple files on an insertion point @@ -9031,17 +8750,17 @@ var gallery_transforms_transforms = { to: [{ type: 'block', blocks: ['core/image'], - transform: function transform(_ref8) { - var images = _ref8.images, - align = _ref8.align, - sizeSlug = _ref8.sizeSlug, - ids = _ref8.ids; + transform: function transform(_ref9) { + var images = _ref9.images, + align = _ref9.align, + sizeSlug = _ref9.sizeSlug, + ids = _ref9.ids; if (images.length > 0) { - return images.map(function (_ref9, index) { - var url = _ref9.url, - alt = _ref9.alt, - caption = _ref9.caption; + return images.map(function (_ref10, index) { + var url = _ref10.url, + alt = _ref10.alt, + caption = _ref10.caption; return Object(external_this_wp_blocks_["createBlock"])('core/image', { id: ids[index], url: url, @@ -9143,8 +8862,7 @@ var gallery_metadata = { "default": true }, linkTo: { - type: "string", - "default": "none" + type: "string" }, sizeSlug: { type: "string", @@ -9197,7 +8915,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__(83); +var external_this_wp_serverSideRender_ = __webpack_require__(86); 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 @@ -9253,13 +8971,6 @@ var archives_metadata = { name: "core/archives", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, displayAsDropdown: { type: "boolean", "default": false @@ -9402,6 +9113,7 @@ function AudioEdit(_ref) { loop = attributes.loop, preload = attributes.preload, src = attributes.src; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), getSettings = _select.getSettings; @@ -9498,7 +9210,7 @@ function AudioEdit(_ref) { } if (!src) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: library_audio }), @@ -9553,7 +9265,7 @@ function AudioEdit(_ref) { value: 'none', label: Object(external_this_wp_i18n_["__"])('None') }] - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { + }))), Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { controls: "controls", src: src })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { @@ -9629,8 +9341,14 @@ var audio_transforms_transforms = { src: { type: 'string', shortcode: function shortcode(_ref) { - var src = _ref.named.src; - return src; + var _ref$named = _ref.named, + src = _ref$named.src, + mp3 = _ref$named.mp3, + m4a = _ref$named.m4a, + ogg = _ref$named.ogg, + wav = _ref$named.wav, + wma = _ref$named.wma; + return src || mp3 || m4a || ogg || wav || wma; } }, loop: { @@ -9823,13 +9541,13 @@ var deprecated_migrateCustomColorsAndGradients = function migrateCustomColorsAnd style.color.gradient = attributes.customGradient; } - return button_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customGradient']), { + return button_deprecated_objectSpread(button_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customGradient'])), {}, { style: style }); }; var deprecated_oldColorsMigration = function oldColorsMigration(attributes) { - return deprecated_migrateCustomColorsAndGradients(Object(external_this_lodash_["omit"])(button_deprecated_objectSpread({}, attributes, { + return deprecated_migrateCustomColorsAndGradients(Object(external_this_lodash_["omit"])(button_deprecated_objectSpread(button_deprecated_objectSpread({}, attributes), {}, { customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined }), ['color', 'textColor'])); @@ -9862,7 +9580,7 @@ var button_deprecated_deprecated = [{ gradients: true } }, - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { linkTarget: { type: 'string', source: 'attribute', @@ -9924,7 +9642,7 @@ var button_deprecated_deprecated = [{ align: true, alignWide: false }, - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { linkTarget: { type: 'string', source: 'attribute', @@ -10011,7 +9729,7 @@ var button_deprecated_deprecated = [{ })); } }, { - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { align: { type: 'string', default: 'none' @@ -10054,7 +9772,7 @@ var button_deprecated_deprecated = [{ newClassName = newClassName.replace(/is-style-squared[\s]?/, '').trim(); } - return deprecated_migrateCustomColorsAndGradients(button_deprecated_objectSpread({}, attributes, { + return deprecated_migrateCustomColorsAndGradients(button_deprecated_objectSpread(button_deprecated_objectSpread({}, attributes), {}, { className: newClassName ? newClassName : undefined, borderRadius: 0 })); @@ -10093,7 +9811,7 @@ var button_deprecated_deprecated = [{ })); } }, { - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { align: { type: 'string', default: 'none' @@ -10142,7 +9860,7 @@ var button_deprecated_deprecated = [{ })); } }, { - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { color: { type: 'string' }, @@ -10180,7 +9898,7 @@ var button_deprecated_deprecated = [{ }, migrate: deprecated_oldColorsMigration }, { - attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + attributes: button_deprecated_objectSpread(button_deprecated_objectSpread({}, button_deprecated_blockAttributes), {}, { color: { type: 'string' }, @@ -10220,10 +9938,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__(179); +var library_link = __webpack_require__(184); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(204); +var link_off = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/color-edit.js @@ -10244,16 +9962,21 @@ function color_edit_objectSpread(target) { for (var i = 1; i < arguments.length; - /** * Internal dependencies */ -var isWebPlatform = external_this_wp_element_["Platform"].OS === 'web'; // The code in this file is copied entirely from the "color" and "style" support flags +var EMPTY_ARRAY = []; +var isWebPlatform = external_this_wp_element_["Platform"].OS === 'web'; + +function color_edit_getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} // The code in this file is copied entirely from the "color" and "style" support flags // The flag can't be used at the moment because of the extra wrapper around // the button block markup. + function getBlockDOMNode(clientId) { return document.getElementById('block-' + clientId); } @@ -10279,9 +10002,6 @@ function ColorPanel(_ref) { clientId = _ref.clientId, _ref$enableContrastCh = _ref.enableContrastChecking, enableContrastChecking = _ref$enableContrastCh === void 0 ? true : _ref$enableContrastCh; - var _window = window, - getComputedStyle = _window.getComputedStyle, - Node = _window.Node; var _useState = Object(external_this_wp_element_["useState"])(), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), @@ -10305,13 +10025,13 @@ function ColorPanel(_ref) { return; } - setDetectedColor(getComputedStyle(colorsDetectionElement).color); + setDetectedColor(color_edit_getComputedStyle(colorsDetectionElement).color); var backgroundColorNode = colorsDetectionElement; - var backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + var backgroundColor = color_edit_getComputedStyle(backgroundColorNode).backgroundColor; - while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE) { + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === backgroundColorNode.parentNode.ELEMENT_NODE) { backgroundColorNode = backgroundColorNode.parentNode; - backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + backgroundColor = color_edit_getComputedStyle(backgroundColorNode).backgroundColor; } setDetectedBackgroundColor(backgroundColor); @@ -10338,17 +10058,12 @@ function ColorEdit(props) { var _style$color2, _style$color3, _style$color4; var attributes = props.attributes; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings(); - }, []), - colors = _useSelect.colors, - gradients = _useSelect.gradients; // Shouldn't be needed but right now the ColorGradientsPanel + var colors = Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('color.palette') || EMPTY_ARRAY; + var gradients = Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('color.gradients') || EMPTY_ARRAY; // Shouldn't be needed but right now the ColorGradientsPanel // can trigger both onChangeColor and onChangeBackground // synchronously causing our two callbacks to override changes // from each other. - var localAttributes = Object(external_this_wp_element_["useRef"])(attributes); Object(external_this_wp_element_["useEffect"])(function () { localAttributes.current = attributes; @@ -10374,8 +10089,8 @@ function ColorEdit(props) { var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByColorValue"])(colors, value); var attributeName = name + 'Color'; - var newStyle = color_edit_objectSpread({}, localAttributes.current.style, { - color: color_edit_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) + var newStyle = color_edit_objectSpread(color_edit_objectSpread({}, localAttributes.current.style), {}, { + color: color_edit_objectSpread(color_edit_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color), {}, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) }); var newNamedColor = (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? colorObject.slug : undefined; @@ -10385,7 +10100,7 @@ function ColorEdit(props) { }, attributeName, newNamedColor); props.setAttributes(newAttributes); - localAttributes.current = color_edit_objectSpread({}, localAttributes.current, {}, newAttributes); + localAttributes.current = color_edit_objectSpread(color_edit_objectSpread({}, localAttributes.current), newAttributes); }; }; @@ -10396,8 +10111,8 @@ function ColorEdit(props) { if (slug) { var _localAttributes$curr3, _localAttributes$curr4, _localAttributes$curr5; - var newStyle = color_edit_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style, { - color: color_edit_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color, { + var newStyle = color_edit_objectSpread(color_edit_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style), {}, { + color: color_edit_objectSpread(color_edit_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color), {}, { gradient: undefined }) }); @@ -10409,8 +10124,8 @@ function ColorEdit(props) { } else { var _localAttributes$curr6, _localAttributes$curr7, _localAttributes$curr8; - var _newStyle = color_edit_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style, { - color: color_edit_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color, { + var _newStyle = color_edit_objectSpread(color_edit_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style), {}, { + color: color_edit_objectSpread(color_edit_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color), {}, { gradient: value }) }); @@ -10422,7 +10137,7 @@ function ColorEdit(props) { } props.setAttributes(newAttributes); - localAttributes.current = color_edit_objectSpread({}, localAttributes.current, {}, newAttributes); + localAttributes.current = color_edit_objectSpread(color_edit_objectSpread({}, localAttributes.current), newAttributes); }; return Object(external_this_wp_element_["createElement"])(ColorPanel, { @@ -10523,7 +10238,6 @@ function button_edit_objectSpread(target) { for (var i = 1; i < arguments.length - /** * Internal dependencies */ @@ -10534,6 +10248,7 @@ var edit_NEW_TAB_REL = 'noreferrer noopener'; var MIN_BORDER_RADIUS_VALUE = 0; var MAX_BORDER_RADIUS_VALUE = 50; var INITIAL_BORDER_RADIUS_POSITION = 5; +var edit_EMPTY_ARRAY = []; function BorderPanel(_ref) { var _ref$borderRadius = _ref.borderRadius, @@ -10652,12 +10367,7 @@ function ButtonEdit(props) { rel: value }); }, [setAttributes]); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings(); - }, []), - colors = _useSelect.colors; - + var colors = Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('color.palette') || edit_EMPTY_ARRAY; var onToggleOpenInNewTab = Object(external_this_wp_element_["useCallback"])(function (value) { var newLinkTarget = value ? '_blank' : undefined; var updatedRel = rel; @@ -10674,7 +10384,8 @@ function ButtonEdit(props) { }); }, [rel, setAttributes]); var colorProps = getColorAndStyleProps(attributes, colors, true); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(color_edit, props), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(color_edit, props), Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'), value: text, onChange: function onChange(value) { @@ -10690,7 +10401,7 @@ function ButtonEdit(props) { borderRadius: borderRadius ? borderRadius + 'px' : undefined }, colorProps.style), onSplit: function onSplit(value) { - return Object(external_this_wp_blocks_["createBlock"])('core/button', button_edit_objectSpread({}, attributes, { + return Object(external_this_wp_blocks_["createBlock"])('core/button', button_edit_objectSpread(button_edit_objectSpread({}, attributes), {}, { text: value })); }, @@ -10883,7 +10594,7 @@ var button_settings = { merge: function merge(a, _ref) { var _ref$text = _ref.text, text = _ref$text === void 0 ? '' : _ref$text; - return button_objectSpread({}, a, { + return button_objectSpread(button_objectSpread({}, a), {}, { text: (a.text || '') + text }); } @@ -10909,13 +10620,16 @@ var alignmentHooksSetting = { }; function ButtonsEdit() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalAlignmentHookSettingsProvider"], { + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalAlignmentHookSettingsProvider"], { value: alignmentHooksSetting }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { allowedBlocks: ALLOWED_BLOCKS, + __experimentalPassedProps: blockWrapperProps, + __experimentalTagName: "div", template: BUTTONS_TEMPLATE, orientation: "horizontal" - }))); + })); } /* harmony default export */ var buttons_edit = (ButtonsEdit); @@ -10961,6 +10675,19 @@ var buttons_settings = { description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a group of button-style links.'), icon: library_button, keywords: [Object(external_this_wp_i18n_["__"])('link')], + example: { + innerBlocks: [{ + name: 'core/button', + attributes: { + text: Object(external_this_wp_i18n_["__"])('Find out more') + } + }, { + name: 'core/button', + attributes: { + text: Object(external_this_wp_i18n_["__"])('Contact us') + } + }] + }, transforms: buttons_transforms, edit: buttons_edit, save: buttons_save_save @@ -10982,27 +10709,17 @@ var calendar = Object(external_this_wp_element_["createElement"])(external_this_ /* harmony default export */ var library_calendar = (calendar); // EXTERNAL MODULE: external {"this":"moment"} -var external_this_moment_ = __webpack_require__(43); +var external_this_moment_ = __webpack_require__(44); var external_this_moment_default = /*#__PURE__*/__webpack_require__.n(external_this_moment_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js - - - - - - function calendar_edit_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 calendar_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { calendar_edit_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 { calendar_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function calendar_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (calendar_edit_isNativeReflectConstruct()) { 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 calendar_edit_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 */ @@ -11015,75 +10732,34 @@ function calendar_edit_isNativeReflectConstruct() { if (typeof Reflect === "unde - - -var edit_CalendarEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(CalendarEdit, _Component); - - var _super = calendar_edit_createSuper(CalendarEdit); - - function CalendarEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CalendarEdit); - - _this = _super.apply(this, arguments); - _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(_this)), { - maxSize: 1 - }); - _this.getServerSideAttributes = memize_default()(_this.getServerSideAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)), { - maxSize: 1 - }); - return _this; +var getYearMonth = memize_default()(function (date) { + if (!date) { + return {}; } - Object(createClass["a" /* default */])(CalendarEdit, [{ - key: "getYearMonth", - value: function getYearMonth(date) { - if (!date) { - return {}; - } - - var momentDate = external_this_moment_default()(date); - return { - year: momentDate.year(), - month: momentDate.month() + 1 - }; - } - }, { - key: "getServerSideAttributes", - value: function getServerSideAttributes(attributes, date) { - return calendar_edit_objectSpread({}, attributes, {}, this.getYearMonth(date)); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/calendar", - attributes: this.getServerSideAttributes(this.props.attributes, this.props.date) - })); - } - }]); - - return CalendarEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var calendar_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var coreEditorSelect = select('core/editor'); - - if (!coreEditorSelect) { - return; - } - - var getEditedPostAttribute = coreEditorSelect.getEditedPostAttribute; - var postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar. - // This overwrite should only happen for 'post' post types. - // For other post types the calendar always displays the current month. - + var momentDate = external_this_moment_default()(date); return { - date: postType === 'post' ? getEditedPostAttribute('date') : undefined + year: momentDate.year(), + month: momentDate.month() + 1 }; -})(edit_CalendarEdit)); +}); +function CalendarEdit(_ref) { + var attributes = _ref.attributes; + var date = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/editor'), + getEditedPostAttribute = _select.getEditedPostAttribute; + + var postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar. + // This overwrite should only happen for 'post' post types. + // For other post types the calendar always displays the current month. + + return postType === 'post' ? getEditedPostAttribute('date') : undefined; + }, []); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/calendar", + attributes: calendar_edit_objectSpread(calendar_edit_objectSpread({}, attributes), getYearMonth(date)) + })); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js /** @@ -11099,13 +10775,6 @@ var calendar_metadata = { name: "core/calendar", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, month: { type: "integer" }, @@ -11126,7 +10795,7 @@ var calendar_settings = { icon: library_calendar, keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], example: {}, - edit: calendar_edit + edit: CalendarEdit }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/category.js @@ -11168,7 +10837,7 @@ var pin = Object(external_this_wp_element_["createElement"])(external_this_wp_pr -function categories_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (categories_edit_isNativeReflectConstruct()) { 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 categories_edit_createSuper(Derived) { var hasNativeReflectConstruct = categories_edit_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 categories_edit_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; } } @@ -11416,13 +11085,6 @@ var categories_metadata = { name: "core/categories", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, displayAsDropdown: { type: "boolean", "default": false @@ -11453,7 +11115,7 @@ var categories_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(302); +var code = __webpack_require__(316); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js @@ -11462,16 +11124,12 @@ var code = __webpack_require__(302); * WordPress dependencies */ -/** - * Internal dependencies - */ - function CodeEdit(_ref) { var attributes = _ref.attributes, setAttributes = _ref.setAttributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].pre, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - __experimentalVersion: 2, + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])("pre", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { tagName: "code", value: attributes.content, onChange: function onChange(content) { @@ -11484,19 +11142,11 @@ function CodeEdit(_ref) { })); } -// EXTERNAL MODULE: external {"this":["wp","escapeHtml"]} -var external_this_wp_escapeHtml_ = __webpack_require__(89); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/utils.js /** * External dependencies */ -/** - * WordPress dependencies - */ - - /** * Escapes ampersands, shortcodes, and links. * @@ -11505,7 +11155,7 @@ var external_this_wp_escapeHtml_ = __webpack_require__(89); */ function utils_escape(content) { - return Object(external_this_lodash_["flow"])(external_this_wp_escapeHtml_["escapeEditableHTML"], escapeOpeningSquareBrackets, escapeProtocolInIsolatedUrls)(content || ''); + return Object(external_this_lodash_["flow"])(escapeOpeningSquareBrackets, escapeProtocolInIsolatedUrls)(content || ''); } /** * Returns the given content with all opening shortcode characters converted @@ -11547,13 +11197,21 @@ function escapeProtocolInIsolatedUrls(content) { // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/save.js +/** + * WordPress dependencies + */ + /** * Internal dependencies */ + function code_save_save(_ref) { var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])("code", null, utils_escape(attributes.content))); + return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "code", + value: utils_escape(attributes.content) + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/transforms.js @@ -11614,13 +11272,12 @@ var code_metadata = { attributes: { content: { type: "string", - source: "text", + source: "html", selector: "code" } }, supports: { anchor: true, - html: false, lightBlockWrapper: true } }; @@ -11669,9 +11326,9 @@ function columns_deprecated_ownKeys(object, enumerableOnly) { var keys = Object. function columns_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { columns_deprecated_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 { columns_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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 _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } @@ -11742,7 +11399,7 @@ var columns_deprecated_migrateCustomColors = function migrateCustomColors(attrib style.color.background = attributes.customBackgroundColor; } - return columns_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor']), { + return columns_deprecated_objectSpread(columns_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor'])), {}, { style: style }); }; @@ -12041,6 +11698,9 @@ function ColumnsEditContainer(_ref) { count = _useSelect.count; var classes = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classes + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment @@ -12058,10 +11718,8 @@ function ColumnsEditContainer(_ref) { }, Object(external_this_wp_i18n_["__"])('This column count exceeds the recommended amount and may cause visual breakage.')))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { allowedBlocks: edit_ALLOWED_BLOCKS, orientation: "horizontal", - __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].div, - __experimentalPassedProps: { - className: classes - }, + __experimentalTagName: "div", + __experimentalPassedProps: blockWrapperProps, renderAppender: false })); } @@ -12164,9 +11822,10 @@ var edit_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlo }); }; -var edit_ColumnsEdit = function ColumnsEdit(props) { - var clientId = props.clientId, - name = props.name; +function Placeholder(_ref4) { + var clientId = _ref4.clientId, + name = _ref4.name, + setAttributes = _ref4.setAttributes; var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/blocks'), @@ -12177,23 +11836,18 @@ var edit_ColumnsEdit = function ColumnsEdit(props) { return { blockType: getBlockType(name), defaultVariation: getDefaultBlockVariation(name, 'block'), - hasInnerBlocks: select('core/block-editor').getBlocks(clientId).length > 0, variations: getBlockVariations(name, 'block') }; - }, [clientId, name]), + }, [name]), blockType = _useSelect2.blockType, defaultVariation = _useSelect2.defaultVariation, - hasInnerBlocks = _useSelect2.hasInnerBlocks, variations = _useSelect2.variations; var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), replaceInnerBlocks = _useDispatch.replaceInnerBlocks; - if (hasInnerBlocks) { - return Object(external_this_wp_element_["createElement"])(ColumnsEditContainerWrapper, props); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { icon: Object(external_this_lodash_["get"])(blockType, ['icon', 'src']), label: Object(external_this_lodash_["get"])(blockType, ['title']), variations: variations, @@ -12201,15 +11855,24 @@ var edit_ColumnsEdit = function ColumnsEdit(props) { var nextVariation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultVariation; if (nextVariation.attributes) { - props.setAttributes(nextVariation.attributes); + setAttributes(nextVariation.attributes); } if (nextVariation.innerBlocks) { - replaceInnerBlocks(props.clientId, edit_createBlocksFromInnerBlocksTemplate(nextVariation.innerBlocks)); + replaceInnerBlocks(clientId, edit_createBlocksFromInnerBlocksTemplate(nextVariation.innerBlocks)); } }, allowSkip: true })); +} + +var edit_ColumnsEdit = function ColumnsEdit(props) { + var clientId = props.clientId; + var hasInnerBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getBlocks(clientId).length > 0; + }, [clientId]); + var Component = hasInnerBlocks ? ColumnsEditContainerWrapper : Placeholder; + return Object(external_this_wp_element_["createElement"])(Component, props); }; /* harmony default export */ var columns_edit = (edit_ColumnsEdit); @@ -12499,6 +12162,12 @@ function ColumnEdit(_ref) { }; var hasWidth = Number.isFinite(width); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classes, + style: hasWidth ? { + flexBasis: width + '%' + } : undefined + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment @@ -12520,16 +12189,9 @@ function ColumnEdit(_ref) { placeholder: width === undefined ? Object(external_this_wp_i18n_["__"])('Auto') : undefined }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { templateLock: false, - renderAppender: hasChildBlocks ? undefined : function () { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); - }, - __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].div, - __experimentalPassedProps: { - className: classes, - style: hasWidth ? { - flexBasis: width + '%' - } : undefined - } + renderAppender: hasChildBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, + __experimentalTagName: "div", + __experimentalPassedProps: blockWrapperProps })); } @@ -12715,13 +12377,31 @@ function attributesFromMedia(setAttributes) { } : {})); }; } -function getPositionClassName(contentPosition) { - if (contentPosition === undefined) return ''; - return POSITION_CLASSNAMES[contentPosition]; -} +/** + * Checks of the contentPosition is the center (default) position. + * + * @param {string} contentPosition The current content position. + * @return {boolean} Whether the contentPosition is center. + */ + function isContentPositionCenter(contentPosition) { return !contentPosition || contentPosition === 'center center' || contentPosition === 'center'; } +/** + * Retrieves the className for the current contentPosition. + * The default position (center) will not have a className. + * + * @param {string} contentPosition The current content position. + * @return {string} The className assigned to the contentPosition. + */ + +function getPositionClassName(contentPosition) { + /* + * Only render a className if the contentPosition is not center (the default). + */ + if (isContentPositionCenter(contentPosition)) return ''; + return POSITION_CLASSNAMES[contentPosition]; +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/deprecated.js @@ -12778,7 +12458,7 @@ var cover_deprecated_blockAttributes = { } }; var cover_deprecated_deprecated = [{ - attributes: cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes, { + attributes: cover_deprecated_objectSpread(cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes), {}, { title: { type: 'string', source: 'html', @@ -12854,7 +12534,7 @@ var cover_deprecated_deprecated = [{ }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } }, { - attributes: cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes, { + attributes: cover_deprecated_objectSpread(cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes), {}, { title: { type: 'string', source: 'html', @@ -12930,7 +12610,7 @@ var cover_deprecated_deprecated = [{ }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } }, { - attributes: cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes, { + attributes: cover_deprecated_objectSpread(cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes), {}, { title: { type: 'string', source: 'html', @@ -12994,7 +12674,7 @@ var cover_deprecated_deprecated = [{ })]]; } }, { - attributes: cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes, { + attributes: cover_deprecated_objectSpread(cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes), {}, { title: { type: 'string', source: 'html', @@ -13050,7 +12730,7 @@ var cover_deprecated_deprecated = [{ })]]; } }, { - attributes: cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes, { + attributes: cover_deprecated_objectSpread(cover_deprecated_objectSpread({}, cover_deprecated_blockAttributes), {}, { title: { type: 'string', source: 'html', @@ -13099,7 +12779,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__(266); +var dist = __webpack_require__(280); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js @@ -13186,6 +12866,10 @@ function CoverHeightInput(_ref) { setTemporaryInput(null); onChange(inputValue); + + if (inputValue === undefined) { + onUnitChange(); + } }; var handleOnBlur = function handleOnBlur() { @@ -13360,6 +13044,8 @@ function CoverEdit(_ref3) { var isDarkElement = Object(external_this_wp_element_["useRef"])(); var isDark = useCoverIsDark(url, dimRatio, overlayColor.color, isDarkElement); + var isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType; + var isVideoBackground = VIDEO_BACKGROUND_TYPE === backgroundType; var _useState7 = Object(external_this_wp_element_["useState"])(null), _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), @@ -13370,7 +13056,7 @@ function CoverEdit(_ref3) { createErrorNotice = noticeOperations.createErrorNotice; var minHeightWithUnit = minHeightUnit ? "".concat(minHeight).concat(minHeightUnit) : minHeight; - var style = cover_edit_objectSpread({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { + var style = cover_edit_objectSpread(cover_edit_objectSpread({}, isImageBackground ? backgroundImageStyles(url) : {}), {}, { backgroundColor: overlayColor.color, minHeight: temporaryMinHeight || minHeightWithUnit || undefined }); @@ -13379,11 +13065,18 @@ function CoverEdit(_ref3) { style.background = gradientValue; } + var positionValue; + if (focalPoint) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + positionValue = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + + if (isImageBackground) { + style.backgroundPosition = positionValue; + } } var hasBackground = !!(url || overlayColor.color || gradientValue); + var showFocalPointPicker = isVideoBackground || isImageBackground && !hasParallax; var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, hasBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockAlignmentMatrixToolbar"], { label: Object(external_this_wp_i18n_["__"])('Change content position'), value: contentPosition, @@ -13400,11 +13093,11 @@ function CoverEdit(_ref3) { onSelect: onSelectMedia }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Media settings') - }, IMAGE_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + }, isImageBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { label: Object(external_this_wp_i18n_["__"])('Fixed background'), checked: hasParallax, onChange: toggleParallax - }), IMAGE_BACKGROUND_TYPE === backgroundType && !hasParallax && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + }), showFocalPointPicker && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { label: Object(external_this_wp_i18n_["__"])('Focal point picker'), url: url, value: focalPoint, @@ -13413,11 +13106,6 @@ function CoverEdit(_ref3) { focalPoint: newFocalPoint }); } - }), VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { - autoPlay: true, - muted: true, - loop: true, - src: url }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { isSecondary: true, isSmall: true, @@ -13469,6 +13157,7 @@ function CoverEdit(_ref3) { max: 100, required: true }))))); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); if (!hasBackground) { var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { @@ -13477,9 +13166,9 @@ function CoverEdit(_ref3) { var label = Object(external_this_wp_i18n_["__"])('Cover'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { - className: "is-placeholder" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockWrapperProps, { + className: classnames_default()('is-placeholder', blockWrapperProps.className) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: placeholderIcon, labels: { title: label, @@ -13508,11 +13197,11 @@ function CoverEdit(_ref3) { 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax }, Object(defineProperty["a" /* default */])(_classnames, overlayColor.class, overlayColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-background-gradient', gradientValue), Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'has-custom-content-position', !isContentPositionCenter(contentPosition)), _classnames), getPositionClassName(contentPosition)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { - className: classes, - "data-url": url, - style: style - }, Object(external_this_wp_element_["createElement"])(BoxControlVisualizer, { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, blockWrapperProps, { + className: classnames_default()(classes, blockWrapperProps.className), + style: cover_edit_objectSpread(cover_edit_objectSpread({}, style), blockWrapperProps.style), + "data-url": url + }), Object(external_this_wp_element_["createElement"])(BoxControlVisualizer, { values: styleAttribute === null || styleAttribute === void 0 ? void 0 : (_styleAttribute$spaci = styleAttribute.spacing) === null || _styleAttribute$spaci === void 0 ? void 0 : _styleAttribute$spaci.padding, showValues: styleAttribute === null || styleAttribute === void 0 ? void 0 : (_styleAttribute$visua = styleAttribute.visualizers) === null || _styleAttribute$visua === void 0 ? void 0 : _styleAttribute$visua.padding }), Object(external_this_wp_element_["createElement"])(ResizableCover, { @@ -13532,7 +13221,7 @@ function CoverEdit(_ref3) { setTemporaryMinHeight(null); }, showHandle: isSelected - }), IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not + }), isImageBackground && // Used only to programmatically check if the image is dark or not Object(external_this_wp_element_["createElement"])("img", { ref: isDarkElement, "aria-hidden": true, @@ -13547,13 +13236,16 @@ function CoverEdit(_ref3) { style: { background: gradientValue } - }), VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { + }), isVideoBackground && Object(external_this_wp_element_["createElement"])("video", { ref: isDarkElement, className: "wp-block-cover__video-background", autoPlay: true, muted: true, loop: true, - src: url + src: url, + style: { + objectPosition: positionValue + } }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { __experimentalTagName: "div", __experimentalPassedProps: { @@ -13613,21 +13305,34 @@ function cover_save_save(_ref) { var gradientClass = Object(external_this_wp_blockEditor_["__experimentalGetGradientClass"])(gradient); var minHeight = minHeightUnit ? "".concat(minHeightProp).concat(minHeightUnit) : minHeightProp; - var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; + var isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType; + var isVideoBackground = VIDEO_BACKGROUND_TYPE === backgroundType; + var style = isImageBackground ? backgroundImageStyles(url) : {}; + var videoStyle = {}; if (!overlayColorClass) { style.backgroundColor = customOverlayColor; } - if (focalPoint && !hasParallax) { - style.backgroundPosition = "".concat(Math.round(focalPoint.x * 100), "% ").concat(Math.round(focalPoint.y * 100), "%"); - } - if (customGradient && !url) { style.background = customGradient; } style.minHeight = minHeight || undefined; + var positionValue; + + if (focalPoint) { + positionValue = "".concat(Math.round(focalPoint.x * 100), "% ").concat(Math.round(focalPoint.y * 100), "%"); + + if (isImageBackground && !hasParallax) { + style.backgroundPosition = positionValue; + } + + if (isVideoBackground) { + videoStyle.objectPosition = positionValue; + } + } + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, (_classnames = { 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax, @@ -13642,13 +13347,14 @@ function cover_save_save(_ref) { style: customGradient ? { background: customGradient } : undefined - }), VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { + }), isVideoBackground && url && Object(external_this_wp_element_["createElement"])("video", { className: "wp-block-cover__video-background", autoPlay: true, muted: true, loop: true, playsInline: true, - src: url + src: url, + style: videoStyle }), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-cover__inner-container" }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); @@ -13867,9 +13573,6 @@ var cover_settings = { deprecated: cover_deprecated }; -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js -var pencil = __webpack_require__(300); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js @@ -13881,18 +13584,18 @@ var pencil = __webpack_require__(300); -var embed_controls_EmbedControls = function EmbedControls(props) { - var blockSupportsResponsive = props.blockSupportsResponsive, - showEditButton = props.showEditButton, - themeSupportsResponsive = props.themeSupportsResponsive, - allowResponsive = props.allowResponsive, - getResponsiveHelp = props.getResponsiveHelp, - toggleResponsive = props.toggleResponsive, - switchBackToURLInput = props.switchBackToURLInput; +var embed_controls_EmbedControls = function EmbedControls(_ref) { + var blockSupportsResponsive = _ref.blockSupportsResponsive, + showEditButton = _ref.showEditButton, + themeSupportsResponsive = _ref.themeSupportsResponsive, + allowResponsive = _ref.allowResponsive, + getResponsiveHelp = _ref.getResponsiveHelp, + toggleResponsive = _ref.toggleResponsive, + switchBackToURLInput = _ref.switchBackToURLInput; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { className: "components-toolbar__control", label: Object(external_this_wp_i18n_["__"])('Edit URL'), - icon: pencil["a" /* default */], + icon: library_edit["a" /* default */], onClick: switchBackToURLInput }))), themeSupportsResponsive && blockSupportsResponsive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Media settings'), @@ -13934,15 +13637,15 @@ var embed_loading_EmbedLoading = function EmbedLoading() { -var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { - var icon = props.icon, - label = props.label, - value = props.value, - onSubmit = props.onSubmit, - onChange = props.onChange, - cannotEmbed = props.cannotEmbed, - fallback = props.fallback, - tryAgain = props.tryAgain; +var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(_ref) { + var icon = _ref.icon, + label = _ref.label, + value = _ref.value, + onSubmit = _ref.onSubmit, + onChange = _ref.onChange, + cannotEmbed = _ref.cannotEmbed, + fallback = _ref.fallback, + tryAgain = _ref.tryAgain; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: icon, @@ -13991,7 +13694,7 @@ var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { -function wp_embed_preview_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (wp_embed_preview_isNativeReflectConstruct()) { 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 wp_embed_preview_createSuper(Derived) { var hasNativeReflectConstruct = wp_embed_preview_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 wp_embed_preview_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; } } @@ -14000,12 +13703,15 @@ function wp_embed_preview_isNativeReflectConstruct() { if (typeof Reflect === "u */ +/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ + /** * Browser dependencies */ var wp_embed_preview_window = window, - FocusEvent = wp_embed_preview_window.FocusEvent; + FocusEvent = wp_embed_preview_window.FocusEvent, + DOMParser = wp_embed_preview_window.DOMParser; var wp_embed_preview_WpEmbedPreview = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(WpEmbedPreview, _Component); @@ -14022,13 +13728,57 @@ var wp_embed_preview_WpEmbedPreview = /*#__PURE__*/function (_Component) { _this.node = Object(external_this_wp_element_["createRef"])(); return _this; } - /** - * Checks whether the wp embed iframe is the activeElement, - * if it is dispatch a focus event. - */ - Object(createClass["a" /* default */])(WpEmbedPreview, [{ + key: "componentDidMount", + value: function componentDidMount() { + window.addEventListener('message', this.resizeWPembeds); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + window.removeEventListener('message', this.resizeWPembeds); + } + /** + * Checks for WordPress embed events signaling the height change when iframe + * content loads or iframe's window is resized. The event is sent from + * WordPress core via the window.postMessage API. + * + * References: + * window.postMessage: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage + * WordPress core embed-template on load: https://github.com/WordPress/WordPress/blob/master/wp-includes/js/wp-embed-template.js#L143 + * WordPress core embed-template on resize: https://github.com/WordPress/WordPress/blob/master/wp-includes/js/wp-embed-template.js#L187 + * + * @param {WPSyntheticEvent} event Message event. + */ + + }, { + key: "resizeWPembeds", + value: function resizeWPembeds(_ref) { + var _ref$data = _ref.data; + _ref$data = _ref$data === void 0 ? {} : _ref$data; + var secret = _ref$data.secret, + message = _ref$data.message, + value = _ref$data.value; + + if ([secret, message, value].some(function (attribute) { + return !attribute; + }) || message !== 'height') { + return; + } + + document.querySelectorAll("iframe[data-secret=\"".concat(secret, "\"")).forEach(function (iframe) { + if (+iframe.height !== value) { + iframe.height = value; + } + }); + } + /** + * Checks whether the wp embed iframe is the activeElement, + * if it is dispatch a focus event. + */ + + }, { key: "checkFocus", value: function checkFocus() { var _document = document, @@ -14047,11 +13797,16 @@ var wp_embed_preview_WpEmbedPreview = /*#__PURE__*/function (_Component) { key: "render", value: function render() { var html = this.props.html; + var doc = new DOMParser().parseFromString(html, 'text/html'); + var iframe = doc.querySelector('iframe'); + if (iframe) iframe.removeAttribute('style'); + var blockQuote = doc.querySelector('blockquote'); + if (blockQuote) blockQuote.style.display = 'none'; return Object(external_this_wp_element_["createElement"])("div", { ref: this.node, className: "wp-block-embed__wrapper", dangerouslySetInnerHTML: { - __html: html + __html: doc.body.innerHTML } }); } @@ -14073,7 +13828,7 @@ var wp_embed_preview_WpEmbedPreview = /*#__PURE__*/function (_Component) { -function embed_preview_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (embed_preview_isNativeReflectConstruct()) { 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 embed_preview_createSuper(Derived) { var hasNativeReflectConstruct = embed_preview_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 embed_preview_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; } } @@ -14242,6 +13997,7 @@ function embed_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + /** * External dependencies */ @@ -14254,46 +14010,127 @@ function embed_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + function edit_getResponsiveHelp(checked) { return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); } -function getEmbedEditComponent(title, icon) { - var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var previewable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; - return function EmbedEditComponent(props) { - var attributes = props.attributes, - cannotEmbed = props.cannotEmbed, - fetching = props.fetching, - isSelected = props.isSelected, - onReplace = props.onReplace, - preview = props.preview, - setAttributes = props.setAttributes, - themeSupportsResponsive = props.themeSupportsResponsive, - tryAgain = props.tryAgain, - insertBlocksAfter = props.insertBlocksAfter; +var edit_EmbedEdit = function EmbedEdit(props) { + var _props$attributes = props.attributes, + providerNameSlug = _props$attributes.providerNameSlug, + previewable = _props$attributes.previewable, + responsive = _props$attributes.responsive, + attributesUrl = _props$attributes.url, + attributes = props.attributes, + isSelected = props.isSelected, + onReplace = props.onReplace, + setAttributes = props.setAttributes, + insertBlocksAfter = props.insertBlocksAfter; + var defaultEmbedInfo = { + title: embed_settings.title, + icon: embed_settings.icon + }; - var _useState = Object(external_this_wp_element_["useState"])(attributes.url), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - url = _useState2[0], - setURL = _useState2[1]; + var _ref = util_getEmbedInfoByProvider(providerNameSlug) || defaultEmbedInfo, + icon = _ref.icon, + title = _ref.title; - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isEditingURL = _useState4[0], - setIsEditingURL = _useState4[1]; - /** - * @return {Object} Attributes derived from the preview, merged with the current attributes. - */ + var _useState = Object(external_this_wp_element_["useState"])(attributesUrl), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + url = _useState2[0], + setURL = _useState2[1]; + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isEditingURL = _useState4[0], + setIsEditingURL = _useState4[1]; - var getMergedAttributes = function getMergedAttributes() { - var className = attributes.className, - allowResponsive = attributes.allowResponsive; - return embed_edit_objectSpread({}, attributes, {}, getAttributesFromPreview(preview, title, className, responsive, allowResponsive)); + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/data'), + invalidateResolution = _useDispatch.invalidateResolution; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _embedPreview$data; + + var _select = select('core'), + getEmbedPreview = _select.getEmbedPreview, + isPreviewEmbedFallback = _select.isPreviewEmbedFallback, + isRequestingEmbedPreview = _select.isRequestingEmbedPreview, + getThemeSupports = _select.getThemeSupports; + + if (!attributesUrl) { + return { + fetching: false, + cannotEmbed: false + }; + } + + var embedPreview = getEmbedPreview(attributesUrl); + var previewIsFallback = isPreviewEmbedFallback(attributesUrl); // The external oEmbed provider does not exist. We got no type info and no html. + + var badEmbedProvider = (embedPreview === null || embedPreview === void 0 ? void 0 : embedPreview.html) === false && (embedPreview === null || embedPreview === void 0 ? void 0 : embedPreview.type) === undefined; // Some WordPress URLs that can't be embedded will cause the API to return + // a valid JSON response with no HTML and `data.status` set to 404, rather + // than generating a fallback response as other embeds do. + + var wordpressCantEmbed = (embedPreview === null || embedPreview === void 0 ? void 0 : (_embedPreview$data = embedPreview.data) === null || _embedPreview$data === void 0 ? void 0 : _embedPreview$data.status) === 404; + var validPreview = !!embedPreview && !badEmbedProvider && !wordpressCantEmbed; + return { + preview: validPreview ? embedPreview : undefined, + fetching: isRequestingEmbedPreview(attributesUrl), + themeSupportsResponsive: getThemeSupports()['responsive-embeds'], + cannotEmbed: !validPreview || previewIsFallback }; + }, [attributesUrl]), + preview = _useSelect.preview, + fetching = _useSelect.fetching, + themeSupportsResponsive = _useSelect.themeSupportsResponsive, + cannotEmbed = _useSelect.cannotEmbed; + /** + * @return {Object} Attributes derived from the preview, merged with the current attributes. + */ - var handleIncomingPreview = function handleIncomingPreview() { + + var getMergedAttributes = function getMergedAttributes() { + var allowResponsive = attributes.allowResponsive, + className = attributes.className; + return embed_edit_objectSpread(embed_edit_objectSpread({}, attributes), getAttributesFromPreview(preview, title, className, responsive, allowResponsive)); + }; + + var toggleResponsive = function toggleResponsive() { + var allowResponsive = attributes.allowResponsive, + className = attributes.className; + var html = preview.html; + var newAllowResponsive = !allowResponsive; + setAttributes({ + allowResponsive: newAllowResponsive, + className: getClassNames(html, className, responsive && newAllowResponsive) + }); + }; + + Object(external_this_wp_element_["useEffect"])(function () { + if (!(preview === null || preview === void 0 ? void 0 : preview.html) || !cannotEmbed || fetching) { + return; + } // At this stage, we're not fetching the preview and know it can't be embedded, + // so try removing any trailing slash, and resubmit. + + + var newURL = attributesUrl.replace(/\/$/, ''); + setURL(newURL); + setIsEditingURL(false); + setAttributes({ + url: newURL + }); + }, [preview === null || preview === void 0 ? void 0 : preview.html, attributesUrl]); // Handle incoming preview + + Object(external_this_wp_element_["useEffect"])(function () { + if (preview && !isEditingURL) { + // Even though we set attributes that get derived from the preview, + // we don't access them directly because for the initial render, + // the `setAttributes` call will not have taken effect. If we're + // rendering responsive content, setting the responsive classes + // after the preview has been rendered can result in unwanted + // clipping or scrollbars. The `getAttributesFromPreview` function + // that `getMergedAttributes` uses is memoized so that we're not + // calculating them on every render. setAttributes(getMergedAttributes()); if (onReplace) { @@ -14303,290 +14140,128 @@ function getEmbedEditComponent(title, icon) { onReplace(upgradedBlock); } } - }; + } + }, [preview, isEditingURL]); - var toggleResponsive = function toggleResponsive() { - var allowResponsive = attributes.allowResponsive, - className = attributes.className; - var html = preview.html; - var newAllowResponsive = !allowResponsive; - setAttributes({ - allowResponsive: newAllowResponsive, - className: getClassNames(html, className, responsive && newAllowResponsive) - }); - }; - - Object(external_this_wp_element_["useEffect"])(function () { - if (!(preview === null || preview === void 0 ? void 0 : preview.html)) { - return; - } // If we can embed the url, bail early. + if (fetching) { + return Object(external_this_wp_element_["createElement"])(embed_loading, null); + } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists - if (!cannotEmbed) { - return; - } // At this stage, we either have a new preview or a new URL, but we can't embed it. - // If we are already fetching the preview, bail early. + var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. + var showEmbedPlaceholder = !preview || cannotEmbed || isEditingURL; - if (fetching) { - return; - } // At this stage, we're not fetching the preview, so we know it can't be embedded, so try - // removing any trailing slash, and resubmit. - - - var newURL = attributes.url.replace(/\/$/, ''); - setURL(newURL); - setIsEditingURL(false); - setAttributes({ - url: newURL - }); - }, [preview === null || preview === void 0 ? void 0 : preview.html, attributes.url]); - Object(external_this_wp_element_["useEffect"])(function () { - if (preview && !isEditingURL) { - handleIncomingPreview(); - } - }, [preview, isEditingURL]); - - if (fetching) { - return Object(external_this_wp_element_["createElement"])(embed_loading, null); - } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists - - - var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. - - if (!preview || cannotEmbed || isEditingURL) { - return Object(external_this_wp_element_["createElement"])(embed_placeholder, { - icon: icon, - label: label, - onSubmit: function onSubmit(event) { - if (event) { - event.preventDefault(); - } - - setIsEditingURL(false); - setAttributes({ - url: url - }); - }, - value: url, - cannotEmbed: cannotEmbed, - onChange: function onChange(event) { - return setURL(event.target.value); - }, - fallback: function fallback() { - return util_fallback(url, onReplace); - }, - tryAgain: tryAgain - }); - } // Even though we set attributes that get derived from the preview, - // we don't access them directly because for the initial render, - // the `setAttributes` call will not have taken effect. If we're - // rendering responsive content, setting the responsive classes - // after the preview has been rendered can result in unwanted - // clipping or scrollbars. The `getAttributesFromPreview` function - // that `getMergedAttributes` uses is memoized so that we're not - // calculating them on every render. - - - var previewAttributes = getMergedAttributes(props, title, responsive); - var caption = previewAttributes.caption, - type = previewAttributes.type, - allowResponsive = previewAttributes.allowResponsive; - var className = classnames_default()(previewAttributes.className, props.className); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { - showEditButton: preview && !cannotEmbed, - themeSupportsResponsive: themeSupportsResponsive, - blockSupportsResponsive: responsive, - allowResponsive: allowResponsive, - getResponsiveHelp: edit_getResponsiveHelp, - toggleResponsive: toggleResponsive, - switchBackToURLInput: function switchBackToURLInput() { - return setIsEditingURL(true); - } - }), Object(external_this_wp_element_["createElement"])(embed_preview, { - preview: preview, - previewable: previewable, - className: className, - url: url, - type: type, - caption: caption, - onCaptionChange: function onCaptionChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: isSelected, + if (showEmbedPlaceholder) { + return Object(external_this_wp_element_["createElement"])(embed_placeholder, { icon: icon, label: label, - insertBlocksAfter: insertBlocksAfter - })); - }; -} + onSubmit: function onSubmit(event) { + if (event) { + event.preventDefault(); + } -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js + setIsEditingURL(false); + setAttributes({ + url: url + }); + }, + value: url, + cannotEmbed: cannotEmbed, + onChange: function onChange(event) { + return setURL(event.target.value); + }, + fallback: function fallback() { + return util_fallback(url, onReplace); + }, + tryAgain: function tryAgain() { + invalidateResolution('core', 'getEmbedPreview', [url]); + } + }); + } // Even though we set attributes that get derived from the preview, + // we don't access them directly because for the initial render, + // the `setAttributes` call will not have taken effect. If we're + // rendering responsive content, setting the responsive classes + // after the preview has been rendered can result in unwanted + // clipping or scrollbars. The `getAttributesFromPreview` function + // that `getMergedAttributes` uses is memoized so that we're not + var _getMergedAttributes = getMergedAttributes(), + caption = _getMergedAttributes.caption, + type = _getMergedAttributes.type, + allowResponsive = _getMergedAttributes.allowResponsive, + classFromPreview = _getMergedAttributes.className; -function settings_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; } + var className = classnames_default()(classFromPreview, props.className); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { + showEditButton: preview && !cannotEmbed, + themeSupportsResponsive: themeSupportsResponsive, + blockSupportsResponsive: responsive, + allowResponsive: allowResponsive, + getResponsiveHelp: edit_getResponsiveHelp, + toggleResponsive: toggleResponsive, + switchBackToURLInput: function switchBackToURLInput() { + return setIsEditingURL(true); + } + }), Object(external_this_wp_element_["createElement"])(embed_preview, { + preview: preview, + previewable: previewable, + className: className, + url: url, + type: type, + caption: caption, + onCaptionChange: function onCaptionChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: isSelected, + icon: icon, + label: label, + insertBlocksAfter: insertBlocksAfter + })); +}; + +/* harmony default export */ var embed_edit = (edit_EmbedEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/save.js -function settings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { settings_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 { settings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -/** - * Internal dependencies - */ /** * External dependencies */ - /** * WordPress dependencies */ +function embed_save_save(_ref) { + var _classnames; + var attributes = _ref.attributes; + var url = attributes.url, + caption = attributes.caption, + type = attributes.type, + providerNameSlug = attributes.providerNameSlug; - -var embedAttributes = { - url: { - type: 'string' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - }, - type: { - type: 'string' - }, - providerNameSlug: { - type: 'string' - }, - allowResponsive: { - type: 'boolean', - default: true + if (!url) { + return null; } -}; -function getEmbedBlockSettings(_ref) { - var title = _ref.title, - description = _ref.description, - icon = _ref.icon, - _ref$category = _ref.category, - category = _ref$category === void 0 ? 'embed' : _ref$category, - transforms = _ref.transforms, - _ref$keywords = _ref.keywords, - keywords = _ref$keywords === void 0 ? [] : _ref$keywords, - _ref$supports = _ref.supports, - supports = _ref$supports === void 0 ? {} : _ref$supports, - _ref$responsive = _ref.responsive, - responsive = _ref$responsive === void 0 ? true : _ref$responsive, - _ref$previewable = _ref.previewable, - previewable = _ref$previewable === void 0 ? true : _ref$previewable; - var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); - - var edit = getEmbedEditComponent(title, icon, responsive, previewable); - return { - title: title, - description: blockDescription, - icon: icon, - category: category, - keywords: keywords, - attributes: embedAttributes, - supports: settings_objectSpread({ - align: true - }, supports), - transforms: transforms, - edit: Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var url = ownProps.attributes.url; - var core = select('core'); - var getEmbedPreview = core.getEmbedPreview, - isPreviewEmbedFallback = core.isPreviewEmbedFallback, - isRequestingEmbedPreview = core.isRequestingEmbedPreview, - getThemeSupports = core.getThemeSupports; - var preview = undefined !== url && getEmbedPreview(url); - var previewIsFallback = undefined !== url && isPreviewEmbedFallback(url); - var fetching = undefined !== url && isRequestingEmbedPreview(url); - var themeSupports = getThemeSupports(); // The external oEmbed provider does not exist. We got no type info and no html. - - var badEmbedProvider = !!preview && undefined === preview.type && false === preview.html; // Some WordPress URLs that can't be embedded will cause the API to return - // a valid JSON response with no HTML and `data.status` set to 404, rather - // than generating a fallback response as other embeds do. - - var wordpressCantEmbed = !!preview && preview.data && preview.data.status === 404; - var validPreview = !!preview && !badEmbedProvider && !wordpressCantEmbed; - var cannotEmbed = undefined !== url && (!validPreview || previewIsFallback); - return { - preview: validPreview ? preview : undefined, - fetching: fetching, - themeSupportsResponsive: themeSupports['responsive-embeds'], - cannotEmbed: cannotEmbed - }; - }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var url = ownProps.attributes.url; - var coreData = dispatch('core/data'); - - var tryAgain = function tryAgain() { - coreData.invalidateResolution('core', 'getEmbedPreview', [url]); - }; - - return { - tryAgain: tryAgain - }; - }))(edit), - save: function save(_ref2) { - var _classnames; - - var attributes = _ref2.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed__wrapper" - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - ), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - }, - deprecated: [{ - attributes: embedAttributes, - save: function save(_ref3) { - var _classnames2; - - var attributes = _ref3.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - , !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }] - }; + var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), Object(defineProperty["a" /* default */])(_classnames, "wp-block-embed-".concat(providerNameSlug), providerNameSlug), _classnames)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed__wrapper" + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + ), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/transforms.js @@ -14597,6 +14272,48 @@ function getEmbedBlockSettings(_ref) { */ +/** + * Internal dependencies + */ + +var transforms_metadata = { + name: "core/embed", + category: "embed", + attributes: { + url: { + type: "string" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + type: { + type: "string" + }, + providerNameSlug: { + type: "string" + }, + allowResponsive: { + type: "boolean", + "default": true + }, + responsive: { + type: "boolean", + "default": false + }, + previewable: { + type: "boolean", + "default": true + } + }, + supports: { + align: true, + reusable: false, + html: false + } +}; +var EMBED_BLOCK = transforms_metadata.name; /** * Default transforms for generic embeds. */ @@ -14608,7 +14325,7 @@ var embed_transforms_transforms = { return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); }, transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/embed', { + return Object(external_this_wp_blocks_["createBlock"])(EMBED_BLOCK, { url: node.textContent.trim() }); } @@ -14630,18 +14347,639 @@ var embed_transforms_transforms = { }; /* harmony default export */ var embed_transforms = (embed_transforms_transforms); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js -function embed_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; } +/** + * WordPress dependencies + */ -function embed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { embed_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 { embed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z" +})); +var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z" +})); +var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z" +})); +var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z" +})); +var embedTwitterIcon = { + foreground: '#1da1f2', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" + }))) +}; +var embedYouTubeIcon = { + foreground: '#ff0000', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" + })) +}; +var embedFacebookIcon = { + foreground: '#3b5998', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" + })) +}; +var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" +}))); +var embedWordPressIcon = { + foreground: '#0073AA', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" + }))) +}; +var embedSpotifyIcon = { + foreground: '#1db954', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" + })) +}; +var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" +})); +var embedVimeoIcon = { + foreground: '#1ab7ea', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" + }))) +}; +var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" +})); +var embedTumblrIcon = { + foreground: '#35465c', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z" + })) +}; +var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" +})); +var embedAnimotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z", + fill: "#4bc7ee" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z", + fill: "#d4cdcb" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z", + fill: "#c3d82e" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z", + fill: "#e4ecb0" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z", + fill: "#209dbd" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z", + fill: "#7cb3c9" +})); +var embedDailymotionIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z", + fill: "#333436" +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/variations.js +/** + * WordPress dependencies + */ /** * Internal dependencies */ +/** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */ + +/** + * Template option choices for predefined columns layouts. + * + * @type {WPBlockVariation[]} + */ + +var embed_variations_variations = [{ + name: 'twitter', + title: 'Twitter', + icon: embedTwitterIcon, + keywords: ['tweet', Object(external_this_wp_i18n_["__"])('social')], + description: Object(external_this_wp_i18n_["__"])('Embed a tweet.'), + patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i], + attributes: { + providerNameSlug: 'twitter', + responsive: true + } +}, { + name: 'youtube', + title: 'YouTube', + icon: embedYouTubeIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.'), + patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i], + attributes: { + providerNameSlug: 'youtube', + responsive: true + } +}, { + // Deprecate Facebook Embed per FB policy + // See: https://developers.facebook.com/docs/plugins/oembed-legacy + name: 'facebook', + title: 'Facebook', + icon: embedFacebookIcon, + keywords: [Object(external_this_wp_i18n_["__"])('social')], + description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.'), + scope: ['block'], + patterns: [], + attributes: { + providerNameSlug: 'facebook', + previewable: false, + responsive: true + } +}, { + // Deprecate Instagram per FB policy + // See: https://developers.facebook.com/docs/instagram/oembed-legacy + name: 'instagram', + title: 'Instagram', + icon: embedInstagramIcon, + keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('social')], + description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.'), + scope: ['block'], + patterns: [], + attributes: { + providerNameSlug: 'instagram', + responsive: true + } +}, { + name: 'wordpress', + title: 'WordPress', + icon: embedWordPressIcon, + keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')], + description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.'), + attributes: { + providerNameSlug: 'wordpress' + } +}, { + name: 'soundcloud', + title: 'SoundCloud', + icon: embedAudioIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.'), + patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i], + attributes: { + providerNameSlug: 'soundcloud', + responsive: true + } +}, { + name: 'spotify', + title: 'Spotify', + icon: embedSpotifyIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.'), + patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i], + attributes: { + providerNameSlug: 'spotify', + responsive: true + } +}, { + name: 'flickr', + title: 'Flickr', + icon: embedFlickrIcon, + keywords: [Object(external_this_wp_i18n_["__"])('image')], + description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.'), + patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i], + attributes: { + providerNameSlug: 'flickr', + responsive: true + } +}, { + name: 'vimeo', + title: 'Vimeo', + icon: embedVimeoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.'), + patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i], + attributes: { + providerNameSlug: 'vimeo', + responsive: true + } +}, { + name: 'animoto', + title: 'Animoto', + icon: embedAnimotoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.'), + patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i], + attributes: { + providerNameSlug: 'animoto', + responsive: true + } +}, { + name: 'cloudup', + title: 'Cloudup', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.'), + patterns: [/^https?:\/\/cloudup\.com\/.+/i], + attributes: { + providerNameSlug: 'cloudup', + responsive: true + } +}, { + // Deprecated since CollegeHumor content is now powered by YouTube + name: 'collegehumor', + title: 'CollegeHumor', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.'), + scope: ['block'], + patterns: [], + attributes: { + providerNameSlug: 'collegehumor', + responsive: true + } +}, { + name: 'crowdsignal', + title: 'Crowdsignal', + icon: embedContentIcon, + keywords: ['polldaddy', Object(external_this_wp_i18n_["__"])('survey')], + description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.'), + patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i], + attributes: { + providerNameSlug: 'crowdsignal', + responsive: true + } +}, { + name: 'dailymotion', + title: 'Dailymotion', + icon: embedDailymotionIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.'), + patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i], + attributes: { + providerNameSlug: 'dailymotion', + responsive: true + } +}, { + name: 'imgur', + title: 'Imgur', + icon: embedPhotoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.'), + patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i], + attributes: { + providerNameSlug: 'imgur', + responsive: true + } +}, { + name: 'issuu', + title: 'Issuu', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.'), + patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i], + attributes: { + providerNameSlug: 'issuu', + responsive: true + } +}, { + name: 'kickstarter', + title: 'Kickstarter', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.'), + patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i], + attributes: { + providerNameSlug: 'kickstarter', + responsive: true + } +}, { + name: 'meetup-com', + title: 'Meetup.com', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.'), + patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i], + attributes: { + providerNameSlug: 'meetup-com', + responsive: true + } +}, { + name: 'mixcloud', + title: 'Mixcloud', + icon: embedAudioIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.'), + patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i], + attributes: { + providerNameSlug: 'mixcloud', + responsive: true + } +}, { + name: 'reddit', + title: 'Reddit', + icon: embedRedditIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.'), + patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i], + attributes: { + providerNameSlug: 'reddit', + responsive: true + } +}, { + name: 'reverbnation', + title: 'ReverbNation', + icon: embedAudioIcon, + description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.'), + patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i], + attributes: { + providerNameSlug: 'reverbnation', + responsive: true + } +}, { + name: 'screencast', + title: 'Screencast', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.'), + patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i], + attributes: { + providerNameSlug: 'screencast', + responsive: true + } +}, { + name: 'scribd', + title: 'Scribd', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.'), + patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i], + attributes: { + providerNameSlug: 'scribd', + responsive: true + } +}, { + name: 'slideshare', + title: 'Slideshare', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.'), + patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i], + attributes: { + providerNameSlug: 'slideshare', + responsive: true + } +}, { + name: 'smugmug', + title: 'SmugMug', + icon: embedPhotoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.'), + patterns: [/^https?:\/\/(.+\.)?smugmug\.com\/.*/i], + attributes: { + providerNameSlug: 'smugmug', + previewable: false, + responsive: true + } +}, { + name: 'speaker-deck', + title: 'Speaker Deck', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.'), + patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i], + attributes: { + providerNameSlug: 'speaker-deck', + responsive: true + } +}, { + name: 'tiktok', + title: 'TikTok', + icon: embedVideoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a TikTok video.'), + patterns: [/^https?:\/\/(www\.)?tiktok\.com\/.+/i], + attributes: { + providerNameSlug: 'tiktok', + responsive: true + } +}, { + name: 'ted', + title: 'TED', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a TED video.'), + patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i], + attributes: { + providerNameSlug: 'ted', + responsive: true + } +}, { + name: 'tumblr', + title: 'Tumblr', + icon: embedTumblrIcon, + keywords: [Object(external_this_wp_i18n_["__"])('social')], + description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.'), + patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i], + attributes: { + providerNameSlug: 'tumblr', + responsive: true + } +}, { + name: 'videopress', + title: 'VideoPress', + icon: embedVideoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.'), + patterns: [/^https?:\/\/videopress\.com\/.+/i], + attributes: { + providerNameSlug: 'videopress', + responsive: true + } +}, { + name: 'wordpress-tv', + title: 'WordPress.tv', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.'), + patterns: [/^https?:\/\/wordpress\.tv\/.+/i], + attributes: { + providerNameSlug: 'wordpress-tv', + responsive: true + } +}, { + name: 'amazon-kindle', + title: 'Amazon Kindle', + icon: embedAmazonIcon, + keywords: [Object(external_this_wp_i18n_["__"])('ebook')], + description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.'), + patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i], + attributes: { + providerNameSlug: 'amazon-kindle' + } +}]; +/* harmony default export */ var embed_variations = (embed_variations_variations); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/deprecated.js + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + +var deprecated_metadata = { + name: "core/embed", + category: "embed", + attributes: { + url: { + type: "string" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + type: { + type: "string" + }, + providerNameSlug: { + type: "string" + }, + allowResponsive: { + type: "boolean", + "default": true + }, + responsive: { + type: "boolean", + "default": false + }, + previewable: { + type: "boolean", + "default": true + } + }, + supports: { + align: true, + reusable: false, + html: false + } +}; +/** + * WordPress dependencies + */ + + +var embed_deprecated_blockAttributes = deprecated_metadata.attributes; +var embed_deprecated_deprecated = [{ + attributes: embed_deprecated_blockAttributes, + save: function save(_ref) { + var _classnames; + + var _ref$attributes = _ref.attributes, + url = _ref$attributes.url, + caption = _ref$attributes.caption, + type = _ref$attributes.type, + providerNameSlug = _ref$attributes.providerNameSlug; + + if (!url) { + return null; + } + + var embedClassName = classnames_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + , !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}]; +/* harmony default export */ var embed_deprecated = (embed_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js +/** + * Internal dependencies + */ + + +var embed_metadata = { + name: "core/embed", + category: "embed", + attributes: { + url: { + type: "string" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + type: { + type: "string" + }, + providerNameSlug: { + type: "string" + }, + allowResponsive: { + type: "boolean", + "default": true + }, + responsive: { + type: "boolean", + "default": false + }, + previewable: { + type: "boolean", + "default": true + } + }, + supports: { + align: true, + reusable: false, + html: false + } +}; + + /** @@ -14649,31 +14987,18 @@ function embed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) */ -var embed_name = 'core/embed'; -var embed_settings = getEmbedBlockSettings({ +var embed_name = embed_metadata.name; + +var embed_settings = { title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), - description: Object(external_this_wp_i18n_["__"])('Embed videos, images, tweets, audio, and other content from external sources.'), + description: Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'), icon: embedContentIcon, - // Unknown embeds should not be responsive by default. - responsive: false, - transforms: embed_transforms -}); -var embed_common = common.map(function (embedDefinition) { - var embedSettings = getEmbedBlockSettings(embedDefinition.settings); - return embed_objectSpread({}, embedDefinition, { - settings: embed_objectSpread({}, embedSettings, { - transforms: embed_transforms - }) - }); -}); -var embed_others = others.map(function (embedDefinition) { - var embedSettings = getEmbedBlockSettings(embedDefinition.settings); - return embed_objectSpread({}, embedDefinition, { - settings: embed_objectSpread({}, embedSettings, { - transforms: embed_transforms - }) - }); -}); + edit: embed_edit, + save: embed_save_save, + transforms: embed_transforms, + variations: embed_variations, + deprecated: embed_deprecated +}; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/file.js @@ -14755,7 +15080,7 @@ function FileBlockInspector(_ref) { -function file_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (file_edit_isNativeReflectConstruct()) { 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 file_edit_createSuper(Derived) { var hasNativeReflectConstruct = file_edit_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 file_edit_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; } } @@ -14875,6 +15200,9 @@ var edit_FileEdit = /*#__PURE__*/function (_Component) { key: "onUploadError", value: function onUploadError(message) { var noticeOperations = this.props.noticeOperations; + this.setState({ + hasError: true + }); noticeOperations.removeAllNotices(); noticeOperations.createErrorNotice(message); } @@ -15311,7 +15639,7 @@ var html_html = Object(external_this_wp_element_["createElement"])(external_this -function html_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (html_edit_isNativeReflectConstruct()) { 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 html_edit_createSuper(Derived) { var hasNativeReflectConstruct = html_edit_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 html_edit_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; } } @@ -15733,7 +16061,7 @@ var media_text_deprecated_migrateCustomColors = function migrateCustomColors(att background: attributes.customBackgroundColor } }; - return media_text_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customBackgroundColor']), { + return media_text_deprecated_objectSpread(media_text_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customBackgroundColor'])), {}, { style: style }); }; @@ -15773,7 +16101,7 @@ var baseAttributes = { } }; /* harmony default export */ var media_text_deprecated = ([{ - attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + attributes: media_text_deprecated_objectSpread(media_text_deprecated_objectSpread({}, baseAttributes), {}, { customBackgroundColor: { type: 'string' }, @@ -15893,7 +16221,7 @@ var baseAttributes = { }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } }, { - attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + attributes: media_text_deprecated_objectSpread(media_text_deprecated_objectSpread({}, baseAttributes), {}, { customBackgroundColor: { type: 'string' }, @@ -15971,7 +16299,7 @@ var baseAttributes = { }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } }, { - attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + attributes: media_text_deprecated_objectSpread(media_text_deprecated_objectSpread({}, baseAttributes), {}, { customBackgroundColor: { type: 'string' }, @@ -16063,6 +16391,9 @@ var pullRight = Object(external_this_wp_element_["createElement"])(external_this })); /* harmony default export */ var pull_right = (pullRight); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/constants.js +var DEFAULT_MEDIA_SIZE_SLUG = 'full'; + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js @@ -16073,6 +16404,7 @@ var pullRight = Object(external_this_wp_element_["createElement"])(external_this * External dependencies */ + /** * WordPress dependencies */ @@ -16088,6 +16420,7 @@ var pullRight = Object(external_this_wp_element_["createElement"])(external_this */ + /** * Constants */ @@ -16106,6 +16439,13 @@ var applyWidthConstraints = function applyWidthConstraints(width) { var edit_LINK_DESTINATION_MEDIA = 'media'; var edit_LINK_DESTINATION_ATTACHMENT = 'attachment'; +function getImageSourceUrlBySizeSlug(image, slug) { + var _image$media_details, _image$media_details$, _image$media_details$2; + + // eslint-disable-next-line camelcase + return image === null || image === void 0 ? void 0 : (_image$media_details = image.media_details) === null || _image$media_details === void 0 ? void 0 : (_image$media_details$ = _image$media_details.sizes) === null || _image$media_details$ === void 0 ? void 0 : (_image$media_details$2 = _image$media_details$[slug]) === null || _image$media_details$2 === void 0 ? void 0 : _image$media_details$2.source_url; +} + function edit_attributesFromMedia(_ref) { var _ref$attributes = _ref.attributes, linkDestination = _ref$attributes.linkDestination, @@ -16182,6 +16522,7 @@ function MediaTextEdit(_ref2) { mediaWidth = attributes.mediaWidth, rel = attributes.rel, verticalAlignment = attributes.verticalAlignment; + var mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG; var image = Object(external_this_wp_data_["useSelect"])(function (select) { return mediaId && isSelected ? select('core').getMedia(mediaId) : null; }, [isSelected, mediaId]); @@ -16254,6 +16595,35 @@ function MediaTextEdit(_ref2) { }); }; + var imageSizes = Object(external_this_wp_data_["useSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + return settings === null || settings === void 0 ? void 0 : settings.imageSizes; + }); + var imageSizeOptions = Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref3) { + var slug = _ref3.slug; + return getImageSourceUrlBySizeSlug(image, slug); + }), function (_ref4) { + var name = _ref4.name, + slug = _ref4.slug; + return { + value: slug, + label: name + }; + }); + + var updateImage = function updateImage(newMediaSizeSlug) { + var newUrl = getImageSourceUrlBySizeSlug(image, newMediaSizeSlug); + + if (!newUrl) { + return null; + } + + setAttributes({ + mediaUrl: newUrl, + mediaSizeSlug: newMediaSizeSlug + }); + }; + var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Media & Text settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { @@ -16288,7 +16658,16 @@ function MediaTextEdit(_ref2) { help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { href: "https://www.w3.org/WAI/tutorials/images/decision-tree" }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], { + onChangeImage: updateImage, + slug: mediaSizeSlug, + imageSizeOptions: imageSizeOptions, + isResizable: false })); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classNames, + style: style + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { controls: toolbarControls }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { @@ -16304,10 +16683,7 @@ function MediaTextEdit(_ref2) { linkTarget: linkTarget, linkClass: linkClass, rel: rel - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { - className: classNames, - style: style - }, Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ + }))), Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ className: "wp-block-media-text__media", onSelectMedia: onSelectMedia, onWidthChange: onWidthChange, @@ -16354,9 +16730,10 @@ function MediaTextEdit(_ref2) { */ + var save_DEFAULT_MEDIA_WIDTH = 50; function media_text_save_save(_ref) { - var _classnames; + var _classnames, _classnames2; var attributes = _ref.attributes; var isStackedOnMobile = attributes.isStackedOnMobile, @@ -16373,12 +16750,14 @@ function media_text_save_save(_ref) { href = attributes.href, linkTarget = attributes.linkTarget, rel = attributes.rel; + var mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG; var newRel = Object(external_this_lodash_["isEmpty"])(rel) ? undefined : rel; + var imageClasses = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "wp-image-".concat(mediaId), mediaId && mediaType === 'image'), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(mediaSizeSlug), mediaId && mediaType === 'image'), _classnames)); var _image = Object(external_this_wp_element_["createElement"])("img", { src: mediaUrl, alt: mediaAlt, - className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null + className: imageClasses || null }); if (href) { @@ -16401,10 +16780,10 @@ function media_text_save_save(_ref) { }); } }; - var className = classnames_default()((_classnames = { + var className = classnames_default()((_classnames2 = { 'has-media-on-the-right': 'right' === mediaPosition, 'is-stacked-on-mobile': isStackedOnMobile - }, Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + }, Object(defineProperty["a" /* default */])(_classnames2, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames2, 'is-image-fill', imageFill), _classnames2)); var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; var gridTemplateColumns; @@ -16582,6 +16961,9 @@ var media_text_metadata = { type: "number", "default": 50 }, + mediaSizeSlug: { + type: "string" + }, isStackedOnMobile: { type: "boolean", "default": true @@ -16664,7 +17046,7 @@ var comment = Object(external_this_wp_element_["createElement"])(external_this_w -function latest_comments_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (latest_comments_edit_isNativeReflectConstruct()) { 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 latest_comments_edit_createSuper(Derived) { var hasNativeReflectConstruct = latest_comments_edit_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 latest_comments_edit_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; } } @@ -16785,13 +17167,6 @@ var latest_comments_metadata = { name: "core/latest-comments", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, commentsToShow: { type: "number", "default": 5, @@ -16853,17 +17228,10 @@ function latest_posts_deprecated_objectSpread(target) { for (var i = 1; i < argu /** * Internal dependencies */ -var deprecated_metadata = { +var latest_posts_deprecated_metadata = { name: "core/latest-posts", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, categories: { type: "array", items: { @@ -16932,6 +17300,10 @@ var deprecated_metadata = { featuredImageSizeHeight: { type: "number", "default": null + }, + addLinkToFeaturedImage: { + type: "boolean", + "default": false } }, supports: { @@ -16939,9 +17311,9 @@ var deprecated_metadata = { html: false } }; -var deprecated_attributes = deprecated_metadata.attributes; +var deprecated_attributes = latest_posts_deprecated_metadata.attributes; /* harmony default export */ var latest_posts_deprecated = ([{ - attributes: latest_posts_deprecated_objectSpread({}, deprecated_attributes, { + attributes: latest_posts_deprecated_objectSpread(latest_posts_deprecated_objectSpread({}, deprecated_attributes), {}, { categories: { type: 'string' } @@ -16952,7 +17324,7 @@ var deprecated_attributes = deprecated_metadata.attributes; }, migrate: function migrate(oldAttributes) { // This needs the full category object, not just the ID. - return latest_posts_deprecated_objectSpread({}, oldAttributes, { + return latest_posts_deprecated_objectSpread(latest_posts_deprecated_objectSpread({}, oldAttributes), {}, { categories: [{ id: Number(oldAttributes.categories) }] @@ -16968,7 +17340,7 @@ var deprecated_attributes = deprecated_metadata.attributes; }]); // EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(79); +var external_this_wp_date_ = __webpack_require__(75); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js @@ -16985,8 +17357,22 @@ var list = Object(external_this_wp_element_["createElement"])(external_this_wp_p })); /* harmony default export */ var library_list = (list); -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js -var grid = __webpack_require__(303); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js + + +/** + * WordPress dependencies + */ + +var grid = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z", + fillRule: "evenodd", + clipRule: "evenodd" +})); +/* harmony default export */ var library_grid = (grid); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/constants.js var MIN_EXCERPT_LENGTH = 10; @@ -17007,7 +17393,7 @@ function latest_posts_edit_ownKeys(object, enumerableOnly) { var keys = Object.k function latest_posts_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { latest_posts_edit_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 { latest_posts_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function latest_posts_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (latest_posts_edit_isNativeReflectConstruct()) { 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 latest_posts_edit_createSuper(Derived) { var hasNativeReflectConstruct = latest_posts_edit_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 latest_posts_edit_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; } } @@ -17134,9 +17520,10 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { featuredImageAlign = attributes.featuredImageAlign, featuredImageSizeSlug = attributes.featuredImageSizeSlug, featuredImageSizeWidth = attributes.featuredImageSizeWidth, - featuredImageSizeHeight = attributes.featuredImageSizeHeight; + featuredImageSizeHeight = attributes.featuredImageSizeHeight, + addLinkToFeaturedImage = attributes.addLinkToFeaturedImage; var categorySuggestions = categoriesList.reduce(function (accumulator, category) { - return latest_posts_edit_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, category.name, category)); + return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, accumulator), {}, Object(defineProperty["a" /* default */])({}, category.name, category)); }, {}); var selectCategories = function selectCategories(tokens) { @@ -17254,7 +17641,9 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { featuredImageSizeHeight: undefined }); } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Image alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "block-editor-image-alignment-control__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Image alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { value: featuredImageAlign, onChange: function onChange(value) { return setAttributes({ @@ -17263,7 +17652,15 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { }, controls: ['left', 'center', 'right'], isCollapsed: false - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Add link to featured image'), + checked: addLinkToFeaturedImage, + onChange: function onChange(value) { + return setAttributes({ + addLinkToFeaturedImage: value + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Sorting and filtering') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ order: order, @@ -17328,7 +17725,7 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { }, isActive: postLayout === 'list' }, { - icon: grid["a" /* default */], + icon: library_grid, title: Object(external_this_wp_i18n_["__"])('Grid view'), onClick: function onClick() { return setAttributes({ @@ -17358,10 +17755,22 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { var excerptElement = document.createElement('div'); excerptElement.innerHTML = excerpt; excerpt = excerptElement.textContent || excerptElement.innerText || ''; - var imageSourceUrl = post.featuredImageSourceUrl; + var _post$featuredImageIn = post.featuredImageInfo; + _post$featuredImageIn = _post$featuredImageIn === void 0 ? {} : _post$featuredImageIn; + var imageSourceUrl = _post$featuredImageIn.url, + featuredImageAlt = _post$featuredImageIn.alt; var imageClasses = classnames_default()(Object(defineProperty["a" /* default */])({ 'wp-block-latest-posts__featured-image': true }, "align".concat(featuredImageAlign), !!featuredImageAlign)); + var renderFeaturedImage = displayFeaturedImage && imageSourceUrl; + var featuredImage = renderFeaturedImage && Object(external_this_wp_element_["createElement"])("img", { + src: imageSourceUrl, + alt: featuredImageAlt, + style: { + maxWidth: featuredImageSizeWidth, + maxHeight: featuredImageSizeHeight + } + }); var needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === ''; var postExcerpt = needsReadMore ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, excerpt.trim().split(' ', excerptLength).join(' '), Object(external_this_wp_i18n_["__"])(' … '), Object(external_this_wp_element_["createElement"])("a", { href: post.link, @@ -17370,16 +17779,13 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { }, Object(external_this_wp_i18n_["__"])('Read more'))) : excerpt; return Object(external_this_wp_element_["createElement"])("li", { key: i - }, displayFeaturedImage && Object(external_this_wp_element_["createElement"])("div", { + }, renderFeaturedImage && Object(external_this_wp_element_["createElement"])("div", { className: imageClasses - }, imageSourceUrl && Object(external_this_wp_element_["createElement"])("img", { - src: imageSourceUrl, - alt: "", - style: { - maxWidth: featuredImageSizeWidth, - maxHeight: featuredImageSizeHeight - } - })), Object(external_this_wp_element_["createElement"])("a", { + }, addLinkToFeaturedImage ? Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noreferrer noopener" + }, featuredImage) : featuredImage), Object(external_this_wp_element_["createElement"])("a", { href: post.link, target: "_blank", rel: "noreferrer noopener" @@ -17453,20 +17859,22 @@ var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { defaultImageHeight: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'height'], 0), imageSizeOptions: imageSizeOptions, latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) { - if (post.featured_media) { - var image = getMedia(post.featured_media); - var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', featuredImageSizeSlug, 'source_url'], null); + if (!post.featured_media) return post; + var image = getMedia(post.featured_media); + var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', featuredImageSizeSlug, 'source_url'], null); - if (!url) { - url = Object(external_this_lodash_["get"])(image, 'source_url', null); - } - - return latest_posts_edit_objectSpread({}, post, { - featuredImageSourceUrl: url - }); + if (!url) { + url = Object(external_this_lodash_["get"])(image, 'source_url', null); } - return post; + var featuredImageInfo = { + url: url, + // eslint-disable-next-line camelcase + alt: image === null || image === void 0 ? void 0 : image.alt_text + }; + return latest_posts_edit_objectSpread(latest_posts_edit_objectSpread({}, post), {}, { + featuredImageInfo: featuredImageInfo + }); }) }; })(edit_LatestPostsEdit)); @@ -17487,13 +17895,6 @@ var latest_posts_metadata = { name: "core/latest-posts", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, categories: { type: "array", items: { @@ -17562,6 +17963,10 @@ var latest_posts_metadata = { featuredImageSizeHeight: { type: "number", "default": null + }, + addLinkToFeaturedImage: { + type: "boolean", + "default": false } }, supports: { @@ -17748,6 +18153,7 @@ var ordered_list_settings_OrderedListSettings = function OrderedListSettings(_re + function list_edit_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 list_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { list_edit_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 { list_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -17873,11 +18279,12 @@ function ListEdit(_ref) { }))); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ identifier: "values", multiline: "li", __unstableMultilineRootTag: tagName, - tagName: external_this_wp_blockEditor_["__experimentalBlock"][tagName], + tagName: tagName, onChange: function onChange(nextValues) { return setAttributes({ values: nextValues @@ -17887,7 +18294,7 @@ function ListEdit(_ref) { placeholder: Object(external_this_wp_i18n_["__"])('Write list…'), onMerge: mergeBlocks, onSplit: function onSplit(value) { - return Object(external_this_wp_blocks_["createBlock"])(list_name, list_edit_objectSpread({}, attributes, { + return Object(external_this_wp_blocks_["createBlock"])(list_name, list_edit_objectSpread(list_edit_objectSpread({}, attributes), {}, { values: value })); }, @@ -17901,7 +18308,7 @@ function ListEdit(_ref) { start: start, reversed: reversed, type: type - }, controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { + }, blockWrapperProps), controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { setAttributes: setAttributes, ordered: ordered, reversed: reversed, @@ -17951,7 +18358,7 @@ function list_transforms_objectSpread(target) { for (var i = 1; i < arguments.le function getListContentSchema(_ref) { var phrasingContentSchema = _ref.phrasingContentSchema; - var listContentSchema = list_transforms_objectSpread({}, phrasingContentSchema, { + var listContentSchema = list_transforms_objectSpread(list_transforms_objectSpread({}, phrasingContentSchema), {}, { ul: {}, ol: { attributes: ['type', 'start', 'reversed'] @@ -17975,7 +18382,7 @@ var list_transforms_transforms = { from: [{ type: 'block', isMultiBlock: true, - blocks: ['core/paragraph'], + blocks: ['core/paragraph', 'core/heading'], transform: function transform(blockAttributes) { return Object(external_this_wp_blocks_["createBlock"])('core/list', { values: Object(external_this_wp_richText_["toHTMLString"])({ @@ -18049,7 +18456,7 @@ var list_transforms_transforms = { } } - return Object(external_this_wp_blocks_["createBlock"])('core/list', list_transforms_objectSpread({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/list', node.outerHTML), {}, attributes)); + return Object(external_this_wp_blocks_["createBlock"])('core/list', list_transforms_objectSpread(list_transforms_objectSpread({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/list', node.outerHTML)), attributes)); } }].concat(Object(toConsumableArray["a" /* default */])(['*', '-'].map(function (prefix) { return { @@ -18092,10 +18499,27 @@ var list_transforms_transforms = { } }, { type: 'block', - blocks: ['core/quote'], + blocks: ['core/heading'], transform: function transform(_ref5) { - var values = _ref5.values, - anchor = _ref5.anchor; + var values = _ref5.values; + return Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ + html: values, + multilineTag: 'li', + multilineWrapperTags: ['ul', 'ol'] + }), external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]).map(function (piece) { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + content: Object(external_this_wp_richText_["toHTMLString"])({ + value: piece + }) + }); + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(_ref6) { + var values = _ref6.values, + anchor = _ref6.anchor; return Object(external_this_wp_blocks_["createBlock"])('core/quote', { value: Object(external_this_wp_richText_["toHTMLString"])({ value: Object(external_this_wp_richText_["create"])({ @@ -18111,9 +18535,9 @@ var list_transforms_transforms = { }, { type: 'block', blocks: ['core/pullquote'], - transform: function transform(_ref6) { - var values = _ref6.values, - anchor = _ref6.anchor; + transform: function transform(_ref7) { + var values = _ref7.values, + anchor = _ref7.anchor; return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', { value: Object(external_this_wp_richText_["toHTMLString"])({ value: Object(external_this_wp_richText_["create"])({ @@ -18176,6 +18600,9 @@ var list_metadata = { supports: { anchor: true, className: false, + __experimentalColor: { + gradients: true + }, __unstablePasteTextInline: true, lightBlockWrapper: true } @@ -18202,7 +18629,7 @@ var list_settings = { return attributes; } - return list_objectSpread({}, attributes, { + return list_objectSpread(list_objectSpread({}, attributes), {}, { values: attributes.values + values }); }, @@ -18240,7 +18667,6 @@ function MissingBlockWarning(_ref) { actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { key: "convert", onClick: convertToHTML, - isLarge: true, isPrimary: true }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); } else { @@ -18361,16 +18787,6 @@ var more = Object(external_this_wp_element_["createElement"])(external_this_wp_p // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js - - - - - - -function more_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (more_edit_isNativeReflectConstruct()) { 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 more_edit_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; } } - /** * WordPress dependencies */ @@ -18380,94 +18796,59 @@ function more_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefine +var DEFAULT_TEXT = Object(external_this_wp_i18n_["__"])('Read more'); -var edit_MoreEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(MoreEdit, _Component); +function MoreEdit(_ref) { + var _ref$attributes = _ref.attributes, + customText = _ref$attributes.customText, + noTeaser = _ref$attributes.noTeaser, + insertBlocksAfter = _ref.insertBlocksAfter, + setAttributes = _ref.setAttributes; - var _super = more_edit_createSuper(MoreEdit); + var onChangeInput = function onChangeInput(event) { + setAttributes({ + customText: event.target.value !== '' ? event.target.value : undefined + }); + }; - function MoreEdit() { - var _this; + var onKeyDown = function onKeyDown(_ref2) { + var keyCode = _ref2.keyCode; - Object(classCallCheck["a" /* default */])(this, MoreEdit); - - _this = _super.apply(this, arguments); - _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - defaultText: Object(external_this_wp_i18n_["__"])('Read more') - }; - return _this; - } - - Object(createClass["a" /* default */])(MoreEdit, [{ - key: "onChangeInput", - value: function onChangeInput(event) { - // Set defaultText to an empty string, allowing the user to clear/replace the input field's text - this.setState({ - defaultText: '' - }); - var value = event.target.value.length === 0 ? undefined : event.target.value; - this.props.setAttributes({ - customText: value - }); + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var keyCode = event.keyCode; - var insertBlocksAfter = this.props.insertBlocksAfter; + }; - if (keyCode === external_this_wp_keycodes_["ENTER"]) { - insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); - } - } - }, { - key: "getHideExcerptHelp", - value: function getHideExcerptHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - customText = _this$props$attribute.customText, - noTeaser = _this$props$attribute.noTeaser; - var setAttributes = this.props.setAttributes; - - var toggleHideExcerpt = function toggleHideExcerpt() { - return setAttributes({ - noTeaser: !noTeaser - }); - }; - - var defaultText = this.state.defaultText; - var value = customText !== undefined ? customText : defaultText; - var inputLength = value.length + 1.2; - var currentWidth = { - width: inputLength + 'em' - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), - checked: !!noTeaser, - onChange: toggleHideExcerpt, - help: this.getHideExcerptHelp - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-more" - }, Object(external_this_wp_element_["createElement"])("input", { - type: "text", - value: value, - onChange: this.onChangeInput, - onKeyDown: this.onKeyDown, - style: currentWidth - }))); - } - }]); - - return MoreEdit; -}(external_this_wp_element_["Component"]); + var getHideExcerptHelp = function getHideExcerptHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); + }; + var toggleHideExcerpt = function toggleHideExcerpt() { + return setAttributes({ + noTeaser: !noTeaser + }); + }; + var style = { + width: "".concat((customText ? customText : DEFAULT_TEXT).length + 1.2, "em") + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), + checked: !!noTeaser, + onChange: toggleHideExcerpt, + help: getHideExcerptHelp + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-more" + }, Object(external_this_wp_element_["createElement"])("input", { + "aria-label": Object(external_this_wp_i18n_["__"])('Read more link text'), + type: "text", + value: customText, + placeholder: DEFAULT_TEXT, + onChange: onChangeInput, + onKeyDown: onKeyDown, + style: style + }))); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/save.js @@ -18482,9 +18863,9 @@ var edit_MoreEdit = /*#__PURE__*/function (_Component) { function more_save_save(_ref) { - var attributes = _ref.attributes; - var customText = attributes.customText, - noTeaser = attributes.noTeaser; + var _ref$attributes = _ref.attributes, + customText = _ref$attributes.customText, + noTeaser = _ref$attributes.noTeaser; var moreTag = customText ? "") : ''; var noTeaserTag = noTeaser ? '' : ''; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_this_lodash_["compact"])([moreTag, noTeaserTag]).join('\n')); @@ -18564,6 +18945,7 @@ var more_name = more_metadata.name; var more_settings = { title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), + keywords: [Object(external_this_wp_i18n_["__"])('read more')], icon: library_more, example: {}, __experimentalLabel: function __experimentalLabel(attributes, _ref) { @@ -18574,7 +18956,7 @@ var more_settings = { } }, transforms: more_transforms, - edit: edit_MoreEdit, + edit: MoreEdit, save: more_save_save }; @@ -18694,6 +19076,7 @@ var preformatted = Object(external_this_wp_element_["createElement"])(external_t // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/edit.js + /** * WordPress dependencies */ @@ -18702,12 +19085,11 @@ var preformatted = Object(external_this_wp_element_["createElement"])(external_t function PreformattedEdit(_ref) { var attributes = _ref.attributes, mergeBlocks = _ref.mergeBlocks, - setAttributes = _ref.setAttributes, - className = _ref.className, - style = _ref.style; + setAttributes = _ref.setAttributes; var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: external_this_wp_blockEditor_["__experimentalBlock"].pre, + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ + tagName: "pre", identifier: "content", preserveWhiteSpace: true, value: content, @@ -18717,10 +19099,8 @@ function PreformattedEdit(_ref) { }); }, placeholder: Object(external_this_wp_i18n_["__"])('Write preformatted text…'), - className: className, - style: style, onMerge: mergeBlocks - }); + }, blockWrapperProps)); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/save.js @@ -18925,7 +19305,7 @@ function parseBorderColor(styleString) { } var pullquote_deprecated_deprecated = [{ - attributes: pullquote_deprecated_objectSpread({}, pullquote_deprecated_blockAttributes, { + attributes: pullquote_deprecated_objectSpread(pullquote_deprecated_objectSpread({}, pullquote_deprecated_blockAttributes), {}, { // figureStyle is an attribute that never existed. // We are using it as a way to access the styles previously applied to the figure. figureStyle: { @@ -19005,7 +19385,7 @@ var pullquote_deprecated_deprecated = [{ var borderColor = parseBorderColor(figureStyle); if (borderColor) { - return pullquote_deprecated_objectSpread({}, attributes, { + return pullquote_deprecated_objectSpread(pullquote_deprecated_objectSpread({}, attributes), {}, { className: className, customMainColor: borderColor }); @@ -19087,7 +19467,7 @@ var pullquote_deprecated_deprecated = [{ })); } }, { - attributes: pullquote_deprecated_objectSpread({}, pullquote_deprecated_blockAttributes, { + attributes: pullquote_deprecated_objectSpread(pullquote_deprecated_objectSpread({}, pullquote_deprecated_blockAttributes), {}, { citation: { type: 'string', source: 'html', @@ -19133,7 +19513,7 @@ var BlockQuote = 'blockquote'; -function pullquote_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (pullquote_edit_isNativeReflectConstruct()) { 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 pullquote_edit_createSuper(Derived) { var hasNativeReflectConstruct = pullquote_edit_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 pullquote_edit_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; } } @@ -19191,7 +19571,7 @@ var edit_PullQuoteEdit = /*#__PURE__*/function (_Component) { className = _this$props.className; var isSolidColorStyle = Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS); var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; - var shouldSetTextColor = isSolidColorStyle && needTextColor && colorValue; + var shouldSetTextColor = isSolidColorStyle && needTextColor; if (isSolidColorStyle) { // If we use the solid color style, set the color using the normal mechanism. @@ -19205,8 +19585,14 @@ var edit_PullQuoteEdit = /*#__PURE__*/function (_Component) { } if (shouldSetTextColor) { - this.wasTextColorAutomaticallyComputed = true; - setTextColor(colorUtils.getMostReadableColor(colorValue)); + if (colorValue) { + this.wasTextColorAutomaticallyComputed = true; + setTextColor(colorUtils.getMostReadableColor(colorValue)); + } else if (this.wasTextColorAutomaticallyComputed) { + // We have to unset our previously computed text color on unsetting the main color. + this.wasTextColorAutomaticallyComputed = false; + setTextColor(); + } } } }, { @@ -19501,7 +19887,7 @@ var pullquote_transforms_transforms = { } var quotePieces = pieces.slice(1); - var pullquoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/pullquote', pullquote_transforms_objectSpread({}, attrs, { + var pullquoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/pullquote', pullquote_transforms_objectSpread(pullquote_transforms_objectSpread({}, attrs), {}, { citation: citation, value: Object(external_this_wp_richText_["toHTMLString"])({ value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(), @@ -19593,16 +19979,6 @@ var pullquote_settings = { // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js - - - - - - -function edit_panel_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (edit_panel_isNativeReflectConstruct()) { 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 edit_panel_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; } } - /** * WordPress dependencies */ @@ -19611,115 +19987,116 @@ function edit_panel_isNativeReflectConstruct() { if (typeof Reflect === "undefin +/** @typedef {import('@wordpress/element').WPComponent} WPComponent */ -var edit_panel_ReusableBlockEditPanel = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); +/** + * ReusableBlockEditPanel props. + * + * @typedef WPReusableBlockEditPanelProps + * + * @property {boolean} isEditDisabled Is editing the reusable + * block disabled. + * @property {boolean} isEditing Is the reusable block + * being edited. + * @property {boolean} isSaving Is the reusable block + * being saved. + * @property {()=>void} onCancel Callback to run when + * editing is canceled. + * @property {(newTitle:string)=>void} onChangeTitle Callback to run when the + * title input value is + * changed. + * @property {()=>void} onEdit Callback to run when + * editing begins. + * @property {()=>void} onSave Callback to run when + * saving. + * @property {string} title Title of the reusable + * block. + */ - var _super = edit_panel_createSuper(ReusableBlockEditPanel); +/** + * Panel for enabling the editing and saving of a reusable block. + * + * @param {WPReusableBlockEditPanelProps} props Component props. + * + * @return {WPComponent} The panel. + */ - function ReusableBlockEditPanel() { - var _this; +function ReusableBlockEditPanel(_ref) { + var isEditDisabled = _ref.isEditDisabled, + isEditing = _ref.isEditing, + isSaving = _ref.isSaving, + onCancel = _ref.onCancel, + onChangeTitle = _ref.onChangeTitle, + onEdit = _ref.onEdit, + onSave = _ref.onSave, + title = _ref.title; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ReusableBlockEditPanel); + var titleField = Object(external_this_wp_element_["useRef"])(); + var editButton = Object(external_this_wp_element_["useRef"])(); + var wasEditing = Object(external_this_wp_compose_["usePrevious"])(isEditing); + var wasSaving = Object(external_this_wp_compose_["usePrevious"])(isSaving); // Select the title input when the form opens. - Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); + Object(external_this_wp_element_["useEffect"])(function () { + if (!wasEditing && isEditing) { + titleField.current.select(); + } + }, [isEditing]); // Move focus back to the Edit button after pressing the Escape key or Save. - _this = _super.apply(this, arguments); - _this.titleField = Object(external_this_wp_element_["createRef"])(); - _this.editButton = Object(external_this_wp_element_["createRef"])(); - _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleTitleChange = _this.handleTitleChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + Object(external_this_wp_element_["useEffect"])(function () { + if ((wasEditing || wasSaving) && !isEditing && !isSaving) { + editButton.current.focus(); + } + }, [isEditing, isSaving]); + + function handleFormSubmit(event) { + event.preventDefault(); + onSave(); } - Object(createClass["a" /* default */])(ReusableBlockEditPanel, [{ - key: "componentDidMount", - value: function componentDidMount() { - // Select the input text when the form opens. - if (this.props.isEditing && this.titleField.current) { - this.titleField.current.select(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Select the input text only once when the form opens. - if (!prevProps.isEditing && this.props.isEditing) { - this.titleField.current.select(); - } // Move focus back to the Edit button after pressing the Escape key or Save. + function handleTitleChange(event) { + onChangeTitle(event.target.value); + } + function handleTitleKeyDown(event) { + if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { + event.stopPropagation(); + onCancel(); + } + } - if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) { - this.editButton.current.focus(); - } - } - }, { - key: "handleFormSubmit", - value: function handleFormSubmit(event) { - event.preventDefault(); - this.props.onSave(); - } - }, { - key: "handleTitleChange", - value: function handleTitleChange(event) { - this.props.onChangeTitle(event.target.value); - } - }, { - key: "handleTitleKeyDown", - value: function handleTitleKeyDown(event) { - if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - event.stopPropagation(); - this.props.onCancel(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - isEditing = _this$props.isEditing, - title = _this$props.title, - isSaving = _this$props.isSaving, - isEditDisabled = _this$props.isEditDisabled, - onEdit = _this$props.onEdit, - instanceId = _this$props.instanceId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { - className: "reusable-block-edit-panel" - }, Object(external_this_wp_element_["createElement"])("b", { - className: "reusable-block-edit-panel__info" - }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - ref: this.editButton, - isSecondary: true, - className: "reusable-block-edit-panel__button", - disabled: isEditDisabled, - onClick: onEdit - }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { - className: "reusable-block-edit-panel", - onSubmit: this.handleFormSubmit - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), - className: "reusable-block-edit-panel__label" - }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { - ref: this.titleField, - type: "text", - disabled: isSaving, - className: "reusable-block-edit-panel__title", - value: title, - onChange: this.handleTitleChange, - onKeyDown: this.handleTitleKeyDown, - id: "reusable-block-edit-panel__title-".concat(instanceId) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - type: "submit", - isSecondary: true, - isBusy: isSaving, - disabled: !title || isSaving, - className: "reusable-block-edit-panel__button" - }, Object(external_this_wp_i18n_["__"])('Save')))); - } - }]); - - return ReusableBlockEditPanel; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit_panel = (Object(external_this_wp_compose_["withInstanceId"])(edit_panel_ReusableBlockEditPanel)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { + className: "reusable-block-edit-panel" + }, Object(external_this_wp_element_["createElement"])("b", { + className: "reusable-block-edit-panel__info" + }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + ref: editButton, + isSecondary: true, + className: "reusable-block-edit-panel__button", + disabled: isEditDisabled, + onClick: onEdit + }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { + className: "reusable-block-edit-panel", + onSubmit: handleFormSubmit + }, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), + className: "reusable-block-edit-panel__label" + }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { + ref: titleField, + type: "text", + disabled: isSaving, + className: "reusable-block-edit-panel__title", + value: title, + onChange: handleTitleChange, + onKeyDown: handleTitleKeyDown, + id: "reusable-block-edit-panel__title-".concat(instanceId) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + type: "submit", + isSecondary: true, + isBusy: isSaving, + disabled: !title || isSaving, + className: "reusable-block-edit-panel__button" + }, Object(external_this_wp_i18n_["__"])('Save')))); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js @@ -19730,7 +20107,7 @@ var edit_panel_ReusableBlockEditPanel = /*#__PURE__*/function (_Component) { -function block_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_edit_isNativeReflectConstruct()) { 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 block_edit_createSuper(Derived) { var hasNativeReflectConstruct = block_edit_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 block_edit_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; } } @@ -19864,6 +20241,7 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { key: "render", value: function render() { var _this$props2 = this.props, + convertToStatic = _this$props2.convertToStatic, isSelected = _this$props2.isSelected, reusableBlock = _this$props2.reusableBlock, isFetching = _this$props2.isFetching, @@ -19894,9 +20272,11 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); } - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: convertToStatic + }, Object(external_this_wp_i18n_["__"])('Convert to regular blocks')))), Object(external_this_wp_element_["createElement"])("div", { className: "block-library-block__reusable-block-container" - }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(edit_panel, { + }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(ReusableBlockEditPanel, { isEditing: isEditing, title: title !== null ? title : reusableBlock.title, isSaving: isSaving && !reusableBlock.isTemporary, @@ -19905,7 +20285,7 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { onChangeTitle: this.setTitle, onSave: this.save, onCancel: this.stopEditing - }), element); + }), element)); } }]); @@ -19937,6 +20317,7 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { }; }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { var _dispatch = dispatch('core/editor'), + convertBlockToStatic = _dispatch.__experimentalConvertBlockToStatic, fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, updateReusableBlock = _dispatch.__experimentalUpdateReusableBlock, saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; @@ -19945,7 +20326,10 @@ var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { return { fetchReusableBlock: Object(external_this_lodash_["partial"])(fetchReusableBlocks, ref), onChange: Object(external_this_lodash_["partial"])(updateReusableBlock, ref), - onSave: Object(external_this_lodash_["partial"])(saveReusableBlock, ref) + onSave: Object(external_this_lodash_["partial"])(saveReusableBlock, ref), + convertToStatic: function convertToStatic() { + convertBlockToStatic(ownProps.clientId); + } }; })])(edit_ReusableBlockEdit)); @@ -20068,7 +20452,7 @@ function RSSEdit(_ref) { } var toolbarControls = [{ - icon: pencil["a" /* default */], + icon: library_edit["a" /* default */], title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), onClick: function onClick() { return setIsEditing(true); @@ -20083,7 +20467,7 @@ function RSSEdit(_ref) { }, isActive: blockLayout === 'list' }, { - icon: grid["a" /* default */], + icon: library_grid, title: Object(external_this_wp_i18n_["__"])('Grid view'), onClick: function onClick() { return setAttributes({ @@ -20161,13 +20545,6 @@ var rss_metadata = { name: "core/rss", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, columns: { type: "number", "default": 2 @@ -20222,24 +20599,342 @@ var rss_settings = { edit: RSSEdit }; -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/icons.js /** * WordPress dependencies */ +var buttonOnly = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "10", + width: "10", + height: "4", + rx: "1", + fill: "currentColor" +})); +var buttonOutside = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "16", + y: "10", + width: "4", + height: "4", + rx: "1", + fill: "currentColor" +})); +var buttonInside = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "14", + y: "10", + width: "4", + height: "4", + rx: "1", + fill: "currentColor" +})); +var noButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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" +})); +var buttonWithIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "11", + width: "8", + height: "2", + fill: "currentColor" +})); +var toggleLabel = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "4", + y: "7", + width: "10", + height: "2", + fill: "currentColor" +})); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Constants + */ + +var MIN_WIDTH = 220; +var MIN_WIDTH_UNIT = 'px'; +var PC_WIDTH_DEFAULT = 50; +var PX_WIDTH_DEFAULT = 350; +var edit_CSS_UNITS = [{ + value: '%', + label: '%', + default: PC_WIDTH_DEFAULT +}, { + value: 'px', + label: 'px', + default: PX_WIDTH_DEFAULT +}]; function SearchEdit(_ref) { var className = _ref.className, attributes = _ref.attributes, - setAttributes = _ref.setAttributes; + setAttributes = _ref.setAttributes, + toggleSelection = _ref.toggleSelection, + isSelected = _ref.isSelected; var label = attributes.label, + showLabel = attributes.showLabel, placeholder = attributes.placeholder, - buttonText = attributes.buttonText; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + width = attributes.width, + widthUnit = attributes.widthUnit, + align = attributes.align, + buttonText = attributes.buttonText, + buttonPosition = attributes.buttonPosition, + buttonUseIcon = attributes.buttonUseIcon; + var unitControlInstanceId = Object(external_this_wp_compose_["useInstanceId"])(external_this_wp_blockEditor_["__experimentalUnitControl"]); + var unitControlInputId = "wp-block-search__width-".concat(unitControlInstanceId); + + var getBlockClassNames = function getBlockClassNames() { + return classnames_default()(className, 'button-inside' === buttonPosition ? 'wp-block-search__button-inside' : undefined, 'button-outside' === buttonPosition ? 'wp-block-search__button-outside' : undefined, 'no-button' === buttonPosition ? 'wp-block-search__no-button' : undefined, 'button-only' === buttonPosition ? 'wp-block-search__button-only' : undefined, buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__text-button' : undefined, !buttonUseIcon && 'no-button' !== buttonPosition ? 'wp-block-search__icon-button' : undefined); + }; + + var getButtonPositionIcon = function getButtonPositionIcon() { + switch (buttonPosition) { + case 'button-inside': + return buttonInside; + + case 'button-outside': + return buttonOutside; + + case 'no-button': + return noButton; + + case 'button-only': + return buttonOnly; + } + }; + + var getResizableSides = function getResizableSides() { + if ('button-only' === buttonPosition) { + return {}; + } + + return { + right: align === 'right' ? false : true, + left: align === 'right' ? true : false + }; + }; + + var renderTextField = function renderTextField() { + return Object(external_this_wp_element_["createElement"])("input", { + className: "wp-block-search__input", + "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This + // stops screen readers from reading the placeholder field's placeholder + // which is confusing. + , + placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), + value: placeholder, + onChange: function onChange(event) { + return setAttributes({ + placeholder: event.target.value + }); + } + }); + }; + + var renderButton = function renderButton() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, buttonUseIcon && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: search["a" /* default */], + className: "wp-block-search__button" + }), !buttonUseIcon && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + className: "wp-block-search__button", + "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), + placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), + withoutInteractiveFormatting: true, + value: buttonText, + onChange: function onChange(html) { + return setAttributes({ + buttonText: html + }); + } + })); + }; + + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + title: Object(external_this_wp_i18n_["__"])('Toggle search label'), + icon: toggleLabel, + onClick: function onClick() { + setAttributes({ + showLabel: !showLabel + }); + }, + className: showLabel ? 'is-pressed' : undefined + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + icon: getButtonPositionIcon(), + label: Object(external_this_wp_i18n_["__"])('Change button position') + }, function (_ref2) { + var onClose = _ref2.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + className: "wp-block-search__button-position-menu" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: noButton, + onClick: function onClick() { + setAttributes({ + buttonPosition: 'no-button' + }); + onClose(); + } + }, Object(external_this_wp_i18n_["__"])('No Button')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: buttonOutside, + onClick: function onClick() { + setAttributes({ + buttonPosition: 'button-outside' + }); + onClose(); + } + }, Object(external_this_wp_i18n_["__"])('Button Outside')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: buttonInside, + onClick: function onClick() { + setAttributes({ + buttonPosition: 'button-inside' + }); + 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'))); + }), '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, + onClick: function onClick() { + setAttributes({ + buttonUseIcon: !buttonUseIcon + }); + }, + className: buttonUseIcon ? 'is-pressed' : undefined + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Display Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: Object(external_this_wp_i18n_["__"])('Width'), + id: unitControlInputId + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalUnitControl"], { + id: unitControlInputId, + min: "".concat(MIN_WIDTH).concat(MIN_WIDTH_UNIT), + onChange: function onChange(newWidth) { + var filteredWidth = widthUnit === '%' && parseInt(newWidth, 10) > 100 ? 100 : newWidth; + setAttributes({ + width: parseInt(filteredWidth, 10) + }); + }, + onUnitChange: function onUnitChange(newUnit) { + setAttributes({ + width: '%' === newUnit ? PC_WIDTH_DEFAULT : PX_WIDTH_DEFAULT, + widthUnit: newUnit + }); + }, + style: { + maxWidth: 80 + }, + value: "".concat(width).concat(widthUnit), + unit: widthUnit, + units: edit_CSS_UNITS + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { + className: "wp-block-search__components-button-group", + "aria-label": Object(external_this_wp_i18n_["__"])('Percentage Width') + }, [25, 50, 75, 100].map(function (widthValue) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: widthValue, + isSmall: true, + isPrimary: "".concat(widthValue, "%") === "".concat(width).concat(widthUnit), + onClick: function onClick() { + return setAttributes({ + width: widthValue, + widthUnit: '%' + }); + } + }, widthValue, "%"); + })))))); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: getBlockClassNames() + }); + return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, controls, showLabel && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { className: "wp-block-search__label", "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), @@ -20250,31 +20945,29 @@ function SearchEdit(_ref) { label: html }); } - }), Object(external_this_wp_element_["createElement"])("input", { - className: "wp-block-search__input", - "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This - // stops screen readers from reading the placeholder field's placeholder - // which is confusing. - , - placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), - value: placeholder, - onChange: function onChange(event) { - return setAttributes({ - placeholder: event.target.value + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + size: { + width: "".concat(width).concat(widthUnit) + }, + className: "wp-block-search__inside-wrapper", + isResetValueOnUnitChange: true, + minWidth: MIN_WIDTH, + enable: getResizableSides(), + onResizeStart: function onResizeStart(event, direction, elt) { + setAttributes({ + width: parseInt(elt.offsetWidth, 10), + widthUnit: 'px' }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - className: "wp-block-search__button", - "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), - placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), - withoutInteractiveFormatting: true, - value: buttonText, - onChange: function onChange(html) { - return setAttributes({ - buttonText: html + toggleSelection(false); + }, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + setAttributes({ + width: parseInt(width + delta.width, 10) }); - } - })); + toggleSelection(true); + }, + showHandle: isSelected + }, ('button-inside' === buttonPosition || 'button-outside' === buttonPosition) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, renderTextField(), renderButton()), 'button-only' === buttonPosition && renderButton(), 'no-button' === buttonPosition && renderTextField())); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/variations.js @@ -20306,27 +20999,39 @@ var search_metadata = { name: "core/search", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, label: { type: "string" }, + showLabel: { + type: "bool", + "default": true + }, placeholder: { type: "string", "default": "" }, + width: { + type: "number" + }, + widthUnit: { + type: "string" + }, buttonText: { type: "string" + }, + buttonPosition: { + type: "string", + "default": "button-outside" + }, + buttonUseIcon: { + type: "bool", + "default": false } }, supports: { - align: true, - html: false + align: ["left", "center", "right"], + html: false, + lightBlockWrapper: true } }; @@ -20379,7 +21084,7 @@ function group_deprecated_objectSpread(target) { for (var i = 1; i < arguments.l var deprecated_migrateAttributes = function migrateAttributes(attributes) { if (!attributes.tagName) { - attributes = group_deprecated_objectSpread({}, attributes, { + attributes = group_deprecated_objectSpread(group_deprecated_objectSpread({}, attributes), {}, { tagName: 'div' }); } @@ -20400,7 +21105,7 @@ var deprecated_migrateAttributes = function migrateAttributes(attributes) { style.color.background = attributes.customBackgroundColor; } - return group_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor']), { + return group_deprecated_objectSpread(group_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor'])), {}, { style: style }); }; @@ -20539,9 +21244,12 @@ var group_deprecated_deprecated = [// Version of the block without global styles +var edit_BoxControlVisualizer = external_this_wp_components_["__experimentalBoxControl"].__Visualizer; + function GroupEdit(_ref) { + var _attributes$style, _attributes$style$spa, _attributes$style2, _attributes$style2$vi; + var attributes = _ref.attributes, - className = _ref.className, clientId = _ref.clientId; var hasInnerBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core/block-editor'), @@ -20550,13 +21258,14 @@ function GroupEdit(_ref) { var block = getBlock(clientId); return !!(block && block.innerBlocks.length); }, [clientId]); - var BlockWrapper = external_this_wp_blockEditor_["__experimentalBlock"][attributes.tagName]; - return Object(external_this_wp_element_["createElement"])(BlockWrapper, { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - renderAppender: hasInnerBlocks ? undefined : function () { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); - }, + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + var _attributes$tagName = attributes.tagName, + TagName = _attributes$tagName === void 0 ? 'div' : _attributes$tagName; + return Object(external_this_wp_element_["createElement"])(TagName, blockWrapperProps, Object(external_this_wp_element_["createElement"])(edit_BoxControlVisualizer, { + values: (_attributes$style = attributes.style) === null || _attributes$style === void 0 ? void 0 : (_attributes$style$spa = _attributes$style.spacing) === null || _attributes$style$spa === void 0 ? void 0 : _attributes$style$spa.padding, + showValues: (_attributes$style2 = attributes.style) === null || _attributes$style2 === void 0 ? void 0 : (_attributes$style2$vi = _attributes$style2.visualizers) === null || _attributes$style2$vi === void 0 ? void 0 : _attributes$style2$vi.padding + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + renderAppender: hasInnerBlocks ? undefined : external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, __experimentalTagName: "div", __experimentalPassedProps: { className: 'wp-block-group__inner-container' @@ -20611,7 +21320,8 @@ var group_metadata = { __experimentalColor: { gradients: true, linkColor: true - } + }, + __experimentalPadding: true } }; @@ -20620,7 +21330,7 @@ var group_name = group_metadata.name; var group_settings = { title: Object(external_this_wp_i18n_["__"])('Group'), icon: library_group, - description: Object(external_this_wp_i18n_["__"])('A block that groups other blocks.'), + description: Object(external_this_wp_i18n_["__"])('Combine blocks into a group.'), keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')], example: { attributes: { @@ -20925,7 +21635,7 @@ var shortcode_shortcode = Object(external_this_wp_element_["createElement"])(ext /* harmony default export */ var library_shortcode = (shortcode_shortcode); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(137); +var build_module_icon = __webpack_require__(142); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js @@ -20975,7 +21685,7 @@ function shortcode_save_save(_ref) { } // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(103); +var external_this_wp_autop_ = __webpack_require__(105); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/transforms.js /** @@ -21079,7 +21789,7 @@ var resizeCornerNE = Object(external_this_wp_element_["createElement"])(external -var MIN_SPACER_HEIGHT = 20; +var MIN_SPACER_HEIGHT = 1; var MAX_SPACER_HEIGHT = 500; var edit_SpacerEdit = function SpacerEdit(_ref) { @@ -21214,7 +21924,7 @@ var spacer_settings = { }; // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_ = __webpack_require__(35); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/edit.js @@ -21372,7 +22082,7 @@ var blockTable = Object(external_this_wp_element_["createElement"])(external_thi */ -var table_deprecated_supports = { +var deprecated_supports = { align: true }; var table_deprecated_deprecated = [{ @@ -21475,7 +22185,7 @@ var table_deprecated_deprecated = [{ } } }, - supports: table_deprecated_supports, + supports: deprecated_supports, save: function save(_ref) { var attributes = _ref.attributes; var hasFixedLayout = attributes.hasFixedLayout, @@ -21539,13 +22249,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__(288); +var align_left = __webpack_require__(300); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(289); +var align_center = __webpack_require__(301); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(290); +var align_right = __webpack_require__(302); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js @@ -21823,7 +22533,7 @@ function insertRow(state, _ref2) { cells: Object(external_this_lodash_["times"])(cellCount, function (index) { var firstCellInColumn = Object(external_this_lodash_["get"])(firstRow, ['cells', index], {}); var inheritedAttributes = Object(external_this_lodash_["pick"])(firstCellInColumn, INHERITED_COLUMN_ATTRIBUTES); - return state_objectSpread({}, inheritedAttributes, { + return state_objectSpread(state_objectSpread({}, inheritedAttributes), {}, { content: '', tag: sectionName === 'head' ? 'th' : 'td' }); @@ -21974,7 +22684,7 @@ function table_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(obj function table_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { table_edit_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 { table_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function table_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (table_edit_isNativeReflectConstruct()) { 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 table_edit_createSuper(Derived) { var hasNativeReflectConstruct = table_edit_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 table_edit_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; } } @@ -22016,15 +22726,15 @@ var BACKGROUND_COLORS = [{ }]; var ALIGNMENT_CONTROLS = [{ icon: align_left["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align Column Left'), + title: Object(external_this_wp_i18n_["__"])('Align column left'), align: 'left' }, { icon: align_center["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align Column Center'), + title: Object(external_this_wp_i18n_["__"])('Align column center'), align: 'center' }, { icon: align_right["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align Column Right'), + title: Object(external_this_wp_i18n_["__"])('Align column right'), align: 'right' }]; var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); @@ -22147,7 +22857,7 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { attributes = _this$props2.attributes, setAttributes = _this$props2.setAttributes; setAttributes(updateSelectedCell(attributes, selectedCell, function (cellAttributes) { - return table_edit_objectSpread({}, cellAttributes, { + return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { content: content }); })); @@ -22177,7 +22887,7 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { attributes = _this$props3.attributes, setAttributes = _this$props3.setAttributes; var newAttributes = updateSelectedCell(attributes, columnSelection, function (cellAttributes) { - return table_edit_objectSpread({}, cellAttributes, { + return table_edit_objectSpread(table_edit_objectSpread({}, cellAttributes), {}, { align: align }); }); @@ -22397,7 +23107,7 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { return function () { _this2.setState({ - selectedCell: table_edit_objectSpread({}, cellLocation, { + selectedCell: table_edit_objectSpread(table_edit_objectSpread({}, cellLocation), {}, { type: 'cell' }) }); @@ -22415,32 +23125,32 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { var selectedCell = this.state.selectedCell; return [{ icon: table_row_before, - title: Object(external_this_wp_i18n_["__"])('Add Row Before'), + title: Object(external_this_wp_i18n_["__"])('Insert row before'), isDisabled: !selectedCell, onClick: this.onInsertRowBefore }, { icon: table_row_after, - title: Object(external_this_wp_i18n_["__"])('Add Row After'), + title: Object(external_this_wp_i18n_["__"])('Insert row after'), isDisabled: !selectedCell, onClick: this.onInsertRowAfter }, { icon: table_row_delete, - title: Object(external_this_wp_i18n_["__"])('Delete Row'), + title: Object(external_this_wp_i18n_["__"])('Delete row'), isDisabled: !selectedCell, onClick: this.onDeleteRow }, { icon: table_column_before, - title: Object(external_this_wp_i18n_["__"])('Add Column Before'), + title: Object(external_this_wp_i18n_["__"])('Insert column before'), isDisabled: !selectedCell, onClick: this.onInsertColumnBefore }, { icon: table_column_after, - title: Object(external_this_wp_i18n_["__"])('Add Column After'), + title: Object(external_this_wp_i18n_["__"])('Insert column after'), isDisabled: !selectedCell, onClick: this.onInsertColumnAfter }, { icon: table_column_delete, - title: Object(external_this_wp_i18n_["__"])('Delete Column'), + title: Object(external_this_wp_i18n_["__"])('Delete column'), isDisabled: !selectedCell, onClick: this.onDeleteColumn }]; @@ -22552,14 +23262,14 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { onSubmit: this.onCreateTable }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { type: "number", - label: Object(external_this_wp_i18n_["__"])('Column Count'), + label: Object(external_this_wp_i18n_["__"])('Column count'), value: initialColumnCount, onChange: this.onChangeInitialColumnCount, min: "1", className: "blocks-table__placeholder-input" }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { type: "number", - label: Object(external_this_wp_i18n_["__"])('Row Count'), + label: Object(external_this_wp_i18n_["__"])('Row count'), value: initialRowCount, onChange: this.onChangeInitialRowCount, min: "1", @@ -22575,7 +23285,7 @@ var edit_TableEdit = /*#__PURE__*/function (_Component) { 'has-fixed-layout': hasFixedLayout, 'has-background': !!backgroundColor.color }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarItem"], null, function (toggleProps) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { hasArrowIndicator: true, icon: library_table, @@ -23240,6 +23950,7 @@ var verse_deprecated_deprecated = [{ + /** * External dependencies */ @@ -23253,10 +23964,12 @@ var verse_deprecated_deprecated = [{ function VerseEdit(_ref) { var attributes = _ref.attributes, setAttributes = _ref.setAttributes, - className = _ref.className, mergeBlocks = _ref.mergeBlocks; var textAlign = attributes.textAlign, content = attributes.content; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)) + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: textAlign, onChange: function onChange(nextAlign) { @@ -23264,8 +23977,8 @@ function VerseEdit(_ref) { textAlign: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: external_this_wp_blockEditor_["__experimentalBlock"].pre, + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({ + tagName: "pre", identifier: "content", preserveWhiteSpace: true, value: content, @@ -23275,10 +23988,9 @@ function VerseEdit(_ref) { }); }, placeholder: Object(external_this_wp_i18n_["__"])('Write…'), - className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)), onMerge: mergeBlocks, textAlign: textAlign - })); + }, blockWrapperProps))); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/save.js @@ -23483,16 +24195,6 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { - - - - - - -function video_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (video_edit_isNativeReflectConstruct()) { 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 video_edit_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; } } - /** * WordPress dependencies */ @@ -23514,246 +24216,191 @@ function video_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefin var video_edit_ALLOWED_MEDIA_TYPES = ['video']; var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; -var edit_VideoEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(VideoEdit, _Component); +function VideoEdit(_ref) { + var isSelected = _ref.isSelected, + noticeUI = _ref.noticeUI, + attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + insertBlocksAfter = _ref.insertBlocksAfter, + onReplace = _ref.onReplace, + noticeOperations = _ref.noticeOperations; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(VideoEdit); + var videoPlayer = Object(external_this_wp_element_["useRef"])(); + var posterImageButton = Object(external_this_wp_element_["useRef"])(); + var id = attributes.id, + caption = attributes.caption, + controls = attributes.controls, + poster = attributes.poster, + src = attributes.src; + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings().mediaUpload; + }); + Object(external_this_wp_element_["useEffect"])(function () { + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - var _super = video_edit_createSuper(VideoEdit); + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + url = _ref3[0].url; - function VideoEdit() { - var _this; + setAttributes({ + src: url + }); + }, + onError: function onError(message) { + noticeOperations.createErrorNotice(message); + }, + allowedTypes: video_edit_ALLOWED_MEDIA_TYPES + }); + } + } + }, []); + Object(external_this_wp_element_["useEffect"])(function () { + // Placeholder may be rendered. + if (videoPlayer.current) { + videoPlayer.current.load(); + } + }, [poster]); - Object(classCallCheck["a" /* default */])(this, VideoEdit); + function onSelectVideo(media) { + if (!media || !media.url) { + // in this case there was an error + // previous attributes should be removed + // because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + return; + } // sets the block's attribute and updates the edit component from the + // selected media - _this = _super.apply(this, arguments); - _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); - _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectPoster = _this.onSelectPoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onRemovePoster = _this.onRemovePoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + + setAttributes({ + src: media.url, + id: media.id + }); } - Object(createClass["a" /* default */])(VideoEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - url = _ref2[0].url; - - setAttributes({ - src: url - }); - }, - onError: function onError(message) { - noticeOperations.createErrorNotice(message); - }, - allowedTypes: video_edit_ALLOWED_MEDIA_TYPES - }); + function onSelectURL(newSrc) { + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: newSrc } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.attributes.poster !== prevProps.attributes.poster) { - this.videoPlayer.current.load(); - } - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; + }); - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); + if (undefined !== embedBlock) { + onReplace(embedBlock); + return; } - } - }, { - key: "onSelectPoster", - value: function onSelectPoster(image) { - var setAttributes = this.props.setAttributes; + setAttributes({ - poster: image.url + src: newSrc, + id: undefined }); } - }, { - key: "onRemovePoster", - value: function onRemovePoster() { - var setAttributes = this.props.setAttributes; - setAttributes({ - poster: '' - }); // Move focus back to the Media Upload button. + } - this.posterImageButton.current.focus(); + function onUploadError(message) { + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + + if (!src) { + return Object(external_this_wp_element_["createElement"])("div", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: library_video + }), + onSelect: onSelectVideo, + onSelectURL: onSelectURL, + accept: "video/*", + allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, + value: attributes, + notices: noticeUI, + onError: onUploadError + })); + } + + function onSelectPoster(image) { + setAttributes({ + poster: image.url + }); + } + + function onRemovePoster() { + setAttributes({ + poster: '' + }); // Move focus back to the Media Upload button. + + this.posterImageButton.current.focus(); + } + + var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + mediaId: id, + mediaURL: src, + allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, + accept: "video/*", + onSelect: onSelectVideo, + onSelectURL: onSelectURL, + onError: onUploadError + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Video settings') + }, Object(external_this_wp_element_["createElement"])(edit_common_settings, { + setAttributes: setAttributes, + attributes: attributes + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "editor-video-poster-control" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Poster image')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + title: Object(external_this_wp_i18n_["__"])('Select poster image'), + onSelect: onSelectPoster, + allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, + render: function render(_ref4) { + var open = _ref4.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isPrimary: true, + onClick: open, + ref: posterImageButton, + "aria-describedby": videoPosterDescription + }, !poster ? Object(external_this_wp_i18n_["__"])('Select') : Object(external_this_wp_i18n_["__"])('Replace')); } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); + }), Object(external_this_wp_element_["createElement"])("p", { + id: videoPosterDescription, + hidden: true + }, poster ? Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: poster image URL. */ + Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + onClick: onRemovePoster, + isTertiary: true + }, Object(external_this_wp_i18n_["__"])('Remove')))))), Object(external_this_wp_element_["createElement"])("figure", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { + controls: controls, + poster: poster, + src: src, + ref: videoPlayer + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); } - }, { - key: "render", - value: function render() { - var _this2 = this; + }))); +} - var _this$props$attribute = this.props.attributes, - id = _this$props$attribute.id, - caption = _this$props$attribute.caption, - controls = _this$props$attribute.controls, - poster = _this$props$attribute.poster, - src = _this$props$attribute.src; - var _this$props3 = this.props, - instanceId = _this$props3.instanceId, - isSelected = _this$props3.isSelected, - noticeUI = _this$props3.noticeUI, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes, - insertBlocksAfter = _this$props3.insertBlocksAfter; - - var onSelectVideo = function onSelectVideo(media) { - if (!media || !media.url) { - // in this case there was an error - // previous attributes should be removed - // because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - return; - } // sets the block's attribute and updates the edit component from the - // selected media - - - setAttributes({ - src: media.url, - id: media.id - }); - }; - - if (!src) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: library_video - }), - onSelect: onSelectVideo, - onSelectURL: this.onSelectURL, - accept: "video/*", - allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: this.onUploadError - })); - } - - var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { - mediaId: id, - mediaURL: src, - allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, - accept: "video/*", - onSelect: onSelectVideo, - onSelectURL: this.onSelectURL, - onError: this.onUploadError - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Video settings') - }, Object(external_this_wp_element_["createElement"])(edit_common_settings, { - setAttributes: setAttributes, - attributes: attributes - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: "editor-video-poster-control" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Poster image')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { - title: Object(external_this_wp_i18n_["__"])('Select poster image'), - onSelect: this.onSelectPoster, - allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isPrimary: true, - onClick: open, - ref: _this2.posterImageButton, - "aria-describedby": videoPosterDescription - }, !_this2.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select') : Object(external_this_wp_i18n_["__"])('Replace')); - } - }), Object(external_this_wp_element_["createElement"])("p", { - id: videoPosterDescription, - hidden: true - }, this.props.attributes.poster ? Object(external_this_wp_i18n_["sprintf"])( - /* translators: %s: poster image URL. */ - Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), this.props.attributes.poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - onClick: this.onRemovePoster, - isTertiary: true - }, Object(external_this_wp_i18n_["__"])('Remove')))))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { - controls: controls, - poster: poster, - src: src, - ref: this.videoPlayer - })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true, - __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { - return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); - } - }))); - } - }]); - - return VideoEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var video_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - var _getSettings = getSettings(), - mediaUpload = _getSettings.mediaUpload; - - return { - mediaUpload: mediaUpload - }; -}), external_this_wp_components_["withNotices"], external_this_wp_compose_["withInstanceId"]])(edit_VideoEdit)); +/* harmony default export */ var video_edit = (Object(external_this_wp_components_["withNotices"])(VideoEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/save.js @@ -23973,16 +24620,6 @@ var tag_tag = Object(external_this_wp_element_["createElement"])(external_this_w - - - - - - -function tag_cloud_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (tag_cloud_edit_isNativeReflectConstruct()) { 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 tag_cloud_edit_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 */ @@ -23997,97 +24634,60 @@ function tag_cloud_edit_isNativeReflectConstruct() { if (typeof Reflect === "und +function TagCloudEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + taxonomies = _ref.taxonomies; + var taxonomy = attributes.taxonomy, + showTagCounts = attributes.showTagCounts; -var edit_TagCloudEdit = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(TagCloudEdit, _Component); - - var _super = tag_cloud_edit_createSuper(TagCloudEdit); - - function TagCloudEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TagCloudEdit); - - _this = _super.apply(this, arguments); - _this.state = { - editing: !_this.props.attributes.taxonomy + var getTaxonomyOptions = function getTaxonomyOptions() { + var selectOption = { + label: Object(external_this_wp_i18n_["__"])('- Select -'), + value: '', + disabled: true }; - _this.setTaxonomy = _this.setTaxonomy.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowTagCounts = _this.toggleShowTagCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(TagCloudEdit, [{ - key: "getTaxonomyOptions", - value: function getTaxonomyOptions() { - var taxonomies = Object(external_this_lodash_["filter"])(this.props.taxonomies, 'show_cloud'); - var selectOption = { - label: Object(external_this_wp_i18n_["__"])('- Select -'), - value: '', - disabled: true + var taxonomyOptions = Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(taxonomies, 'show_cloud'), function (item) { + return { + value: item.slug, + label: item.name }; - var taxonomyOptions = Object(external_this_lodash_["map"])(taxonomies, function (taxonomy) { - return { - value: taxonomy.slug, - label: taxonomy.name - }; - }); - return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); - } - }, { - key: "setTaxonomy", - value: function setTaxonomy(taxonomy) { - var setAttributes = this.props.setAttributes; - setAttributes({ - taxonomy: taxonomy + }); + return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); + }; + + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Tag Cloud settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Taxonomy'), + options: getTaxonomyOptions(), + value: taxonomy, + onChange: function onChange(selectedTaxonomy) { + return setAttributes({ + taxonomy: selectedTaxonomy }); } - }, { - key: "toggleShowTagCounts", - value: function toggleShowTagCounts() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var showTagCounts = attributes.showTagCounts; - setAttributes({ + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show post counts'), + checked: showTagCounts, + onChange: function onChange() { + return setAttributes({ showTagCounts: !showTagCounts }); } - }, { - key: "render", - value: function render() { - var attributes = this.props.attributes; - var taxonomy = attributes.taxonomy, - showTagCounts = attributes.showTagCounts; - var taxonomyOptions = this.getTaxonomyOptions(); - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Tag Cloud settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Taxonomy'), - options: taxonomyOptions, - value: taxonomy, - onChange: this.setTaxonomy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show post counts'), - checked: showTagCounts, - onChange: this.toggleShowTagCounts - }))); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - key: "tag-cloud", - block: "core/tag-cloud", - attributes: attributes - })); - } - }]); - - return TagCloudEdit; -}(external_this_wp_element_["Component"]); + }))); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + key: "tag-cloud", + block: "core/tag-cloud", + attributes: attributes + })); +} /* harmony default export */ var tag_cloud_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { return { taxonomies: select('core').getTaxonomies() }; -})(edit_TagCloudEdit)); +})(TagCloudEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js /** @@ -24103,13 +24703,6 @@ var tag_cloud_metadata = { name: "core/tag-cloud", category: "widgets", attributes: { - align: { - type: "string", - "enum": ["left", "center", "right", "wide", "full"] - }, - className: { - type: "string" - }, taxonomy: { type: "string", "default": "post_tag" @@ -24150,6 +24743,37 @@ var classic = Object(external_this_wp_element_["createElement"])(external_this_w })); /* harmony default export */ var library_classic = (classic); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/convert-to-blocks-button.js + + +/** + * WordPress dependencies + */ + + + + + +var convert_to_blocks_button_ConvertToBlocksButton = function ConvertToBlocksButton(_ref) { + var clientId = _ref.clientId; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + replaceBlocks = _useDispatch.replaceBlocks; + + var block = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getBlock(clientId); + }, [clientId]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: function onClick() { + return replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ + HTML: Object(external_this_wp_blocks_["serialize"])(block) + })); + } + }, Object(external_this_wp_i18n_["__"])('Convert to blocks')); +}; + +/* harmony default export */ var convert_to_blocks_button = (convert_to_blocks_button_ConvertToBlocksButton); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/edit.js @@ -24164,7 +24788,7 @@ function classic_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function classic_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { classic_edit_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 { classic_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function classic_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (classic_edit_isNativeReflectConstruct()) { 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 classic_edit_createSuper(Derived) { var hasNativeReflectConstruct = classic_edit_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 classic_edit_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; } } @@ -24179,8 +24803,15 @@ function classic_edit_isNativeReflectConstruct() { if (typeof Reflect === "undef -var classic_edit_window = window, - wp = classic_edit_window.wp; + + +/** + * Internal dependencies + */ + + +var edit_window = window, + edit_wp = edit_window.wp; function isTmceEmpty(editor) { // When tinyMce is empty the content seems to be: @@ -24221,6 +24852,8 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { Object(createClass["a" /* default */])(ClassicEdit, [{ key: "componentDidMount", value: function componentDidMount() { + var _this2 = this; + var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, baseURL = _window$wpEditorL10n$.baseURL, suffix = _window$wpEditorL10n$.suffix; @@ -24232,14 +24865,18 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { if (document.readyState === 'complete') { this.initialize(); } else { - window.addEventListener('DOMContentLoaded', this.initialize); + document.addEventListener('readystatechange', function () { + if (document.readyState === 'complete') { + _this2.initialize(); + } + }); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { window.addEventListener('DOMContentLoaded', this.initialize); - wp.oldEditor.remove("editor-".concat(this.props.clientId)); + edit_wp.oldEditor.remove("editor-".concat(this.props.clientId)); } }, { key: "componentDidUpdate", @@ -24248,7 +24885,7 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { clientId = _this$props.clientId, content = _this$props.attributes.content; var editor = window.tinymce.get("editor-".concat(clientId)); - var currentContent = editor.getContent(); + var currentContent = editor === null || editor === void 0 ? void 0 : editor.getContent(); if (prevProps.attributes.content !== content && currentContent !== content) { editor.setContent(content || ''); @@ -24259,8 +24896,8 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { value: function initialize() { var clientId = this.props.clientId; var settings = window.wpEditorL10n.tinymce.settings; - wp.oldEditor.initialize("editor-".concat(clientId), { - tinymce: classic_edit_objectSpread({}, settings, { + edit_wp.oldEditor.initialize("editor-".concat(clientId), { + tinymce: classic_edit_objectSpread(classic_edit_objectSpread({}, settings), {}, { inline: true, content_css: false, fixed_toolbar_container: "#toolbar-".concat(clientId), @@ -24271,12 +24908,11 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { }, { key: "onSetup", value: function onSetup(editor) { - var _this2 = this; + var _this3 = this; var _this$props2 = this.props, content = _this$props2.attributes.content, setAttributes = _this$props2.setAttributes; - var ref = this.ref; var bookmark; this.editor = editor; @@ -24333,7 +24969,7 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { // delete the block - _this2.props.onReplace([]); + _this3.props.onReplace([]); event.preventDefault(); event.stopImmediatePropagation(); @@ -24348,38 +24984,15 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { if (altKey && event.keyCode === external_this_wp_keycodes_["F10"]) { event.stopPropagation(); } - }); // TODO: the following is for back-compat with WP 4.9, not needed in WP 5.0. Remove it after the release. - - editor.addButton('kitchensink', { - tooltip: Object(external_this_wp_i18n_["_x"])('More', 'button to expand options'), - icon: 'dashicon dashicons-editor-kitchensink', - onClick: function onClick() { - var button = this; - var active = !button.active(); - button.active(active); - editor.dom.toggleClass(ref, 'has-advanced-toolbar', active); - } - }); // Show the second, third, etc. toolbars when the `kitchensink` button is removed by a plugin. - - editor.on('init', function () { - if (editor.settings.toolbar1 && editor.settings.toolbar1.indexOf('kitchensink') === -1) { - editor.dom.addClass(ref, 'has-advanced-toolbar'); - } }); - editor.addButton('wp_add_media', { - tooltip: Object(external_this_wp_i18n_["__"])('Insert Media'), - icon: 'dashicon dashicons-admin-media', - cmd: 'WP_Medialib' - }); // End TODO. - editor.on('init', function () { - var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor. + var rootNode = _this3.editor.getBody(); // Create the toolbar by refocussing the editor. - if (document.activeElement === rootNode) { + if (rootNode.ownerDocument.activeElement === rootNode) { rootNode.blur(); - _this2.editor.focus(); + _this3.editor.focus(); } }); } @@ -24401,8 +25014,6 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { }, { key: "render", value: function render() { - var _this3 = this; - var clientId = this.props.clientId; // Disable reasons: // // jsx-a11y/no-static-element-interactions @@ -24411,12 +25022,11 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { /* eslint-disable jsx-a11y/no-static-element-interactions */ - return [Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(convert_to_blocks_button, { + clientId: clientId + }))), Object(external_this_wp_element_["createElement"])("div", { key: "toolbar", id: "toolbar-".concat(clientId), - ref: function ref(_ref) { - return _this3.ref = _ref; - }, className: "block-library-classic__toolbar", onClick: this.focus, "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), @@ -24425,7 +25035,7 @@ var edit_ClassicEdit = /*#__PURE__*/function (_Component) { key: "editor", id: "editor-".concat(clientId), className: "wp-block-freeform block-library-rich-text__tinymce" - })]; + })); /* eslint-enable jsx-a11y/no-static-element-interactions */ } }]); @@ -24507,6 +25117,9 @@ var share = Object(external_this_wp_element_["createElement"])(external_this_wp_ * WordPress dependencies */ + + + var social_links_edit_ALLOWED_BLOCKS = ['core/social-link']; // Template contains the links that show when start. var edit_TEMPLATE = [['core/social-link', { @@ -24523,15 +25136,29 @@ var edit_TEMPLATE = [['core/social-link', { }], ['core/social-link', { service: 'youtube' }]]; -function SocialLinksEdit() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { +function SocialLinksEdit(props) { + var openInNewTab = props.attributes.openInNewTab, + setAttributes = props.setAttributes; + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Link settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open links in new tab'), + checked: openInNewTab, + onChange: function onChange() { + return setAttributes({ + openInNewTab: !openInNewTab + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { allowedBlocks: social_links_edit_ALLOWED_BLOCKS, templateLock: false, template: edit_TEMPLATE, orientation: "horizontal", - __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].ul, + __experimentalTagName: "ul", + __experimentalPassedProps: blockWrapperProps, __experimentalAppenderTagName: "li" - }); + })); } /* harmony default export */ var social_links_edit = (SocialLinksEdit); @@ -24563,6 +25190,15 @@ function social_links_save_save(_ref) { var social_links_metadata = { name: "core/social-links", category: "widgets", + attributes: { + openInNewTab: { + type: "boolean", + "default": false + } + }, + providesContext: { + openInNewTab: "openInNewTab" + }, supports: { align: ["left", "center", "right"], lightBlockWrapper: true, @@ -24614,7 +25250,7 @@ var social_links_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(202); +var keyboard_return = __webpack_require__(215); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js @@ -24973,7 +25609,7 @@ var lastfm_LastfmIcon = function LastfmIcon() { viewBox: "0 0 24 24", version: "1.1" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z" + 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" })); }; @@ -25687,6 +26323,9 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { }); var IconComponent = social_list_getIconBySite(service); var socialLinkName = social_list_getNameBySite(service); + var blockWrapperProps = Object(external_this_wp_blockEditor_["__experimentalUseBlockWrapperProps"])({ + className: classes + }); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["sprintf"])( /* translators: %s: name of the social service. */ @@ -25701,9 +26340,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { label: value }); } - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].li, { - className: classes - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + })))), Object(external_this_wp_element_["createElement"])("li", blockWrapperProps, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: function onClick() { return setPopover(true); } @@ -25763,6 +26400,7 @@ var social_link_metadata = { type: "string" } }, + usesContext: ["openInNewTab"], supports: { reusable: false, html: false, @@ -25838,7 +26476,6 @@ var social_link_settings = { - // Full Site Editing Blocks @@ -25855,6 +26492,13 @@ var social_link_settings = { + + + + + + + @@ -25896,8 +26540,8 @@ var build_module_registerCoreBlocks = function registerCoreBlocks() { [// Common blocks are grouped at the top to prioritize their display // in various contexts — like the inserter and auto-complete components. build_module_paragraph_namespaceObject, build_module_image_namespaceObject, build_module_heading_namespaceObject, build_module_gallery_namespaceObject, build_module_list_namespaceObject, build_module_quote_namespaceObject, // Register all remaining core blocks. - build_module_shortcode_namespaceObject, archives_namespaceObject, build_module_audio_namespaceObject, build_module_button_namespaceObject, buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, build_module_columns_namespaceObject, build_module_column_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject].concat(Object(toConsumableArray["a" /* default */])(embed_common), Object(toConsumableArray["a" /* default */])(embed_others), [build_module_file_namespaceObject, build_module_group_namespaceObject, window.wp && window.wp.oldEditor ? build_module_classic_namespaceObject : null, // Only add the classic block in WP Context - build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject]).forEach(build_module_registerBlock); + build_module_shortcode_namespaceObject, archives_namespaceObject, build_module_audio_namespaceObject, build_module_button_namespaceObject, buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, build_module_columns_namespaceObject, build_module_column_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject, build_module_file_namespaceObject, build_module_group_namespaceObject, window.wp && window.wp.oldEditor ? build_module_classic_namespaceObject : null, // Only add the classic block in WP Context + build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject].forEach(build_module_registerBlock); Object(external_this_wp_blocks_["setDefaultBlockName"])(paragraph_name); if (window.wp && window.wp.oldEditor) { @@ -25925,17 +26569,39 @@ var __experimentalRegisterExperimentalCoreBlocks = false ? undefined : undefine /***/ }), -/***/ 44: -/***/ (function(module, exports) { +/***/ 483: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["blob"]; }()); +"use strict"; -/***/ }), +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); -/***/ 45: -/***/ (function(module, exports) { +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js + + +/** + * WordPress dependencies + */ + +var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" +})); +/* harmony default export */ var library_pencil = (pencil); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js +/** + * Internal dependencies + */ + +/* harmony default export */ var edit = __webpack_exports__["a"] = (library_pencil); -(function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), @@ -25964,7 +26630,7 @@ function _defineProperty(obj, key, value) { /***/ 6: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["primitives"]; }()); +(function() { module.exports = this["wp"]["blockEditor"]; }()); /***/ }), @@ -26139,7 +26805,7 @@ module.exports = memize; /***/ 66: /***/ (function(module, exports, __webpack_require__) { -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2 // https://github.com/bgrins/TinyColor // Brian Grinstead, MIT License @@ -27340,11 +28006,11 @@ else {} /***/ 7: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["blockEditor"]; }()); +(function() { module.exports = this["wp"]["primitives"]; }()); /***/ }), -/***/ 79: +/***/ 75: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["date"]; }()); @@ -27376,14 +28042,7 @@ function _extends() { /***/ }), -/***/ 81: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - -/***/ }), - -/***/ 83: +/***/ 86: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["serverSideRender"]; }()); @@ -27393,21 +28052,65 @@ function _extends() { /***/ 89: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["escapeHtml"]; }()); +(function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), /***/ 9: -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -(function() { module.exports = this["wp"]["compose"]; }()); +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/* global define */ -/***/ }), +(function () { + 'use strict'; -/***/ 98: -/***/ (function(module, exports) { + var hasOwn = {}.hasOwnProperty; + + function classNames () { + var classes = []; + + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + + var argType = typeof arg; + + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + + return classes.join(' '); + } + + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +}()); -(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }) diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index f51f9b524f..719db4aec7 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,17 +1,12 @@ /*! 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 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=437)}({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.blocks}()},100:function(e,t){!function(){e.exports=this.wp.notices}()},103:function(e,t){!function(){e.exports=this.wp.autop}()},105: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 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=450)}({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){!function(){e.exports=this.wp.coreData}()},101:function(e,t){!function(){e.exports=this.wp.notices}()},105: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)&&(c[r]=e[r])}return c}},154:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=c},16: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}))},176:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=c},179:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var o=r(35),c=r(29);function a(e){return function(e){if(Array.isArray(e))return Object(n.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.")}()}},19: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=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},142:function(e,t,r){"use strict";var n=r(5),o=r(14),c=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(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},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),o=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:o,isLight:!o}}},{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,o),c&&e(n,c),r}()}()},288:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},289:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(26);function o(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}}},290:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},292:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},293:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},294:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},3:function(e,t){!function(){e.exports=this.wp.components}()},300:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},301:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.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},302:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.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=c},303:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z"}));t.a=c},31:function(e,t){!function(){e.exports=this.wp.url}()},35: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}))},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},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,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}))},43:function(e,t){!function(){e.exports=this.moment}()},437:function(e,t,r){"use strict";r.r(t),r.d(t,"registerCoreBlocks",(function(){return Uu})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Wu}));var n={};r.r(n),r.d(n,"metadata",(function(){return Oe})),r.d(n,"name",(function(){return je})),r.d(n,"settings",(function(){return ye}));var o={};r.r(o),r.d(o,"metadata",(function(){return Kt})),r.d(o,"name",(function(){return $t})),r.d(o,"settings",(function(){return Yt}));var c={};r.r(c),r.d(c,"metadata",(function(){return mr})),r.d(c,"name",(function(){return dr})),r.d(c,"settings",(function(){return pr}));var a={};r.r(a),r.d(a,"metadata",(function(){return xr})),r.d(a,"name",(function(){return Sr})),r.d(a,"settings",(function(){return Pr}));var i={};r.r(i),r.d(i,"metadata",(function(){return bn})),r.d(i,"name",(function(){return mn})),r.d(i,"settings",(function(){return dn}));var l={};r.r(l),r.d(l,"metadata",(function(){return fn})),r.d(l,"name",(function(){return vn})),r.d(l,"settings",(function(){return On}));var s={};r.r(s),r.d(s,"metadata",(function(){return Cn})),r.d(s,"name",(function(){return En})),r.d(s,"settings",(function(){return xn}));var u={};r.r(u),r.d(u,"metadata",(function(){return Jn})),r.d(u,"name",(function(){return Xn})),r.d(u,"settings",(function(){return eo}));var b={};r.r(b),r.d(b,"metadata",(function(){return co})),r.d(b,"name",(function(){return ao})),r.d(b,"settings",(function(){return io}));var m={};r.r(m),r.d(m,"metadata",(function(){return go})),r.d(m,"name",(function(){return fo})),r.d(m,"settings",(function(){return vo}));var d={};r.r(d),r.d(d,"metadata",(function(){return ko})),r.d(d,"name",(function(){return Co})),r.d(d,"settings",(function(){return Eo}));var p={};r.r(p),r.d(p,"metadata",(function(){return zo})),r.d(p,"name",(function(){return Mo})),r.d(p,"settings",(function(){return Ro}));var h={};r.r(h),r.d(h,"metadata",(function(){return Jo})),r.d(h,"name",(function(){return Xo})),r.d(h,"settings",(function(){return ec}));var g={};r.r(g),r.d(g,"metadata",(function(){return nc})),r.d(g,"name",(function(){return oc})),r.d(g,"settings",(function(){return cc}));var f={};r.r(f),r.d(f,"metadata",(function(){return Rc})),r.d(f,"name",(function(){return Nc})),r.d(f,"settings",(function(){return Ac}));var v={};r.r(v),r.d(v,"name",(function(){return oa})),r.d(v,"settings",(function(){return ca})),r.d(v,"common",(function(){return aa})),r.d(v,"others",(function(){return ia}));var O={};r.r(O),r.d(O,"metadata",(function(){return pa})),r.d(O,"name",(function(){return ha})),r.d(O,"settings",(function(){return ga}));var j={};r.r(j),r.d(j,"metadata",(function(){return wa})),r.d(j,"name",(function(){return _a})),r.d(j,"settings",(function(){return ka}));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 w={};r.r(w),r.d(w,"metadata",(function(){return Ya})),r.d(w,"name",(function(){return Qa})),r.d(w,"settings",(function(){return Ja}));var _={};r.r(_),r.d(_,"metadata",(function(){return di})),r.d(_,"name",(function(){return pi})),r.d(_,"settings",(function(){return hi}));var k={};r.r(k),r.d(k,"metadata",(function(){return Bi})),r.d(k,"name",(function(){return zi})),r.d(k,"settings",(function(){return Mi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Ni})),r.d(C,"name",(function(){return Ai})),r.d(C,"settings",(function(){return Hi}));var E={};r.r(E),r.d(E,"metadata",(function(){return Fi})),r.d(E,"name",(function(){return Gi})),r.d(E,"settings",(function(){return Ui}));var x={};r.r(x),r.d(x,"metadata",(function(){return Zi})),r.d(x,"name",(function(){return Ki})),r.d(x,"settings",(function(){return $i}));var S={};r.r(S),r.d(S,"metadata",(function(){return Ji})),r.d(S,"name",(function(){return Xi})),r.d(S,"settings",(function(){return el}));var P={};r.r(P),r.d(P,"metadata",(function(){return dl})),r.d(P,"name",(function(){return pl})),r.d(P,"settings",(function(){return hl}));var T={};r.r(T),r.d(T,"metadata",(function(){return wl})),r.d(T,"name",(function(){return _l})),r.d(T,"settings",(function(){return kl}));var B={};r.r(B),r.d(B,"metadata",(function(){return El})),r.d(B,"name",(function(){return xl})),r.d(B,"settings",(function(){return Sl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Tl})),r.d(z,"name",(function(){return Bl})),r.d(z,"settings",(function(){return zl}));var M={};r.r(M),r.d(M,"metadata",(function(){return Il})),r.d(M,"name",(function(){return Dl})),r.d(M,"settings",(function(){return Vl}));var R={};r.r(R),r.d(R,"metadata",(function(){return ql})),r.d(R,"name",(function(){return Zl})),r.d(R,"settings",(function(){return Kl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Xl})),r.d(N,"name",(function(){return es})),r.d(N,"settings",(function(){return ts}));var A={};r.r(A),r.d(A,"metadata",(function(){return os})),r.d(A,"name",(function(){return cs})),r.d(A,"settings",(function(){return as}));var H={};r.r(H),r.d(H,"metadata",(function(){return us})),r.d(H,"name",(function(){return bs})),r.d(H,"settings",(function(){return ms}));var L={};r.r(L),r.d(L,"metadata",(function(){return Gs})),r.d(L,"name",(function(){return Us})),r.d(L,"settings",(function(){return Ws}));var I={};r.r(I),r.d(I,"metadata",(function(){return Zs})),r.d(I,"name",(function(){return Ks})),r.d(I,"settings",(function(){return $s}));var D={};r.r(D),r.d(D,"metadata",(function(){return Xs})),r.d(D,"name",(function(){return eu})),r.d(D,"settings",(function(){return tu}));var V={};r.r(V),r.d(V,"metadata",(function(){return uu})),r.d(V,"name",(function(){return bu})),r.d(V,"settings",(function(){return mu}));var F={};r.r(F),r.d(F,"metadata",(function(){return fu})),r.d(F,"name",(function(){return vu})),r.d(F,"settings",(function(){return Ou}));var G={};r.r(G),r.d(G,"metadata",(function(){return Eu})),r.d(G,"name",(function(){return xu})),r.d(G,"settings",(function(){return Su}));var U={};r.r(U),r.d(U,"metadata",(function(){return Mu})),r.d(U,"name",(function(){return Ru})),r.d(U,"settings",(function(){return Nu}));var W={};r.r(W),r.d(W,"metadata",(function(){return Du})),r.d(W,"name",(function(){return Vu})),r.d(W,"settings",(function(){return Fu}));var q=r(18),Z=r(5),K=(r(98),r(100),r(7)),$=r(10),Y=r(2),Q=r(1),J=r(0),X=r(6),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),te=r(11),re=r.n(te);function ne(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",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ce=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(_e.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}],Ee=r(44),xe=r(9),Se=r(31),Pe=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),Te=r(203),Be=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),ze=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Me=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Re=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Ne={foreground:"#1da1f2",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ae={foreground:"#ff0000",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},He={foreground:"#3b5998",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Le=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ie={foreground:"#0073AA",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},De={foreground:"#1db954",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Ve=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Fe={foreground:"#1ab7ea",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Ge=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Ue={foreground:"#35465c",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},We=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(J.createElement)(ue.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(J.createElement)(ue.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),qe=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(J.createElement)(ue.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(J.createElement)(ue.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Ze=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Ke=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Ne,keywords:["tweet",Object(Q.__)("social")],description:Object(Q.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ae,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:He,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Facebook post."),previewable:!1},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Le,keywords:[Object(Q.__)("image"),Object(Q.__)("social")],description:Object(Q.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Ie,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],responsive:!1,description:Object(Q.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:ze,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:De,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Ve,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Fe,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],$e=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:qe,description:Object(Q.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Be,description:Object(Q.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Re,description:Object(Q.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Be,keywords:["polldaddy",Object(Q.__)("survey")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object($.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ze,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Me,description:Object(Q.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Be,description:Object(Q.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Be,description:Object(Q.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Be,description:Object(Q.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:ze,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Be,description:Object(Q.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:Ge,description:Object(Q.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:ze,description:Object(Q.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Re,description:Object(Q.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Be,description:Object(Q.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Be,description:Object(Q.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Me,description:Object(Q.__)("Embed SmugMug content."),previewable:!1},patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:ze,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Be,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object($.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Q.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Re,description:Object(Q.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Ue,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Re,description:Object(Q.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:We,keywords:[Object(Q.__)("ebook")],responsive:!1,description:Object(Q.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Ye=[{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"}],Qe=r(105),Je=r.n(Qe),Xe=r(60),et=r.n(Xe);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}var rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},nt=function(e){return Object(Y.includes)(e,'class="wp-embedded-content"')},ot=function(e,t){var r=e.preview,n=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,r=[].concat(Object(q.a)(Ke),Object(q.a)($e));t1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r){for(var n={"wp-has-aspect-ratio":!1},o=0;o=b.ratio)return Je()(t,(u={},Object(Z.a)(u,b.className,r),Object(Z.a)(u,"wp-has-aspect-ratio",r),u))}return t}function at(e,t){var r=Object(J.createElement)("a",{href:e},e);t(Object($.createBlock)("core/paragraph",{content:Object(J.renderToString)(r)}))}var it=et()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Y.kebabCase)(Object(Y.toLower)(""!==s?s:t));return nt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=ct(l,r,n&&o),c})); +e.exports=function(){"use strict";function e(e,t){for(var r=0;ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=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,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},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),o=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:o,isLight:!o}}},{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,o),c&&e(n,c),r}()}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(27);function o(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}}},300:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},301:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},302:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},303:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.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=c},31:function(e,t){!function(){e.exports=this.wp.url}()},316:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.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=c},35: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}))},42: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}))},43:function(e,t){!function(){e.exports=this.wp.blob}()},44:function(e,t){!function(){e.exports=this.moment}()},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},450:function(e,t,r){"use strict";r.r(t),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 we}));var o={};r.r(o),r.d(o,"metadata",(function(){return Tt})),r.d(o,"name",(function(){return Bt})),r.d(o,"settings",(function(){return zt}));var c={};r.r(c),r.d(c,"metadata",(function(){return Kt})),r.d(c,"name",(function(){return Qt})),r.d(c,"settings",(function(){return Yt}));var a={};r.r(a),r.d(a,"metadata",(function(){return mr})),r.d(a,"name",(function(){return dr})),r.d(a,"settings",(function(){return pr}));var i={};r.r(i),r.d(i,"metadata",(function(){return Kr})),r.d(i,"name",(function(){return Qr})),r.d(i,"settings",(function(){return Yr}));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 Un}));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 Qn}));var m={};r.r(m),r.d(m,"metadata",(function(){return no})),r.d(m,"name",(function(){return oo})),r.d(m,"settings",(function(){return co}));var d={};r.r(d),r.d(d,"metadata",(function(){return bo})),r.d(d,"name",(function(){return mo})),r.d(d,"settings",(function(){return po}));var p={};r.r(p),r.d(p,"metadata",(function(){return Oo})),r.d(p,"name",(function(){return jo})),r.d(p,"settings",(function(){return yo}));var g={};r.r(g),r.d(g,"metadata",(function(){return Do})),r.d(g,"name",(function(){return Fo})),r.d(g,"settings",(function(){return Uo}));var h={};r.r(h),r.d(h,"metadata",(function(){return qo})),r.d(h,"name",(function(){return Zo})),r.d(h,"settings",(function(){return $o}));var f={};r.r(f),r.d(f,"metadata",(function(){return _c})),r.d(f,"name",(function(){return kc})),r.d(f,"settings",(function(){return Cc}));var v={};r.r(v),r.d(v,"metadata",(function(){return ia})),r.d(v,"name",(function(){return la})),r.d(v,"settings",(function(){return sa}));var O={};r.r(O),r.d(O,"metadata",(function(){return ha})),r.d(O,"name",(function(){return fa})),r.d(O,"settings",(function(){return va}));var j={};r.r(j),r.d(j,"metadata",(function(){return ka})),r.d(j,"name",(function(){return Ca})),r.d(j,"settings",(function(){return Ea}));var y={};r.r(y),r.d(y,"metadata",(function(){return Za})),r.d(y,"name",(function(){return $a})),r.d(y,"settings",(function(){return Ka}));var w={};r.r(w),r.d(w,"metadata",(function(){return Xa})),r.d(w,"name",(function(){return ei})),r.d(w,"settings",(function(){return ti}));var _={};r.r(_),r.d(_,"metadata",(function(){return hi})),r.d(_,"name",(function(){return fi})),r.d(_,"settings",(function(){return vi}));var k={};r.r(k),r.d(k,"metadata",(function(){return Ai})),r.d(k,"name",(function(){return Ii})),r.d(k,"settings",(function(){return Hi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Vi})),r.d(C,"name",(function(){return Di})),r.d(C,"settings",(function(){return Fi}));var E={};r.r(E),r.d(E,"metadata",(function(){return qi})),r.d(E,"name",(function(){return Zi})),r.d(E,"settings",(function(){return $i}));var x={};r.r(x),r.d(x,"metadata",(function(){return Yi})),r.d(x,"name",(function(){return Ji})),r.d(x,"settings",(function(){return Xi}));var S={};r.r(S),r.d(S,"metadata",(function(){return rl})),r.d(S,"name",(function(){return nl})),r.d(S,"settings",(function(){return ol}));var P={};r.r(P),r.d(P,"metadata",(function(){return vl})),r.d(P,"name",(function(){return Ol})),r.d(P,"settings",(function(){return jl}));var T={};r.r(T),r.d(T,"metadata",(function(){return Cl})),r.d(T,"name",(function(){return El})),r.d(T,"settings",(function(){return xl}));var B={};r.r(B),r.d(B,"metadata",(function(){return Pl})),r.d(B,"name",(function(){return Tl})),r.d(B,"settings",(function(){return Bl}));var z={};r.r(z),r.d(z,"metadata",(function(){return Vl})),r.d(z,"name",(function(){return Dl})),r.d(z,"settings",(function(){return Fl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Ql})),r.d(N,"name",(function(){return Yl})),r.d(N,"settings",(function(){return Jl}));var M={};r.r(M),r.d(M,"metadata",(function(){return ns})),r.d(M,"name",(function(){return os})),r.d(M,"settings",(function(){return cs}));var R={};r.r(R),r.d(R,"metadata",(function(){return us})),r.d(R,"name",(function(){return bs})),r.d(R,"settings",(function(){return ms}));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 I={};r.r(I),r.d(I,"metadata",(function(){return ys})),r.d(I,"name",(function(){return ws})),r.d(I,"settings",(function(){return _s}));var H={};r.r(H),r.d(H,"metadata",(function(){return tu})),r.d(H,"name",(function(){return ru})),r.d(H,"settings",(function(){return nu}));var L={};r.r(L),r.d(L,"metadata",(function(){return cu})),r.d(L,"name",(function(){return au})),r.d(L,"settings",(function(){return iu}));var V={};r.r(V),r.d(V,"metadata",(function(){return bu})),r.d(V,"name",(function(){return mu})),r.d(V,"settings",(function(){return du}));var D={};r.r(D),r.d(D,"metadata",(function(){return ju})),r.d(D,"name",(function(){return yu})),r.d(D,"settings",(function(){return wu}));var F={};r.r(F),r.d(F,"metadata",(function(){return Cu})),r.d(F,"name",(function(){return Eu})),r.d(F,"settings",(function(){return xu}));var U={};r.r(U),r.d(U,"metadata",(function(){return Ru})),r.d(U,"name",(function(){return Au})),r.d(U,"settings",(function(){return Iu}));var G={};r.r(G),r.d(G,"metadata",(function(){return Fu})),r.d(G,"name",(function(){return Uu})),r.d(G,"settings",(function(){return Gu}));var W={};r.r(W),r.d(W,"metadata",(function(){return Ku})),r.d(W,"name",(function(){return Qu})),r.d(W,"settings",(function(){return Yu}));var q=r(18),Z=r(5),$=(r(100),r(101),r(6)),K=r(11),Q=r(2),Y=r(1),J=r(0),X=r(7),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),te=r(9),re=r.n(te);function ne(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"}},Ce=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!$.RichText.isEmpty(c)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(se.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!$.RichText.isEmpty(o)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}],Ee=r(43),xe=r(10),Se=r(31),Pe=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),Te=r(216),Be=[{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 Ae(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 Ie(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"')},Ve=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,o=e.attributes,c=(o=void 0===o?{}:o).url,a=o.providerNameSlug,i=o.type;if(c&&Object(K.getBlockType)("core/embed")){var l=He(c),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(K.createBlock)("core/embed",Ie({url:c},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",Ie(Ie({url:c},b.attributes),r))}},De=function(e){var t=Be.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 o=n.body.querySelector("iframe");if(o&&o.height&&o.width)for(var c=(o.width/o.height).toFixed(2),a=0;a=i.ratio)return Ne()(De(t),i.className,"wp-has-aspect-ratio")}return t}var Ue=Re()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Q.kebabCase)((s||t).toLowerCase());return Le(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=Fe(l,r,n&&o),c})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -26,4 +21,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 lt=function(e,t){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var st=function(){return(st=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru*o?{width:u*o,height:u}:{width:s,height:s/o}}function dt(e,t,r,n,o){void 0===o&&(o=0);var c=_t(t.width,t.height,o),a=c.width,i=c.height;return{x:pt(e.x,a,r.width,n),y:pt(e.y,i,r.height,n)}}function pt(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function ht(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function gt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function ft(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?vt:Ot,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},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:st(st({},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 vt(e,t){return Math.min(e,Math.max(0,t))}function Ot(e,t){return t}function jt(e,t,r){var n=t.width/t.naturalWidth,o=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 o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function yt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function wt(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function _t(e,t,r){var n=e/2,o=t/2,c=[wt(0,0,n,o,r),wt(e,0,n,o,r),wt(e,t,n,o,r),wt(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function kt(){for(var e=[],t=0;t0})).join(" ").trim()}var Ct=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 o=jt(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c=r.imageRef||r.videoRef;if(c&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:c.offsetWidth,height:c.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===(o=r.videoRef)||void 0===o?void 0:o.videoHeight)||0};var a=r.props.cropSize?r.props.cropSize:mt(c.offsetWidth,c.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);r.setState({cropSize:a},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,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},r.dragStartCrop=st({},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,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?dt(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;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),o=r.props.zoom-e.deltaY*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,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?dt(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.emitCropData=function(){if(r.state.cropSize){var e=ft(r.props.restrictPosition?dt(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),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?dt(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}lt(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,o;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===(o=this.props.cropSize)||void 0===o?void 0:o.width)||this.computeSizes(),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=ht(r,n),this.lastPinchRotation=gt(r,n),this.onDragStart(yt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=yt(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=ht(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=gt(n,o),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,o=t.mediaProps,c=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,h=d.cropAreaStyle,g=d.mediaStyle,f=t.classes,v=f.containerClassName,O=f.cropAreaClassName,j=f.mediaClassName;return bt.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:kt("reactEasyCrop_Container",v)},r?bt.a.createElement("img",st({alt:"",className:kt("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:st(st({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&bt.a.createElement("video",st({autoPlay:!0,loop:!0,muted:!0,className:kt("reactEasyCrop_Video",j)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:st(st({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&bt.a.createElement("div",{style:st(st({},h),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:kt("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",O)}))},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}(bt.a.Component),Et=r(154),xt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),St=r(292),Pt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"})),Tt=r(45),Bt=r.n(Tt),zt={position:"bottom right",isAlternate:!0};function Mt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick,c=e.value;return Object(J.createElement)(ue.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(J.createElement)(ue.MenuItem,{key:n,isDisabled:r,onClick:function(){o(n)},role:"menuitemradio",isSelected:n===c,icon:n===c?Et.a:void 0},t)})))}function Rt(e){var t=e.isDisabled,r=e.onClick,n=e.value,o=e.defaultValue;return Object(J.createElement)(ue.DropdownMenu,{icon:xt,label:Object(Q.__)("Aspect Ratio"),popoverProps:zt,className:"wp-block-image__aspect-ratio"},(function(e){var c=e.onClose;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Mt,{isDisabled:t,onClick:function(e){r(e),c()},value:n,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(J.createElement)(Mt,{label:Object(Q.__)("Landscape"),isDisabled:t,onClick:function(e){r(e),c()},value:n,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(J.createElement)(Mt,{label:Object(Q.__)("Portrait"),isDisabled:t,onClick:function(e){r(e),c()},value:n,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 Nt(e){var t=e.id,r=e.url,n=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(be.useDispatch)("core/notices").createErrorNotice,b=Object(J.useState)(!1),m=Object(se.a)(b,2),d=m[0],p=m[1],h=Object(J.useState)(null),g=Object(se.a)(h,2),f=g[0],v=g[1],O=Object(J.useState)({x:0,y:0}),j=Object(se.a)(O,2),y=j[0],w=j[1],_=Object(J.useState)(100),k=Object(se.a)(_,2),C=k[0],E=k[1],x=Object(J.useState)(o/c),S=Object(se.a)(x,2),P=S[0],T=S[1],B=Object(J.useState)(0),z=Object(se.a)(B,2),M=z[0],R=z[1],N=Object(J.useState)(),A=Object(se.a)(N,2),H=A[0],L=A[1],I=a,D=i||l*c/o,V=o/c;return M%180==90&&(D=l*o/c,V=c/o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:re()("wp-block-image__crop-area",{"is-applying":d}),style:{width:I,height:D}},Object(J.createElement)(Ct,{image:H||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:C/100,aspect:P,onCropChange:w,onCropComplete:function(e){v(e)},onZoomChange:function(e){E(100*e)}}),d&&Object(J.createElement)(ue.Spinner,null)),Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:zt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(J.createElement)(ue.ToolbarButton,{icon:St.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(J.createElement)(ue.RangeControl,{min:100,max:300,value:Math.round(C),onChange:E})}}),Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(e){return Object(J.createElement)(Rt,{toggleProps:e,isDisabled:d,onClick:T,value:P,defaultValue:o/c})}))),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{icon:Pt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(M+90)%360;if(0===e)return L(),R(e),T(1/P),void w({x:-y.y*V,y:y.x*V});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,o=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||(o=r.height);var c=r.getContext("2d");c.translate(n,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),r.toBlob((function(t){L(URL.createObjectURL(t)),R(e),T(1/P),w({x:-y.y*V,y:y.x*V})}))}},disabled:d})),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),M>0&&(e.rotation=M),e.src=r,Bt()({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(J.createElement)(ue.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var At=["image"];function Ht(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,o=t.alt,c=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,h=t.linkTarget,g=t.sizeSlug,f=e.setAttributes,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,C=Object(be.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),E=Object(be.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(Y.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),x=E.imageEditing,S=E.imageSizes,P=E.isRTL,T=E.maxWidth,B=E.mediaUpload,z=Object(be.useDispatch)("core/block-editor").toggleSelection,M=Object(be.useDispatch)("core/notices"),R=M.createErrorNotice,N=M.createSuccessNotice,A=Object(xe.useViewportMatch)("medium"),H=Object(J.useState)(!1),L=Object(se.a)(H,2),I=L[0],D=L[1],V=Object(Y.includes)(["wide","full"],a),F=Object(J.useState)({}),G=Object(se.a)(F,2),U=G[0],W=U.naturalWidth,q=U.naturalHeight,Z=G[1],X=Object(J.useState)(!1),ee=Object(se.a)(X,2),te=ee[0],re=ee[1],ne=Object(J.useState)(),oe=Object(se.a)(ne,2),ce=oe[0],ae=oe[1],ie=function(e,t){var r=Object(J.useState)(),n=Object(se.a)(r,2),o=n[0],c=n[1];function a(){c(e.current.clientWidth)}return Object(J.useEffect)(a,t),Object(J.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),o}(k,[a]),le=!V&&A,me=Object(Y.map)(Object(Y.filter)(S,(function(e){var t=e.slug;return Object(Y.get)(C,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(J.useEffect)((function(){v||D(!1)}),[v]),Object(J.useEffect)((function(){Vt(i,n)&&v&&!ce&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return ae(e)}))}),[i,n,v,ce]),Object(J.useEffect)((function(){v||re(!1)}),[v]);var de,pe=i&&W&&q&&x,he=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,!te&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:C&&C.source_url,mediaLink:C&&C.link,linkTarget:h,linkClass:u,rel:s})),pe&&!te&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){return re(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ce&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){B({filesList:[ce],onFileChange:function(e){var t=Object(se.a)(e,1)[0];y(t),Object(Ee.isBlobURL)(t.url)||(ae(),N(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:At,onError:function(e){R(e,{type:"snackbar"})}})},icon:Te.a,label:Object(Q.__)("Upload external image")})),!te&&Object(J.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:At,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Image settings")},Object(J.createElement)(ue.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:o,onChange:function(e){f({alt:e})},help:Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.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(J.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(Y.get)(C,["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:g,width:d,height:p,imageSizeOptions:me,isResizable:le,imageWidth:W,imageHeight:q}))),Object(J.createElement)(K.InspectorAdvancedControls,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(J.createElement)(J.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(J.createElement)(ue.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.)")))}))),ge=function(e){var t=Object(Se.getPath)(e);if(t)return Object(Y.last)(t.split("/"))}(n);de=o||(ge?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),ge):Object(Q.__)("This image has an empty alt attribute"));var fe,ve,Oe=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:n,alt:de,onClick:function(){I&&D(!1)},onError:function(){var e;void 0!==(e=ot({attributes:{url:n}}))&&j(e)},onLoad:function(e){Z(Object(Y.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ee.isBlobURL)(n)&&Object(J.createElement)(ue.Spinner,null));if(ie&&W&&q){var je=W>ie;fe=je?ie:W,ve=je?ie*(q/W):q}if(pe&&te)Oe=Object(J.createElement)(Nt,{id:i,url:n,setAttributes:f,naturalWidth:W,naturalHeight:q,width:d,height:p,clientWidth:ie,setIsEditingImage:re});else if(le&&fe){var ye=d||fe,we=p||ve,_e=W/q,ke=W 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",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,lightBlockWrapper:!0}},$t=Kt.name,Yt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo")],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:Zt,edit:Ft,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=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,h=r.title,g=Object(Y.isEmpty)(l)?void 0:l,f=re()((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)),v=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),O=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:g},v):v,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},O)):Object(J.createElement)("figure",{className:f},O)},deprecated:Ce},Qt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Jt(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;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($.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object($.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(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})})))),r&&"

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

    "===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(wr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/quote",function(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:kr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(J.createElement)(ue.BlockQuotation,{className:re()(a,Object(Z.a)({},"has-text-align-".concat(l),l))},Object(J.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:o,onRemove:function(e){var t=!u||0===u.length;!e&&t&&c([])},placeholder:Object(Q.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object($.createBlock)("core/quote",function(e){for(var t=1;t

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:Or},Tr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Br(e){return Math.min(3,e.images.length)}var zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Y.pick)(e,["alt","id","link","caption"]);r.url=Object(Y.get)(e,["sizes",t,"url"])||Object(Y.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Y.get)(e,["sizes","full","url"])||Object(Y.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};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 Rr(e){for(var t=1;t0&&Object(J.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(Y.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Rr({},e,{ids:Object(Y.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,o=void 0===n?Br(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.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(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.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,o=void 0===n?Br(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.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(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],Ar=r(20),Hr=r(19),Lr=r(12),Ir=r(23),Dr=r(16),Vr=r(22),Fr=r(81),Gr=Object(J.createElement)(K.BlockIcon,{icon:Tr}),Ur=r(294),Wr=r(293),qr=r(301),Zr=r(176);function Kr(){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}}var $r=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Kr()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Lr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Lr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Lr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Lr.a)(e)),e.onEdit=e.onEdit.bind(Object(Lr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Lr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Lr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(Hr.a)(n,[{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!==[or.BACKSPACE,or.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,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),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,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=zr(e,i);(function(e,t){return!e&&Object(Ee.isBlobURL)(t)})(n,o)&&c&&(l=Object(Y.omit)(l,["alt"])),a&&!Object(Y.get)(l,["caption"])&&(l=Object(Y.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,o=t.id,c=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,h=t["aria-label"],g=this.state.isEditing;switch(c){case"media":e=r;break;case"attachment":e=a}var f=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(J.createElement)(ue.Spinner,null)),v=re()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(J.createElement)("figure",{className:v},!g&&(e?Object(J.createElement)("a",{href:e},f):f),g&&Object(J.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:r}}),Object(J.createElement)(ue.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(J.createElement)(ue.Button,{icon:Ur.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(ue.Button,{icon:Wr.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)(ue.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(J.createElement)(ue.Button,{icon:qr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(J.createElement)(ue.Button,{icon:Zr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!g&&(s||u)&&Object(J.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}))}}]),n}(J.Component),Yr=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(be.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])($r);function Qr(e){var t=e.isHidden,r=Object(yr.a)(e,["isHidden"]);return t?Object(J.createElement)(ue.VisuallyHidden,Object(_e.a)({as:K.RichText},r)):Object(J.createElement)(K.RichText,r)}var Jr=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=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,h=e.insertBlocksAfter,g=r.align,f=r.columns,v=void 0===f?Br(r):f,O=r.caption,j=r.imageCrop,y=r.images;return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(g),g),Object(Z.a)(t,"columns-".concat(v),v),Object(Z.a)(t,"is-cropped",j),t))},Object(J.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(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(Yr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&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(J.createElement)(Qr,{isHidden:!o&&K.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return h(Object($.createBlock)("core/paragraph"))}}))};function Xr(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 en(e){for(var t=1;t0&&Object(Y.every)(n,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var o=Object(Y.map)(n,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(Y.forEach)(n,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=e.insertBlocksAfter,a=t.columns,i=void 0===a?Br(t):a,l=t.imageCrop,s=t.images,u=t.linkTo,b=t.sizeSlug,m=!!s.length,d=Object(J.createElement)(K.MediaPlaceholder,{addToGallery:m,isAppender:m,className:r,disableMediaButtons:m&&!n,icon:!m&&Gr,labels:{title:!m&&Object(Q.__)("Gallery"),instructions:!m&&on},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:nn,multiple:!0,value:s,onError:this.onUploadError,notices:m?void 0:o,onFocus:this.props.onFocus});if(!m)return d;var p=this.getImagesSizeOptions(),h=m&&!Object(Y.isEmpty)(p);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Gallery settings")},s.length>1&&Object(J.createElement)(ue.RangeControl,Object(_e.a)({label:Object(Q.__)("Columns"),value:i,onChange:this.setColumnsNumber,min:1,max:Math.min(8,s.length)},cn,{required:!0})),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!l,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Link to"),value:u,onChange:this.setLinkTo,options:rn}),h&&Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Image size"),value:b,options:p,onChange:this.updateImagesSize}))),o,Object(J.createElement)(Jr,Object(_e.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption,insertBlocksAfter:c})))}}]),n}(J.Component),ln=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Y.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Y.reduce)(a,(function(e,t){var n=Object(Y.get)(r,["sizes",t.slug,"url"]),o=Object(Y.get)(r,["media_details","sizes",t.slug,"source_url"]);return en({},e,Object(Z.a)({},t.slug,n||o))}),{});return en({},e,Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),ue.withNotices,Object(Fr.withViewportMatch)({isNarrow:"< small"})])(an);var sn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},un={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(Y.every)(e,["align",r])?r:void 0,n=Object(Y.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Y.filter)(e,(function(e){return e.url}));return Object($.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(Y.toString)(t),url:r,alt:n,caption:o}})),ids:o.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 sn(t).map((function(e){return{id:Object(Y.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return sn(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,r=void 0===t?"attachment":t;return"file"===r?"media":r}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Y.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object($.createBlock)("core/gallery",{images:e.map((function(e){return zr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object($.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object($.createBlock)("core/image",{align:r})}}]},bn={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",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},mn=bn.name,dn={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:Tr,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:un,edit:ln,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?Br(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(J.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(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:Nr},pn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),hn=r(83),gn=r.n(hn);var fn={name:"core/archives",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},vn=fn.name,On={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:pn,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Archives settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/archives",attributes:t})))}},jn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),yn=[{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,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],wn=["audio"];var _n=Object(ue.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=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(be.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function g(e){if(e!==d){var t=ot({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function f(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(J.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:function(e){var t=Object(se.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:wn})}}),[]),d?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:wn,accept:"audio/*",onSelect:v,onSelectURL:g,onError:f})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Audio settings")},Object(J.createElement)(ue.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(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(J.createElement)(ue.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(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||c)&&Object(J.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($.createBlock)("core/paragraph"))}}))):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:jn}),onSelect:v,onSelectURL:g,accept:"audio/*",allowedTypes:wn,value:t,notices:a,onError:f}))}));var kn={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($.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},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}}}}]},Cn={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,lightBlockWrapper:!0}},En=Cn.name,xn={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:jn,transforms:kn,deprecated:yn,edit:_n,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},Sn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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($.createBlock)("core/buttons",{},e.map((function(e){return Object($.createBlock)("core/button",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 Bn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,h=e.textColor,g=e.gradient,f=e.style,v=Object(K.getColorClassName)("background-color",p),O=Object(K.__experimentalGetGradientClass)(g),j=Object(K.getColorClassName)("color",h),y=re()(j,O,(a={},Object(Z.a)(a,v,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!v),Object(Z.a)(a,"has-text-color",h||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(o=f.color)||void 0===o?void 0:o.background)||g||(null==f||null===(c=f.color)||void 0===c?void 0:c.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(K.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(h){var k=Object(K.getColorObjectByAttributeValues)(t,h);w.color=k.color}}return{className:y||void 0,style:w}}function Wn(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 qn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Y.unescape)(e.name).trim():Object(Q.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.VisuallyHidden,{as:"label",htmlFor:o},Object(Q.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Y.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Categories settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(ue.Placeholder,{icon:jo,label:Object(Q.__)("Categories")},Object(J.createElement)(ue.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),n}(J.Component),_o=Object(xe.compose)(Object(be.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),xe.withInstanceId)(wo),ko={name:"core/categories",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},Co=ko.name,Eo={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:Oo,example:{},edit:_o},xo=r(302);var So=r(89);function Po(e){return e.replace(/\[/g,"[")}function To(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Bo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object($.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object($.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":{}}}}}}}]},zo={name:"core/code",category:"text",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{anchor:!0,html:!1,lightBlockWrapper:!0}},Mo=zo.name,Ro={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:xo.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:Bo,edit:function(e){var t=e.attributes,r=e.setAttributes;return Object(J.createElement)(K.__experimentalBlock.pre,null,Object(J.createElement)(K.PlainText,{__experimentalVersion:2,tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)("code",null,(t=r.content,Object(Y.flow)(So.escapeEditableHTML,Po,To)(t||""))))}},No=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Ao(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 Ho(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Lo(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lo(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f: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.")}var n,o,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw o}}}}function Lo(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(Y.sumBy)(e,(function(e){return Fo(e,t)}))}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Fo(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Wo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Go(e,r),o=t-n,c=o/e.length;return Object(Y.mapValues)(Uo(e,r),(function(e){return Vo(e+c)}))}function qo(e,t){return e.map((function(e){return Object(Y.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Zo=["core/column"];var Ko=Object(be.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=Vo(100/o),b=Wo(i,100-u);i=[].concat(Object(q.a)(qo(i,b)),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column")}))));else{if(i=Object(Y.dropRight)(i,n-o),l)i=qo(i,Wo(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=re()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c));return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:2,max:Math.max(6,a)}),a>6&&Object(J.createElement)(ue.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(J.createElement)(K.InnerBlocks,{allowedBlocks:Zo,orientation:"horizontal",__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:i},renderAppender:!1}))})),$o=function e(t){return Object(Y.map)(t,(function(t){var r=Object(se.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object($.createBlock)(n,o,e(a))}))},Yo=function(e){var t=e.clientId,r=e.name,n=Object(be.useSelect)((function(e){var n=e("core/blocks"),o=n.getBlockVariations,c=n.getBlockType,a=n.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:a(r,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(r,"block")}}),[t,r]),o=n.blockType,c=n.defaultVariation,a=n.hasInnerBlocks,i=n.variations,l=Object(be.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(J.createElement)(Ko,e):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(Y.get)(o,["icon","src"]),label:Object(Y.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,$o(t.innerBlocks))},allowSkip:!0}))};var Qo=[{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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"]}],Jo={name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,lightBlockWrapper:!0,__experimentalColor:{gradients:!0,linkColor:!0}}},Xo=Jo.name,ec={title:Object(Q.__)("Columns"),icon:No,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Qo,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Do,edit:Yo,save:function(e){var t=e.attributes.verticalAlignment,r=re()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(J.createElement)("div",{className:r||void 0},Object(J.createElement)(K.InnerBlocks.Content,null))}},tc=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var rc=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=e.setAttributes,c=e.clientId,a=re()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),i=Object(be.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(c).length>0,rootClientId:n(c)}}),[c]),l=i.hasChildBlocks,s=i.rootClientId,u=Object(be.useDispatch)("core/block-editor").updateBlockAttributes,b=Number.isFinite(n);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:r})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Column settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Percentage width"),value:n||"",onChange:function(e){o({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===n?Object(Q.__)("Auto"):void 0}))),Object(J.createElement)(K.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:function(){return Object(J.createElement)(K.InnerBlocks.ButtonBlockAppender,null)},__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:a,style:b?{flexBasis:n+"%"}:void 0}}))};var nc={name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},supports:{anchor:!0,reusable:!1,html:!1,lightBlockWrapper:!0}},oc=nc.name,cc={title:Object(Q.__)("Column"),icon:tc,description:Object(Q.__)("A single column within a columns block."),edit:rc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},ac=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 ic(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 lc={"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 sc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var uc=[{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 bc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function mc(e){return function(t){if(t&&t.url){var r;if(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,o=Object(J.useState)(!1),c=Object(se.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&Sc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(wc()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(y,h,l.color,x),P=Object(J.useState)(null),T=Object(se.a)(P,2),B=T[0],z=T[1],M=b.removeAllNotices,R=b.createErrorNotice,N=O?"".concat(v).concat(O):v,A=kc({},"image"===p?sc(y):{},{backgroundColor:l.color,minHeight:B||N||void 0});k&&!y&&(A.background=k),g&&(A.backgroundPosition="".concat(100*g.x,"% ").concat(100*g.y,"%"));var H=!!(y||l.color||k),L=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,H&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:m,onChange:function(e){return c({contentPosition:e})}}),Object(J.createElement)(K.MediaReplaceFlow,{mediaId:d,mediaURL:y,allowedTypes:Cc,accept:"image/*,video/*",onSelect:E}))),Object(J.createElement)(K.InspectorControls,null,!!y&&Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings")},"image"===p&&Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:f,onChange:function(){c(kc({hasParallax:!f},f?{}:{focalPoint:void 0}))}}),"image"===p&&!f&&Object(J.createElement)(ue.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:y,value:g,onChange:function(e){return c({focalPoint:e})}}),"video"===p&&Object(J.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Q.__)("Clear Media")))),H&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Dimensions")},Object(J.createElement)(Pc,{value:B||v,unit:O,onChange:function(e){return c({minHeight:e})},onUnitChange:function(e){c({minHeightUnit:e})}})),Object(J.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:k,onColorChange:s,onGradientChange:C,label:Object(Q.__)("Color")}]},!!y&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return c({dimRatio:e})},min:0,max:100,required:!0})))));if(!H){var I=Object(J.createElement)(K.BlockIcon,{icon:ac}),D=Object(Q.__)("Cover");return Object(J.createElement)(J.Fragment,null,L,Object(J.createElement)(K.__experimentalBlock.div,{className:"is-placeholder"},Object(J.createElement)(K.MediaPlaceholder,{icon:I,labels:{title:D,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:E,accept:"image/*,video/*",allowedTypes:Cc,notices:i,onError:function(e){M(),R(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)(K.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:s,clearable:!1})))))}var V=re()(bc(h),(t={"is-dark-theme":S,"has-background-dim":0!==h,"has-parallax":f},Object(Z.a)(t,l.class,l.class),Object(Z.a)(t,"has-background-gradient",k),Object(Z.a)(t,_,!y&&_),Object(Z.a)(t,"has-custom-content-position",!pc(m)),t),dc(m));return Object(J.createElement)(J.Fragment,null,L,Object(J.createElement)(K.__experimentalBlock.div,{className:V,"data-url":y,style:A},Object(J.createElement)(xc,{values:null==j||null===(r=j.spacing)||void 0===r?void 0:r.padding,showValues:null==j||null===(n=j.visualizers)||void 0===n?void 0:n.padding}),Object(J.createElement)(Bc,{className:"block-library-cover__resize-container",onResizeStart:function(){c({minHeightUnit:"px"}),u(!1)},onResize:z,onResizeStop:function(e){u(!0),c({minHeight:e}),z(null)},showHandle:a}),"image"===p&&Object(J.createElement)("img",{ref:x,"aria-hidden":!0,alt:"",style:{display:"none"},src:y}),y&&k&&0!==h&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",_),style:{background:k}}),"video"===p&&Object(J.createElement)("video",{ref:x,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(K.InnerBlocks,{__experimentalTagName:"div",__experimentalPassedProps:{className:"wp-block-cover__inner-container"},template:Ec})))}));var Mc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video",anchor:c})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object($.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},Rc={name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{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,lightBlockWrapper:!0,__experimentalPadding:!0}},Nc=Rc.name,Ac={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:ac,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:Mc,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.overlayColor,m=r.url,d=r.minHeight,p=r.minHeightUnit,h=Object(K.getColorClassName)("background-color",b),g=Object(K.__experimentalGetGradientClass)(o),f=p?"".concat(d).concat(p):d,v="image"===n?sc(m):{};h||(v.backgroundColor=i),s&&!u&&(v.backgroundPosition="".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%")),a&&!m&&(v.background=a),v.minHeight=f||void 0;var O=re()(bc(l),h,(t={"has-background-dim":0!==l,"has-parallax":u,"has-background-gradient":o||a},Object(Z.a)(t,g,!m&&g),Object(Z.a)(t,"has-custom-content-position",!pc(c)),t),dc(c));return Object(J.createElement)("div",{className:O,style:v},m&&(o||a)&&0!==l&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",g),style:a?{background:a}:void 0}),"video"===n&&m&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},edit:zc,deprecated:vc},Hc=r(300),Lc=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,r&&Object(J.createElement)(ue.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Hc.a,onClick:i}))),n&&t&&Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},Ic=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(ue.Spinner,null),Object(J.createElement)("p",null,Object(Q.__)("Embedding…")))},Dc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(ue.Placeholder,{icon:Object(J.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(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(ue.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Vc(){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}}var Fc=window.FocusEvent,Gc=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Vc()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Lr.a)(e)),e.node=Object(J.createRef)(),e}return Object(Hr.a)(n,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Fc("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),n}(J.Component),Uc=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Gc);function Wc(){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}}var qc=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Wc()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Lr.a)(e)),e.state={interactive:!1},e}return Object(Hr.a)(n,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=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,h=o.scripts,g=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),O),y=Je()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(J.createElement)(Uc,{html:f}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(ue.SandBox,{html:f,scripts:h,title:j,type:y,onFocus:this.hideOverlay}),!g&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:Je()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(J.createElement)(ue.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:a},a)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),O))),(!K.RichText.isEmpty(l)||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object($.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),n}(J.Component);function Zc(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 Kc(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(o){var c=o.attributes,a=o.cannotEmbed,i=o.fetching,l=o.isSelected,s=o.onReplace,u=o.preview,b=o.setAttributes,m=o.themeSupportsResponsive,d=o.tryAgain,p=o.insertBlocksAfter,h=Object(J.useState)(c.url),g=Object(se.a)(h,2),f=g[0],v=g[1],O=Object(J.useState)(!1),j=Object(se.a)(O,2),y=j[0],w=j[1],_=function(){var t=c.className,n=c.allowResponsive;return Kc({},c,{},it(u,e,t,r,n))};if(Object(J.useEffect)((function(){if((null==u?void 0:u.html)&&a&&!i){var e=c.url.replace(/\/$/,"");v(e),w(!1),b({url:e})}}),[null==u?void 0:u.html,c.url]),Object(J.useEffect)((function(){u&&!y&&function(){if(b(_()),s){var e=ot(o,_());e&&s(e)}}()}),[u,y]),i)return Object(J.createElement)(Ic,null);var k=Object(Q.sprintf)(Object(Q.__)("%s URL"),e);if(!u||a||y)return Object(J.createElement)(Dc,{icon:t,label:k,onSubmit:function(e){e&&e.preventDefault(),w(!1),b({url:f})},value:f,cannotEmbed:a,onChange:function(e){return v(e.target.value)},fallback:function(){return at(f,s)},tryAgain:d});var C=_(),E=C.caption,x=C.type,S=C.allowResponsive,P=re()(C.className,o.className);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Lc,{showEditButton:u&&!a,themeSupportsResponsive:m,blockSupportsResponsive:r,allowResponsive:S,getResponsiveHelp:$c,toggleResponsive:function(){var e=c.allowResponsive,t=c.className,n=u.html,o=!e;b({allowResponsive:o,className:ct(n,t,r&&o)})},switchBackToURLInput:function(){return w(!0)}}),Object(J.createElement)(qc,{preview:u,previewable:n,className:P,url:f,type:x,caption:E,onCaptionChange:function(e){return b({caption:e})},isSelected:l,icon:t,label:k,insertBlocksAfter:p}))}}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}function Jc(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.createBlobURL)(e);t.push(Object($.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object($.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($.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($.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(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"audio")},transform:function(e){return Object($.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(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"video")},transform:function(e){return Object($.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(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"image")},transform:function(e){return Object($.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},pa={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}},ha=pa.name,ga={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:la,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:da,edit:ma,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!K.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)(K.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)(K.RichText.Content,{value:i})))}},fa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function va(){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}}var Oa=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(va()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Lr.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\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)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Q.__)("Preview"))))),Object(J.createElement)(ue.Disabled.Consumer,null,(function(t){return c||t?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.SandBox,{html:r.content,styles:a}),!e.props.isSelected&&Object(J.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(J.createElement)(K.PlainText,{value:r.content,onChange:function(e){return n({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))}}]),n}(J.Component),ja=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(Oa);var ya={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object($.createBlock)("core/html",{content:t})}}]},wa={name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},_a=wa.name,ka={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:fa,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""+Object(Q.__)("Welcome to the wonderful world of blocks…")+""}},edit:ja,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)},transforms:ya},Ca=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Ea=Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.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(J.createElement)(ue.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(J.createElement)(ue.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),xa=["image","video"];function Sa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Pa(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(yr.a)(e,["isSelected","isStackedOnMobile"]),o=Object(xe.useViewportMatch)("small","<");return Object(J.createElement)(ue.ResizableBox,Object(_e.a)({showHandle:t&&(!o||!r)},n))}function Ta(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:xa,accept:"image/*,video/*",onSelect:n}))}function Ba(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:Ea}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:xa,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var za=Object(ue.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,o=e.imageFill,c=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,h=Object(be.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var g={right:"left"===s,left:"right"===s},f="image"===u&&o?Sa(b,n):{},v={image:function(){return Object(J.createElement)("img",{src:b,alt:i})},video:function(){return Object(J.createElement)("video",{controls:!0,src:b})}};return Object(J.createElement)(Pa,{as:"figure",className:re()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:g,onResizeStart:function(){h(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){h(!0),r(parseInt(n.style.width))},axis:"x",isSelected:c,isStackedOnMobile:a},Object(J.createElement)(Ta,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||Y.noop)())}return Object(J.createElement)(Ba,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(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ga,edit:Fa,save:function(e){var t,r=e.attributes,n=r.isStackedOnMobile,o=r.mediaAlt,c=r.mediaPosition,a=r.mediaType,i=r.mediaUrl,l=r.mediaWidth,s=r.mediaId,u=r.verticalAlignment,b=r.imageFill,m=r.focalPoint,d=r.linkClass,p=r.href,h=r.linkTarget,g=r.rel,f=Object(Y.isEmpty)(g)?void 0:g,v=Object(J.createElement)("img",{src:i,alt:o,className:s&&"image"===a?"wp-image-".concat(s):null});p&&(v=Object(J.createElement)("a",{className:d,href:p,target:h,rel:f},v));var O,j={image:function(){return v},video:function(){return Object(J.createElement)("video",{controls:!0,src:i})}},y=re()((t={"has-media-on-the-right":"right"===c,"is-stacked-on-mobile":n},Object(Z.a)(t,"is-vertically-aligned-".concat(u),u),Object(Z.a)(t,"is-image-fill",b),t)),w=b?Sa(i,m):{};50!==l&&(O="right"===c?"auto ".concat(l,"%"):"".concat(l,"% auto"));var _={gridTemplateColumns:O};return Object(J.createElement)("div",{className:y,style:_},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:w},(j[a]||Y.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ha},Za=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function Ka(){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}}var $a=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Ka()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).setCommentsToShow=e.setCommentsToShow.bind(Object(Lr.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Hr.a)(n,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),n}(J.Component),Ya={name:"core/latest-comments",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},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}},Qa=Ya.name,Ja={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:$a},Xa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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;ty?o.slice(0,y):o,B=[{icon:oi,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===h},{icon:ci.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===h}],z=Object(ni.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,S,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:B})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":p},"columns-".concat(g),"grid"===h))},T.map((function(e,t){var r=Object(Y.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=s.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageSourceUrl,i=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(_),!!_)),l=w0?i.map((function(e){return e.id})):[],g=u("postType","post",Object(Y.pickBy)({categories:h,author:l,order:c,orderby:a,per_page:o},(function(e){return!Object(Y.isUndefined)(e)}))),f=d.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Y.get)(p,[n,"width"],0),defaultImageHeight:Object(Y.get)(p,[n,"height"],0),imageSizeOptions:f,latestPosts:Array.isArray(g)?g.map((function(e){if(e.featured_media){var t=b(e.featured_media),r=Object(Y.get)(t,["media_details","sizes",n,"source_url"],null);return r||(r=Object(Y.get)(t,"source_url",null)),ii({},e,{featuredImageSourceUrl:r})}return e})):g}}))(bi),di={name:"core/latest-posts",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null}},supports:{align:!0,html:!1}},pi=di.name,hi={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:Xa,keywords:[Object(Q.__)("recent posts")],example:{},edit:mi,deprecated:ri},gi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),fi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),vi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),Oi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),ji=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),yi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),wi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),_i=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),ki=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Ordered list settings")},Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};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 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 xi(e){for(var t=1;t1?n:Object(wr.replace)(n,/\n/g,wr.__UNSTABLE_LINE_SEPARATOR)})),wr.__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($.createBlock)("core/list",{values:Object(wr.toHTMLString)({value:Object(wr.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Si(e).ol,ul:Si(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($.createBlock)("core/list",xi({},Object($.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(wr.split)(Object(wr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),wr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object($.createBlock)("core/quote",{value:Object(wr.toHTMLString)({value:Object(wr.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($.createBlock)("core/pullquote",{value:Object(wr.toHTMLString)({value:Object(wr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Ti(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 Bi={name:"core/list",category:"text",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}},supports:{anchor:!0,className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0}},zi=Bi.name,Mi={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:oi,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Pi,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?function(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(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(wr.toHTMLString)({value:e})})})))),r&&"

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

    "===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(wr.split)(Object(wr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(wr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/pullquote",function(e){for(var t=1;t"+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:ml,edit:ul,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Y.includes)(u,rl)){var b=Object(K.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(J.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:il};function gl(){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}}var fl=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(gl()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).titleField=Object(J.createRef)(),e.editButton=Object(J.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Lr.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Lr.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===or.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,r=e.title,n=e.isSaving,o=e.isEditDisabled,c=e.onEdit,a=e.instanceId;return Object(J.createElement)(J.Fragment,null,!t&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},r),Object(J.createElement)(ue.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(Q.__)("Edit"))),(t||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(J.createElement)("input",{ref:this.titleField,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:r,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(J.createElement)(ue.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!r||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}}]),n}(J.Component),vl=Object(xe.withInstanceId)(fl);function Ol(){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}}var jl=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(Ol()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(e){var t,o=e.reusableBlock;return Object(Ar.a)(this,n),(t=r.apply(this,arguments)).startEditing=t.startEditing.bind(Object(Lr.a)(t)),t.stopEditing=t.stopEditing.bind(Object(Lr.a)(t)),t.setBlocks=t.setBlocks.bind(Object(Lr.a)(t)),t.setTitle=t.setTitle.bind(Object(Lr.a)(t)),t.save=t.save.bind(Object(Lr.a)(t)),t.state=o?{isEditing:o.isTemporary,title:o.title,blocks:Object($.parse)(o.content)}:{isEditing:!1,title:null,blocks:[]},t}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object($.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object($.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object($.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,r=e.reusableBlock,n=e.isFetching,o=e.isSaving,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!r&&n)return Object(J.createElement)(ue.Placeholder,null,Object(J.createElement)(ue.Spinner,null));if(!r)return Object(J.createElement)(ue.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable."));var b=Object(J.createElement)(K.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)(K.WritingFlow,null,Object(J.createElement)(K.BlockList,null)));return l||(b=Object(J.createElement)(ue.Disabled,null,b)),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(J.createElement)(vl,{isEditing:l,title:null!==s?s:r.title,isSaving:o&&!r.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),n}(J.Component),yl=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalFetchReusableBlocks,o=r.__experimentalUpdateReusableBlock,c=r.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(Y.partial)(n,a),onChange:Object(Y.partial)(o,a),onSave:Object(Y.partial)(c,a)}}))])(jl),wl={name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},_l=wl.name,kl={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:yl},Cl=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 El={name:"core/rss",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},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}},xl=El.name,Sl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:Cl,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(J.useState)(!t.feedURL),o=Object(se.a)(n,2),c=o[0],a=o[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 h(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}if(c)return Object(J.createElement)(ue.Placeholder,{icon:Cl,label:"RSS"},Object(J.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(J.createElement)(ue.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL"))));var g=[{icon:Hc.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:oi,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:ci.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:g})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("RSS settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:h("displayAuthor")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:h("displayDate")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:h("displayExcerpt")}),b&&Object(J.createElement)(ue.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(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(gn.a,{block:"core/rss",attributes:t})))}};var Pl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],Tl={name:"core/search",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},label:{type:"string"},placeholder:{type:"string",default:""},buttonText:{type:"string"}},supports:{align:!0,html:!1}},Bl=Tl.name,zl={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:St.a,keywords:[Object(Q.__)("find")],example:{},variations:Pl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=r.label,c=r.placeholder,a=r.buttonText;return Object(J.createElement)("div",{className:t},Object(J.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return n({label:e})}}),Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:c?void 0:Object(Q.__)("Optional placeholder…"),value:c,onChange:function(e){return n({placeholder:e.target.value})}}),Object(J.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({buttonText:e})}}))}},Ml=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Rl(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 Nl(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object($.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object($.createBlock)("core/group",{align:r},n)}}}]},edit:Ll,save:function(e){var t=e.attributes.tagName;return Object(J.createElement)(t,null,Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Hl},Fl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),Gl=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var Ul=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(Gl,{color:t,setColor:r}))}));var Wl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object($.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},ql={name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0}},Zl=ql.name,Kl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Fl,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:Wl,edit:Ul,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},$l=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Yl=r(137);var Ql=r(103),Jl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(Ql.removep)(Object(Ql.autop)(r))}}},priority:20}]},Xl={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},es=Xl.name,ts={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:$l,transforms:Jl,edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(xe.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(Yl.a,{icon:$l}),Object(Q.__)("Shortcode")),Object(J.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:c,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(J.createElement)(J.RawHTML,null,t.text)}},rs=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ns=Object(xe.compose)([Object(be.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,o=e.onResizeStart,c=e.onResizeStop,a=Object(J.useState)(!1),i=Object(se.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:20,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){o.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){c();var o=Math.min(parseInt(u+n.height,10),500);b(o),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}}),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Height in pixels"),min:20,max:Math.max(500,u),value:u,onChange:b}))))}));var os={name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},cs=os.name,as={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:rs,edit:ns,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},is=r(37),ls=r.n(is);var ss={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},us={name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},bs=us.name,ms={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:ss,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return ls()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)(K.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Q.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},ds=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),ps=[{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,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=re()(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(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],hs=r(288),gs=r(289),fs=r(290),vs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Os=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),js=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ys=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ws=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),_s=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),ks=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Cs(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 Es=["align"];function xs(e,t,r){if(!t)return e;var n=Object(Y.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Y.mapValues)(n,(function(e,n){return o&&o!==n?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:n,columnIndex:c,rowIndex:o},t)?r(e):e}))}}))}))}function Ss(e,t){var r=t.sectionName,n=t.rowIndex,o=t.columnCount,c=function(e){return Bs(e.head)?Bs(e.body)?Bs(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Y.get)(c,["cells","length"]):o;return a?Object(Z.a)({},r,[].concat(Object(q.a)(e[r].slice(0,n)),[{cells:Object(Y.times)(a,(function(e){var t=Object(Y.get)(c,["cells",e],{});return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex,a=c+e;o(Ps(n,{columnIndex:a})),this.setState({selectedCell:{rowIndex:0,columnIndex:a,type:"cell"}})}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Y.pick)(e,["head","body","foot"]);return Object(Y.mapValues)(n,(function(e){return Bs(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}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Rs({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:vs,title:Object(Q.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:Os,title:Object(Q.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:js,title:Object(Q.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:ys,title:Object(Q.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:ws,title:Object(Q.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:_s,title:Object(Q.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(Bs(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Q.__)("Header label"):"foot"===r&&(b=Object(Q.__)("Footer label")),Object(J.createElement)(K.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=t.insertBlocksAfter,l=this.state,s=l.initialRowCount,u=l.initialColumnCount,b=r.hasFixedLayout,m=r.caption,d=r.head,p=r.body,h=r.foot,g=Bs(d)&&Bs(p)&&Bs(h),f=this.renderSection;if(g)return Object(J.createElement)(ue.Placeholder,{label:Object(Q.__)("Table"),icon:Object(J.createElement)(K.BlockIcon,{icon:ds,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Column Count"),value:u,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Row Count"),value:s,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table"))));var v=re()(o.class,{"has-fixed-layout":b,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(t){return Object(J.createElement)(ue.DropdownMenu,{hasArrowIndicator:!0,icon:ks,toggleProps:t,label:Object(Q.__)("Edit table"),controls:e.getTableControls()})}))),Object(J.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Hs,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!b,onChange:this.onChangeFixedLayout}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!d||!d.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!h||!h.length),onChange:this.onToggleFooterSection})),Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:As}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:v},Object(J.createElement)(f,{name:"head",rows:d}),Object(J.createElement)(f,{name:"body",rows:p}),Object(J.createElement)(f,{name:"foot",rows:h})),Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:m,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})},__unstableOnSplitAtEnd:function(){return i(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),Ds=Ls("backgroundColor")(Is);var Vs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Fs={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Vs(e)},tfoot:{allowEmpty:!0,children:Vs(e)},tbody:{allowEmpty:!0,children:Vs(e)}}}}}}]},Gs={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}},Us=Gs.name,Ws={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:ds,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:Fs,edit:Ds,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=re()(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(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)(K.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:ps};var qs={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object($.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object($.createBlock)("core/column",{},[Object($.createBlock)("core/paragraph",{content:t})])})))}}]},Zs={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}},Ks=Zs.name,$s={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:qs,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=e.className,o=t.width,c=t.content,a=t.columns;return ls()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Y.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText,{tagName:"p",value:Object(Y.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,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Y.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText.Content,{tagName:"p",value:Object(Y.get)(n,[e,"children"])}))})))}},Ys=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Qs=[{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(J.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var Js={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},Xs={name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,lightBlockWrapper:!0}},eu=Xs.name,tu={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Ys,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:Js,deprecated:Qs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=e.mergeBlocks,c=t.textAlign,a=t.content;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)(K.RichText,{tagName:K.__experimentalBlock.pre,identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),className:re()(n,Object(Z.a)({},"has-text-align-".concat(c),c)),onMerge:o,textAlign:c}))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)(K.RichText.Content,{tagName:"pre",className:o,value:n})}},ru=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),nu=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=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(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.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(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(ue.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")}]}))};function ou(){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}}var cu=["video"],au=["image"],iu=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(ou()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).videoPlayer=Object(J.createRef)(),e.posterImageButton=Object(J.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Lr.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Lr.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Lr.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,r=e.mediaUpload,n=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ee.isBlobURL)(i)){var l=Object(Ee.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(e){var t=Object(se.a)(e,1)[0].url;o({src:t})},onError:function(e){n.createErrorNotice(e)},allowedTypes:cu})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,r=t.attributes,n=t.setAttributes;if(e!==r.src){var o=ot({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);n({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,r=t.id,n=t.caption,o=t.controls,c=t.poster,a=t.src,i=this.props,l=i.instanceId,s=i.isSelected,u=i.noticeUI,b=i.attributes,m=i.setAttributes,d=i.insertBlocksAfter,p=function(e){e&&e.url?m({src:e.url,id:e.id}):m({src:void 0,id:void 0})};if(!a)return Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:ru}),onSelect:p,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:cu,value:this.props.attributes,notices:u,onError:this.onUploadError}));var h="video-block__poster-image-description-".concat(l);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:r,mediaURL:a,allowedTypes:cu,accept:"video/*",onSelect:p,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Video settings")},Object(J.createElement)(nu,{setAttributes:m,attributes:b}),Object(J.createElement)(K.MediaUploadCheck,null,Object(J.createElement)(ue.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(ue.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(J.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:this.onSelectPoster,allowedTypes:au,render:function(t){var r=t.open;return Object(J.createElement)(ue.Button,{isPrimary:!0,onClick:r,ref:e.posterImageButton,"aria-describedby":h},e.props.attributes.poster?Object(Q.__)("Replace"):Object(Q.__)("Select"))}}),Object(J.createElement)("p",{id:h,hidden:!0},this.props.attributes.poster?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Q.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(J.createElement)(ue.Button,{onClick:this.onRemovePoster,isTertiary:!0},Object(Q.__)("Remove")))))),Object(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("video",{controls:o,poster:c,src:a,ref:this.videoPlayer})),(!K.RichText.isEmpty(n)||s)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return d(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),lu=Object(xe.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ue.withNotices,xe.withInstanceId])(iu);var su={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/video",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},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}}}}]},uu={name:"core/video",category:"media",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},supports:{anchor:!0,align:!0,lightBlockWrapper:!0}},bu=uu.name,mu={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:ru,keywords:[Object(Q.__)("movie")],transforms:su,edit:lu,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},du=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));function pu(){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}}var hu=function(e){Object(Vr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Dr.a)(t);if(pu()){var n=Object(Dr.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Ir.a)(this,e)});function n(){var e;return Object(Ar.a)(this,n),(e=r.apply(this,arguments)).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Lr.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Lr.a)(e)),e}return Object(Hr.a)(n,[{key:"getTaxonomyOptions",value:function(){var e=Object(Y.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(Y.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(q.a)(r))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,r=e.showTagCounts,n=this.getTaxonomyOptions(),o=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Taxonomy"),options:n,value:t,onChange:this.setTaxonomy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:r,onChange:this.toggleShowTagCounts})));return Object(J.createElement)(J.Fragment,null,o,Object(J.createElement)(gn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),n}(J.Component),gu=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(hu),fu={name:"core/tag-cloud",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},vu=fu.name,Ou={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:du,example:{},edit:gu},ju=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));function yu(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 wu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===or.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Q._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Q.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=r.editor.getBody();document.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Q.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),n}(J.Component);var Eu={name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},xu=Eu.name,Su={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:ju,edit:Cu,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},Pu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Tu=["core/social-link"],Bu=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]];var zu=function(){return Object(J.createElement)(K.InnerBlocks,{allowedBlocks:Tu,templateLock:!1,template:Bu,orientation:"horizontal",__experimentalTagName:K.__experimentalBlock.ul,__experimentalAppenderTagName:"li"})};var Mu={name:"core/social-links",category:"widgets",supports:{align:["left","center","right"],lightBlockWrapper:!0,anchor:!0}},Ru=Mu.name,Nu={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:Pu,edit:zu,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},Au=r(202),Hu=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))},Lu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:Hu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))}}],Iu=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(se.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Y.find)(Lu,{name:t}))?r.icon:Hu),h=function(e){var t=Object(Y.find)(Lu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),h),initialOpen:!1},Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)(K.__experimentalBlock.li,{className:d},Object(J.createElement)(ue.Button,{onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)(K.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(ue.Button,{icon:Au.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},Du={name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},supports:{reusable:!1,html:!1,lightBlockWrapper:!0}},Vu=Du.name,Fu={title:Object(Q.__)("Social Icon"),icon:Pu,edit:Iu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Lu},Gu=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object($.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object($.registerBlockType)(n,r)}},Uu=function(){[n,o,c,i,k,a,N,l,s,u,b,m,d,p,h,g,f,v].concat(Object(q.a)(aa),Object(q.a)(ia),[O,M,window.wp&&window.wp.oldEditor?G:null,j,y,w,_,C,E,x,S,P,B,z,R,T,U,W,A,H,L,F,I,D,V]).forEach(Gu),Object($.setDefaultBlockName)(je),window.wp&&window.wp.oldEditor&&Object($.setFreeformContentHandlerName)(xu),Object($.setUnregisteredTypeHandlerName)(Ai),Object($.setGroupingBlockName)(Dl)},Wu=void 0},44:function(e,t){!function(){e.exports=this.wp.blob}()},45: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.primitives}()},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function c(){var c,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=M(e,360),t=M(t,100),r=M(r,100),0===t)n=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,h;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=M(e,255),t=M(t,255),r=M(r,255);var n,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+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:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.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 h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(r).toString(16)),A(L(n))];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*M(this._r,255))+"%",g:l(100*M(this._g,255))+"%",b:l(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%)":"rgba("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[h(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 o=m(e);r="#"+g(o._r,o._g,o._b,o._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(v,arguments)},greyscale:function(){return this._applyModification(O,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(C,arguments)},tetrad:function(){return this._applyCombination(E,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]:H(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(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!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":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=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"},B=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function I(e){return N(e)/255}var D,V,F,G=(V="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",F="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+V),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.blockEditor}()},79: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*o?{width:u*o,height:u}:{width:s,height:s/o}}function Ke(e,t,r,n,o){void 0===o&&(o=0);var c=ct(t.width,t.height,o),a=c.width,i=c.height;return{x:Qe(e.x,a,r.width,n),y:Qe(e.y,i,r.height,n)}}function Qe(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function Ye(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Je(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?et:tt,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},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,o=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 o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ot(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function ct(e,t,r){var n=e/2,o=t/2,c=[ot(0,0,n,o,r),ot(e,0,n,o,r),ot(e,t,n,o,r),ot(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.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 o=rt(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c,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===(o=r.videoRef)||void 0===o?void 0:o.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===(c=r.state.cropSize)||void 0===c?void 0:c.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,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},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,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?Ke(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;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),o=r.props.zoom-e.deltaY*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,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.emitCropData=function(){if(r.state.cropSize){var e=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),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(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}Ge(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,o;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===(o=this.props.cropSize)||void 0===o?void 0:o.width)||this.computeSizes(),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=Ye(r,n),this.lastPinchRotation=Je(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=nt(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Ye(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=Je(n,o),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,o=t.mediaProps,c=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,v=f.containerClassName,O=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",v)},r?Ze.a.createElement("img",We({alt:"",className:at("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:We(We({},h),{transform:c||"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)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:We(We({},h),{transform:c||"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",O)}))},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(158),st=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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(303),bt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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(45),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick,c=e.value;return Object(J.createElement)(be.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(J.createElement)(be.MenuItem,{key:n,disabled:r,onClick:function(){o(n)},role:"menuitemradio",isSelected:n===c,icon:n===c?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,o=e.value,c=e.defaultValue;return Object(J.createElement)(be.DropdownMenu,{icon:st,label:Object(Y.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("Original"),aspect:c},{title:Object(Y.__)("Square"),aspect:1}]}),Object(J.createElement)(gt,{label:Object(Y.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("16:10"),aspect:1.6},{title:Object(Y.__)("16:9"),aspect:16/9},{title:Object(Y.__)("4:3"),aspect:4/3},{title:Object(Y.__)("3:2"),aspect:1.5}]}),Object(J.createElement)(gt,{label:Object(Y.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:o,aspectRatios:[{title:Object(Y.__)("10:16"),aspect:.625},{title:Object(Y.__)("9:16"),aspect:9/16},{title:Object(Y.__)("3:4"),aspect:3/4},{title:Object(Y.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(me.useDispatch)("core/notices").createErrorNotice,b=Object(J.useState)(!1),m=Object(ue.a)(b,2),d=m[0],p=m[1],g=Object(J.useState)(null),h=Object(ue.a)(g,2),f=h[0],v=h[1],O=Object(J.useState)({x:0,y:0}),j=Object(ue.a)(O,2),y=j[0],w=j[1],_=Object(J.useState)(100),k=Object(ue.a)(_,2),C=k[0],E=k[1],x=Object(J.useState)(o/c),S=Object(ue.a)(x,2),P=S[0],T=S[1],B=Object(J.useState)(0),z=Object(ue.a)(B,2),N=z[0],M=z[1],R=Object(J.useState)(),A=Object(ue.a)(R,2),I=A[0],H=A[1],L=a,V=i||l*c/o,D=o/c;return N%180==90&&(V=l*o/c,D=c/o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:re()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:V}},Object(J.createElement)(it,{image:I||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:C/100,aspect:P,onCropChange:w,onCropComplete:function(e){v(e)},onZoomChange:function(e){E(100*e)}}),d&&Object(J.createElement)(be.Spinner,null)),Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(J.createElement)(be.ToolbarButton,{icon:ut.a,label:Object(Y.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(J.createElement)(be.RangeControl,{min:100,max:300,value:Math.round(C),onChange:E})}}),Object(J.createElement)(be.ToolbarItem,null,(function(e){return Object(J.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:T,value:P,defaultValue:o/c})}))),Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{icon:bt,label:Object(Y.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),T(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,o=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||(o=r.height);var c=r.getContext("2d");c.translate(n,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),T(1/P),w({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.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(Y.sprintf)(Object(Y.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Y.__)("Apply")),Object(J.createElement)(be.ToolbarButton,{onClick:function(){return s(!1)}},Object(Y.__)("Cancel")))))}var vt=["image"];function Ot(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,o=t.alt,c=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,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,C=Object(J.useRef)(),E=Object(xe.usePrevious)(n),x=Object(me.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),S=Object(me.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(Q.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,T=S.imageSizes,B=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(me.useDispatch)("core/block-editor").toggleSelection,R=Object(me.useDispatch)("core/notices"),A=R.createErrorNotice,I=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(J.useState)(!1),V=Object(ue.a)(L,2),D=V[0],F=V[1],U=Object(Q.includes)(["wide","full"],a),G=Object(J.useState)({}),W=Object(ue.a)(G,2),q=W[0],Z=q.naturalWidth,X=q.naturalHeight,ee=W[1],te=Object(J.useState)(!1),re=Object(ue.a)(te,2),ne=re[0],oe=re[1],ce=Object(J.useState)(),ae=Object(ue.a)(ce,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(J.useState)(),n=Object(ue.a)(r,2),o=n[0],c=n[1];function a(){c(e.current.clientWidth)}return Object(J.useEffect)(a,t),Object(J.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),o}(k,[a]),de=!U&&H,pe=Object(Q.map)(Object(Q.filter)(T,(function(e){var t=e.slug;return Object(Q.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(J.useEffect)((function(){v||F(!1)}),[v]),Object(J.useEffect)((function(){_t(i,n)&&v&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,v,ie]),Object(J.useEffect)((function(){n&&!E&&v&&C.current.focus()}),[n,E]),Object(J.useEffect)((function(){v||oe(!1)}),[v]);var ge,he=i&&Z&&X&&P,fe=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,!ne&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)($.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:function(){return oe(!0)},icon:Pe,label:Object(Y.__)("Crop")})),ie&&Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(ue.a)(e,1)[0];y(t),Object(Ee.isBlobURL)(t.url)||(le(),I(Object(Y.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:vt,onError:function(e){A(e,{type:"snackbar"})}})},icon:Te.a,label:Object(Y.__)("Upload external image")})),!ne&&Object(J.createElement)($.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:vt,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Image settings")},Object(J.createElement)(be.TextareaControl,{label:Object(Y.__)("Alt text (alternative text)"),value:o,onChange:function(e){f({alt:e})},help:Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Y.__)("Describe the purpose of the image")),Object(Y.__)("Leave empty if the image is purely decorative."))}),Object(J.createElement)($.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(Q.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:de,imageWidth:Z,imageHeight:X}))),Object(J.createElement)($.InspectorAdvancedControls,null,Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(J.createElement)(J.Fragment,null,Object(Y.__)("Describe the role of this image on the page."),Object(J.createElement)(be.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Y.__)("(Note: many devices and browsers do not display this text.)")))}))),ve=function(e){var t=Object(Se.getPath)(e);if(t)return Object(Q.last)(t.split("/"))}(n);ge=o||(ve?Object(Y.sprintf)(Object(Y.__)("This image has an empty alt attribute; its file name is %s"),ve):Object(Y.__)("This image has an empty alt attribute"));var Oe,je,ye=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:n,alt:ge,onClick:function(){D&&F(!1)},onError:function(){var e;void 0!==(e=Ve({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(Q.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ee.isBlobURL)(n)&&Object(J.createElement)(be.Spinner,null));if(se&&Z&&X){var we=Z>se;Oe=we?se:Z,je=we?se*(X/Z):X}if(he&&ne)ye=Object(J.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:X,width:d,height:p,clientWidth:se,setIsEditingImage:oe});else if(de&&Oe){var _e=d||Oe,ke=p||je,Ce=Z/X,Be=Z 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,lightBlockWrapper:!0}},Bt=Tt.name,zt={title:Object(Y.__)("Image"),description:Object(Y.__)("Insert an image to make a visual statement."),icon:_e,keywords:["img",Object(Y.__)("photo"),Object(Y.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Y.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Y._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(Y.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=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(Q.isEmpty)(l)?void 0:l,f=re()((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)),v=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),O=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:h},v):v,!$.RichText.isEmpty(c)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},O)):Object(J.createElement)("figure",{className:f},O)},deprecated:Ce},Nt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Mt(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".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(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ar.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(cr.a)(e,["value","citation"]);if("

    "===t)return Object(K.createBlock)("core/heading",{content:r});var o=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(K.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(K.createBlock)("core/quote",lr(lr({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(o.slice(1),"\u2028"):Object(ar.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 ur(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 br(e){for(var t=1;t"+Object(Y.__)("In quoting others, we cite ourselves.")+"

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

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:rr},gr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 hr(e){return Math.min(3,e.images.length)}var fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Q.pick)(e,["alt","id","link","caption"]);r.url=Object(Q.get)(e,["sizes",t,"url"])||Object(Q.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Q.get)(e,["sizes","full","url"])||Object(Q.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function vr(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 Or(e){for(var t=1;t0&&Object(J.createElement)($.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(Q.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Or(Or({},e),{},{ids:Object(Q.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,o=void 0===n?hr(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.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(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.createElement)($.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,o=void 0===n?hr(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.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(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],yr=r(21),wr=r(20),_r=r(15),kr=r(22),Cr=r(23),Er=r(17),xr=r(89),Sr=Object(J.createElement)($.BlockIcon,{icon:gr}),Pr=r(214),Tr=r(213),Br=r(483),zr=r(181);function Nr(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(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Mr=function(e){Object(kr.a)(r,e);var t=Nr(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(_r.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(_r.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(_r.a)(e)),e.bindContainer=e.bindContainer.bind(Object(_r.a)(e)),e.onEdit=e.onEdit.bind(Object(_r.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(_r.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(_r.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(wr.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!==[Vt.BACKSPACE,Vt.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,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),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,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=fr(e,i);(function(e,t){return!e&&Object(Ee.isBlobURL)(t)})(n,o)&&c&&(l=Object(Q.omit)(l,["alt"])),a&&!Object(Q.get)(l,["caption"])&&(l=Object(Q.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,o=t.id,c=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(c){case"file":e=r;break;case"post":e=a}var f=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(J.createElement)(be.Spinner,null)),v=re()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(J.createElement)("figure",{className:v},!h&&(e?Object(J.createElement)("a",{href:e},f):f),h&&Object(J.createElement)($.MediaPlaceholder,{labels:{title:Object(Y.__)("Edit gallery image")},icon:_e,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:r}}),Object(J.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(J.createElement)(be.Button,{icon:Pr.a,onClick:i?void 0:d,label:Object(Y.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(be.Button,{icon:Tr.a,onClick:l?void 0:m,label:Object(Y.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)(be.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(J.createElement)(be.Button,{icon:Br.a,onClick:this.onEdit,label:Object(Y.__)("Replace image"),disabled:!s}),Object(J.createElement)(be.Button,{icon:zr.a,onClick:b,label:Object(Y.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:s?Object(Y.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(J.Component),Rr=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(me.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Mr);function Ar(e){var t=e.isHidden,r=Object(cr.a)(e,["isHidden"]);return t?Object(J.createElement)(be.VisuallyHidden,Object(se.a)({as:$.RichText},r)):Object(J.createElement)($.RichText,r)}var Ir=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=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,v=void 0===f?hr(r):f,O=r.caption,j=r.imageCrop,y=r.images;return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(v),v),Object(Z.a)(t,"is-cropped",j),t))},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Y.sprintf)(Object(Y.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(Rr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&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(J.createElement)(Ar,{isHidden:!o&&$.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Y.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(K.createBlock)("core/paragraph"))}}))};function Hr(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 Lr(e){for(var t=1;t0&&Object(Q.every)(n,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var o=Object(Q.map)(n,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(Q.forEach)(n,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){var t,r,n,o,c,a;(!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1}),this.props.attributes.linkTo)||this.setAttributes({linkTo:(null===(t=window)||void 0===t||null===(r=t.wp)||void 0===r||null===(n=r.media)||void 0===n||null===(o=n.view)||void 0===o||null===(c=o.settings)||void 0===c||null===(a=c.defaultProps)||void 0===a?void 0:a.link)||"none"})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=e.insertBlocksAfter,a=t.columns,i=void 0===a?hr(t):a,l=t.imageCrop,s=t.images,u=t.linkTo,b=t.sizeSlug,m=!!s.length,d=Object(J.createElement)($.MediaPlaceholder,{addToGallery:m,isAppender:m,className:r,disableMediaButtons:m&&!n,icon:!m&&Sr,labels:{title:!m&&Object(Y.__)("Gallery"),instructions:!m&&Ur},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Fr,multiple:!0,value:s,onError:this.onUploadError,notices:m?void 0:o,onFocus:this.props.onFocus});if(!m)return d;var p=this.getImagesSizeOptions(),g=m&&!Object(Q.isEmpty)(p);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Gallery settings")},s.length>1&&Object(J.createElement)(be.RangeControl,Object(se.a)({label:Object(Y.__)("Columns"),value:i,onChange:this.setColumnsNumber,min:1,max:Math.min(8,s.length)},Gr,{required:!0})),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Crop images"),checked:!!l,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Link to"),value:u,onChange:this.setLinkTo,options:Dr}),g&&Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Image size"),value:b,options:p,onChange:this.updateImagesSize}))),o,Object(J.createElement)(Ir,Object(se.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption,insertBlocksAfter:c})))}}]),r}(J.Component),qr=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Q.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Q.reduce)(a,(function(e,t){var n=Object(Q.get)(r,["sizes",t.slug,"url"]),o=Object(Q.get)(r,["media_details","sizes",t.slug,"source_url"]);return Lr(Lr({},e),{},Object(Z.a)({},t.slug,n||o))}),{});return Lr(Lr({},e),{},Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),be.withNotices,Object(xr.withViewportMatch)({isNarrow:"< small"})])(Wr);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(Q.every)(e,["align",r])?r:void 0,n=Object(Q.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Q.filter)(e,(function(e){return e.url}));return Object(K.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(Q.toString)(t),url:r,alt:n,caption:o}})),ids:o.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(Q.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(Q.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 fr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(K.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object(K.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}},Qr=Kr.name,Yr={title:Object(Y.__)("Gallery"),description:Object(Y.__)("Display multiple images in a rich gallery."),icon:gr,keywords:[Object(Y.__)("images"),Object(Y.__)("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,o=void 0===n?hr(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.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(J.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(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!$.RichText.isEmpty(e.caption)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!$.RichText.isEmpty(a)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:jr},Jr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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(86),en=r.n(Xr);var tn={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(Y.__)("Archives"),description:Object(Y.__)("Display a monthly archive of your posts."),icon:Jr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Archives settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/archives",attributes:t})))}},on=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),cn=[{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,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}}],an=["audio"];var ln=Object(be.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=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($.__experimentalUseBlockWrapperProps)(),g=Object(me.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=Ve({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function v(e){r.removeAllNotices(),r.createErrorNotice(e)}function O(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(J.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(ue.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:an})}}),[]),d?Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:an,accept:"audio/*",onSelect:O,onSelectURL:f,onError:v})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Audio settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Y.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Loop"),onChange:h("loop"),checked:b}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Y.__)("Browser default")},{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))),Object(J.createElement)("figure",p,Object(J.createElement)(be.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:d})),(!$.RichText.isEmpty(u)||c)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}}))):Object(J.createElement)("div",p,Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:on}),onSelect:O,onSelectURL:f,accept:"audio/*",allowedTypes:an,value:t,notices:a,onError:v}))}));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(K.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return r||n||o||c||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={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,lightBlockWrapper:!0}},bn=un.name,mn={title:Object(Y.__)("Audio"),description:Object(Y.__)("Embed a simple audio player."),keywords:[Object(Y.__)("music"),Object(Y.__)("sound"),Object(Y.__)("podcast"),Object(Y.__)("recording")],icon:on,transforms:sn,deprecated:cn,edit:ln,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}},dn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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(K.createBlock)("core/buttons",{},e.map((function(e){return Object(K.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,v=Object($.getColorClassName)("background-color",p),O=Object($.__experimentalGetGradientClass)(h),j=Object($.getColorClassName)("color",g),y=re()(j,O,(a={},Object(Z.a)(a,v,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!v),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===(o=f.color)||void 0===o?void 0:o.background)||h||(null==f||null===(c=f.color)||void 0===c?void 0:c.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($.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(g){var k=Object($.getColorObjectByAttributeValues)(t,g);w.color=k.color}}return{className:y||void 0,style:w}}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;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Q.unescape)(e.name).trim():Object(Y.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.VisuallyHidden,{as:"label",htmlFor:o},Object(Y.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Q.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Categories settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(be.Placeholder,{icon:io,label:Object(Y.__)("Categories")},Object(J.createElement)(be.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),r}(J.Component),uo=Object(xe.compose)(Object(me.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),xe.withInstanceId)(so),bo={name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},mo=bo.name,po={title:Object(Y.__)("Categories"),description:Object(Y.__)("Display a list of all categories."),icon:ao,example:{},edit:uo},go=r(316);function ho(e){return e.replace(/\[/g,"[")}function fo(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var vo={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":{}}}}}}}]},Oo={name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,lightBlockWrapper:!0}},jo=Oo.name,yo={title:Object(Y.__)("Code"),description:Object(Y.__)("Display code snippets that respect your spacing and tabs."),icon:go.a,example:{attributes:{content:Object(Y.__)('// 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:vo,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)("pre",n,Object(J.createElement)($.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Y.__)("Write code…"),"aria-label":Object(Y.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)($.RichText.Content,{tagName:"code",value:(t=r.content,Object(Q.flow)(ho,fo)(t||""))}))}},wo=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 _o(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 ko(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},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,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,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw c}}}}function Eo(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(Q.sumBy)(e,(function(e){return To(e,t)}))}function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=To(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function No(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Bo(e,r),o=t-n,c=o/e.length;return Object(Q.mapValues)(zo(e,r),(function(e){return Po(e+c)}))}function Mo(e,t){return e.map((function(e){return Object(Q.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Ro=["core/column"];var Ao=Object(me.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=Po(100/o),b=No(i,100-u);i=[].concat(Object(q.a)(Mo(i,b)),Object(q.a)(Object(Q.times)(o-n,(function(){return Object(K.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(Q.times)(o-n,(function(){return Object(K.createBlock)("core/column")}))));else{if(i=Object(Q.dropRight)(i,n-o),l)i=Mo(i,No(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(me.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=re()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c)),l=Object($.__experimentalUseBlockWrapperProps)({className:i});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:2,max:Math.max(6,a)}),a>6&&Object(J.createElement)(be.Notice,{status:"warning",isDismissible:!1},Object(Y.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(J.createElement)($.InnerBlocks,{allowedBlocks:Ro,orientation:"horizontal",__experimentalTagName:"div",__experimentalPassedProps:l,renderAppender:!1}))})),Io=function e(t){return Object(Q.map)(t,(function(t){var r=Object(ue.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object(K.createBlock)(n,o,e(a))}))};function Ho(e){var t=e.clientId,r=e.name,n=e.setAttributes,o=Object(me.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(r),defaultVariation:c(r,"block"),variations:n(r,"block")}}),[r]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(me.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)("div",s,Object(J.createElement)($.__experimentalBlockVariationPicker,{icon:Object(Q.get)(c,["icon","src"]),label:Object(Q.get)(c,["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,Io(e.innerBlocks))},allowSkip:!0}))}var Lo=function(e){var t=e.clientId,r=Object(me.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Ao:Ho;return Object(J.createElement)(r,e)};var Vo=[{name:"two-columns-equal",title:Object(Y.__)("50 / 50"),description:Object(Y.__)("Two columns; equal split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.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(Y.__)("30 / 70"),description:Object(Y.__)("Two columns; one-third, two-thirds split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.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(Y.__)("70 / 30"),description:Object(Y.__)("Two columns; two-thirds, one-third split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.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(Y.__)("33 / 33 / 33"),description:Object(Y.__)("Three columns; equal split"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.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(Y.__)("25 / 50 / 25"),description:Object(Y.__)("Three columns; wide center column"),icon:Object(J.createElement)(be.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(be.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"]}],Do={name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,lightBlockWrapper:!0,__experimentalColor:{gradients:!0,linkColor:!0}}},Fo=Do.name,Uo={title:Object(Y.__)("Columns"),icon:wo,description:Object(Y.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Vo,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Y.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Y.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Y.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:So,edit:Lo,save:function(e){var t=e.attributes.verticalAlignment,r=re()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(J.createElement)("div",{className:r||void 0},Object(J.createElement)($.InnerBlocks.Content,null))}},Go=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var Wo=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=e.setAttributes,c=e.clientId,a=re()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),i=Object(me.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(c).length>0,rootClientId:n(c)}}),[c]),l=i.hasChildBlocks,s=i.rootClientId,u=Object(me.useDispatch)("core/block-editor").updateBlockAttributes,b=Number.isFinite(n),m=Object($.__experimentalUseBlockWrapperProps)({className:a,style:b?{flexBasis:n+"%"}:void 0});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:r})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Column settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Percentage width"),value:n||"",onChange:function(e){o({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===n?Object(Y.__)("Auto"):void 0}))),Object(J.createElement)($.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:$.InnerBlocks.ButtonBlockAppender,__experimentalTagName:"div",__experimentalPassedProps:m}))};var qo={name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},supports:{anchor:!0,reusable:!1,html:!1,lightBlockWrapper:!0}},Zo=qo.name,$o={title:Object(Y.__)("Column"),icon:Go,description:Object(Y.__)("A single column within a columns block."),edit:Wo,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)($.InnerBlocks.Content,null))}},Ko=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 Qo(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 Yo={"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 Jo(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Xo=[{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 ec(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function tc(e){return function(t){if(t&&t.url){var r;if(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,o=Object(J.useState)(!1),c=Object(ue.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&fc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(bc()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,S),T="image"===g,B="video"===g,z=Object(J.useState)(null),N=Object(ue.a)(z,2),M=N[0],R=N[1],A=m.removeAllNotices,I=m.createErrorNotice,H=j?"".concat(O).concat(j):O,L=dc(dc({},T?Jo(w):{}),{},{backgroundColor:s.color,minHeight:M||H||void 0});C&&!w&&(L.background=C),f&&(o="".concat(100*f.x,"% ").concat(100*f.y,"%"),T&&(L.backgroundPosition=o));var V=!!(w||s.color||C),D=B||T&&!v,F=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,V&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Y.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(J.createElement)($.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:pc,accept:"image/*,video/*",onSelect:x}))),Object(J.createElement)($.InspectorControls,null,!!w&&Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Media settings")},T&&Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Fixed background"),checked:v,onChange:function(){a(dc({hasParallax:!v},v?{}:{focalPoint:void 0}))}}),D&&Object(J.createElement)(be.FocalPointPicker,{label:Object(Y.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(J.createElement)(be.PanelRow,null,Object(J.createElement)(be.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})}},Object(Y.__)("Clear Media")))),V&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Dimensions")},Object(J.createElement)(vc,{value:M||O,unit:j,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(J.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(Y.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:E,label:Object(Y.__)("Color")}]},!!w&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,required:!0}))))),U=Object($.__experimentalUseBlockWrapperProps)();if(!V){var G=Object(J.createElement)($.BlockIcon,{icon:Ko}),W=Object(Y.__)("Cover");return Object(J.createElement)(J.Fragment,null,F,Object(J.createElement)("div",Object(se.a)({},U,{className:re()("is-placeholder",U.className)}),Object(J.createElement)($.MediaPlaceholder,{icon:G,labels:{title:W,instructions:Object(Y.__)("Upload an image or video file, or pick one from your media library.")},onSelect:x,accept:"image/*,video/*",allowedTypes:pc,notices:l,onError:function(e){A(),I(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)($.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var q=re()(ec(h),(t={"is-dark-theme":P,"has-background-dim":0!==h,"has-parallax":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,k,!w&&k),Object(Z.a)(t,"has-custom-content-position",!rc(d)),t),nc(d));return Object(J.createElement)(J.Fragment,null,F,Object(J.createElement)("div",Object(se.a)({},U,{className:re()(q,U.className),style:dc(dc({},L),U.style),"data-url":w}),Object(J.createElement)(hc,{values:null==y||null===(r=y.spacing)||void 0===r?void 0:r.padding,showValues:null==y||null===(n=y.visualizers)||void 0===n?void 0:n.padding}),Object(J.createElement)(jc,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:R,onResizeStop:function(e){b(!0),a({minHeight:e}),R(null)},showHandle:i}),T&&Object(J.createElement)("img",{ref:S,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",k),style:{background:C}}),B&&Object(J.createElement)("video",{ref:S,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:o}}),Object(J.createElement)($.InnerBlocks,{__experimentalTagName:"div",__experimentalPassedProps:{className:"wp-block-cover__inner-container"},template:gc})))}));var wc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video",anchor:c})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/image",{caption:t,url:r,align:n,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id,c=e.anchor;return Object(K.createBlock)("core/video",{caption:t,src:r,id:o,align:n,anchor:c})}}]},_c={name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{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,lightBlockWrapper:!0,__experimentalPadding:!0}},kc=_c.name,Cc={title:Object(Y.__)("Cover"),description:Object(Y.__)("Add an image or video with a text overlay — great for headers."),icon:Ko,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(Y.__)("Snow Patrol"),align:"center"}}]},transforms:wc,save:function(e){var t,r,n=e.attributes,o=n.backgroundType,c=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.overlayColor,d=n.url,p=n.minHeight,g=n.minHeightUnit,h=Object($.getColorClassName)("background-color",m),f=Object($.__experimentalGetGradientClass)(c),v=g?"".concat(p).concat(g):p,O="image"===o,j="video"===o,y=O?Jo(d):{},w={};h||(y.backgroundColor=l),i&&!d&&(y.background=i),y.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),O&&!b&&(y.backgroundPosition=r),j&&(w.objectPosition=r));var _=re()(ec(s),h,(t={"has-background-dim":0!==s,"has-parallax":b,"has-background-gradient":c||i},Object(Z.a)(t,f,!d&&f),Object(Z.a)(t,"has-custom-content-position",!rc(a)),t),nc(a));return Object(J.createElement)("div",{className:_,style:y},d&&(c||i)&&0!==s&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",f),style:i?{background:i}:void 0}),j&&d&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:w}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)($.InnerBlocks.Content,null)))},edit:yc,deprecated:ic},Ec=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,r&&Object(J.createElement)(be.ToolbarButton,{className:"components-toolbar__control",label:Object(Y.__)("Edit URL"),icon:Br.a,onClick:i}))),n&&t&&Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},xc=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(be.Spinner,null),Object(J.createElement)("p",null,Object(Y.__)("Embedding…")))},Sc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(be.Placeholder,{icon:Object(J.createElement)($.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Y.__)("Paste a link to the content you want to display on your site.")},Object(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Y.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(Y._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(be.ExternalLink,{href:Object(Y.__)("https://wordpress.org/support/article/embeds/")},Object(Y.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Y.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(be.Button,{isSecondary:!0,onClick:l},Object(Y._x)("Try again","button label"))," ",Object(J.createElement)(be.Button,{isSecondary:!0,onClick:i},Object(Y._x)("Convert to link","button label"))))};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 r,n=Object(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Tc=window,Bc=Tc.FocusEvent,zc=Tc.DOMParser,Nc=function(e){Object(kr.a)(r,e);var t=Pc(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(_r.a)(e)),e.node=Object(J.createRef)(),e}return Object(wr.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,o=t.value;[r,n,o].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==o&&(e.height=o)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Bc("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new zc).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(J.Component),Mc=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Nc);function Rc(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(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Ac=function(e){Object(kr.a)(r,e);var t=Rc(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(_r.a)(e)),e.state={interactive:!1},e}return Object(wr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=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=o.scripts,h=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url||e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Y.sprintf)(Object(Y.__)("Embedded content from %s"),O),y=Ne()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(J.createElement)(Mc,{html:f}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(be.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(J.createElement)(be.Placeholder,{icon:Object(J.createElement)($.BlockIcon,{icon:m,showColors:!0}),label:d},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:a},a)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Y.sprintf)(Object(Y.__)("Embedded content from %s can't be previewed in the editor."),O))),(!$.RichText.isEmpty(l)||u)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("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}(J.Component);function Ic(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 Hc(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.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(me.select)("core").getMedia)(t);return!!r&&Object(Q.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(me.select)("core").getMedia)(t);return!!r&&Object(Q.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(me.select)("core").getMedia)(t);return!!r&&Object(Q.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})}}]},ha={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,va={title:Object(Y.__)("File"),description:Object(Y.__)("Add a link to a downloadable file."),icon:ua,keywords:[Object(Y.__)("document"),Object(Y.__)("pdf"),Object(Y.__)("download")],transforms:ga,edit:pa,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!$.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)($.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)($.RichText.Content,{value:i})))}},Oa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function ja(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(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var ya=function(e){Object(kr.a)(r,e);var t=ja(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(_r.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(_r.a)(e)),e}return Object(wr.a)(r,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\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($.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(be.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Y.__)("Preview"))))),Object(J.createElement)(be.Disabled.Consumer,null,(function(t){return c||t?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.SandBox,{html:r.content,styles:a}),!e.props.isSelected&&Object(J.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(J.createElement)($.PlainText,{value:r.content,onChange:function(e){return n({content:e})},placeholder:Object(Y.__)("Write HTML…"),"aria-label":Object(Y.__)("HTML")})})))}}]),r}(J.Component),wa=Object(me.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(ya);var _a={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(K.createBlock)("core/html",{content:t})}}]},ka={name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},Ca=ka.name,Ea={title:Object(Y.__)("Custom HTML"),description:Object(Y.__)("Add custom HTML code and preview it as you edit."),icon:Oa,keywords:[Object(Y.__)("embed")],example:{attributes:{content:""+Object(Y.__)("Welcome to the wonderful world of blocks…")+""}},edit:wa,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)},transforms:_a},xa=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Sa=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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(J.createElement)(be.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(J.createElement)(be.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Pa=["image","video"];function Ta(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(cr.a)(e,["isSelected","isStackedOnMobile"]),o=Object(xe.useViewportMatch)("small","<");return Object(J.createElement)(be.ResizableBox,Object(se.a)({showHandle:t&&(!o||!r)},n))}function za(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:Pa,accept:"image/*,video/*",onSelect:n}))}function Na(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:Sa}),labels:{title:Object(Y.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:Pa,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Ma=Object(be.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,o=e.imageFill,c=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(me.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&o?Ta(b,n):{},v={image:function(){return Object(J.createElement)("img",{src:b,alt:i})},video:function(){return Object(J.createElement)("video",{controls:!0,src:b})}};return Object(J.createElement)(Ba,{as:"figure",className:re()(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:c,isStackedOnMobile:a},Object(J.createElement)(za,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||Q.noop)())}return Object(J.createElement)(Na,e)}));function Ra(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 Aa(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Y.__)("— Kobayashi Issa (一茶)")}}]},transforms:qa,edit:Wa,save:function(e){var t,r,n=e.attributes,o=n.isStackedOnMobile,c=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,v=n.mediaSizeSlug||"full",O=Object(Q.isEmpty)(f)?void 0:f,j=re()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(v),u&&"image"===i),t)),y=Object(J.createElement)("img",{src:l,alt:c,className:j||null});g&&(y=Object(J.createElement)("a",{className:p,href:g,target:h,rel:O},y));var w,_={image:function(){return y},video:function(){return Object(J.createElement)("video",{controls:!0,src:l})}},k=re()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":o},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),C=m?Ta(l,d):{};50!==s&&(w="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var E={gridTemplateColumns:w};return Object(J.createElement)("div",{className:k,style:E},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:C},(_[i]||Q.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)($.InnerBlocks.Content,null)))},deprecated:La},Qa=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function Ya(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(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var Ja=function(e){Object(kr.a)(r,e);var t=Ya(r);function r(){var e;return Object(yr.a)(this,r),(e=t.apply(this,arguments)).setCommentsToShow=e.setCommentsToShow.bind(Object(_r.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(wr.a)(r,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Latest comments settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),r}(J.Component),Xa={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}},ei=Xa.name,ti={title:Object(Y.__)("Latest Comments"),description:Object(Y.__)("Display a list of your most recent comments."),icon:Qa,keywords:[Object(Y.__)("recent comments")],example:{},edit:Ja},ri=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 ni(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 oi(e){for(var t=1;ty?o.slice(0,y):o,z=[{icon:ii,title:Object(Y.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===g},{icon:li,title:Object(Y.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===g}],N=Object(ai.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,P,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:z})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":d,"has-author":p},"columns-".concat(h),"grid"===g))},B.map((function(e,t){var r=Object(Q.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=s.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,l=a.alt,g=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(_),!!_)),h=u&&i,f=h&&Object(J.createElement)("img",{src:i,alt:l,style:{maxWidth:C,maxHeight:E}}),v=w0?i.map((function(e){return e.id})):[],h=u("postType","post",Object(Q.pickBy)({categories:g,author:l,order:c,orderby:a,per_page:o},(function(e){return!Object(Q.isUndefined)(e)}))),f=d.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Q.get)(p,[n,"width"],0),defaultImageHeight:Object(Q.get)(p,[n,"height"],0),imageSizeOptions:f,latestPosts:Array.isArray(h)?h.map((function(e){if(!e.featured_media)return e;var t=b(e.featured_media),r=Object(Q.get)(t,["media_details","sizes",n,"source_url"],null);r||(r=Object(Q.get)(t,"source_url",null));var o={url:r,alt:null==t?void 0:t.alt_text};return ui(ui({},e),{},{featuredImageInfo:o})})):h}}))(pi),hi={name:"core/latest-posts",category:"widgets",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},fi=hi.name,vi={title:Object(Y.__)("Latest Posts"),description:Object(Y.__)("Display a list of your most recent posts."),icon:ri,keywords:[Object(Y.__)("recent posts")],example:{},edit:gi,deprecated:ci},Oi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),ji=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),yi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),wi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),_i=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),ki=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),Ci=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),Ei=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),xi=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Ordered list settings")},Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};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;t1?n:Object(ar.replace)(n,/\n/g,ar.__UNSTABLE_LINE_SEPARATOR)})),ar.__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(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:zi(e).ol,ul:zi(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",Bi(Bi({},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(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ar.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ar.split)(Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ar.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/heading",{content:Object(ar.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(ar.toHTMLString)({value:Object(ar.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(ar.toHTMLString)({value:Object(ar.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Mi(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 Ri(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Ni,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?Ri(Ri({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=e.onReplace,c=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(me.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.RichText,Object(se.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Y.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(K.createBlock)(Ii,Pi(Pi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(K.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,o=e.onFocus;return Object(J.createElement)(J.Fragment,null,c&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}}),Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(J.createElement)($.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b}))}}),Object(J.createElement)($.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ar.__unstableOutdentListItems)(t))}})),Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:[{icon:m?Oi:ji,title:Object(Y.__)("Convert to unordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ul"})),o(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?yi:wi,title:Object(Y.__)("Convert to ordered list"),isActive:Object(ar.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ar.__unstableChangeListType)(t,{type:"ol"})),o(),Object(ar.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?_i:ki,title:Object(Y.__)("Outdent list item"),shortcut:Object(Y._x)("Backspace","keyboard key"),isDisabled:!Object(ar.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ar.__unstableOutdentListItems)(t)),o()}},{icon:m?Ci:Ei,title:Object(Y.__)("Indent list item"),shortcut:Object(Y._x)("Space","keyboard key"),isDisabled:!Object(ar.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ar.__unstableIndentListItems)(t,{type:b})),o()}}]})))})),a&&Object(J.createElement)(xi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,o=t.type,c=t.reversed,a=t.start,i=r?"ol":"ul";return Object(J.createElement)($.RichText.Content,{tagName:i,value:n,type:o,reversed:c,start:a,multiline:"li"})}};var Li=Object(me.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(r,Object(K.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,o=r.originalName,c=r.originalUndelimitedContent,a=!!c,i=Object(K.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Y.sprintf)(Object(Y.__)('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.'),o),l.push(Object(J.createElement)(be.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Y.__)("Keep as HTML")))):t=Object(Y.sprintf)(Object(Y.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.Warning,{actions:l},t),Object(J.createElement)(J.RawHTML,null,c))}));var Vi={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}},Di=Vi.name,Fi={name:Di,title:Object(Y.__)("Unsupported"),description:Object(Y.__)("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:Li,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.originalContent)}},Ui=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Gi=Object(Y.__)("Read more");var Wi={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,o={};return r&&(o.customText=r),""===n&&(o.noTeaser=!0),Object(K.createBlock)("core/more",o)}}]},qi={name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Zi=qi.name,$i={title:Object(Y._x)("More","block name"),description:Object(Y.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Y.__)("read more")],icon:Ui,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Wi,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=e.insertBlocksAfter,c=e.setAttributes,a={width:"".concat((r||Gi).length+1.2,"em")};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return c({noTeaser:!n})},help:function(e){return e?Object(Y.__)("The excerpt is hidden."):Object(Y.__)("The excerpt is visible.")}}))),Object(J.createElement)("div",{className:"wp-block-more"},Object(J.createElement)("input",{"aria-label":Object(Y.__)("Read more link text"),type:"text",value:r,placeholder:Gi,onChange:function(e){c({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===Vt.ENTER&&o([Object(K.createBlock)(Object(K.getDefaultBlockName)())])},style:a})))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,o=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",c=n?"\x3c!--noteaser--\x3e":"";return Object(J.createElement)(J.RawHTML,null,Object(Q.compact)([o,c]).join("\n"))}},Ki=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 Qi={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",{})}}]},Yi={name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Ji=Yi.name,Xi={title:Object(Y.__)("Page Break"),description:Object(Y.__)("Separate your content into a multi-page experience."),icon:Ki,keywords:[Object(Y.__)("next page"),Object(Y.__)("pagination")],example:{},transforms:Qi,edit:function(){return Object(J.createElement)("div",{className:"wp-block-nextpage"},Object(J.createElement)("span",null,Object(Y.__)("Page break")))},save:function(){return Object(J.createElement)(J.RawHTML,null,"\x3c!--nextpage--\x3e")}},el=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 tl={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)}}]},rl={name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0,lightBlockWrapper:!0}},nl=rl.name,ol={title:Object(Y.__)("Preformatted"),description:Object(Y.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:el,example:{attributes:{content:Object(Y.__)("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:tl,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,o=t.content,c=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)($.RichText,Object(se.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){n({content:e})},placeholder:Object(Y.__)("Write preformatted text…"),onMerge:r},c))},save:function(e){var t=e.attributes.content;return Object(J.createElement)($.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},cl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),al="is-style-".concat("solid-color");function il(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;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(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ar.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(cr.a)(e,["value","citation"]);if("

    "===t)return Object(K.createBlock)("core/heading",{content:r});var o=Object(ar.split)(Object(ar.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(K.createBlock)("core/heading",{content:Object(ar.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(K.createBlock)("core/pullquote",hl(hl({},n),{},{citation:r,value:Object(ar.toHTMLString)({value:a.length?Object(ar.join)(o.slice(1),"\u2028"):Object(ar.create)(),multilineTag:"p"})}))]}}]},vl={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"]}},Ol=vl.name,jl={title:Object(Y.__)("Pullquote"),description:Object(Y.__)("Give special visual emphasis to a quote from your text."),icon:cl,example:{attributes:{value:"

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

    ",citation:Object(Y.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Y.__)("Solid color")}],transforms:fl,edit:pl,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Q.includes)(u,al)){var b=Object($.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object($.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(J.createElement)($.RichText.Content,{tagName:"cite",value:s})))},deprecated:bl};function yl(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,o=e.onCancel,c=e.onChangeTitle,a=e.onEdit,i=e.onSave,l=e.title,s=Object(xe.useInstanceId)(yl),u=Object(J.useRef)(),b=Object(J.useRef)(),m=Object(xe.usePrevious)(r),d=Object(xe.usePrevious)(n);return Object(J.useEffect)((function(){!m&&r&&u.current.select()}),[r]),Object(J.useEffect)((function(){!m&&!d||r||n||b.current.focus()}),[r,n]),Object(J.createElement)(J.Fragment,null,!r&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},l),Object(J.createElement)(be.Button,{ref:b,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:a},Object(Y.__)("Edit"))),(r||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),i()}},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(s),className:"reusable-block-edit-panel__label"},Object(Y.__)("Name:")),Object(J.createElement)("input",{ref:u,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:l,onChange:function(e){c(e.target.value)},onKeyDown:function(e){e.keyCode===Vt.ESCAPE&&(e.stopPropagation(),o())},id:"reusable-block-edit-panel__title-".concat(s)}),Object(J.createElement)(be.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!l||n,className:"reusable-block-edit-panel__button"},Object(Y.__)("Save"))))}function wl(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(Er.a)(e);if(t){var o=Object(Er.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(Cr.a)(this,r)}}var _l=function(e){Object(kr.a)(r,e);var t=wl(r);function r(e){var n,o=e.reusableBlock;return Object(yr.a)(this,r),(n=t.apply(this,arguments)).startEditing=n.startEditing.bind(Object(_r.a)(n)),n.stopEditing=n.stopEditing.bind(Object(_r.a)(n)),n.setBlocks=n.setBlocks.bind(Object(_r.a)(n)),n.setTitle=n.setTitle.bind(Object(_r.a)(n)),n.save=n.save.bind(Object(_r.a)(n)),n.state=o?{isEditing:o.isTemporary,title:o.title,blocks:Object(K.parse)(o.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(wr.a)(r,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(K.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(K.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object(K.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.convertToStatic,r=e.isSelected,n=e.reusableBlock,o=e.isFetching,c=e.isSaving,a=e.canUpdateBlock,i=e.settings,l=this.state,s=l.isEditing,u=l.title,b=l.blocks;if(!n&&o)return Object(J.createElement)(be.Placeholder,null,Object(J.createElement)(be.Spinner,null));if(!n)return Object(J.createElement)(be.Placeholder,null,Object(Y.__)("Block has been deleted or is unavailable."));var m=Object(J.createElement)($.BlockEditorProvider,{settings:i,value:b,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)($.WritingFlow,null,Object(J.createElement)($.BlockList,null)));return s||(m=Object(J.createElement)(be.Disabled,null,m)),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{onClick:t},Object(Y.__)("Convert to regular blocks")))),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(r||s)&&Object(J.createElement)(yl,{isEditing:s,title:null!==u?u:n.title,isSaving:c&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),m))}}]),r}(J.Component),kl=Object(xe.compose)([Object(me.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(me.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalConvertBlockToStatic,o=r.__experimentalFetchReusableBlocks,c=r.__experimentalUpdateReusableBlock,a=r.__experimentalSaveReusableBlock,i=t.attributes.ref;return{fetchReusableBlock:Object(Q.partial)(o,i),onChange:Object(Q.partial)(c,i),onSave:Object(Q.partial)(a,i),convertToStatic:function(){n(t.clientId)}}}))])(_l),Cl={name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},El=Cl.name,xl={title:Object(Y.__)("Reusable Block"),description:Object(Y.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:kl},Sl=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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 Pl={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}},Tl=Pl.name,Bl={title:Object(Y.__)("RSS"),description:Object(Y.__)("Display entries from any RSS or Atom feed."),icon:Sl,keywords:[Object(Y.__)("atom"),Object(Y.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(J.useState)(!t.feedURL),o=Object(ue.a)(n,2),c=o[0],a=o[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))}}if(c)return Object(J.createElement)(be.Placeholder,{icon:Sl,label:"RSS"},Object(J.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(J.createElement)(be.TextControl,{placeholder:Object(Y.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(J.createElement)(be.Button,{isPrimary:!0,type:"submit"},Object(Y.__)("Use URL"))));var h=[{icon:Br.a,title:Object(Y.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ii,title:Object(Y.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:li,title:Object(Y.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,{controls:h})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("RSS settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(be.Disabled,null,Object(J.createElement)(en.a,{block:"core/rss",attributes:t})))}},zl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Nl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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(J.createElement)(be.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ml=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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(J.createElement)(be.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Rl=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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"})),Al=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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(J.createElement)(be.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Il=Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.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(J.createElement)(be.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Hl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Ll=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Y.__)("Search"),label:Object(Y.__)("Search")}}],Vl={name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"bool",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"bool",default:!1}},supports:{align:["left","center","right"],html:!1,lightBlockWrapper:!0}},Dl=Vl.name,Fl={title:Object(Y.__)("Search"),description:Object(Y.__)("Help visitors find your content."),icon:ut.a,keywords:[Object(Y.__)("find")],example:{},variations:Ll,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=e.toggleSelection,c=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)($.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Y.__)("Optional placeholder text"),placeholder:l?void 0:Object(Y.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},v=function(){return Object(J.createElement)(J.Fragment,null,p&&Object(J.createElement)(be.Button,{icon:ut.a,className:"wp-block-search__button"}),!p&&Object(J.createElement)($.RichText,{className:"wp-block-search__button","aria-label":Object(Y.__)("Button text"),placeholder:Object(Y.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},O=Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarButton,{title:Object(Y.__)("Toggle search label"),icon:Il,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(J.createElement)(be.DropdownMenu,{icon:function(){switch(d){case"button-inside":return Ml;case"button-outside":return Nl;case"no-button":return Rl;case"button-only":return zl}}(),label:Object(Y.__)("Change button position")},(function(e){var t=e.onClose;return Object(J.createElement)(be.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(J.createElement)(be.MenuItem,{icon:Rl,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(Y.__)("No Button")),Object(J.createElement)(be.MenuItem,{icon:Nl,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(Y.__)("Button Outside")),Object(J.createElement)(be.MenuItem,{icon:Ml,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(Y.__)("Button Inside")),Object(J.createElement)(be.MenuItem,{icon:zl,onClick:function(){n({buttonPosition:"button-only"}),t()}},Object(Y.__)("Button Only")))})),"no-button"!==d&&Object(J.createElement)(be.ToolbarButton,{title:Object(Y.__)("Use button with icon"),icon:Al,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Display Settings")},Object(J.createElement)(be.BaseControl,{label:Object(Y.__)("Width"),id:h},Object(J.createElement)($.__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:Hl}),Object(J.createElement)(be.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Y.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(J.createElement)(be.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object($.__experimentalUseBlockWrapperProps)({className:re()(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?"wp-block-search__text-button":void 0,p||"no-button"===d?void 0:"wp-block-search__icon-button")});return Object(J.createElement)("div",j,O,i&&Object(J.createElement)($.RichText,{className:"wp-block-search__label","aria-label":Object(Y.__)("Label text"),placeholder:Object(Y.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(J.createElement)(be.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"}),o(!1)},onResizeStop:function(e,t,r,c){n({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===d||"button-outside"===d)&&Object(J.createElement)(J.Fragment,null,f(),v()),"button-only"===d&&v(),"no-button"===d&&f()))}},Ul=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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 Gl(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 Wl(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:Kl,save:function(e){var t=e.attributes.tagName;return Object(J.createElement)(t,null,Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)($.InnerBlocks.Content,null)))},deprecated:Zl},Xl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),es=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)($.InspectorControls,null,Object(J.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Y.__)("Color")}]}))};var ts=Object($.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(es,{color:t,setColor:r}))}));var rs={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(K.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},ns={name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0}},os=ns.name,cs={title:Object(Y.__)("Separator"),description:Object(Y.__)("Create a break between ideas or sections with a horizontal separator."),icon:Xl,keywords:[Object(Y.__)("horizontal-line"),"hr",Object(Y.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Y.__)("Default"),isDefault:!0},{name:"wide",label:Object(Y.__)("Wide Line")},{name:"dots",label:Object(Y.__)("Dots")}],transforms:rs,edit:ts,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object($.getColorClassName)("background-color",n),a=Object($.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},as=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),is=r(142);var ls=r(105),ss={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(ls.removep)(Object(ls.autop)(r))}}},priority:20}]},us={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},bs=us.name,ms={title:Object(Y.__)("Shortcode"),description:Object(Y.__)("Insert additional custom elements with a WordPress shortcode."),icon:as,transforms:ss,edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(xe.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(is.a,{icon:as}),Object(Y.__)("Shortcode")),Object(J.createElement)($.PlainText,{className:"blocks-shortcode__textarea",id:c,value:r.text,placeholder:Object(Y.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.text)}},ds=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ps=Object(xe.compose)([Object(me.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,o=e.onResizeStart,c=e.onResizeStop,a=Object(J.useState)(!1),i=Object(ue.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ResizableBox,{className:re()("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(){o.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){c();var o=Math.min(parseInt(u+n.height,10),500);b(o),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}}),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Spacer settings")},Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var gs={name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},hs=gs.name,fs={title:Object(Y.__)("Spacer"),description:Object(Y.__)("Add white space between blocks and customize its height."),icon:ds,edit:ps,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},vs=r(35),Os=r.n(vs);var js={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}}]},ys={name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},ws=ys.name,_s={title:Object(Y.__)("Subheading (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(be.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:js,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return Os()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)($.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Y.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)($.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},ks=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),Cs=[{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,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object($.getColorClassName)("background-color",a),l=re()(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(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)($.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],Es=r(300),xs=r(301),Ss=r(302),Ps=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Ts=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Bs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),zs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Ns=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Ms=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.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"})),Rs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function As(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 Is(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex,a=c+e;o(Ds(n,{columnIndex:a})),this.setState({selectedCell:{rowIndex:0,columnIndex:a,type:"cell"}})}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Q.pick)(e,["head","body","foot"]);return Object(Q.mapValues)(n,(function(e){return Us(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}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:qs(qs({},e),{},{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:Ps,title:Object(Y.__)("Insert row before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:Ts,title:Object(Y.__)("Insert row after"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:Bs,title:Object(Y.__)("Delete row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:zs,title:Object(Y.__)("Insert column before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:Ns,title:Object(Y.__)("Insert column after"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:Ms,title:Object(Y.__)("Delete column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(Us(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Y.__)("Header label"):"foot"===r&&(b=Object(Y.__)("Footer label")),Object(J.createElement)($.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=t.insertBlocksAfter,l=this.state,s=l.initialRowCount,u=l.initialColumnCount,b=r.hasFixedLayout,m=r.caption,d=r.head,p=r.body,g=r.foot,h=Us(d)&&Us(p)&&Us(g),f=this.renderSection;if(h)return Object(J.createElement)(be.Placeholder,{label:Object(Y.__)("Table"),icon:Object(J.createElement)($.BlockIcon,{icon:ks,showColors:!0}),instructions:Object(Y.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(be.TextControl,{type:"number",label:Object(Y.__)("Column count"),value:u,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(be.TextControl,{type:"number",label:Object(Y.__)("Row count"),value:s,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(be.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Y.__)("Create Table"))));var v=re()(o.class,{"has-fixed-layout":b,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(be.ToolbarItem,null,(function(t){return Object(J.createElement)(be.DropdownMenu,{hasArrowIndicator:!0,icon:Rs,toggleProps:t,label:Object(Y.__)("Edit table"),controls:e.getTableControls()})}))),Object(J.createElement)($.AlignmentToolbar,{label:Object(Y.__)("Change column alignment"),alignmentControls:Ks,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Fixed width table cells"),checked:!!b,onChange:this.onChangeFixedLayout}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Header section"),checked:!(!d||!d.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Footer section"),checked:!(!g||!g.length),onChange:this.onToggleFooterSection})),Object(J.createElement)($.PanelColorSettings,{title:Object(Y.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Y.__)("Background color"),disableCustomColors:!0,colors:$s}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:v},Object(J.createElement)(f,{name:"head",rows:d}),Object(J.createElement)(f,{name:"body",rows:p}),Object(J.createElement)(f,{name:"foot",rows:g})),Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:m,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})},__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}})))}}]),r}(J.Component),Js=Qs("backgroundColor")(Ys);var Xs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},eu={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Xs(e)},tfoot:{allowEmpty:!0,children:Xs(e)},tbody:{allowEmpty:!0,children:Xs(e)}}}}}}]},tu={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}},ru=tu.name,nu={title:Object(Y.__)("Table"),description:Object(Y.__)("Insert a table — perfect for sharing charts and data."),icon:ks,example:{attributes:{head:[{cells:[{content:Object(Y.__)("Version"),tag:"th"},{content:Object(Y.__)("Jazz Musician"),tag:"th"},{content:Object(Y.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Y.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Y.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Y.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Y._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Y.__)("Stripes")}],transforms:eu,edit:Js,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object($.getColorClassName)("background-color",a),s=re()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!$.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(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)($.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Cs};var ou={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object(K.createBlock)("core/columns",{align:"wide"===o||"full"===o?o: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})])})))}}]},cu={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}},au=cu.name,iu={title:Object(Y.__)("Text Columns (deprecated)"),description:Object(Y.__)("This block is deprecated. Please use the Columns block instead."),transforms:ou,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=e.className,o=t.width,c=t.content,a=t.columns;return Os()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,null,Object(J.createElement)(be.RangeControl,{label:Object(Y.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Q.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)($.RichText,{tagName:"p",value:Object(Q.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(Y.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Q.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)($.RichText.Content,{tagName:"p",value:Object(Q.get)(n,[e,"children"])}))})))}},lu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),su=[{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(J.createElement)($.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var uu={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)}}]},bu={name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,lightBlockWrapper:!0}},mu=bu.name,du={title:Object(Y.__)("Verse"),description:Object(Y.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:lu,example:{attributes:{content:Object(Y.__)("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(Y.__)("poetry"),Object(Y.__)("poem")],transforms:uu,deprecated:su,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=t.textAlign,c=t.content,a=Object($.__experimentalUseBlockWrapperProps)({className:re()(Object(Z.a)({},"has-text-align-".concat(o),o))});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)($.RichText,Object(se.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){r({content:e})},placeholder:Object(Y.__)("Write…"),onMerge:n,textAlign:o},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)($.RichText.Content,{tagName:"pre",className:o,value:n})}},pu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),gu=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=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(J.createElement)(J.Fragment,null,Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Y.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Y.__)("Auto")},{value:"metadata",label:Object(Y.__)("Metadata")},{value:"none",label:Object(Y.__)("None")}]}))},hu=["video"],fu=["image"];var vu=Object(be.withNotices)((function e(t){var r=t.isSelected,n=t.noticeUI,o=t.attributes,c=t.setAttributes,a=t.insertBlocksAfter,i=t.onReplace,l=t.noticeOperations,s=Object(xe.useInstanceId)(e),u=Object(J.useRef)(),b=Object(J.useRef)(),m=o.id,d=o.caption,p=o.controls,g=o.poster,h=o.src,f=Object(me.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}));function v(e){e&&e.url?c({src:e.url,id:e.id}):c({src:void 0,id:void 0})}function O(e){if(e!==h){var t=Ve({attributes:{url:e}});if(void 0!==t)return void i(t);c({src:e,id:void 0})}}function j(e){l.removeAllNotices(),l.createErrorNotice(e)}Object(J.useEffect)((function(){if(!m&&Object(Ee.isBlobURL)(h)){var e=Object(Ee.getBlobByURL)(h);e&&f({filesList:[e],onFileChange:function(e){var t=Object(ue.a)(e,1)[0].url;c({src:t})},onError:function(e){l.createErrorNotice(e)},allowedTypes:hu})}}),[]),Object(J.useEffect)((function(){u.current&&u.current.load()}),[g]);var y=Object($.__experimentalUseBlockWrapperProps)();if(!h)return Object(J.createElement)("div",y,Object(J.createElement)($.MediaPlaceholder,{icon:Object(J.createElement)($.BlockIcon,{icon:pu}),onSelect:v,onSelectURL:O,accept:"video/*",allowedTypes:hu,value:o,notices:n,onError:j}));var w="video-block__poster-image-description-".concat(s);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)($.MediaReplaceFlow,{mediaId:m,mediaURL:h,allowedTypes:hu,accept:"video/*",onSelect:v,onSelectURL:O,onError:j})),Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Video settings")},Object(J.createElement)(gu,{setAttributes:c,attributes:o}),Object(J.createElement)($.MediaUploadCheck,null,Object(J.createElement)(be.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(be.BaseControl.VisualLabel,null,Object(Y.__)("Poster image")),Object(J.createElement)($.MediaUpload,{title:Object(Y.__)("Select poster image"),onSelect:function(e){c({poster:e.url})},allowedTypes:fu,render:function(e){var t=e.open;return Object(J.createElement)(be.Button,{isPrimary:!0,onClick:t,ref:b,"aria-describedby":w},g?Object(Y.__)("Replace"):Object(Y.__)("Select"))}}),Object(J.createElement)("p",{id:w,hidden:!0},g?Object(Y.sprintf)(Object(Y.__)("The current poster image url is %s"),g):Object(Y.__)("There is no poster image currently selected")),!!g&&Object(J.createElement)(be.Button,{onClick:function(){c({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(Y.__)("Remove")))))),Object(J.createElement)("figure",y,Object(J.createElement)(be.Disabled,null,Object(J.createElement)("video",{controls:p,poster:g,src:h,ref:u})),(!$.RichText.isEmpty(d)||r)&&Object(J.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Y.__)("Write caption…"),value:d,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return a(Object(K.createBlock)("core/paragraph"))}})))}));var Ou={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(K.createBlock)("core/video",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},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}}}}]},ju={name:"core/video",category:"media",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},supports:{anchor:!0,align:!0,lightBlockWrapper:!0}},yu=ju.name,wu={title:Object(Y.__)("Video"),description:Object(Y.__)("Embed a video from your media library or upload a new one."),icon:pu,keywords:[Object(Y.__)("movie")],transforms:Ou,edit:vu,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!$.RichText.isEmpty(n)&&Object(J.createElement)($.RichText.Content,{tagName:"figcaption",value:n}))}},_u=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var ku=Object(me.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))((function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.taxonomies,a=n.taxonomy,i=n.showTagCounts,l=Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Tag Cloud settings")},Object(J.createElement)(be.SelectControl,{label:Object(Y.__)("Taxonomy"),options:(t={label:Object(Y.__)("- Select -"),value:"",disabled:!0},r=Object(Q.map)(Object(Q.filter)(c,"show_cloud"),(function(e){return{value:e.slug,label:e.name}})),[t].concat(Object(q.a)(r))),value:a,onChange:function(e){return o({taxonomy:e})}}),Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Show post counts"),checked:i,onChange:function(){return o({showTagCounts:!i})}})));return Object(J.createElement)(J.Fragment,null,l,Object(J.createElement)(en.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:n}))})),Cu={name:"core/tag-cloud",category:"widgets",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},Eu=Cu.name,xu={title:Object(Y.__)("Tag Cloud"),description:Object(Y.__)("A cloud of your most used tags."),icon:_u,example:{},edit:ku},Su=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),Pu=function(e){var t=e.clientId,r=Object(me.useDispatch)("core/block-editor").replaceBlocks,n=Object(me.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]);return Object(J.createElement)(be.ToolbarButton,{onClick:function(){return r(n.clientId,Object(K.rawHandler)({HTML:Object(K.serialize)(n)}))}},Object(Y.__)("Convert to blocks"))};function Tu(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 Bu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===Vt.F10&&t.stopPropagation()})),e.on("init",(function(){var e=r.editor.getBody();e.ownerDocument.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this.props.clientId;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.BlockControls,null,Object(J.createElement)(be.ToolbarGroup,null,Object(J.createElement)(Pu,{clientId:e}))),Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(e),className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Y.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(e),className:"wp-block-freeform block-library-rich-text__tinymce"}))}}]),r}(J.Component);var Ru={name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},Au=Ru.name,Iu={title:Object(Y._x)("Classic","block title"),description:Object(Y.__)("Use the classic WordPress editor."),icon:Su,edit:Mu,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},Hu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"],Vu=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]];var Du=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object($.__experimentalUseBlockWrapperProps)();return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.__)("Link settings")},Object(J.createElement)(be.ToggleControl,{label:Object(Y.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(J.createElement)($.InnerBlocks,{allowedBlocks:Lu,templateLock:!1,template:Vu,orientation:"horizontal",__experimentalTagName:"ul",__experimentalPassedProps:n,__experimentalAppenderTagName:"li"}))};var Fu={name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],lightBlockWrapper:!0,anchor:!0}},Uu=Fu.name,Gu={title:Object(Y.__)("Social Icons"),description:Object(Y.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Y._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(Y.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Y.__)("Logos Only")},{name:"pill-shape",label:Object(Y.__)("Pill Shape")}],icon:Hu,edit:Du,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)($.InnerBlocks.Content,null))}},Wu=r(215),qu=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))},Zu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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:qu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.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"}))}}],$u=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(ue.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Q.find)(Zu,{name:t}))?r.icon:qu),g=function(e){var t=Object(Q.find)(Zu,{name:e});return t?t.title:Object(Y.__)("Social Icon")}(i),h=Object($.__experimentalUseBlockWrapperProps)({className:d});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)($.InspectorControls,null,Object(J.createElement)(be.PanelBody,{title:Object(Y.sprintf)(Object(Y.__)("%s label"),g),initialOpen:!1},Object(J.createElement)(be.PanelRow,null,Object(J.createElement)(be.TextControl,{label:Object(Y.__)("Link label"),help:Object(Y.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)("li",h,Object(J.createElement)(be.Button,{onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)($.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)($.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Y.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(be.Button,{icon:Wu.a,label:Object(Y.__)("Apply"),type:"submit"}))))))},Ku={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,lightBlockWrapper:!0}},Qu=Ku.name,Yu={title:Object(Y.__)("Social Icon"),icon:Hu,edit:$u,description:Object(Y.__)("Display an icon linking to a social media profile or website."),variations:Zu},Ju=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)}},Xu=function(){[n,o,c,i,k,a,R,l,s,u,b,m,d,p,g,h,f,v,O,N,window.wp&&window.wp.oldEditor?U:null,j,y,w,_,C,E,x,S,P,B,z,M,T,G,W,A,I,H,F,L,V,D].forEach(Ju),Object(K.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(K.setFreeformContentHandlerName)(Au),Object(K.setUnregisteredTypeHandlerName)(Di),Object(K.setGroupingBlockName)(Yl)},eb=void 0},483:function(e,t,r){"use strict";var n=r(0),o=r(7),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.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},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,o=0;function c(){var c,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=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(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,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+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:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.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,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(r).toString(16)),A(H(n))];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)&&(B[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 o=m(e);r="#"+h(o._r,o._g,o._b,o._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(v,arguments)},greyscale:function(){return this._applyModification(O,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(C,arguments)},tetrad:function(){return this._applyCombination(E,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]:I(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(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!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":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=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"},B=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);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),o.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 A(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var V,D,F,U=(D="[\\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"+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 G(e){return!!U.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 && arguments[1] !== undefined ? arguments[1] : {}; var innerBlocks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; // Get the type definition associated with a registered block. - var blockType = registration_getBlockType(name); // Ensure attributes contains only values defined by block type, and merge + var blockType = registration_getBlockType(name); + + if (undefined === blockType) { + throw new Error("Block type '".concat(name, "' is not registered.")); + } // Ensure attributes contains only values defined by block type, and merge // default values for missing attributes. + var sanitizedAttributes = Object(external_this_lodash_["reduce"])(blockType.attributes, function (accumulator, schema, key) { var value = attributes[key]; @@ -7600,9 +7648,9 @@ function cloneBlock(block) { var mergeAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var newInnerBlocks = arguments.length > 2 ? arguments[2] : undefined; var clientId = esm_browser_v4(); - return factory_objectSpread({}, block, { + return factory_objectSpread(factory_objectSpread({}, block), {}, { clientId: clientId, - attributes: factory_objectSpread({}, block.attributes, {}, mergeAttributes), + attributes: factory_objectSpread(factory_objectSpread({}, block.attributes), mergeAttributes), innerBlocks: newInnerBlocks || block.innerBlocks.map(function (innerBlock) { return cloneBlock(innerBlock); }) @@ -7847,7 +7895,7 @@ function getBlockTransforms(direction, blockTypeOrName) { return transforms[direction].map(function (transform) { - return factory_objectSpread({}, transform, { + return factory_objectSpread(factory_objectSpread({}, transform), {}, { blockName: blockName }); }); @@ -7925,7 +7973,7 @@ function switchToBlockType(blocks, name) { } return transformationResults.map(function (result, index) { - var transformedBlock = factory_objectSpread({}, result, { + var transformedBlock = factory_objectSpread(factory_objectSpread({}, result), {}, { // The first transformed block whose type matches the "destination" // type gets to keep the existing client ID of the first block. clientId: index === firstSwitchedBlock ? firstBlock.clientId : result.clientId @@ -7959,7 +8007,7 @@ var factory_getBlockFromExample = function getBlockFromExample(name, example) { }; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // CONCATENATED MODULE: ./node_modules/hpq/es/get-path.js /** @@ -8141,19 +8189,19 @@ function query(selector, matchers) { }; } // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(103); +var external_this_wp_autop_ = __webpack_require__(105); // EXTERNAL MODULE: external {"this":["wp","blockSerializationDefaultParser"]} -var external_this_wp_blockSerializationDefaultParser_ = __webpack_require__(267); +var external_this_wp_blockSerializationDefaultParser_ = __webpack_require__(281); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js -var toArray = __webpack_require__(146); +var toArray = __webpack_require__(150); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); // CONCATENATED MODULE: ./node_modules/simple-html-tokenizer/dist/es6/index.js /** @@ -8823,7 +8871,7 @@ function tokenize(input, options) { // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(75); +var external_this_wp_htmlEntities_ = __webpack_require__(69); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/validation/logger.js function createLogger() { @@ -8905,7 +8953,7 @@ var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/block-content-provider/index.js @@ -9026,7 +9074,7 @@ function serializer_objectSpread(target) { for (var i = 1; i < arguments.length; function getBlockDefaultClassName(blockName) { // Generated HTML classes for blocks follow the `wp-block-{name}` nomenclature. - // Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (used in 'core-embed/'). + // Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (historically used in 'core-embed/'). var className = 'wp-block-' + blockName.replace(/\//, '-').replace(/^core-/, ''); return Object(external_this_wp_hooks_["applyFilters"])('blocks.getBlockDefaultClassName', className, blockName); } @@ -9040,7 +9088,7 @@ function getBlockDefaultClassName(blockName) { function getBlockMenuDefaultClassName(blockName) { // Generated HTML classes for blocks follow the `editor-block-list-item-{name}` nomenclature. - // Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (used in 'core-embed/'). + // Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (historically used in 'core-embed/'). var className = 'editor-block-list-item-' + blockName.replace(/\//, '-').replace(/^core-/, ''); return Object(external_this_wp_hooks_["applyFilters"])('blocks.getBlockMenuDefaultClassName', className, blockName); } @@ -9944,13 +9992,6 @@ function node_objectSpread(target) { for (var i = 1; i < arguments.length; i++) * Internal dependencies */ -/** - * Browser dependencies - */ - -var _window$Node = window.Node, - TEXT_NODE = _window$Node.TEXT_NODE, - ELEMENT_NODE = _window$Node.ELEMENT_NODE; /** * A representation of a single node within a block's rich text value. If * representing a text node, the value is simply a string of the node value. @@ -10011,17 +10052,17 @@ function getNamedNodeMapAsObject(nodeMap) { */ function fromDOM(domNode) { - if (domNode.nodeType === TEXT_NODE) { + if (domNode.nodeType === domNode.TEXT_NODE) { return domNode.nodeValue; } - if (domNode.nodeType !== ELEMENT_NODE) { + if (domNode.nodeType !== domNode.ELEMENT_NODE) { throw new TypeError('A block node can only be created from a node of type text or ' + 'element.'); } return { type: domNode.nodeName.toLowerCase(), - props: node_objectSpread({}, getNamedNodeMapAsObject(domNode.attributes), { + props: node_objectSpread(node_objectSpread({}, getNamedNodeMapAsObject(domNode.attributes)), {}, { children: children_fromDOM(domNode.childNodes) }) }; @@ -10582,7 +10623,7 @@ function getMigratedBlock(block, parsedAttributes) { validationIssues = _getBlockContentValid.validationIssues; if (!isValid) { - block = parser_objectSpread({}, block, { + block = parser_objectSpread(parser_objectSpread({}, block), {}, { validationIssues: [].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_lodash_["get"])(block, 'validationIssues', [])), Object(toConsumableArray["a" /* default */])(validationIssues)) }); continue; @@ -10604,7 +10645,7 @@ function getMigratedBlock(block, parsedAttributes) { migratedInnerBlocks = _castArray2$2 === void 0 ? innerBlocks : _castArray2$2; } - block = parser_objectSpread({}, block, { + block = parser_objectSpread(parser_objectSpread({}, block), {}, { attributes: migratedAttributes, innerBlocks: migratedInnerBlocks, isValid: true @@ -10652,6 +10693,25 @@ function createBlockWithFallback(blockNode) { // Capture `social-link-wordpress` into `{"service":"wordpress"}` attributes.service = name.substring(17); name = 'core/social-link'; + } // Convert derivative blocks such as 'core-embed/instagram' to the + // canonical form 'core/embed'. + + + if (name && name.indexOf('core-embed/') === 0) { + // Capture `core-embed/instagram` into `{"providerNameSlug":"instagram"}` + var providerSlug = name.substring(11); + var deprecated = { + speaker: 'speaker-deck', + polldaddy: 'crowdsignal' + }; + attributes.providerNameSlug = providerSlug in deprecated ? deprecated[providerSlug] : providerSlug; // this is needed as the `responsive` attribute was passed + // in a different way before the refactoring to block variations + + if (!['amazon-kindle', 'wordpress'].includes(providerSlug)) { + attributes.responsive = true; + } + + name = 'core/embed'; } // Fallback content may be upgraded from classic editor expecting implicit // automatic paragraphs, so preserve them. Assumes wpautop is idempotent, // meaning there are no negative consequences to repeated autop calls. @@ -10823,534 +10883,11 @@ var createParse = function createParse(parseImplementation) { var parseWithGrammar = createParse(external_this_wp_blockSerializationDefaultParser_["parse"]); /* harmony default export */ var parser = (parseWithGrammar); -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content.js - - -function phrasing_content_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 phrasing_content_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { phrasing_content_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 { phrasing_content_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * All phrasing content elements. - * - * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0 - */ - -/** - * All text-level semantic elements. - * - * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html - */ - -var textContentSchema = { - strong: {}, - em: {}, - s: {}, - del: {}, - ins: {}, - a: { - attributes: ['href', 'target', 'rel'] - }, - code: {}, - abbr: { - attributes: ['title'] - }, - sub: {}, - sup: {}, - br: {}, - small: {}, - // To do: fix blockquote. - // cite: {}, - q: { - attributes: ['cite'] - }, - dfn: { - attributes: ['title'] - }, - data: { - attributes: ['value'] - }, - time: { - attributes: ['datetime'] - }, - var: {}, - samp: {}, - kbd: {}, - i: {}, - b: {}, - u: {}, - mark: {}, - ruby: {}, - rt: {}, - rp: {}, - bdi: { - attributes: ['dir'] - }, - bdo: { - attributes: ['dir'] - }, - wbr: {}, - '#text': {} -}; // Recursion is needed. -// Possible: strong > em > strong. -// Impossible: strong > strong. - -Object(external_this_lodash_["without"])(Object.keys(textContentSchema), '#text', 'br').forEach(function (tag) { - textContentSchema[tag].children = Object(external_this_lodash_["omit"])(textContentSchema, tag); -}); -/** - * Embedded content elements. - * - * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#embedded-content-0 - */ - -var embeddedContentSchema = { - audio: { - attributes: ['src', 'preload', 'autoplay', 'mediagroup', 'loop', 'muted'] - }, - canvas: { - attributes: ['width', 'height'] - }, - embed: { - attributes: ['src', 'type', 'width', 'height'] - }, - img: { - attributes: ['alt', 'src', 'srcset', 'usemap', 'ismap', 'width', 'height'] - }, - object: { - attributes: ['data', 'type', 'name', 'usemap', 'form', 'width', 'height'] - }, - video: { - attributes: ['src', 'poster', 'preload', 'autoplay', 'mediagroup', 'loop', 'muted', 'controls', 'width', 'height'] - } -}; -/** - * Phrasing content elements. - * - * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0 - */ - -var phrasing_content_phrasingContentSchema = phrasing_content_objectSpread({}, textContentSchema, {}, embeddedContentSchema); -/** - * Get schema of possible paths for phrasing content. - * - * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content - * - * @param {string} context Set to "paste" to exclude invisible elements and - * sensitive data. - * - * @return {Object} Schema. - */ - - -function getPhrasingContentSchema(context) { - if (context !== 'paste') { - return phrasing_content_phrasingContentSchema; - } - - return Object(external_this_lodash_["omit"])(phrasing_content_objectSpread({}, phrasing_content_phrasingContentSchema, { - // We shouldn't paste potentially sensitive information which is not - // visible to the user when pasted, so strip the attributes. - ins: { - children: phrasing_content_phrasingContentSchema.ins.children - }, - del: { - children: phrasing_content_phrasingContentSchema.del.children - } - }), ['u', // Used to mark misspelling. Shouldn't be pasted. - 'abbr', // Invisible. - 'data', // Invisible. - 'time', // Invisible. - 'wbr', // Invisible. - 'bdi', // Invisible. - 'bdo' // Invisible. - ]); -} -/** - * Find out whether or not the given node is phrasing content. - * - * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content - * - * @param {Element} node The node to test. - * - * @return {boolean} True if phrasing content, false if not. - */ - -function isPhrasingContent(node) { - var tag = node.nodeName.toLowerCase(); - return getPhrasingContentSchema().hasOwnProperty(tag) || tag === 'span'; -} -function isTextContent(node) { - var tag = node.nodeName.toLowerCase(); - return textContentSchema.hasOwnProperty(tag) || tag === 'span'; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/utils.js - - - -function raw_handling_utils_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 raw_handling_utils_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { raw_handling_utils_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 { raw_handling_utils_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/normalise-blocks.js /** * WordPress dependencies */ - -/** - * Internal dependencies - */ - - - -/** - * Browser dependencies - */ - -var utils_window$Node = window.Node, - utils_ELEMENT_NODE = utils_window$Node.ELEMENT_NODE, - utils_TEXT_NODE = utils_window$Node.TEXT_NODE; -/** - * Given raw transforms from blocks, merges all schemas into one. - * - * @param {Array} transforms Block transforms, of the `raw` type. - * @param {Object} phrasingContentSchema The phrasing content schema. - * @param {Object} isPaste Whether the context is pasting or not. - * - * @return {Object} A complete block content schema. - */ - -function getBlockContentSchema(transforms, phrasingContentSchema, isPaste) { - var schemas = transforms.map(function (_ref) { - var isMatch = _ref.isMatch, - blockName = _ref.blockName, - schema = _ref.schema; - var hasAnchorSupport = registration_hasBlockSupport(blockName, 'anchor'); - schema = Object(external_this_lodash_["isFunction"])(schema) ? schema({ - phrasingContentSchema: phrasingContentSchema, - isPaste: isPaste - }) : schema; // If the block does not has anchor support and the transform does not - // provides an isMatch we can return the schema right away. - - if (!hasAnchorSupport && !isMatch) { - return schema; - } - - return Object(external_this_lodash_["mapValues"])(schema, function (value) { - var attributes = value.attributes || []; // If the block supports the "anchor" functionality, it needs to keep its ID attribute. - - if (hasAnchorSupport) { - attributes = [].concat(Object(toConsumableArray["a" /* default */])(attributes), ['id']); - } - - return raw_handling_utils_objectSpread({}, value, { - attributes: attributes, - isMatch: isMatch ? isMatch : undefined - }); - }); - }); - return external_this_lodash_["mergeWith"].apply(void 0, [{}].concat(Object(toConsumableArray["a" /* default */])(schemas), [function (objValue, srcValue, key) { - switch (key) { - case 'children': - { - if (objValue === '*' || srcValue === '*') { - return '*'; - } - - return raw_handling_utils_objectSpread({}, objValue, {}, srcValue); - } - - case 'attributes': - case 'require': - { - return [].concat(Object(toConsumableArray["a" /* default */])(objValue || []), Object(toConsumableArray["a" /* default */])(srcValue || [])); - } - - case 'isMatch': - { - // If one of the values being merge is undefined (matches everything), - // the result of the merge will be undefined. - if (!objValue || !srcValue) { - return undefined; - } // When merging two isMatch functions, the result is a new function - // that returns if one of the source functions returns true. - - - return function () { - return objValue.apply(void 0, arguments) || srcValue.apply(void 0, arguments); - }; - } - } - }])); -} -/** - * Recursively checks if an element is empty. An element is not empty if it - * contains text or contains elements with attributes such as images. - * - * @param {Element} element The element to check. - * - * @return {boolean} Wether or not the element is empty. - */ - -function isEmpty(element) { - if (!element.hasChildNodes()) { - return true; - } - - return Array.from(element.childNodes).every(function (node) { - if (node.nodeType === utils_TEXT_NODE) { - return !node.nodeValue.trim(); - } - - if (node.nodeType === utils_ELEMENT_NODE) { - if (node.nodeName === 'BR') { - return true; - } else if (node.hasAttributes()) { - return false; - } - - return isEmpty(node); - } - - return true; - }); -} -/** - * Checks wether HTML can be considered plain text. That is, it does not contain - * any elements that are not line breaks. - * - * @param {string} HTML The HTML to check. - * - * @return {boolean} Wether the HTML can be considered plain text. - */ - -function isPlain(HTML) { - return !/<(?!br[ />])/i.test(HTML); -} -/** - * Given node filters, deeply filters and mutates a NodeList. - * - * @param {NodeList} nodeList The nodeList to filter. - * @param {Array} filters An array of functions that can mutate with the provided node. - * @param {Document} doc The document of the nodeList. - * @param {Object} schema The schema to use. - */ - -function deepFilterNodeList(nodeList, filters, doc, schema) { - Array.from(nodeList).forEach(function (node) { - deepFilterNodeList(node.childNodes, filters, doc, schema); - filters.forEach(function (item) { - // Make sure the node is still attached to the document. - if (!doc.contains(node)) { - return; - } - - item(node, doc, schema); - }); - }); -} -/** - * Given node filters, deeply filters HTML tags. - * Filters from the deepest nodes to the top. - * - * @param {string} HTML The HTML to filter. - * @param {Array} filters An array of functions that can mutate with the provided node. - * @param {Object} schema The schema to use. - * - * @return {string} The filtered HTML. - */ - -function deepFilterHTML(HTML) { - var filters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var schema = arguments.length > 2 ? arguments[2] : undefined; - var doc = document.implementation.createHTMLDocument(''); - doc.body.innerHTML = HTML; - deepFilterNodeList(doc.body.childNodes, filters, doc, schema); - return doc.body.innerHTML; -} -/** - * Given a schema, unwraps or removes nodes, attributes and classes on a node - * list. - * - * @param {NodeList} nodeList The nodeList to filter. - * @param {Document} doc The document of the nodeList. - * @param {Object} schema An array of functions that can mutate with the provided node. - * @param {Object} inline Whether to clean for inline mode. - */ - -function cleanNodeList(nodeList, doc, schema, inline) { - Array.from(nodeList).forEach(function (node) { - var tag = node.nodeName.toLowerCase(); // It's a valid child, if the tag exists in the schema without an isMatch - // function, or with an isMatch function that matches the node. - - if (schema.hasOwnProperty(tag) && (!schema[tag].isMatch || schema[tag].isMatch(node))) { - if (node.nodeType === utils_ELEMENT_NODE) { - var _schema$tag = schema[tag], - _schema$tag$attribute = _schema$tag.attributes, - attributes = _schema$tag$attribute === void 0 ? [] : _schema$tag$attribute, - _schema$tag$classes = _schema$tag.classes, - classes = _schema$tag$classes === void 0 ? [] : _schema$tag$classes, - children = _schema$tag.children, - _schema$tag$require = _schema$tag.require, - require = _schema$tag$require === void 0 ? [] : _schema$tag$require, - allowEmpty = _schema$tag.allowEmpty; // If the node is empty and it's supposed to have children, - // remove the node. - - - if (children && !allowEmpty && isEmpty(node)) { - Object(external_this_wp_dom_["remove"])(node); - return; - } - - if (node.hasAttributes()) { - // Strip invalid attributes. - Array.from(node.attributes).forEach(function (_ref2) { - var name = _ref2.name; - - if (name !== 'class' && !Object(external_this_lodash_["includes"])(attributes, name)) { - node.removeAttribute(name); - } - }); // Strip invalid classes. - // In jsdom-jscore, 'node.classList' can be undefined. - // TODO: Explore patching this in jsdom-jscore. - - if (node.classList && node.classList.length) { - var mattchers = classes.map(function (item) { - if (typeof item === 'string') { - return function (className) { - return className === item; - }; - } else if (item instanceof RegExp) { - return function (className) { - return item.test(className); - }; - } - - return external_this_lodash_["noop"]; - }); - Array.from(node.classList).forEach(function (name) { - if (!mattchers.some(function (isMatch) { - return isMatch(name); - })) { - node.classList.remove(name); - } - }); - - if (!node.classList.length) { - node.removeAttribute('class'); - } - } - } - - if (node.hasChildNodes()) { - // Do not filter any content. - if (children === '*') { - return; - } // Continue if the node is supposed to have children. - - - if (children) { - // If a parent requires certain children, but it does - // not have them, drop the parent and continue. - if (require.length && !node.querySelector(require.join(','))) { - cleanNodeList(node.childNodes, doc, schema, inline); - Object(external_this_wp_dom_["unwrap"])(node); // If the node is at the top, phrasing content, and - // contains children that are block content, unwrap - // the node because it is invalid. - } else if (node.parentNode.nodeName === 'BODY' && isPhrasingContent(node)) { - cleanNodeList(node.childNodes, doc, schema, inline); - - if (Array.from(node.childNodes).some(function (child) { - return !isPhrasingContent(child); - })) { - Object(external_this_wp_dom_["unwrap"])(node); - } - } else { - cleanNodeList(node.childNodes, doc, children, inline); - } // Remove children if the node is not supposed to have any. - - } else { - while (node.firstChild) { - Object(external_this_wp_dom_["remove"])(node.firstChild); - } - } - } - } // Invalid child. Continue with schema at the same place and unwrap. - - } else { - cleanNodeList(node.childNodes, doc, schema, inline); // For inline mode, insert a line break when unwrapping nodes that - // are not phrasing content. - - if (inline && !isPhrasingContent(node) && node.nextElementSibling) { - Object(external_this_wp_dom_["insertAfter"])(doc.createElement('br'), node); - } - - Object(external_this_wp_dom_["unwrap"])(node); - } - }); -} -/** - * Given a schema, unwraps or removes nodes, attributes and classes on HTML. - * - * @param {string} HTML The HTML to clean up. - * @param {Object} schema Schema for the HTML. - * @param {Object} inline Whether to clean for inline mode. - * - * @return {string} The cleaned up HTML. - */ - - -function removeInvalidHTML(HTML, schema, inline) { - var doc = document.implementation.createHTMLDocument(''); - doc.body.innerHTML = HTML; - cleanNodeList(doc.body.childNodes, doc, schema, inline); - return doc.body.innerHTML; -} -/** - * Gets a sibling within text-level context. - * - * @param {Element} node The subject node. - * @param {string} which "next" or "previous". - */ - -function getSibling(node, which) { - var sibling = node["".concat(which, "Sibling")]; - - if (sibling && isPhrasingContent(sibling)) { - return sibling; - } - - var parentNode = node.parentNode; - - if (!parentNode || !isPhrasingContent(parentNode)) { - return; - } - - return getSibling(parentNode, which); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/normalise-blocks.js -/** - * Internal dependencies - */ - - -/** - * Browser dependencies - */ - -var normalise_blocks_window$Node = window.Node, - normalise_blocks_ELEMENT_NODE = normalise_blocks_window$Node.ELEMENT_NODE, - normalise_blocks_TEXT_NODE = normalise_blocks_window$Node.TEXT_NODE; function normaliseBlocks(HTML) { var decuDoc = document.implementation.createHTMLDocument(''); var accuDoc = document.implementation.createHTMLDocument(''); @@ -11361,7 +10898,7 @@ function normaliseBlocks(HTML) { while (decu.firstChild) { var node = decu.firstChild; // Text nodes: wrap in a paragraph, or append to previous. - if (node.nodeType === normalise_blocks_TEXT_NODE) { + if (node.nodeType === node.TEXT_NODE) { if (!node.nodeValue.trim()) { decu.removeChild(node); } else { @@ -11372,7 +10909,7 @@ function normaliseBlocks(HTML) { accu.lastChild.appendChild(node); } // Element nodes. - } else if (node.nodeType === normalise_blocks_ELEMENT_NODE) { + } else if (node.nodeType === node.ELEMENT_NODE) { // BR nodes: create a new paragraph on double, or append to previous. if (node.nodeName === 'BR') { if (node.nextSibling && node.nextSibling.nodeName === 'BR') { @@ -11388,12 +10925,12 @@ function normaliseBlocks(HTML) { } } else if (node.nodeName === 'P') { // Only append non-empty paragraph nodes. - if (isEmpty(node)) { + if (Object(external_this_wp_dom_["isEmpty"])(node)) { decu.removeChild(node); } else { accu.appendChild(node); } - } else if (isPhrasingContent(node)) { + } else if (Object(external_this_wp_dom_["isPhrasingContent"])(node)) { if (!accu.lastChild || accu.lastChild.nodeName !== 'P') { accu.appendChild(accuDoc.createElement('P')); } @@ -11415,11 +10952,6 @@ function normaliseBlocks(HTML) { * WordPress dependencies */ -/** - * Browser dependencies - */ - -var COMMENT_NODE = window.Node.COMMENT_NODE; /** * Looks for `` and `` comments, as well as the * `` variant and its `` companion, @@ -11438,7 +10970,7 @@ var COMMENT_NODE = window.Node.COMMENT_NODE; */ function specialCommentConverter(node, doc) { - if (node.nodeType !== COMMENT_NODE) { + if (node.nodeType !== node.COMMENT_NODE) { return; } @@ -11460,7 +10992,7 @@ function specialCommentConverter(node, doc) { var noTeaser = false; while (sibling = sibling.nextSibling) { - if (sibling.nodeType === COMMENT_NODE && sibling.nodeValue === 'noteaser') { + if (sibling.nodeType === sibling.COMMENT_NODE && sibling.nodeValue === 'noteaser') { noTeaser = true; Object(external_this_wp_dom_["remove"])(sibling); break; @@ -11498,11 +11030,6 @@ function createNextpage(doc) { * WordPress dependencies */ -/** - * Browser dependencies - */ - -var comment_remover_COMMENT_NODE = window.Node.COMMENT_NODE; /** * Looks for comments, and removes them. * @@ -11511,7 +11038,7 @@ var comment_remover_COMMENT_NODE = window.Node.COMMENT_NODE; */ function commentRemover(node) { - if (node.nodeType === comment_remover_COMMENT_NODE) { + if (node.nodeType === node.COMMENT_NODE) { Object(external_this_wp_dom_["remove"])(node); } } @@ -11522,7 +11049,7 @@ function commentRemover(node) { */ /** - * Internal dependencies + * WordPress dependencies */ @@ -11537,7 +11064,7 @@ function commentRemover(node) { */ function isInline(node, contextTag) { - if (isTextContent(node)) { + if (Object(external_this_wp_dom_["isTextContent"])(node)) { return true; } @@ -11546,8 +11073,8 @@ function isInline(node, contextTag) { } var tag = node.nodeName.toLowerCase(); - var inlineWhitelistTagGroups = [['ul', 'li', 'ol'], ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']]; - return inlineWhitelistTagGroups.some(function (tagGroup) { + var inlineAllowedTagGroups = [['ul', 'li', 'ol'], ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']]; + return inlineAllowedTagGroups.some(function (tagGroup) { return Object(external_this_lodash_["difference"])([tag, contextTag], tagGroup).length === 0; }); } @@ -11781,7 +11308,7 @@ function listReducer(node) { } // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(44); +var external_this_wp_blob_ = __webpack_require__(43); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js @@ -11869,7 +11396,7 @@ function blockquoteNormaliser(node) { */ /** - * Internal dependencies + * WordPress dependencies */ @@ -11886,7 +11413,7 @@ function isFigureContent(node, schema) { var tag = node.nodeName.toLowerCase(); // We are looking for tags that can be a child of the figure tag, excluding // `figcaption` and any phrasing content. - if (tag === 'figcaption' || isTextContent(node)) { + if (tag === 'figcaption' || Object(external_this_wp_dom_["isTextContent"])(node)) { return false; } @@ -11963,7 +11490,7 @@ function figureContentReducer(node, doc, schema) { } // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(125); +var external_this_wp_shortcode_ = __webpack_require__(129); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js @@ -12045,7 +11572,7 @@ function segmentHTMLToShortcodeBlock(HTML) { function (schema) { return schema.shortcode(match.shortcode.attrs, match); }); - var block = createBlock(transformation.blockName, getBlockAttributes(shortcode_converter_objectSpread({}, registration_getBlockType(transformation.blockName), { + var block = createBlock(transformation.blockName, getBlockAttributes(shortcode_converter_objectSpread(shortcode_converter_objectSpread({}, registration_getBlockType(transformation.blockName)), {}, { attributes: transformation.attributes }), match.shortcode.content, attributes)); return [beforeHTML, block].concat(Object(toConsumableArray["a" /* default */])(segmentHTMLToShortcodeBlock(HTML.substr(lastIndex)))); @@ -12057,7 +11584,7 @@ function segmentHTMLToShortcodeBlock(HTML) { /* harmony default export */ var shortcode_converter = (segmentHTMLToShortcodeBlock); // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js -var showdown = __webpack_require__(268); +var showdown = __webpack_require__(282); var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js @@ -12132,6 +11659,177 @@ function googleDocsUIdRemover(node) { Object(external_this_wp_dom_["unwrap"])(node); } +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/utils.js + + + +function raw_handling_utils_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 raw_handling_utils_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { raw_handling_utils_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 { raw_handling_utils_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Given raw transforms from blocks, merges all schemas into one. + * + * @param {Array} transforms Block transforms, of the `raw` type. + * @param {Object} phrasingContentSchema The phrasing content schema. + * @param {Object} isPaste Whether the context is pasting or not. + * + * @return {Object} A complete block content schema. + */ + +function getBlockContentSchema(transforms, phrasingContentSchema, isPaste) { + var schemas = transforms.map(function (_ref) { + var isMatch = _ref.isMatch, + blockName = _ref.blockName, + schema = _ref.schema; + var hasAnchorSupport = registration_hasBlockSupport(blockName, 'anchor'); + schema = Object(external_this_lodash_["isFunction"])(schema) ? schema({ + phrasingContentSchema: phrasingContentSchema, + isPaste: isPaste + }) : schema; // If the block does not has anchor support and the transform does not + // provides an isMatch we can return the schema right away. + + if (!hasAnchorSupport && !isMatch) { + return schema; + } + + return Object(external_this_lodash_["mapValues"])(schema, function (value) { + var attributes = value.attributes || []; // If the block supports the "anchor" functionality, it needs to keep its ID attribute. + + if (hasAnchorSupport) { + attributes = [].concat(Object(toConsumableArray["a" /* default */])(attributes), ['id']); + } + + return raw_handling_utils_objectSpread(raw_handling_utils_objectSpread({}, value), {}, { + attributes: attributes, + isMatch: isMatch ? isMatch : undefined + }); + }); + }); + return external_this_lodash_["mergeWith"].apply(void 0, [{}].concat(Object(toConsumableArray["a" /* default */])(schemas), [function (objValue, srcValue, key) { + switch (key) { + case 'children': + { + if (objValue === '*' || srcValue === '*') { + return '*'; + } + + return raw_handling_utils_objectSpread(raw_handling_utils_objectSpread({}, objValue), srcValue); + } + + case 'attributes': + case 'require': + { + return [].concat(Object(toConsumableArray["a" /* default */])(objValue || []), Object(toConsumableArray["a" /* default */])(srcValue || [])); + } + + case 'isMatch': + { + // If one of the values being merge is undefined (matches everything), + // the result of the merge will be undefined. + if (!objValue || !srcValue) { + return undefined; + } // When merging two isMatch functions, the result is a new function + // that returns if one of the source functions returns true. + + + return function () { + return objValue.apply(void 0, arguments) || srcValue.apply(void 0, arguments); + }; + } + } + }])); +} +/** + * Checks wether HTML can be considered plain text. That is, it does not contain + * any elements that are not line breaks. + * + * @param {string} HTML The HTML to check. + * + * @return {boolean} Wether the HTML can be considered plain text. + */ + +function isPlain(HTML) { + return !/<(?!br[ />])/i.test(HTML); +} +/** + * Given node filters, deeply filters and mutates a NodeList. + * + * @param {NodeList} nodeList The nodeList to filter. + * @param {Array} filters An array of functions that can mutate with the provided node. + * @param {Document} doc The document of the nodeList. + * @param {Object} schema The schema to use. + */ + +function deepFilterNodeList(nodeList, filters, doc, schema) { + Array.from(nodeList).forEach(function (node) { + deepFilterNodeList(node.childNodes, filters, doc, schema); + filters.forEach(function (item) { + // Make sure the node is still attached to the document. + if (!doc.contains(node)) { + return; + } + + item(node, doc, schema); + }); + }); +} +/** + * Given node filters, deeply filters HTML tags. + * Filters from the deepest nodes to the top. + * + * @param {string} HTML The HTML to filter. + * @param {Array} filters An array of functions that can mutate with the provided node. + * @param {Object} schema The schema to use. + * + * @return {string} The filtered HTML. + */ + +function deepFilterHTML(HTML) { + var filters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var schema = arguments.length > 2 ? arguments[2] : undefined; + var doc = document.implementation.createHTMLDocument(''); + doc.body.innerHTML = HTML; + deepFilterNodeList(doc.body.childNodes, filters, doc, schema); + return doc.body.innerHTML; +} +/** + * Gets a sibling within text-level context. + * + * @param {Element} node The subject node. + * @param {string} which "next" or "previous". + */ + +function getSibling(node, which) { + var sibling = node["".concat(which, "Sibling")]; + + if (sibling && Object(external_this_wp_dom_["isPhrasingContent"])(sibling)) { + return sibling; + } + + var parentNode = node.parentNode; + + if (!parentNode || !Object(external_this_wp_dom_["isPhrasingContent"])(parentNode)) { + return; + } + + return getSibling(parentNode, which); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-formatting-remover.js /** * Internal dependencies @@ -12166,7 +11864,7 @@ function htmlFormattingRemover(node) { var parent = node; while (parent = parent.parentNode) { - if (parent.nodeType === window.Node.ELEMENT_NODE && parent.nodeName === 'PRE') { + if (parent.nodeType === parent.ELEMENT_NODE && parent.nodeName === 'PRE') { return; } } // First, replace any sequence of HTML formatting space with a single space. @@ -12257,10 +11955,14 @@ function paste_handler_objectSpread(target) { for (var i = 1; i < arguments.leng */ /** - * Internal dependencies + * WordPress dependencies */ +/** + * Internal dependencies + */ + @@ -12300,7 +12002,7 @@ var paste_handler_window = window, function filterInlineHTML(HTML) { HTML = deepFilterHTML(HTML, [googleDocsUIdRemover, phrasingContentReducer, commentRemover]); - HTML = removeInvalidHTML(HTML, getPhrasingContentSchema('paste'), { + HTML = Object(external_this_wp_dom_["removeInvalidHTML"])(HTML, Object(external_this_wp_dom_["getPhrasingContentSchema"])('paste'), { inline: true }); HTML = deepFilterHTML(HTML, [htmlFormattingRemover, brRemover]); // Allows us to ask for this information when we get a report. @@ -12313,7 +12015,7 @@ function getRawTransformations() { return Object(external_this_lodash_["filter"])(getBlockTransforms('from'), { type: 'raw' }).map(function (transform) { - return transform.isMatch ? transform : paste_handler_objectSpread({}, transform, { + return transform.isMatch ? transform : paste_handler_objectSpread(paste_handler_objectSpread({}, transform), {}, { isMatch: function isMatch(node) { return transform.selector && node.matches(transform.selector); } @@ -12441,7 +12143,7 @@ function pasteHandler(_ref3) { } var rawTransforms = getRawTransformations(); - var phrasingContentSchema = getPhrasingContentSchema('paste'); + var phrasingContentSchema = Object(external_this_wp_dom_["getPhrasingContentSchema"])('paste'); var blockContentSchema = getBlockContentSchema(rawTransforms, phrasingContentSchema, true); var blocks = Object(external_this_lodash_["compact"])(Object(external_this_lodash_["flatMap"])(pieces, function (piece) { // Already a block from shortcode. @@ -12451,10 +12153,10 @@ function pasteHandler(_ref3) { var filters = [googleDocsUIdRemover, msListConverter, headRemover, listReducer, imageCorrector, phrasingContentReducer, specialCommentConverter, commentRemover, iframeRemover, figureContentReducer, blockquoteNormaliser]; - var schema = paste_handler_objectSpread({}, blockContentSchema, {}, phrasingContentSchema); + var schema = paste_handler_objectSpread(paste_handler_objectSpread({}, blockContentSchema), phrasingContentSchema); piece = deepFilterHTML(piece, filters, blockContentSchema); - piece = removeInvalidHTML(piece, schema); + piece = Object(external_this_wp_dom_["removeInvalidHTML"])(piece, schema); piece = normaliseBlocks(piece); piece = deepFilterHTML(piece, [htmlFormattingRemover, brRemover, emptyParagraphRemover], blockContentSchema); // Allows us to ask for this information when we get a report. @@ -12471,13 +12173,17 @@ function pasteHandler(_ref3) { var trimmedPlainText = plainText.trim(); if (trimmedPlainText !== '' && trimmedPlainText.indexOf('\n') === -1) { - return removeInvalidHTML(getBlockContent(blocks[0]), phrasingContentSchema); + return Object(external_this_wp_dom_["removeInvalidHTML"])(getBlockContent(blocks[0]), phrasingContentSchema); } } return blocks; } +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(35); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/index.js @@ -12489,6 +12195,12 @@ function raw_handling_objectSpread(target) { for (var i = 1; i < arguments.lengt * External dependencies */ +/** + * WordPress dependencies + */ + + + /** * Internal dependencies */ @@ -12503,14 +12215,18 @@ function raw_handling_objectSpread(target) { for (var i = 1; i < arguments.lengt - - +function deprecatedGetPhrasingContentSchema(context) { + external_this_wp_deprecated_default()('wp.blocks.getPhrasingContentSchema', { + alternative: 'wp.dom.getPhrasingContentSchema' + }); + return Object(external_this_wp_dom_["getPhrasingContentSchema"])(context); +} function raw_handling_getRawTransformations() { return Object(external_this_lodash_["filter"])(getBlockTransforms('from'), { type: 'raw' }).map(function (transform) { - return transform.isMatch ? transform : raw_handling_objectSpread({}, transform, { + return transform.isMatch ? transform : raw_handling_objectSpread(raw_handling_objectSpread({}, transform), {}, { isMatch: function isMatch(node) { return transform.selector && node.matches(transform.selector); } @@ -12579,7 +12295,7 @@ function rawHandler(_ref3) { var pieces = shortcode_converter(HTML); var rawTransforms = raw_handling_getRawTransformations(); - var phrasingContentSchema = getPhrasingContentSchema(); + var phrasingContentSchema = Object(external_this_wp_dom_["getPhrasingContentSchema"])(); var blockContentSchema = getBlockContentSchema(rawTransforms, phrasingContentSchema); return Object(external_this_lodash_["compact"])(Object(external_this_lodash_["flatMap"])(pieces, function (piece) { // Already a block from shortcode. @@ -12719,7 +12435,7 @@ function synchronizeBlocksWithTemplate() { if (block && block.name === name) { var innerBlocks = synchronizeBlocksWithTemplate(block.innerBlocks, innerBlocksTemplate); - return templates_objectSpread({}, block, { + return templates_objectSpread(templates_objectSpread({}, block), {}, { innerBlocks: innerBlocks }); } // To support old templates that were using the "children" format @@ -12777,6 +12493,7 @@ function synchronizeBlocksWithTemplate() { + // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/index.js // A "block" is the abstract term used to describe units of markup that, // when composed together, form the content or layout of a page. @@ -12820,13 +12537,6 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 6: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["primitives"]; }()); - -/***/ }), - /***/ 64: /***/ (function(module, exports) { @@ -12837,7 +12547,7 @@ function _defineProperty(obj, key, value) { /***/ 66: /***/ (function(module, exports, __webpack_require__) { -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2 // https://github.com/bgrins/TinyColor // Brian Grinstead, MIT License @@ -14035,13 +13745,20 @@ else {} /***/ }), -/***/ 75: +/***/ 69: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["htmlEntities"]; }()); /***/ }), +/***/ 7: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + /***/ 8: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -14065,13 +13782,6 @@ function _extends() { return _extends.apply(this, arguments); } -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index a2b1879c51..5b04cf27db 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=442)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},103:function(e,t){!function(){e.exports=this.wp.autop}()},125:function(e,t){!function(){e.exports=this.wp.shortcode}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var a=r(29),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)()}},146:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(38),a=r(35),o=r(29),i=r(39);function s(e){return Object(n.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(i.a)()}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(26);var a=r(35),o=r(29);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.")}()}},19: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,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);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}}},30:function(e,t){!function(){e.exports=this.wp.dom}()},32:function(e,t){!function(){e.exports=this.wp.hooks}()},35: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}()},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({},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({},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({},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({},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({},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({},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({},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({},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({},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}var y=function(e,t){return"string"==typeof t?O(e,t):t},k=Object(v.a)((function(e){return Object.values(e.blockTypes).map((function(t){return function(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(B(e,t),(function(t){return M(e,t,"inserter",!0)}))};function I(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function V(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function R(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function F(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function U(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function G(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function K(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function Q(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function X(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var J="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ee=new Uint8Array(16);function te(){if(!J)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(ee)}for(var re=[],ne=0;ne<256;++ne)re[ne]=(ne+256).toString(16).substr(1);var ae=function(e,t){var r=t||0,n=re;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 oe=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||te)();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||ae(a)},ie=r(32),se=r(201),ce=r(66),ue=r.n(ce),le=r(0),fe=r(30);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}var pe=["#191e23","#f8f9f9"];function he(e){var t=ze();if(e.name!==t)return!1;he.block&&he.block.name===t||(he.block=Qe(t));var r=he.block,n=De(t);return Object(c.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function be(e){return!!e&&(Object(c.isString)(e)||Object(le.isValidElement)(e)||Object(c.isFunction)(e)||e instanceof le.Component)}function ge(e){if(be(e))return{src:e};if(Object(c.has)(e,["background"])){var t=ue()(e.background);return function(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(fe.__unstableStripHTML)(o):a}function ve(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=_e(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 we=["attributes","supports","save","migrate","isEligible"];function ye(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 ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=De(e),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=oe();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=oe();return Ze({},e,{clientId:n,attributes:Ze({},e.attributes,{},t),innerBlocks:r||e.innerBlocks.map((function(e){return Xe(e)}))})}var Je=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(et(e)||!n||e.isMultiBlock))return!1;if(!et(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)||et(e)))return!1;if(!n&&tt(o.name)&&tt(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},et=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},tt=function(e){return e===Ee()};function rt(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=He();return Object(c.filter)(t,(function(t){return!!nt(at("from",t.name),(function(t){return Je(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=at("to",De(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&Je(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return De(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function nt(e,t){for(var r=Object(ie.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=at("from",t),u=nt(at("to",i),(function(e){return"block"===e.type&&(et(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||nt(s,(function(e){return"block"===e.type&&(et(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!De(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=Ze({},t,{clientId:r===l?o.clientId:t.clientId});return Object(ie.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var it=function e(t,r){return Qe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},st=r(14);function ct(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ut,lt=function(){return ut||(ut=document.implementation.createHTMLDocument("")),ut};function ft(e,t){if(t){if("string"==typeof e){var r=lt();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]=ft(e,t[n]),r}),{})}}function dt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return ct(n,t)}}var pt=r(103),ht=r(267),bt=r(146),gt=r(20),mt=r(19),_t=/^#[xX]([A-Fa-f0-9]+)$/,vt=/^#([0-9]+)$/,wt=/^([A-Za-z0-9]+)$/,yt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(_t);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(vt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(wt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),kt=/[A-Za-z]/,Ot=/\r\n?/g;function jt(e){return yt.test(e)}function Ct(e){return kt.test(e)}var Tt=function(){function e(e,t){this.delegate=e,this.entityParser=t,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("\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||Ct(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();jt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();jt(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();jt(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();jt(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();jt(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();jt(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();jt(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();jt(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||Ct(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(Ot,"\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}(),xt=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 Tt(this,e),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;a2&&void 0!==arguments[2]?arguments[2]:[],n=me(e),a=n.save;if(a.prototype instanceof le.Component){var o=new a({attributes:t});a=o.render.bind(o)}var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ie.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(ie.applyFilters)("blocks.getSaveContent.extraProps",Rt({},i.props),n,t);Nt()(s,i.props)||(i=Object(le.cloneElement)(i,s))}return i=Object(ie.applyFilters)("blocks.getSaveElement",i,n,t),Object(le.createElement)(It,{innerBlocks:r},i)}function Ut(e,t,r){var n=me(e);return Object(le.renderToString)(qt(n,t,r))}function Gt(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 Kt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Ut(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Wt(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 Yt(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=Kt(e);if(a===Be()||!n&&a===Se())return o;var i=De(a),s=Gt(i,e.attributes);return Wt(a,s,o)}(e,t)})).join("\n\n")}function Zt(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 Qt=/[\t\n\r\v\f ]+/g,Xt=/^[\t\n\r\v\f ]*$/,Jt=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,er=["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"],tr=[].concat(er,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),rr=[c.identity,function(e){return sr(e).join(" ")}],nr=/^[\da-z]+$/i,ar=/^#\d+$/,or=/^#x[\da-f]+$/i;var ir=function(){function e(){Object(gt.a)(this,e)}return Object(mt.a)(e,[{key:"parse",value:function(e){if(t=e,nr.test(t)||ar.test(t)||or.test(t))return Object(Pt.decodeEntities)("&"+e+";");var t}}]),e}();function sr(e){return e.trim().split(Qt)}function cr(e){return e.attributes.filter((function(e){var t=Object(st.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(tr,r)}))}function ur(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:At();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]:At();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):pr.apply(void 0,Object(i.a)([e,t].map(cr)).concat([r]))},Chars:ur,Comment:ur};function br(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!Xt.test(t.chars))return t}}function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:At();try{return new xt(new ir).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function mr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function _r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return gr(e,r)})),i=Object(st.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=br(s);){if(!(a=br(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=hr[n.type];if(u&&!u(n,a,r))return!1;mr(n,c[0])?br(c):mr(a,s[0])&&br(s)}return!(a=br(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function vr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:St(),o=me(e);try{n=Ut(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=_r(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 wr(e,t,r){return vr(e,t,r,At()).isValid}function yr(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 kr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=me(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Ir(n,e,t,r)}));return Object(ie.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Rr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Se(),l=Be()||u;r=r||{},o=o.trim();var f=t||u;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f&&0===f.indexOf("core/social-link-")&&(r.service=f.substring(17),f="core/social-link"),f===u&&(o=Object(pt.autop)(o).trim());var d=De(f);if(!d){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:s},h=Fr(p,{isCommentDelimited:!1}),b=Fr(p,{isCommentDelimited:!0});f&&(o=b),r={originalName:t,originalContent:b,originalUndelimitedContent:h},d=De(f=l)}a=(a=a.map(Rr)).filter((function(e){return e}));var g=f===u||f===l;if(d&&(o||!g)){var m=Qe(f,Vr(d,o,r),a);if(!g){var _=vr(d,m.attributes,o),v=_.isValid,w=_.validationIssues;m.isValid=v,m.validationIssues=w}return m.originalContent=m.originalContent||o,(m=function(e,t){var r=De(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(m.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",d.name,d,Ut(d,m.attributes),m.originalContent):m.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),m}}function Fr(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:Fr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Wt(a,i,d):d}var $r,qr=($r=ht.parse,function(e){return $r(e).reduce((function(e,t){var r=Rr(t);return r&&e.push(r),e}),[])}),Ur=qr;function Gr(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 Kr(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 un(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!n.hasOwnProperty(o)||n[o].isMatch&&!n[o].isMatch(t))e(t.childNodes,r,n,a),a&&!Qr(t)&&t.nextElementSibling&&Object(fe.insertAfter)(r.createElement("br"),t),Object(fe.unwrap)(t);else if(t.nodeType===rn){var i=n[o],s=i.attributes,u=void 0===s?[]:s,l=i.classes,f=void 0===l?[]:l,d=i.children,p=i.require,h=void 0===p?[]:p,b=i.allowEmpty;if(d&&!b&&on(t))return void Object(fe.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(c.includes)(u,r)||t.removeAttribute(r)})),t.classList&&t.classList.length)){var g=f.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){g.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===d)return;if(d)h.length&&!t.querySelector(h.join(","))?(e(t.childNodes,r,n,a),Object(fe.unwrap)(t)):"BODY"===t.parentNode.nodeName&&Qr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!Qr(e)}))&&Object(fe.unwrap)(t)):e(t.childNodes,r,d,a);else for(;t.firstChild;)Object(fe.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}function ln(e,t){var r=e["".concat(t,"Sibling")];if(r&&Qr(r))return r;var n=e.parentNode;return n&&Qr(n)?ln(n,t):void 0}var fn=window.Node,dn=fn.ELEMENT_NODE,pn=fn.TEXT_NODE;function hn(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===pn?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===dn?"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?on(o)?n.removeChild(o):a.appendChild(o):Qr(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}var bn=window.Node.COMMENT_NODE;function gn(e,t){if(e.nodeType===bn)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===bn&&"noteaser"===n.nodeValue){a=!0,Object(fe.remove)(n);break}Object(fe.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(fe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}var mn=window.Node.COMMENT_NODE;function _n(e){e.nodeType===mn&&Object(fe.remove)(e)}function vn(e,t){return e.every((function(e){return function(e,t){if(Xr(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)&&vn(Array.from(e.children),t)}))}function wn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function yn(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(fe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(fe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(fe.wrap)(t.createElement("s"),e),"super"===s?Object(fe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(fe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(fe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(fe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function kn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var On=window.parseInt;function jn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Cn(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=On(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!jn(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--;)jn(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);jn(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function Tn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function xn(e){if(Tn(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&&Tn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(fe.unwrap)(e)}}}var Pn=r(44),An=window,Sn=An.atob,En=An.File;function Nn(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(st.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(st.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=Sn(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&&!Xr(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())&&Ln(n,o):Ln(n,o):"BODY"===n.parentNode.nodeName&&Ln(n)}}var zn=r(125);function Dn(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;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=at("from"),o=nt(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(zn.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(zn.regexp)(e).test(t)})),f=r;if(s=Object(zn.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=Qe(o.blockName,Vr(Hn({},De(o.blockName),{attributes:o.attributes}),s.shortcode.content,h));return[d,b].concat(Object(i.a)(e(t.substr(r))))}return[t]},Vn=r(268),Rn=new(r.n(Vn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Fn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function $n(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(fe.unwrap)(e)}function qn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===window.Node.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=ln(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=ln(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 Un(e){"BR"===e.nodeName&&(ln(e,"next")||e.parentNode.removeChild(e))}function Gn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Kn(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;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return qr(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=Rn.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 Zn(n);var f=In(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(wn)&&vn(n,t)}(n,u))return Zn(n);var p=Object(c.filter)(at("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Wn({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Zr("paste"),b=an(p,h,!0),g=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[$n,Cn,kn,xn,Nn,yn,gn,_n,Fn,Mn,Bn],r=Wn({},b,{},h);return e=cn(e,t,b),e=cn(e=hn(e=un(e,r)),[qn,Un,Gn],b),Yn.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=nt(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Qe("core/html",Vr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Qe(a,Vr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===g.length&&Ve(g[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return un(Kt(g[0]),h)}return g}function Xn(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 Jn(){return Object(c.filter)(at("from"),{type:"raw"}).map((function(e){return e.isMatch?e:function(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(st.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&ia(i.innerBlocks,o)}))}function sa(){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(st.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a)return oa({},s,{innerBlocks:sa(s.innerBlocks,i)});var u=De(a),l=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(le.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return l(e.query,t)})):t;var r};return Qe(a,l(Object(c.get)(u,["attributes"],{}),o),sa([],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}))},6:function(e,t){!function(){e.exports=this.wp.primitives}()},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(S[e])e=S[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*B(p,255),g:255*B(h,255),b:255*B(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*B(e,360),t=B(t,100),r=B(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=B(e,360),t=B(t,100),r=B(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=N(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=B(e,255),t=B(t,255),r=B(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 A(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=N(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*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(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(A,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 S=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}(S);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(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)},75:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},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}()},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}()},35: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,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(41);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="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),te=new Uint8Array(16);function re(){if(!ee)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ee(te)}for(var ne=[],ae=0;ae<256;++ae)ne[ae]=(ae+256).toString(16).substr(1);var oe=function(e,t){var r=t||0,n=ne;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 ie=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||re)();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||oe(a)},se=r(33),ce=r(207),ue=r(66),le=r.n(ue),fe=r(0),de=r(29);function pe(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 he(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(de.__unstableStripHTML)(o):a}function ye(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=we(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 ke=["attributes","supports","save","migrate","isEligible"],Oe={"--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 je(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;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Ve(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=ie();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=ie();return et(et({},e),{},{clientId:n,attributes:et(et({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return rt(e)}))})}var nt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(at(e)||!n||e.isMultiBlock))return!1;if(!at(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)||at(e)))return!1;if(!n&&ot(o.name)&&ot(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},at=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},ot=function(e){return e===Le()};function it(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Re();return Object(c.filter)(t,(function(t){return!!st(ct("from",t.name),(function(t){return nt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=ct("to",Ve(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&nt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Ve(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function st(e,t){for(var r=Object(se.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=ct("from",t),u=st(ct("to",i),(function(e){return"block"===e.type&&(at(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||st(s,(function(e){return"block"===e.type&&(at(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!Ve(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=et(et({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(se.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var lt=function e(t,r){return tt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},ft=r(12);function dt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var pt,ht=function(){return pt||(pt=document.implementation.createHTMLDocument("")),pt};function gt(e,t){if(t){if("string"==typeof e){var r=ht();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 bt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return dt(n,t)}}var mt=r(105),_t=r(281),vt=r(150),wt=r(21),yt=r(20),kt=/^#[xX]([A-Fa-f0-9]+)$/,Ot=/^#([0-9]+)$/,jt=/^([A-Za-z0-9]+)$/,Ct=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(kt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Ot))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(jt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),Tt=/[A-Za-z]/,xt=/\r\n?/g;function Pt(e){return Ct.test(e)}function St(e){return Tt.test(e)}var At=function(){function e(e,t){this.delegate=e,this.entityParser=t,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("\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||St(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();Pt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Pt(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();Pt(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();Pt(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();Pt(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();Pt(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();Pt(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();Pt(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||St(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(xt,"\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}(),Et=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 At(this,e),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;a2&&void 0!==arguments[2]?arguments[2]:[],n=ve(e),a=n.save;if(a.prototype instanceof fe.Component){var o=new a({attributes:t});a=o.render.bind(o)}var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(se.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(se.applyFilters)("blocks.getSaveContent.extraProps",Ut({},i.props),n,t);zt()(s,i.props)||(i=Object(fe.cloneElement)(i,s))}return i=Object(se.applyFilters)("blocks.getSaveElement",i,n,t),Object(fe.createElement)($t,{innerBlocks:r},i)}function Yt(e,t,r){var n=ve(e);return Object(fe.renderToString)(Wt(n,t,r))}function Zt(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 Qt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Yt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Xt(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 Jt(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=Qt(e);if(a===ze()||!n&&a===Ne())return o;var i=Ve(a),s=Zt(i,e.attributes);return Xt(a,s,o)}(e,t)})).join("\n\n")}function er(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 tr=/[\t\n\r\v\f ]+/g,rr=/^[\t\n\r\v\f ]*$/,nr=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ar=["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"],or=[].concat(ar,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ir=[c.identity,function(e){return fr(e).join(" ")}],sr=/^[\da-z]+$/i,cr=/^#\d+$/,ur=/^#x[\da-f]+$/i;var lr=function(){function e(){Object(wt.a)(this,e)}return Object(yt.a)(e,[{key:"parse",value:function(e){if(t=e,sr.test(t)||cr.test(t)||ur.test(t))return Object(Bt.decodeEntities)("&"+e+";");var t}}]),e}();function fr(e){return e.trim().split(tr)}function dr(e){return e.attributes.filter((function(e){var t=Object(ft.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(or,r)}))}function pr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Nt();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]:Nt();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):mr.apply(void 0,Object(i.a)([e,t].map(dr)).concat([r]))},Chars:pr,Comment:pr};function vr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!rr.test(t.chars))return t}}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt();try{return new Et(new lr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function yr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function kr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return wr(e,r)})),i=Object(ft.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=vr(s);){if(!(a=vr(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=_r[n.type];if(u&&!u(n,a,r))return!1;yr(n,c[0])?vr(c):yr(a,s[0])&&vr(s)}return!(a=vr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Or(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lt(),o=ve(e);try{n=Yt(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=kr(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 jr(e,t,r){return Or(e,t,r,Nt()).isValid}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 Tr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ve(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Vr(n,e,t,r)}));return Object(se.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Fr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Ne(),l=ze()||u;r=r||{},o=o.trim();var f=t||u;if("core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f&&0===f.indexOf("core/social-link-")&&(r.service=f.substring(17),f="core/social-link"),f&&0===f.indexOf("core-embed/")){var d=f.substring(11),p={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=d in p?p[d]:d,["amazon-kindle","wordpress"].includes(d)||(r.responsive=!0),f="core/embed"}f===u&&(o=Object(mt.autop)(o).trim());var h=Ve(f);if(!h){var g={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=$r(g,{isCommentDelimited:!1}),m=$r(g,{isCommentDelimited:!0});f&&(o=m),r={originalName:t,originalContent:m,originalUndelimitedContent:b},h=Ve(f=l)}a=(a=a.map(Fr)).filter((function(e){return e}));var _=f===u||f===l;if(h&&(o||!_)){var v=tt(f,Rr(h,o,r),a);if(!_){var w=Or(h,v.attributes,o),y=w.isValid,k=w.validationIssues;v.isValid=y,v.validationIssues=k}return v.originalContent=v.originalContent||o,(v=function(e,t){var r=Ve(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(v.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",h.name,h,Yt(h,v.attributes),v.originalContent):v.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),v}}function $r(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:$r(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Xt(a,i,d):d}var qr,Ur=(qr=_t.parse,function(e){return qr(e).reduce((function(e,t){var r=Fr(t);return r&&e.push(r),e}),[])}),Gr=Ur;function Kr(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(de.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(de.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 Wr(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(de.remove)(n);break}Object(de.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(de.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Yr(e){e.nodeType===e.COMMENT_NODE&&Object(de.remove)(e)}function Zr(e,t){return e.every((function(e){return function(e,t){if(Object(de.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)&&Zr(Array.from(e.children),t)}))}function Qr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function Xr(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(de.wrap)(t.createElement("strong"),e),"italic"===a&&Object(de.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(de.wrap)(t.createElement("s"),e),"super"===s?Object(de.wrap)(t.createElement("sup"),e):"sub"===s&&Object(de.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(de.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(de.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function Jr(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var en=window.parseInt;function tn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function rn(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=en(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!tn(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--;)tn(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);tn(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function nn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function an(e){if(nn(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&&nn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(de.unwrap)(e)}}}var on=r(43),sn=window,cn=sn.atob,un=sn.File;function ln(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(ft.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ft.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=cn(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 pn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(de.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())&&dn(n,o):dn(n,o):"BODY"===n.parentNode.nodeName&&dn(n)}}var hn=r(129);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 bn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=ct("from"),o=st(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(hn.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(hn.regexp)(e).test(t)})),f=r;if(s=Object(hn.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=tt(o.blockName,Rr(bn(bn({},Ve(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[d,g].concat(Object(i.a)(e(t.substr(r))))}return[t]},_n=r(282),vn=new(r.n(_n).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function wn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function yn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(de.unwrap)(e)}function kn(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;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Cn(n.body.childNodes,t,n,r),n.body.innerHTML}function xn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(de.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(de.isPhrasingContent)(n)?xn(n,t):void 0}function Pn(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=xn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=xn(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 Sn(e){"BR"===e.nodeName&&(xn(e,"next")||e.parentNode.removeChild(e))}function An(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function En(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 Bn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return Ur(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=vn.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 Ln(n);var f=mn(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Qr)&&Zr(n,t)}(n,u))return Ln(n);var p=Object(c.filter)(ct("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Bn(Bn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Object(de.getPhrasingContentSchema)("paste"),g=jn(p,h,!0),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[yn,rn,Jr,an,ln,Xr,Wr,Yr,wn,pn,fn],r=Bn(Bn({},g),h);return e=Tn(e,t,g),e=Tn(e=Kr(e=Object(de.removeInvalidHTML)(e,r)),[Pn,Sn,An],g),Nn.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=st(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return tt("core/html",Rr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):tt(a,Rr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===b.length&&$e(b[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(de.removeInvalidHTML)(Qt(b[0]),h)}return b}var zn=r(35),Dn=r.n(zn);function Hn(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 In(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(ft.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Kn(i.innerBlocks,o)}))}function Wn(){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(ft.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Wn(s.innerBlocks,i);return Gn(Gn({},s),{},{innerBlocks:u})}var l=Ve(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(fe.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};return tt(a,f(Object(c.get)(l,["attributes"],{}),o),Wn([],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= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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 _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } @@ -812,7 +819,7 @@ function Button(props, ref) { /***/ }), -/* 35 */ +/* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -821,13 +828,6 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } -/***/ }), -/* 36 */, -/* 37 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - /***/ }), /* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -871,7 +871,8 @@ function _typeof(obj) { } /***/ }), -/* 41 */ +/* 41 */, +/* 42 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -892,14 +893,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { } /***/ }), -/* 42 */, -/* 43 */ +/* 43 */, +/* 44 */ /***/ (function(module, exports) { (function() { module.exports = this["moment"]; }()); /***/ }), -/* 44 */, /* 45 */, /* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -931,6 +931,48 @@ function useLiveRef(value) { /* 47 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), +/* 48 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; }); /** @@ -944,7 +986,7 @@ function getDocument(element) { /***/ }), -/* 48 */ +/* 49 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -956,7 +998,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding * var external_this_React_ = __webpack_require__(13); // EXTERNAL MODULE: ./node_modules/reakit-system/es/SystemContext.js -var SystemContext = __webpack_require__(74); +var SystemContext = __webpack_require__(76); // CONCATENATED MODULE: ./node_modules/reakit-system/es/useToken.js @@ -1275,7 +1317,7 @@ function createHook(options) { /***/ }), -/* 49 */ +/* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1290,7 +1332,7 @@ var external_this_React_ = __webpack_require__(13); var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(55); // EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js -var useCreateElement = __webpack_require__(78); +var useCreateElement = __webpack_require__(79); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/splitProps.js /** @@ -1416,48 +1458,6 @@ function createComponent(_ref) { -/***/ }), -/* 50 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - /***/ }), /* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1470,7 +1470,7 @@ function _asyncToGenerator(fn) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getCurrentId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return reverse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useCompositeState; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59); @@ -2312,8 +2312,14 @@ useCompositeState.__keys = keys; /***/ }), -/* 52 */, -/* 53 */ +/* 52 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), +/* 53 */, +/* 54 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2328,12 +2334,6 @@ function isSelfTarget(event) { -/***/ }), -/* 54 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - /***/ }), /* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -2499,7 +2499,7 @@ function shallowEqual(objA, objB) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getActiveElement; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); /** @@ -2556,7 +2556,7 @@ var ThrowTypeError = $gOPD }()) : throwTypeError; -var hasSymbols = __webpack_require__(206)(); +var hasSymbols = __webpack_require__(219)(); var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto @@ -2682,7 +2682,7 @@ var INTRINSICS = { '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype }; -var bind = __webpack_require__(118); +var bind = __webpack_require__(121); 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 */ @@ -2728,7 +2728,14 @@ module.exports = function GetIntrinsic(name, allowMissing) { if (!allowMissing && !(parts[i] in value)) { throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); } - value = desc ? (desc.get || desc.value) : value[parts[i]]; + // 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. + value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]]; } else { value = value[parts[i]]; } @@ -2924,7 +2931,7 @@ unstable_useIdState.__keys = keys; /* 66 */ /***/ (function(module, exports, __webpack_require__) { -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2 // https://github.com/bgrins/TinyColor // Brian Grinstead, MIT License @@ -4127,9 +4134,9 @@ else {} "use strict"; /* unused harmony export Box */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useBox; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56); @@ -4203,7 +4210,8 @@ function unstable_IdProvider(_ref) { /***/ }), -/* 69 */ +/* 69 */, +/* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4234,7 +4242,7 @@ function hasFocusWithin(element) { /***/ }), -/* 70 */ +/* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4269,7 +4277,7 @@ function isButton(element) { /***/ }), -/* 71 */ +/* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4567,7 +4575,7 @@ function ensureFocus(element, _temp) { /***/ }), -/* 72 */ +/* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4600,27 +4608,27 @@ function isPortalEvent(event) { /***/ }), -/* 73 */ +/* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export Tabbable */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTabbable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); -/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46); /* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(59); -/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69); -/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72); +/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70); +/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(73); /* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57); -/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(71); +/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(72); @@ -4809,7 +4817,13 @@ var Tabbable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ /***/ }), -/* 74 */ +/* 75 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["date"]; }()); + +/***/ }), +/* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4824,9 +4838,8 @@ var SystemContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["crea /***/ }), -/* 75 */, -/* 76 */, -/* 77 */ +/* 77 */, +/* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4871,14 +4884,14 @@ var DEFAULT_VERTICAL_SPACING = exports.DEFAULT_VERTICAL_SPACING = 22; var MODIFIER_KEY_NAMES = exports.MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']); /***/ }), -/* 78 */ +/* 79 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useCreateElement; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74); +/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76); /* harmony import */ var _rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55); @@ -4945,8 +4958,8 @@ var useCreateElement = function useCreateElement(type, props, children) { /***/ }), -/* 79 */, -/* 80 */ +/* 80 */, +/* 81 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4954,7 +4967,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__(106); +var warning = __webpack_require__(108); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -5005,7 +5018,6 @@ function useWarning(condition) { /***/ }), -/* 81 */, /* 82 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5062,151 +5074,21 @@ function createOnKeyDown(_temp) { /***/ }), -/* 83 */, -/* 84 */ +/* 83 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony export Clickable */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useClickable; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80); -/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53); -/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(73); - - - - - - - - - - - - - - - - - - -function isNativeClick(event) { - var element = event.currentTarget; - if (!event.isTrusted) return false; // istanbul ignore next: can't test trusted events yet - - return Object(reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__[/* isButton */ "a"])(element) || element.tagName === "INPUT" || element.tagName === "TEXTAREA" || element.tagName === "A" || element.tagName === "SELECT"; -} - -var useClickable = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ - name: "Clickable", - compose: _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__[/* useTabbable */ "a"], - keys: ["unstable_clickOnEnter", "unstable_clickOnSpace"], - useOptions: function useOptions(_ref) { - var _ref$unstable_clickOn = _ref.unstable_clickOnEnter, - unstable_clickOnEnter = _ref$unstable_clickOn === void 0 ? true : _ref$unstable_clickOn, - _ref$unstable_clickOn2 = _ref.unstable_clickOnSpace, - unstable_clickOnSpace = _ref$unstable_clickOn2 === void 0 ? true : _ref$unstable_clickOn2, - options = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref, ["unstable_clickOnEnter", "unstable_clickOnSpace"]); - - return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ - unstable_clickOnEnter: unstable_clickOnEnter, - unstable_clickOnSpace: unstable_clickOnSpace - }, options); - }, - useProps: function useProps(options, _ref2) { - var htmlOnKeyDown = _ref2.onKeyDown, - htmlOnKeyUp = _ref2.onKeyUp, - htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref2, ["onKeyDown", "onKeyUp"]); - - var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), - active = _React$useState[0], - setActive = _React$useState[1]; - - var onKeyDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyDown); - var onKeyUpRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyUp); - var onKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { - var _onKeyDownRef$current; - - (_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event); - if (event.defaultPrevented) return; - if (options.disabled) return; - if (event.metaKey) return; - if (!Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return; - var isEnter = options.unstable_clickOnEnter && event.key === "Enter"; - var isSpace = options.unstable_clickOnSpace && event.key === " "; - - if (isEnter || isSpace) { - if (isNativeClick(event)) return; - event.preventDefault(); - - if (isEnter) { - event.currentTarget.click(); - } else if (isSpace) { - setActive(true); - } - } - }, [options.disabled, options.unstable_clickOnEnter, options.unstable_clickOnSpace]); - var onKeyUp = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { - var _onKeyUpRef$current; - - (_onKeyUpRef$current = onKeyUpRef.current) === null || _onKeyUpRef$current === void 0 ? void 0 : _onKeyUpRef$current.call(onKeyUpRef, event); - if (event.defaultPrevented) return; - if (options.disabled) return; - if (event.metaKey) return; - var isSpace = options.unstable_clickOnSpace && event.key === " "; - - if (active && isSpace) { - setActive(false); - event.currentTarget.click(); - } - }, [options.disabled, options.unstable_clickOnSpace, active]); - return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ - "data-active": active || undefined, - onKeyDown: onKeyDown, - onKeyUp: onKeyUp - }, htmlProps); - } -}); -var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ - as: "button", - memo: true, - useHook: useClickable -}); - - - - -/***/ }), -/* 85 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = true ? __webpack_require__(357) : undefined; - - - -/***/ }), -/* 86 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); /* 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__(112); -/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(165); +/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(115); +/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(169); @@ -5214,7 +5096,7 @@ module.exports = true ? __webpack_require__(357) : undefined; -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* 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_2__[/* default */ "a"])(this, result); }; } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* 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_3__[/* 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; } } @@ -5242,7 +5124,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var TOOLTIP_DELAY = 700; var Tooltip = /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Tooltip, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(Tooltip, _Component); var _super = _createSuper(Tooltip); @@ -5418,33 +5300,18 @@ var Tooltip = /*#__PURE__*/function (_Component) { /***/ }), -/* 87 */ -/***/ (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); - - -/***/ }), -/* 88 */ +/* 84 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); +/* 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 _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _dashicon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(148); +/* harmony import */ var _dashicon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(151); @@ -5502,10 +5369,10 @@ function Icon(_ref) { } if (icon && (icon.type === 'svg' || icon.type === _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"])) { - var appliedProps = _objectSpread({ + var appliedProps = _objectSpread(_objectSpread({ width: iconSize, height: iconSize - }, icon.props, {}, additionalProps); + }, icon.props), additionalProps); return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"], appliedProps); } @@ -5522,15 +5389,167 @@ function Icon(_ref) { /* harmony default export */ __webpack_exports__["a"] = (Icon); +/***/ }), +/* 85 */, +/* 86 */, +/* 87 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Clickable */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useClickable; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); +/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74); + + + + + + + + + + + + + + + + + + +function isNativeClick(event) { + var element = event.currentTarget; + if (!event.isTrusted) return false; // istanbul ignore next: can't test trusted events yet + + return Object(reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__[/* isButton */ "a"])(element) || element.tagName === "INPUT" || element.tagName === "TEXTAREA" || element.tagName === "A" || element.tagName === "SELECT"; +} + +var useClickable = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + name: "Clickable", + compose: _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__[/* useTabbable */ "a"], + keys: ["unstable_clickOnEnter", "unstable_clickOnSpace"], + useOptions: function useOptions(_ref) { + var _ref$unstable_clickOn = _ref.unstable_clickOnEnter, + unstable_clickOnEnter = _ref$unstable_clickOn === void 0 ? true : _ref$unstable_clickOn, + _ref$unstable_clickOn2 = _ref.unstable_clickOnSpace, + unstable_clickOnSpace = _ref$unstable_clickOn2 === void 0 ? true : _ref$unstable_clickOn2, + options = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref, ["unstable_clickOnEnter", "unstable_clickOnSpace"]); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + unstable_clickOnEnter: unstable_clickOnEnter, + unstable_clickOnSpace: unstable_clickOnSpace + }, options); + }, + useProps: function useProps(options, _ref2) { + var htmlOnKeyDown = _ref2.onKeyDown, + htmlOnKeyUp = _ref2.onKeyUp, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref2, ["onKeyDown", "onKeyUp"]); + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), + active = _React$useState[0], + setActive = _React$useState[1]; + + var onKeyDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyDown); + var onKeyUpRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyUp); + var onKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onKeyDownRef$current; + + (_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event); + if (event.defaultPrevented) return; + if (options.disabled) return; + if (event.metaKey) return; + if (!Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return; + var isEnter = options.unstable_clickOnEnter && event.key === "Enter"; + var isSpace = options.unstable_clickOnSpace && event.key === " "; + + if (isEnter || isSpace) { + if (isNativeClick(event)) return; + event.preventDefault(); + + if (isEnter) { + event.currentTarget.click(); + } else if (isSpace) { + setActive(true); + } + } + }, [options.disabled, options.unstable_clickOnEnter, options.unstable_clickOnSpace]); + var onKeyUp = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onKeyUpRef$current; + + (_onKeyUpRef$current = onKeyUpRef.current) === null || _onKeyUpRef$current === void 0 ? void 0 : _onKeyUpRef$current.call(onKeyUpRef, event); + if (event.defaultPrevented) return; + if (options.disabled) return; + if (event.metaKey) return; + var isSpace = options.unstable_clickOnSpace && event.key === " "; + + if (active && isSpace) { + setActive(false); + event.currentTarget.click(); + } + }, [options.disabled, options.unstable_clickOnSpace, active]); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + "data-active": active || undefined, + onKeyDown: onKeyDown, + onKeyUp: onKeyUp + }, htmlProps); + } +}); +var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "button", + memo: true, + useHook: useClickable +}); + + + + +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = true ? __webpack_require__(370) : undefined; + + + /***/ }), /* 89 */, /* 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 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES5Type = __webpack_require__(318); +var ES5Type = __webpack_require__(331); // https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values @@ -5543,29 +5562,29 @@ module.exports = function Type(x) { /***/ }), -/* 91 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(118); +var bind = __webpack_require__(121); module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); /***/ }), -/* 92 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineProperties = __webpack_require__(101); +var defineProperties = __webpack_require__(103); -var implementation = __webpack_require__(225); -var getPolyfill = __webpack_require__(226); -var shim = __webpack_require__(354); +var implementation = __webpack_require__(238); +var getPolyfill = __webpack_require__(239); +var shim = __webpack_require__(367); var polyfill = getPolyfill(); @@ -5579,15 +5598,15 @@ module.exports = polyfill; /***/ }), -/* 93 */ +/* 95 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export unstable_Id */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useId; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68); @@ -5650,12 +5669,12 @@ var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_ /***/ }), -/* 94 */ +/* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "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__(122); +/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(125); @@ -5679,7 +5698,7 @@ function fireEvent(element, type, eventInit) { /***/ }), -/* 95 */ +/* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5711,7 +5730,7 @@ function isTextField(element) { /***/ }), -/* 96 */ +/* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5724,17 +5743,206 @@ function setTextFieldValue(element, value) { /***/ }), -/* 97 */, -/* 98 */, /* 99 */, /* 100 */, -/* 101 */ +/* 101 */, +/* 102 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), +/* 103 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var keys = __webpack_require__(180); +var keys = __webpack_require__(185); var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; var toStr = Object.prototype.toString; @@ -5793,7 +6001,7 @@ module.exports = defineProperties; /***/ }), -/* 102 */ +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5802,7 +6010,7 @@ module.exports = defineProperties; __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ fireKeyboardEvent; }); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/getDocument.js -var getDocument = __webpack_require__(47); +var getDocument = __webpack_require__(48); // CONCATENATED MODULE: ./node_modules/reakit-utils/es/getDefaultView.js @@ -5872,16 +6080,11 @@ function fireKeyboardEvent(element, type, eventInit) { -/***/ }), -/* 103 */, -/* 104 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["warning"]; }()); - /***/ }), /* 105 */, -/* 106 */ +/* 106 */, +/* 107 */, +/* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5906,7 +6109,8 @@ function warning(condition) { /***/ }), -/* 107 */ +/* 109 */, +/* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6125,7 +6329,7 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = { }; /***/ }), -/* 108 */ +/* 111 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6136,7 +6340,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getPhrasePropTypes; -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -6155,7 +6359,7 @@ function getPhrasePropTypes(defaultPhrases) { } /***/ }), -/* 109 */ +/* 112 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6172,7 +6376,7 @@ var _createClass = function () { function defineProperties(target, props) { for exports.withStyles = withStyles; -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -6184,17 +6388,17 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _hoistNonReactStatics = __webpack_require__(371); +var _hoistNonReactStatics = __webpack_require__(384); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); -var _constants = __webpack_require__(374); +var _constants = __webpack_require__(387); -var _brcast = __webpack_require__(375); +var _brcast = __webpack_require__(388); var _brcast2 = _interopRequireDefault(_brcast); -var _ThemedStyleSheet = __webpack_require__(223); +var _ThemedStyleSheet = __webpack_require__(236); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); @@ -6409,23 +6613,23 @@ function withStyles(styleFn) { } /***/ }), -/* 110 */, -/* 111 */ +/* 113 */, +/* 114 */ /***/ (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__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22); +/* 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__(20); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); /* 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__(9); +/* 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__); @@ -6436,7 +6640,7 @@ function withStyles(styleFn) { -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* 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_4__[/* default */ "a"])(this, result); }; } +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; } } @@ -6484,7 +6688,7 @@ function isFocusNormalizedButton(element) { /* 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_6__[/* default */ "a"])(_class, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(_class, _Component); var _super = _createSuper(_class); @@ -6601,7 +6805,7 @@ function isFocusNormalizedButton(element) { /***/ }), -/* 112 */ +/* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6610,33 +6814,33 @@ function isFocusNormalizedButton(element) { var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); +var classnames = __webpack_require__(9); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(30); +var external_this_wp_dom_ = __webpack_require__(29); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(21); +var external_this_wp_keycodes_ = __webpack_require__(19); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_ = __webpack_require__(35); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(153); +var library_close = __webpack_require__(157); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -6882,32 +7086,32 @@ function computePopoverPosition(anchorRect, contentSize) { var yAxisPosition = computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, sticky, anchorRef, relativeOffsetTop); var xAxisPosition = computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, sticky, yAxisPosition.yAxis, boundaryElement); - return _objectSpread({}, xAxisPosition, {}, yAxisPosition); + return _objectSpread(_objectSpread({}, xAxisPosition), yAxisPosition); } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js -var with_focus_return = __webpack_require__(130); +var with_focus_return = __webpack_require__(134); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js -var with_constrained_tabbing = __webpack_require__(129); +var with_constrained_tabbing = __webpack_require__(133); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js -var with_focus_outside = __webpack_require__(111); +var with_focus_outside = __webpack_require__(114); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js @@ -6916,7 +7120,7 @@ var with_focus_outside = __webpack_require__(111); -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -6959,22 +7163,22 @@ var detect_outside_PopoverDetectOutside = /*#__PURE__*/function (_Component) { /* harmony default export */ var detect_outside = (Object(with_focus_outside["a" /* default */])(detect_outside_PopoverDetectOutside)); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js -var build_module_button = __webpack_require__(34); +var build_module_button = __webpack_require__(36); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(160); +var scroll_lock = __webpack_require__(163); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js -var isolated_event_container = __webpack_require__(131); +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__(158); +var use_slot = __webpack_require__(162); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 6 modules -var slot_fill = __webpack_require__(121); +var slot_fill = __webpack_require__(124); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var build_module_animate = __webpack_require__(159); +var build_module_animate = __webpack_require__(135); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js @@ -7084,12 +7288,16 @@ function computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) { return withoutPadding(rect, parentNode); } +function getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} + function withoutPadding(rect, element) { - var _window$getComputedSt = window.getComputedStyle(element), - paddingTop = _window$getComputedSt.paddingTop, - paddingBottom = _window$getComputedSt.paddingBottom, - paddingLeft = _window$getComputedSt.paddingLeft, - paddingRight = _window$getComputedSt.paddingRight; + var _getComputedStyle = getComputedStyle(element), + paddingTop = _getComputedStyle.paddingTop, + paddingBottom = _getComputedStyle.paddingBottom, + paddingLeft = _getComputedStyle.paddingLeft, + paddingRight = _getComputedStyle.paddingRight; var top = paddingTop ? parseInt(paddingTop, 10) : 0; var bottom = paddingBottom ? parseInt(paddingBottom, 10) : 0; @@ -7517,7 +7725,7 @@ PopoverContainer.Slot = function (_ref4) { /***/ }), -/* 113 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7527,12 +7735,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__(169)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(170)); +var _extends = _interopDefault(__webpack_require__(174)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(175)); var React = __webpack_require__(13); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(145)); -var _assertThisInitialized = _interopDefault(__webpack_require__(171)); +var _inheritsLoose = _interopDefault(__webpack_require__(149)); +var _assertThisInitialized = _interopDefault(__webpack_require__(176)); var is = { arr: Array.isArray, @@ -9847,9 +10055,10 @@ exports.useSprings = useSprings; /***/ }), -/* 114 */, -/* 115 */, -/* 116 */ +/* 117 */, +/* 118 */, +/* 119 */, +/* 120 */ /***/ (function(module, exports) { // @@ -9999,231 +10208,41 @@ module.exports.strategies = { /***/ }), -/* 117 */ -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 118 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(313); +var implementation = __webpack_require__(326); module.exports = Function.prototype.bind || implementation; /***/ }), -/* 119 */ +/* 122 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Composite; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useComposite; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54); /* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57); -/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73); -/* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(78); +/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(74); +/* harmony import */ var reakit_system_useCreateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79); /* 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__(47); -/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(94); -/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(102); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); +/* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(96); +/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(104); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(51); @@ -10561,31 +10580,31 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 120 */ +/* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CompositeItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useCompositeItem; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63); -/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81); /* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46); -/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53); -/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69); -/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(72); -/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71); -/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(84); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54); +/* 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__(87); /* 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__(47); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51); -/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(93); -/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(95); -/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96); +/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95); +/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(97); +/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(98); @@ -10924,7 +10943,7 @@ var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODUL /***/ }), -/* 121 */ +/* 124 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10940,22 +10959,22 @@ __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding * var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); +var getPrototypeOf = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/superPropBase.js @@ -10988,17 +11007,17 @@ function get_get(target, property, receiver) { return get_get(target, property, receiver || target); } -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(23); - // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules var inherits = __webpack_require__(22); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(23); + // EXTERNAL MODULE: external {"this":"lodash"} 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__(124); +var context = __webpack_require__(128); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js @@ -11011,7 +11030,7 @@ var context = __webpack_require__(124); -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -11219,7 +11238,7 @@ var fill_Fill = function Fill(props) { /* harmony default export */ var slot_fill_fill = (fill_Fill); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js -var slot_fill_context = __webpack_require__(133); +var slot_fill_context = __webpack_require__(138); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js @@ -11265,10 +11284,10 @@ function bubbles_virtually_slot_Slot(_ref) { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +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__(158); +var use_slot = __webpack_require__(162); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js @@ -11376,12 +11395,12 @@ function createSlotFill(name) { /***/ }), -/* 122 */ +/* 125 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createEvent; }); -/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48); /** @@ -11415,16 +11434,17 @@ function createEvent(element, type, eventInit) { /***/ }), -/* 123 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(177); +module.exports = __webpack_require__(182); /***/ }), -/* 124 */ +/* 127 */, +/* 128 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11434,28 +11454,28 @@ __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding * __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Consumer; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(18); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); @@ -11467,7 +11487,7 @@ var external_this_lodash_ = __webpack_require__(2); var esm_typeof = __webpack_require__(40); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -11477,7 +11497,7 @@ var external_this_wp_isShallowEqual_ = __webpack_require__(64); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js -var slot_fill_context = __webpack_require__(133); +var slot_fill_context = __webpack_require__(138); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js @@ -11520,7 +11540,7 @@ function useSlotRegistry() { var registerSlot = Object(external_this_wp_element_["useCallback"])(function (name, ref, fillProps) { setSlots(function (prevSlots) { var slot = prevSlots[name] || {}; - return _objectSpread({}, prevSlots, Object(defineProperty["a" /* default */])({}, name, _objectSpread({}, slot, { + return _objectSpread(_objectSpread({}, prevSlots), {}, Object(defineProperty["a" /* default */])({}, name, _objectSpread(_objectSpread({}, slot), {}, { ref: ref || slot.ref, fillProps: fillProps || slot.fillProps || {} }))); @@ -11561,13 +11581,13 @@ function useSlotRegistry() { }, [slots, fills]); var registerFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { setFills(function (prevFills) { - return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, [].concat(Object(toConsumableArray["a" /* default */])(prevFills[name] || []), [ref]))); + return _objectSpread(_objectSpread({}, prevFills), {}, Object(defineProperty["a" /* default */])({}, name, [].concat(Object(toConsumableArray["a" /* default */])(prevFills[name] || []), [ref]))); }); }, []); var unregisterFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { setFills(function (prevFills) { if (prevFills[name]) { - return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, prevFills[name].filter(function (fillRef) { + return _objectSpread(_objectSpread({}, prevFills), {}, Object(defineProperty["a" /* default */])({}, name, prevFills[name].filter(function (fillRef) { return fillRef !== ref; }))); } @@ -11609,7 +11629,7 @@ function slot_fill_provider_SlotFillProvider(_ref) { -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -11814,9 +11834,8 @@ var context_useSlot = function useSlot(name) { /***/ }), -/* 125 */, -/* 126 */, -/* 127 */ +/* 129 */, +/* 130 */ /***/ (function(module, exports) { var g; @@ -11842,7 +11861,7 @@ module.exports = g; /***/ }), -/* 128 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11856,23 +11875,24 @@ module.exports = function IsPropertyKey(argument) { /***/ }), -/* 129 */ +/* 132 */, +/* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10); /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(21); +/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(19); /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30); +/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29); /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_9__); @@ -11882,7 +11902,7 @@ module.exports = function IsPropertyKey(argument) { -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* 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_3__[/* default */ "a"])(this, result); }; } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* 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_4__[/* 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; } } @@ -11895,7 +11915,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__["createHigherOrderComponent"])(function (WrappedComponent) { return /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_class, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_class, _Component); var _super = _createSuper(_class); @@ -11964,23 +11984,23 @@ var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_ /***/ }), -/* 130 */ +/* 134 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22); +/* 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__(20); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2); /* 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__(9); +/* 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__(192); +/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(197); @@ -11989,7 +12009,7 @@ var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_ -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* 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_3__[/* default */ "a"])(this, result); }; } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* 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_4__[/* 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; } } @@ -12047,7 +12067,7 @@ function withFocusReturn(options) { onFocusReturn = _options$onFocusRetur === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_7__["stubTrue"] : _options$onFocusRetur; return function (WrappedComponent) { var FocusReturn = /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(FocusReturn, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(FocusReturn, _Component); var _super = _createSuper(FocusReturn); @@ -12132,12 +12152,73 @@ function withFocusReturn(options) { /***/ }), -/* 131 */ +/* 135 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); + + + +/** + * External dependencies + */ + + +function Animate(_ref) { + var type = _ref.type, + _ref$options = _ref.options, + options = _ref$options === void 0 ? {} : _ref$options, + children = _ref.children; + + if (type === 'appear') { + var _classnames; + + var _options$origin = options.origin, + origin = _options$origin === void 0 ? 'top' : _options$origin; + + var _origin$split = origin.split(' '), + _origin$split2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_origin$split, 2), + yAxis = _origin$split2[0], + _origin$split2$ = _origin$split2[1], + xAxis = _origin$split2$ === void 0 ? 'center' : _origin$split2$; + + return children({ + className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__appear', (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + xAxis, xAxis !== 'center'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + yAxis, yAxis !== 'middle'), _classnames)) + }); + } + + if (type === 'slide-in') { + var _options$origin2 = options.origin, + _origin = _options$origin2 === void 0 ? 'left' : _options$origin2; + + return children({ + className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__slide-in', 'is-from-' + _origin) + }); + } + + if (type === 'loading') { + return children({ + className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__loading') + }); + } + + return children({}); +} + +/* harmony default export */ __webpack_exports__["a"] = (Animate); + + +/***/ }), +/* 136 */ /***/ (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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); @@ -12170,19 +12251,19 @@ function stopPropagation(event) { /***/ }), -/* 132 */ +/* 137 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); +/* 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__(470); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(104); +/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(484); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); /* 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__(87); +/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91); @@ -12216,13 +12297,13 @@ function ToolbarItem(_ref, ref) { var accessibleToolbarState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_toolbar_context__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"]); if (typeof children !== 'function' && !Component) { - typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default()('`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component.') : void 0; + typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default()('`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. ' + 'See https://developer.wordpress.org/block-editor/components/toolbar-item/') : void 0; return null; } - var allProps = _objectSpread({}, props, { + var allProps = _objectSpread(_objectSpread({}, props), {}, { ref: ref, - 'data-experimental-toolbar-item': true + 'data-toolbar-item': true }); if (!accessibleToolbarState) { @@ -12240,16 +12321,16 @@ 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__(117))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) /***/ }), -/* 133 */ +/* 138 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "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__(104); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_1__); /** * WordPress dependencies @@ -12269,18 +12350,18 @@ var SlotFillContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cr }); /* harmony default export */ __webpack_exports__["a"] = (SlotFillContext); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(117))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) /***/ }), -/* 134 */, -/* 135 */, -/* 136 */, -/* 137 */ +/* 139 */, +/* 140 */, +/* 141 */, +/* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); @@ -12295,12 +12376,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va */ // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. -/* eslint-disable jsdoc/valid-types */ - /** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ -/* eslint-enable jsdoc/valid-types */ - /** * Return an SVG icon. * @@ -12327,7 +12404,7 @@ function Icon(_ref) { /***/ }), -/* 138 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12340,7 +12417,7 @@ function Icon(_ref) { -var ReactPropTypesSecret = __webpack_require__(139); +var ReactPropTypesSecret = __webpack_require__(144); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -12398,7 +12475,7 @@ module.exports = function() { /***/ }), -/* 139 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12417,7 +12494,7 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 140 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12425,7 +12502,7 @@ module.exports = ReactPropTypesSecret; var GetIntrinsic = __webpack_require__(58); -var callBind = __webpack_require__(181); +var callBind = __webpack_require__(186); var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); @@ -12439,12 +12516,12 @@ module.exports = function callBoundIntrinsic(name, allowMissing) { /***/ }), -/* 141 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { -var moment = __webpack_require__(43); -var momentValidationWrapper = __webpack_require__(355); -var core = __webpack_require__(356); +var moment = __webpack_require__(44); +var momentValidationWrapper = __webpack_require__(368); +var core = __webpack_require__(369); module.exports = { @@ -12485,7 +12562,7 @@ module.exports = { /***/ }), -/* 142 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12499,14 +12576,14 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]); /***/ }), -/* 143 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12521,7 +12598,7 @@ exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTA -var shallowEqual = __webpack_require__(370); +var shallowEqual = __webpack_require__(383); /** * Does a shallow comparison for props and state. @@ -12539,8 +12616,7 @@ module.exports = shallowCompare; /***/ }), -/* 144 */, -/* 145 */ +/* 149 */ /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -12552,1271 +12628,56 @@ function _inheritsLoose(subClass, superClass) { module.exports = _inheritsLoose; /***/ }), -/* 146 */, -/* 147 */, -/* 148 */ +/* 150 */, +/* 151 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Dashicon; }); /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22); -/* 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 _wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); +function Dashicon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 20 : _ref$size, + className = _ref.className, + extraProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size", "className"]); + var iconClass = ['dashicon', 'dashicons', 'dashicons-' + icon, className].filter(Boolean).join(' '); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("span", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ + className: iconClass, + width: size, + height: size + }, extraProps)); +} - - - -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* 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_4__[/* 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; } } - -/* !!! -IF YOU ARE EDITING dashicon/index.jsx -THEN YOU ARE EDITING A FILE THAT GETS OUTPUT FROM THE DASHICONS REPO! -DO NOT EDIT THAT FILE! EDIT index-header.jsx and index-footer.jsx instead -OR if you're looking to change now SVGs get output, you'll need to edit strings in the Gruntfile :) -!!! */ - -/** - * WordPress dependencies - */ - - - -var Dashicon = /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Dashicon, _Component); - - var _super = _createSuper(Dashicon); - - function Dashicon() { - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, Dashicon); - - return _super.apply(this, arguments); - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Dashicon, [{ - key: "render", - value: function render() { - var _this$props = this.props, - icon = _this$props.icon, - _this$props$size = _this$props.size, - size = _this$props$size === void 0 ? 20 : _this$props$size, - className = _this$props.className, - extraProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_this$props, ["icon", "size", "className"]); - - var path; - - switch (icon) { - case 'admin-appearance': - path = 'M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z'; - break; - - case 'admin-collapse': - path = 'M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z'; - break; - - case 'admin-comments': - path = 'M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z'; - break; - - case 'admin-customizer': - path = 'M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z'; - break; - - case 'admin-generic': - path = 'M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z'; - break; - - case 'admin-home': - path = 'M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z'; - break; - - case 'admin-links': - path = 'M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z'; - break; - - case 'admin-media': - path = 'M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z'; - break; - - case 'admin-multisite': - path = 'M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z'; - break; - - case 'admin-network': - path = 'M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z'; - break; - - case 'admin-page': - path = 'M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z'; - break; - - case 'admin-plugins': - path = 'M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z'; - break; - - case 'admin-post': - path = 'M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z'; - break; - - case 'admin-settings': - path = 'M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z'; - break; - - case 'admin-site-alt': - path = 'M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z'; - break; - - case 'admin-site-alt2': - path = 'M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z'; - break; - - case 'admin-site-alt3': - path = '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'; - break; - - case 'admin-site': - path = 'M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z'; - break; - - case 'admin-tools': - path = 'M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z'; - break; - - case 'admin-users': - path = 'M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z'; - break; - - case 'album': - path = 'M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z'; - break; - - case 'align-center': - path = 'M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z'; - break; - - case 'align-full-width': - path = 'M17 13V3H3v10h14zM5 17h10v-2H5v2z'; - break; - - case 'align-left': - path = 'M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z'; - break; - - case 'align-none': - path = 'M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z'; - break; - - case 'align-pull-left': - path = 'M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z'; - break; - - case 'align-pull-right': - path = 'M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z'; - break; - - case 'align-right': - path = 'M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z'; - break; - - case 'align-wide': - path = 'M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z'; - break; - - case 'analytics': - path = 'M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z'; - break; - - case 'archive': - path = 'M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z'; - break; - - case 'arrow-down-alt': - path = 'M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z'; - break; - - case 'arrow-down-alt2': - path = 'M5 6l5 5 5-5 2 1-7 7-7-7z'; - break; - - case 'arrow-down': - path = 'M15 8l-4.03 6L7 8h8z'; - break; - - case 'arrow-left-alt': - path = 'M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z'; - break; - - case 'arrow-left-alt2': - path = 'M14 5l-5 5 5 5-1 2-7-7 7-7z'; - break; - - case 'arrow-left': - path = 'M13 14L7 9.97 13 6v8z'; - break; - - case 'arrow-right-alt': - path = 'M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z'; - break; - - case 'arrow-right-alt2': - path = 'M6 15l5-5-5-5 1-2 7 7-7 7z'; - break; - - case 'arrow-right': - path = 'M8 6l6 4.03L8 14V6z'; - break; - - case 'arrow-up-alt': - path = 'M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z'; - break; - - case 'arrow-up-alt2': - path = 'M15 14l-5-5-5 5-2-1 7-7 7 7z'; - break; - - case 'arrow-up': - path = 'M7 13l4.03-6L15 13H7z'; - break; - - case 'art': - path = 'M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z'; - break; - - case 'awards': - path = 'M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z'; - break; - - case 'backup': - path = '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'; - break; - - case 'block-default': - path = 'M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z'; - break; - - case 'book-alt': - path = 'M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z'; - break; - - case 'book': - path = 'M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z'; - break; - - case 'buddicons-activity': - path = 'M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z'; - break; - - case 'buddicons-bbpress-logo': - path = 'M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z'; - break; - - case 'buddicons-buddypress-logo': - path = 'M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z'; - break; - - case 'buddicons-community': - path = 'M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z'; - break; - - case 'buddicons-forums': - path = 'M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z'; - break; - - case 'buddicons-friends': - path = 'M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z'; - break; - - case 'buddicons-groups': - path = 'M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z'; - break; - - case 'buddicons-pm': - path = 'M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z'; - break; - - case 'buddicons-replies': - path = 'M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z'; - break; - - case 'buddicons-topics': - path = 'M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z'; - break; - - case 'buddicons-tracking': - path = 'M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z'; - break; - - case 'building': - path = 'M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z'; - break; - - case 'businessman': - path = 'M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z'; - break; - - case 'button': - path = 'M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z'; - break; - - case 'calendar-alt': - path = 'M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z'; - break; - - case 'calendar': - path = 'M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z'; - break; - - case 'camera': - path = 'M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z'; - break; - - case 'carrot': - path = 'M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z'; - break; - - case 'cart': - path = 'M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z'; - break; - - case 'category': - path = 'M5 7h13v10H2V4h7l2 2H4v9h1V7z'; - break; - - case 'chart-area': - path = 'M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z'; - break; - - case 'chart-bar': - path = 'M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z'; - break; - - case 'chart-line': - path = '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'; - break; - - case 'chart-pie': - path = 'M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z'; - break; - - case 'clipboard': - path = 'M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z'; - break; - - case 'clock': - path = 'M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z'; - break; - - case 'cloud-saved': - path = '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 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z'; - break; - - case 'cloud-upload': - path = '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'; - break; - - case 'cloud': - path = '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'; - break; - - case 'columns': - path = 'M3 15h6V5H3v10zm8 0h6V5h-6v10z'; - break; - - case 'controls-back': - path = 'M2 10l10-6v3.6L18 4v12l-6-3.6V16z'; - break; - - case 'controls-forward': - path = 'M18 10L8 16v-3.6L2 16V4l6 3.6V4z'; - break; - - case 'controls-pause': - path = 'M5 16V4h3v12H5zm7-12h3v12h-3V4z'; - break; - - case 'controls-play': - path = 'M5 4l10 6-10 6V4z'; - break; - - case 'controls-repeat': - path = 'M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z'; - break; - - case 'controls-skipback': - path = 'M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z'; - break; - - case 'controls-skipforward': - path = 'M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z'; - break; - - case 'controls-volumeoff': - path = 'M2 7h4l5-4v14l-5-4H2V7z'; - break; - - case 'controls-volumeon': - path = 'M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z'; - break; - - case 'cover-image': - path = 'M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z'; - break; - - case 'dashboard': - path = 'M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z'; - break; - - case 'desktop': - path = 'M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z'; - break; - - case 'dismiss': - path = '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'; - break; - - case 'download': - path = 'M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z'; - break; - - case 'edit': - path = 'M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z'; - break; - - case 'editor-aligncenter': - path = 'M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z'; - break; - - case 'editor-alignleft': - path = 'M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z'; - break; - - case 'editor-alignright': - path = 'M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z'; - break; - - case 'editor-bold': - path = 'M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z'; - break; - - case 'editor-break': - path = 'M16 4h2v9H7v3l-5-4 5-4v3h9V4z'; - break; - - case 'editor-code': - path = 'M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z'; - break; - - case 'editor-contract': - path = 'M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z'; - break; - - case 'editor-customchar': - path = 'M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z'; - break; - - case 'editor-expand': - path = 'M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3'; - break; - - case 'editor-help': - path = 'M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z'; - break; - - case 'editor-indent': - path = 'M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z'; - break; - - case 'editor-insertmore': - path = 'M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z'; - break; - - case 'editor-italic': - path = 'M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z'; - break; - - case 'editor-justify': - path = 'M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z'; - break; - - case 'editor-kitchensink': - path = 'M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z'; - break; - - case 'editor-ltr': - path = 'M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z'; - break; - - case 'editor-ol-rtl': - path = 'M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z'; - break; - - case 'editor-ol': - path = 'M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z'; - break; - - case 'editor-outdent': - path = 'M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z'; - break; - - case 'editor-paragraph': - path = 'M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z'; - break; - - case 'editor-paste-text': - path = 'M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z'; - break; - - case 'editor-paste-word': - path = 'M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z'; - break; - - case 'editor-quote': - path = 'M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z'; - break; - - case 'editor-removeformatting': - path = 'M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z'; - break; - - case 'editor-rtl': - path = 'M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z'; - break; - - case 'editor-spellcheck': - path = 'M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z'; - break; - - case 'editor-strikethrough': - path = 'M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z'; - break; - - case 'editor-table': - path = 'M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z'; - break; - - case 'editor-textcolor': - path = 'M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z'; - break; - - case 'editor-ul': - path = 'M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z'; - break; - - case 'editor-underline': - path = 'M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z'; - break; - - case 'editor-unlink': - path = 'M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z'; - break; - - case 'editor-video': - path = 'M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z'; - break; - - case 'ellipsis': - path = 'M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'; - break; - - case 'email-alt': - path = 'M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z'; - break; - - case 'email-alt2': - path = 'M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z'; - break; - - case 'email': - path = 'M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z'; - break; - - case 'embed-audio': - path = 'M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z'; - break; - - case 'embed-generic': - path = 'M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z'; - break; - - case 'embed-photo': - path = 'M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z'; - break; - - case 'embed-post': - path = 'M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z'; - break; - - case 'embed-video': - path = 'M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z'; - break; - - case 'excerpt-view': - path = 'M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z'; - break; - - case 'exit': - path = 'M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z'; - break; - - case 'external': - path = 'M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z'; - break; - - case 'facebook-alt': - path = 'M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z'; - break; - - case 'facebook': - path = 'M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z'; - break; - - case 'feedback': - path = 'M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z'; - break; - - case 'filter': - path = 'M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z'; - break; - - case 'flag': - path = 'M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z'; - break; - - case 'format-aside': - path = 'M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z'; - break; - - case 'format-audio': - path = 'M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z'; - break; - - case 'format-chat': - path = 'M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z'; - break; - - case 'format-gallery': - path = 'M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z'; - break; - - case 'format-image': - path = 'M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z'; - break; - - case 'format-quote': - path = 'M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z'; - break; - - case 'format-status': - path = 'M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z'; - break; - - case 'format-video': - path = 'M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z'; - break; - - case 'forms': - path = 'M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z'; - break; - - case 'googleplus': - path = 'M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z'; - break; - - case 'grid-view': - path = 'M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z'; - break; - - case 'groups': - path = 'M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z'; - break; - - case 'hammer': - path = 'M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z'; - break; - - case 'heading': - path = 'M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4'; - break; - - case 'heart': - path = 'M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z'; - break; - - case 'hidden': - path = 'M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z'; - break; - - case 'html': - path = 'M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z'; - break; - - case 'id-alt': - path = 'M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z'; - break; - - case 'id': - path = 'M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z'; - break; - - case 'image-crop': - path = 'M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z'; - break; - - case 'image-filter': - path = 'M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z'; - break; - - case 'image-flip-horizontal': - path = 'M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z'; - break; - - case 'image-flip-vertical': - path = 'M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z'; - break; - - case 'image-rotate-left': - path = 'M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z'; - break; - - case 'image-rotate-right': - path = 'M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z'; - break; - - case 'image-rotate': - path = 'M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z'; - break; - - case 'images-alt': - path = 'M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z'; - break; - - case 'images-alt2': - path = 'M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z'; - break; - - case 'index-card': - path = 'M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z'; - break; - - case 'info-outline': - path = 'M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-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 7z'; - break; - - case 'info': - path = 'M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z'; - break; - - case 'insert-after': - path = 'M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z'; - break; - - case 'insert-before': - path = 'M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z'; - break; - - case 'insert': - path = '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-3V6z'; - break; - - case 'instagram': - path = 'M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z'; - break; - - case 'keyboard-hide': - path = 'M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z'; - break; - - case 'laptop': - path = 'M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z'; - break; - - case 'layout': - path = 'M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z'; - break; - - case 'leftright': - path = 'M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z'; - break; - - case 'lightbulb': - path = 'M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z'; - break; - - case 'list-view': - path = 'M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z'; - break; - - case 'location-alt': - path = 'M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z'; - break; - - case 'location': - path = 'M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z'; - break; - - case 'lock': - path = 'M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z'; - break; - - case 'marker': - path = 'M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z'; - break; - - case 'media-archive': - path = 'M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z'; - break; - - case 'media-audio': - path = 'M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z'; - break; - - case 'media-code': - path = 'M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z'; - break; - - case 'media-default': - path = 'M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z'; - break; - - case 'media-document': - path = 'M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z'; - break; - - case 'media-interactive': - path = 'M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z'; - break; - - case 'media-spreadsheet': - path = 'M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z'; - break; - - case 'media-text': - path = 'M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z'; - break; - - case 'media-video': - path = 'M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z'; - break; - - case 'megaphone': - path = 'M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z'; - break; - - case 'menu-alt': - path = 'M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z'; - break; - - case 'menu': - path = 'M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z'; - break; - - case 'microphone': - path = 'M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z'; - break; - - case 'migrate': - path = 'M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z'; - break; - - case 'minus': - path = 'M4 9h12v2H4V9z'; - break; - - case 'money': - path = 'M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z'; - break; - - case 'move': - path = 'M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z'; - break; - - case 'nametag': - path = 'M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z'; - break; - - case 'networking': - path = 'M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z'; - break; - - case 'no-alt': - path = 'M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z'; - break; - - case 'no': - path = 'M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z'; - break; - - case 'palmtree': - path = 'M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z'; - break; - - case 'paperclip': - path = 'M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z'; - break; - - case 'performance': - path = 'M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z'; - break; - - case 'phone': - path = 'M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z'; - break; - - case 'playlist-audio': - path = 'M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z'; - break; - - case 'playlist-video': - path = 'M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z'; - break; - - case 'plus-alt': - path = 'M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z'; - break; - - case 'plus-light': - path = 'M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z'; - break; - - case 'plus': - path = 'M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z'; - break; - - case 'portfolio': - path = 'M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z'; - break; - - case 'post-status': - path = 'M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z'; - break; - - case 'pressthis': - path = 'M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z'; - break; - - case 'products': - path = 'M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z'; - break; - - case 'randomize': - path = 'M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z'; - break; - - case 'redo': - path = 'M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z'; - break; - - case 'rest-api': - path = 'M3 4h2v12H3z'; - break; - - case 'rss': - path = 'M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z'; - break; - - case 'saved': - path = 'M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2'; - break; - - case 'schedule': - path = 'M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z'; - break; - - case 'screenoptions': - path = 'M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z'; - break; - - case 'search': - path = 'M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z'; - break; - - case 'share-alt': - path = 'M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z'; - break; - - case 'share-alt2': - path = 'M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z'; - break; - - case 'share': - path = 'M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z'; - break; - - case 'shield-alt': - path = 'M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z'; - break; - - case 'shield': - path = 'M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z'; - break; - - case 'shortcode': - path = 'M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4'; - break; - - case 'slides': - path = 'M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z'; - break; - - case 'smartphone': - path = 'M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z'; - break; - - case 'smiley': - path = 'M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z'; - break; - - case 'sort': - path = 'M11 7H1l5 7zm-2 7h10l-5-7z'; - break; - - case 'sos': - path = 'M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z'; - break; - - case 'star-empty': - path = 'M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z'; - break; - - case 'star-filled': - path = 'M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z'; - break; - - case 'star-half': - path = 'M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z'; - break; - - case 'sticky': - path = 'M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z'; - break; - - case 'store': - path = 'M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z'; - break; - - case 'table-col-after': - path = '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'; - break; - - case 'table-col-before': - path = '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'; - break; - - case 'table-col-delete': - path = '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'; - break; - - case 'table-row-after': - path = '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'; - break; - - case 'table-row-before': - path = '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.84z'; - break; - - case 'table-row-delete': - path = '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'; - break; - - case 'tablet': - path = 'M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z'; - break; - - case 'tag': - path = 'M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z'; - break; - - case 'tagcloud': - path = 'M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z'; - break; - - case 'testimonial': - path = 'M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z'; - break; - - case 'text': - path = 'M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z'; - break; - - case 'thumbs-down': - path = 'M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z'; - break; - - case 'thumbs-up': - path = 'M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z'; - break; - - case 'tickets-alt': - path = 'M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z'; - break; - - case 'tickets': - path = 'M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z'; - break; - - case 'tide': - path = 'M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z'; - break; - - case 'translation': - path = 'M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z'; - break; - - case 'trash': - path = 'M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z'; - break; - - case 'twitter': - path = 'M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z'; - break; - - case 'undo': - path = 'M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z'; - break; - - case 'universal-access-alt': - path = 'M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z'; - break; - - case 'universal-access': - path = 'M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z'; - break; - - case 'unlock': - path = 'M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z'; - break; - - case 'update': - path = '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'; - break; - - case 'upload': - path = 'M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z'; - break; - - case 'vault': - path = 'M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z'; - break; - - case 'video-alt': - path = 'M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z'; - break; - - case 'video-alt2': - path = 'M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z'; - break; - - case 'video-alt3': - path = 'M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z'; - break; - - case 'visibility': - path = 'M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z'; - break; - - case 'warning': - path = 'M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z'; - break; - - case 'welcome-add-page': - path = 'M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z'; - break; - - case 'welcome-comments': - path = 'M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z'; - break; - - case 'welcome-learn-more': - path = 'M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z'; - break; - - case 'welcome-view-site': - path = 'M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z'; - break; - - case 'welcome-widgets-menus': - path = 'M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z'; - break; - - case 'welcome-write-blog': - path = 'M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z'; - break; - - case 'wordpress-alt': - path = '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'; - break; - - case 'wordpress': - path = 'M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z'; - break; - - case 'yes-alt': - path = 'M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z'; - break; - - case 'yes': - path = 'M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z'; - break; - } - - if (!path) { - return null; - } - - var iconClass = ['dashicon', 'dashicons-' + icon, className].filter(Boolean).join(' '); - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__["SVG"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ - "aria-hidden": true, - role: "img", - focusable: "false", - className: iconClass, - xmlns: "http://www.w3.org/2000/svg", - width: size, - height: size, - viewBox: "0 0 20 20" - }, extraProps), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__["Path"], { - d: path - })); - } - }]); - - return Dashicon; -}(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); - - +/* harmony default export */ __webpack_exports__["a"] = (Dashicon); /***/ }), -/* 149 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),o=u[0],i=u[1],c=e.useCallback((function(e){return i(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),o]}; /***/ }), -/* 150 */, -/* 151 */, -/* 152 */, -/* 153 */ +/* 153 */, +/* 154 */, +/* 155 */, +/* 156 */, +/* 157 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -13834,13 +12695,13 @@ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 154 */ +/* 158 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -13852,13 +12713,13 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z" + d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z" })); /* harmony default export */ __webpack_exports__["a"] = (check); /***/ }), -/* 155 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13872,14 +12733,14 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 156 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13893,7 +12754,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -13924,8 +12785,8 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO }()], 'Modifiers (Set of Strings)'); /***/ }), -/* 157 */, -/* 158 */ +/* 161 */, +/* 162 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13933,7 +12794,7 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); /* 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 _slot_fill_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(133); +/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(138); function 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; } @@ -13968,7 +12829,7 @@ function useSlot(name) { var unregisterFill = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillRef) { registry.unregisterFill(name, fillRef); }, [name, registry.unregisterFill]); - return _objectSpread({}, slot, { + return _objectSpread(_objectSpread({}, slot), {}, { updateSlot: updateSlot, unregisterSlot: unregisterSlot, fills: fills, @@ -13979,77 +12840,16 @@ function useSlot(name) { /***/ }), -/* 159 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); - - - -/** - * External dependencies - */ - - -function Animate(_ref) { - var type = _ref.type, - _ref$options = _ref.options, - options = _ref$options === void 0 ? {} : _ref$options, - children = _ref.children; - - if (type === 'appear') { - var _classnames; - - var _options$origin = options.origin, - origin = _options$origin === void 0 ? 'top' : _options$origin; - - var _origin$split = origin.split(' '), - _origin$split2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_origin$split, 2), - yAxis = _origin$split2[0], - _origin$split2$ = _origin$split2[1], - xAxis = _origin$split2$ === void 0 ? 'center' : _origin$split2$; - - return children({ - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__appear', (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + xAxis, xAxis !== 'center'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + yAxis, yAxis !== 'middle'), _classnames)) - }); - } - - if (type === 'slide-in') { - var _options$origin2 = options.origin, - _origin = _options$origin2 === void 0 ? 'left' : _options$origin2; - - return children({ - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__slide-in', 'is-from-' + _origin) - }); - } - - if (type === 'loading') { - return children({ - className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__loading') - }); - } - - return children({}); -} - -/* harmony default export */ __webpack_exports__["a"] = (Animate); - - -/***/ }), -/* 160 */ +/* 163 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export createScrollLockComponent */ -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); @@ -14058,7 +12858,7 @@ function Animate(_ref) { -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* 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_2__[/* default */ "a"])(this, result); }; } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* 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_3__[/* 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; } } @@ -14150,7 +12950,7 @@ function createScrollLockComponent() { } return /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(ScrollLock, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(ScrollLock, _Component); var _super = _createSuper(ScrollLock); @@ -14198,7 +12998,7 @@ function createScrollLockComponent() { /***/ }), -/* 161 */ +/* 164 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14206,15 +13006,15 @@ function createScrollLockComponent() { /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54); +/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); /* 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__(104); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); /* 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__(34); +/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36); /** @@ -14316,13 +13116,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__(117))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) /***/ }), -/* 162 */, -/* 163 */, -/* 164 */, -/* 165 */ +/* 165 */, +/* 166 */, +/* 167 */, +/* 168 */, +/* 169 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14367,12 +13168,12 @@ function Shortcut(_ref) { /***/ }), -/* 166 */ +/* 170 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useToolbarState; }); -/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); @@ -14407,9 +13208,10 @@ useToolbarState.__keys = keys; /***/ }), -/* 167 */, -/* 168 */, -/* 169 */ +/* 171 */, +/* 172 */, +/* 173 */, +/* 174 */ /***/ (function(module, exports) { function _extends() { @@ -14433,7 +13235,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 170 */ +/* 175 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -14454,7 +13256,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 171 */ +/* 176 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -14468,18 +13270,18 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 172 */, -/* 173 */, -/* 174 */, -/* 175 */, -/* 176 */, -/* 177 */ +/* 177 */, +/* 178 */, +/* 179 */, +/* 180 */, +/* 181 */, +/* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(178); +var util = __webpack_require__(183); function scrollIntoView(elem, container, config) { config = config || {}; @@ -14608,7 +13410,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 178 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15053,13 +13855,13 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 179 */ +/* 184 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -15077,17 +13879,17 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 180 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(205); +var isArgs = __webpack_require__(218); var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(312); +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(325); var originalKeys = Object.keys; @@ -15116,13 +13918,13 @@ module.exports = keysShim; /***/ }), -/* 181 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(118); +var bind = __webpack_require__(121); var GetIntrinsic = __webpack_require__(58); @@ -15130,17 +13932,34 @@ 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); }; -module.exports.apply = function applyBind() { +var applyBind = function applyBind() { return $reflectApply(bind, $apply, arguments); }; +if ($defineProperty) { + $defineProperty(module.exports, 'apply', { value: applyBind }); +} else { + module.exports.apply = applyBind; +} + /***/ }), -/* 182 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15150,10 +13969,10 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var inspect = __webpack_require__(316); +var inspect = __webpack_require__(329); -var IsPropertyKey = __webpack_require__(128); -var Type = __webpack_require__(90); +var IsPropertyKey = __webpack_require__(131); +var Type = __webpack_require__(92); /** * 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p @@ -15177,7 +13996,7 @@ module.exports = function Get(O, P) { /***/ }), -/* 183 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15188,7 +14007,7 @@ var GetIntrinsic = __webpack_require__(58); var $Array = GetIntrinsic('%Array%'); // eslint-disable-next-line global-require -var toStr = !$Array.isArray && __webpack_require__(140)('Object.prototype.toString'); +var toStr = !$Array.isArray && __webpack_require__(145)('Object.prototype.toString'); // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray @@ -15198,7 +14017,7 @@ module.exports = $Array.isArray || function IsArray(argument) { /***/ }), -/* 184 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15209,7 +14028,7 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(91); +var has = __webpack_require__(93); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -15253,7 +14072,7 @@ module.exports = function assertRecord(Type, recordType, argumentName, value) { /***/ }), -/* 185 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15265,14 +14084,14 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 186 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(343)(); +var hasSymbols = __webpack_require__(356)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -15307,7 +14126,7 @@ if (hasSymbols) { /***/ }), -/* 187 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15351,7 +14170,7 @@ module.exports = function isCallable(value) { /***/ }), -/* 188 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15535,7 +14354,7 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 189 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15546,7 +14365,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isSameDay; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); @@ -15560,7 +14379,7 @@ function isSameDay(a, b) { } /***/ }), -/* 190 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15571,15 +14390,15 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = toISOMonthString; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(240); +var _toMomentObject = __webpack_require__(253); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -15591,7 +14410,7 @@ function toISOMonthString(date, currentFormat) { } /***/ }), -/* 191 */ +/* 196 */ /***/ (function(module, exports) { /** @@ -15628,18 +14447,18 @@ module.exports = isObject; /***/ }), -/* 192 */ +/* 197 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22); +/* 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__(20); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); /* 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); @@ -15653,7 +14472,7 @@ module.exports = isObject; -function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* 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_4__[/* default */ "a"])(this, result); }; } +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; } } @@ -15685,7 +14504,7 @@ Consumer.displayName = 'FocusReturnConsumer'; var MAX_STACK_LENGTH = 100; var FocusReturnProvider = /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(FocusReturnProvider, _Component); + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(FocusReturnProvider, _Component); var _super = _createSuper(FocusReturnProvider); @@ -15742,19 +14561,19 @@ var FocusReturnProvider = /*#__PURE__*/function (_Component) { /***/ }), -/* 193 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(305); + module.exports = __webpack_require__(318); } else {} /***/ }), -/* 194 */ +/* 199 */ /***/ (function(module, exports) { // Copyright (c) 2014 Rafael Caricio. All rights reserved. @@ -16099,21 +14918,98 @@ exports.parse = (GradientParser || {}).parse; /***/ }), -/* 195 */, -/* 196 */, -/* 197 */, -/* 198 */, -/* 199 */, /* 200 */, /* 201 */, /* 202 */, -/* 203 */ +/* 203 */, +/* 204 */, +/* 205 */, +/* 206 */, +/* 207 */, +/* 208 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z" +})); +/* harmony default export */ __webpack_exports__["a"] = (plus); + + +/***/ }), +/* 209 */, +/* 210 */, +/* 211 */, +/* 212 */, +/* 213 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronRight); + + +/***/ }), +/* 214 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + + +/***/ }), +/* 215 */, +/* 216 */ +/***/ (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__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -16131,13 +15027,13 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 204 */ +/* 217 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -16155,7 +15051,7 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ }), -/* 205 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16179,14 +15075,14 @@ module.exports = function isArguments(value) { /***/ }), -/* 206 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(314); +var hasSymbolSham = __webpack_require__(327); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -16197,21 +15093,21 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(127))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) /***/ }), -/* 207 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArraySpeciesCreate = __webpack_require__(315); -var FlattenIntoArray = __webpack_require__(325); -var Get = __webpack_require__(182); -var ToInteger = __webpack_require__(219); -var ToLength = __webpack_require__(218); -var ToObject = __webpack_require__(345); +var ArraySpeciesCreate = __webpack_require__(328); +var FlattenIntoArray = __webpack_require__(338); +var Get = __webpack_require__(187); +var ToInteger = __webpack_require__(232); +var ToLength = __webpack_require__(231); +var ToObject = __webpack_require__(358); module.exports = function flat() { var O = ToObject(this); @@ -16229,7 +15125,7 @@ module.exports = function flat() { /***/ }), -/* 208 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16248,7 +15144,7 @@ if ($defineProperty) { } } -var callBound = __webpack_require__(140); +var callBound = __webpack_require__(145); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); @@ -16281,15 +15177,15 @@ module.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPro /***/ }), -/* 209 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var assertRecord = __webpack_require__(184); +var assertRecord = __webpack_require__(189); -var Type = __webpack_require__(90); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor @@ -16324,17 +15220,17 @@ module.exports = function FromPropertyDescriptor(Desc) { /***/ }), -/* 210 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(91); +var has = __webpack_require__(93); -var assertRecord = __webpack_require__(184); +var assertRecord = __webpack_require__(189); -var Type = __webpack_require__(90); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor @@ -16354,13 +15250,13 @@ module.exports = function IsDataDescriptor(Desc) { /***/ }), -/* 211 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $isNaN = __webpack_require__(185); +var $isNaN = __webpack_require__(190); // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12 @@ -16374,21 +15270,21 @@ module.exports = function SameValue(x, y) { /***/ }), -/* 212 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(91); +var has = __webpack_require__(93); var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var Type = __webpack_require__(90); -var ToBoolean = __webpack_require__(213); -var IsCallable = __webpack_require__(323); +var Type = __webpack_require__(92); +var ToBoolean = __webpack_require__(226); +var IsCallable = __webpack_require__(336); // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5 @@ -16413,7 +15309,7 @@ module.exports = function ToPropertyDescriptor(Obj) { if (has(Obj, 'get')) { var getter = Obj.get; if (typeof getter !== 'undefined' && !IsCallable(getter)) { - throw new TypeError('getter must be a function'); + throw new $TypeError('getter must be a function'); } desc['[[Get]]'] = getter; } @@ -16433,7 +15329,7 @@ module.exports = function ToPropertyDescriptor(Obj) { /***/ }), -/* 213 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16445,7 +15341,7 @@ module.exports = function ToBoolean(value) { return !!value; }; /***/ }), -/* 214 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16463,8 +15359,12 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func } }); isCallableMarker = {}; + // eslint-disable-next-line no-throw-literal + reflectApply(function () { throw 42; }, null, badArrayLike); } catch (_) { - reflectApply = null; + if (_ !== isCallableMarker) { + reflectApply = null; + } } } else { reflectApply = null; @@ -16518,7 +15418,7 @@ module.exports = reflectApply /***/ }), -/* 215 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16530,7 +15430,7 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 216 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16545,7 +15445,7 @@ module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1; /***/ }), -/* 217 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16557,15 +15457,15 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 218 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var MAX_SAFE_INTEGER = __webpack_require__(216); +var MAX_SAFE_INTEGER = __webpack_require__(229); -var ToInteger = __webpack_require__(219); +var ToInteger = __webpack_require__(232); module.exports = function ToLength(argument) { var len = ToInteger(argument); @@ -16576,15 +15476,15 @@ module.exports = function ToLength(argument) { /***/ }), -/* 219 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES5ToInteger = __webpack_require__(335); +var ES5ToInteger = __webpack_require__(348); -var ToNumber = __webpack_require__(338); +var ToNumber = __webpack_require__(351); // https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger @@ -16595,7 +15495,7 @@ module.exports = function ToInteger(value) { /***/ }), -/* 220 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16622,7 +15522,7 @@ module.exports = function isDateObject(value) { /***/ }), -/* 221 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16671,13 +15571,13 @@ module.exports = function hasSymbols() { /***/ }), -/* 222 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(207); +var implementation = __webpack_require__(220); module.exports = function getPolyfill() { return Array.prototype.flat || implementation; @@ -16685,7 +15585,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 223 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16786,7 +15686,7 @@ exports['default'] = { }; /***/ }), -/* 224 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16992,19 +15892,19 @@ exports['default'] = { }; /***/ }), -/* 225 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(180); -var bind = __webpack_require__(118); +var keys = __webpack_require__(185); +var bind = __webpack_require__(121); var canBeObject = function (obj) { return typeof obj !== 'undefined' && obj !== null; }; -var hasSymbols = __webpack_require__(221)(); +var hasSymbols = __webpack_require__(234)(); var toObject = Object; var push = bind.call(Function.call, Array.prototype.push); var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); @@ -17040,13 +15940,13 @@ module.exports = function assign(target, source1) { /***/ }), -/* 226 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(225); +var implementation = __webpack_require__(238); var lacksProperEnumerationOrder = function () { if (!Object.assign) { @@ -17098,17 +15998,17 @@ module.exports = function getPolyfill() { /***/ }), -/* 227 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); +var define = __webpack_require__(103); -var implementation = __webpack_require__(228); -var getPolyfill = __webpack_require__(236); -var shim = __webpack_require__(367); +var implementation = __webpack_require__(241); +var getPolyfill = __webpack_require__(249); +var shim = __webpack_require__(380); var polyfill = getPolyfill(); @@ -17122,15 +16022,15 @@ module.exports = polyfill; /***/ }), -/* 228 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(358); -var has = __webpack_require__(91); -var bind = __webpack_require__(118); +var ES = __webpack_require__(371); +var has = __webpack_require__(93); +var bind = __webpack_require__(121); var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = function values(O) { @@ -17146,7 +16046,7 @@ module.exports = function values(O) { /***/ }), -/* 229 */ +/* 242 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -17155,18 +16055,18 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 230 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(188); +var GetIntrinsic = __webpack_require__(193); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(91); +var has = __webpack_require__(93); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -17211,7 +16111,7 @@ module.exports = function assertRecord(ES, recordType, argumentName, value) { /***/ }), -/* 231 */ +/* 244 */ /***/ (function(module, exports) { module.exports = Number.isNaN || function isNaN(a) { @@ -17220,7 +16120,7 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 232 */ +/* 245 */ /***/ (function(module, exports) { var $isNaN = Number.isNaN || function (a) { return a !== a; }; @@ -17229,10 +16129,10 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 233 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { -var bind = __webpack_require__(118); +var bind = __webpack_require__(121); var has = bind.call(Function.call, Object.prototype.hasOwnProperty); var $assign = Object.assign; @@ -17252,7 +16152,7 @@ module.exports = function assign(target, source) { /***/ }), -/* 234 */ +/* 247 */ /***/ (function(module, exports) { module.exports = function sign(number) { @@ -17261,7 +16161,7 @@ module.exports = function sign(number) { /***/ }), -/* 235 */ +/* 248 */ /***/ (function(module, exports) { module.exports = function mod(number, modulo) { @@ -17271,13 +16171,13 @@ module.exports = function mod(number, modulo) { /***/ }), -/* 236 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(228); +var implementation = __webpack_require__(241); module.exports = function getPolyfill() { return typeof Object.values === 'function' ? Object.values : implementation; @@ -17285,7 +16185,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 237 */ +/* 250 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -17298,7 +16198,7 @@ function isTouchDevice() { module.exports = exports['default']; /***/ }), -/* 238 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17309,15 +16209,15 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isAfterDay; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isBeforeDay = __webpack_require__(239); +var _isBeforeDay = __webpack_require__(252); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isSameDay = __webpack_require__(189); +var _isSameDay = __webpack_require__(194); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -17329,7 +16229,7 @@ function isAfterDay(a, b) { } /***/ }), -/* 239 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17340,7 +16240,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isBeforeDay; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); @@ -17364,7 +16264,7 @@ function isBeforeDay(a, b) { } /***/ }), -/* 240 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17375,11 +16275,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = toMomentObject; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -17391,7 +16291,7 @@ function toMomentObject(dateString, customFormat) { } /***/ }), -/* 241 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17402,11 +16302,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isDayVisible; -var _isBeforeDay = __webpack_require__(239); +var _isBeforeDay = __webpack_require__(252); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isAfterDay = __webpack_require__(238); +var _isAfterDay = __webpack_require__(251); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -17423,7 +16323,7 @@ function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { } /***/ }), -/* 242 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17434,15 +16334,15 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = toISODateString; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(240); +var _toMomentObject = __webpack_require__(253); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -17454,7 +16354,7 @@ function toISODateString(date, currentFormat) { } /***/ }), -/* 243 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17468,17 +16368,17 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]); /***/ }), -/* 244 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(379); +var freeGlobal = __webpack_require__(392); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -17490,10 +16390,10 @@ module.exports = root; /***/ }), -/* 245 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(244); +var root = __webpack_require__(257); /** Built-in value references. */ var Symbol = root.Symbol; @@ -17502,7 +16402,7 @@ module.exports = Symbol; /***/ }), -/* 246 */ +/* 259 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -17717,7 +16617,7 @@ function addEventListener(target, eventName, listener, options) { /***/ }), -/* 247 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17746,13 +16646,13 @@ module.exports = function contains(other) { /***/ }), -/* 248 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(247); +var implementation = __webpack_require__(260); module.exports = function getPolyfill() { if (typeof document !== 'undefined') { @@ -17772,7 +16672,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 249 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17787,7 +16687,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -17799,37 +16699,37 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(143); +var _reactAddonsShallowCompare = __webpack_require__(148); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(141); +var _reactMomentProptypes = __webpack_require__(146); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(250); +var _getCalendarDaySettings = __webpack_require__(263); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(156); +var _ModifiersShape = __webpack_require__(160); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -18254,7 +17154,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CalendarDay); /***/ }), -/* 250 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18265,11 +17165,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(393); +var _getPhrase = __webpack_require__(406); var _getPhrase2 = _interopRequireDefault(_getPhrase); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -18312,7 +17212,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase } /***/ }), -/* 251 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18356,7 +17256,7 @@ function calculateDimension(el, axis) { } /***/ }), -/* 252 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18371,7 +17271,7 @@ function getCalendarMonthWidth(daySize, calendarMonthPadding) { } /***/ }), -/* 253 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18382,7 +17282,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isSameMonth; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); @@ -18396,12 +17296,12 @@ function isSameMonth(a, b) { } /***/ }), -/* 254 */, -/* 255 */, -/* 256 */, -/* 257 */, -/* 258 */, -/* 259 */ +/* 267 */, +/* 268 */, +/* 269 */, +/* 270 */, +/* 271 */, +/* 272 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -18436,6 +17336,7 @@ __webpack_require__.d(__webpack_exports__, "ClipboardButton", function() { retur __webpack_require__.d(__webpack_exports__, "ColorIndicator", function() { return /* reexport */ color_indicator; }); __webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return /* reexport */ ColorPalette; }); __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return /* reexport */ color_picker_ColorPicker; }); +__webpack_require__.d(__webpack_exports__, "ComboboxControl", function() { return /* reexport */ combobox_control; }); __webpack_require__.d(__webpack_exports__, "CustomSelectControl", function() { return /* reexport */ CustomSelectControl; }); __webpack_require__.d(__webpack_exports__, "Dashicon", function() { return /* reexport */ dashicon["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "DateTimePicker", function() { return /* reexport */ date_time_DateTimePicker; }); @@ -18472,8 +17373,13 @@ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return /* re __webpack_require__.d(__webpack_exports__, "MenuItemsChoice", function() { return /* reexport */ MenuItemsChoice; }); __webpack_require__.d(__webpack_exports__, "Modal", function() { return /* reexport */ modal; }); __webpack_require__.d(__webpack_exports__, "ScrollLock", function() { return /* reexport */ scroll_lock["a" /* default */]; }); -__webpack_require__.d(__webpack_exports__, "NavigableMenu", function() { return /* reexport */ menu; }); +__webpack_require__.d(__webpack_exports__, "NavigableMenu", function() { return /* reexport */ navigable_container_menu; }); __webpack_require__.d(__webpack_exports__, "TabbableContainer", function() { return /* reexport */ tabbable; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigation", function() { return /* reexport */ Navigation; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigationBackButton", function() { return /* reexport */ NavigationBackButton; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigationGroup", function() { return /* reexport */ NavigationGroup; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigationItem", function() { return /* reexport */ NavigationItem; }); +__webpack_require__.d(__webpack_exports__, "__experimentalNavigationMenu", function() { return /* reexport */ NavigationMenu; }); __webpack_require__.d(__webpack_exports__, "Notice", function() { return /* reexport */ build_module_notice; }); __webpack_require__.d(__webpack_exports__, "__experimentalNumberControl", function() { return /* reexport */ number_control; }); __webpack_require__.d(__webpack_exports__, "NoticeList", function() { return /* reexport */ list; }); @@ -18491,7 +17397,7 @@ __webpack_require__.d(__webpack_exports__, "RangeControl", function() { return / __webpack_require__.d(__webpack_exports__, "ResizableBox", function() { return /* reexport */ resizable_box; }); __webpack_require__.d(__webpack_exports__, "ResponsiveWrapper", function() { return /* reexport */ responsive_wrapper; }); __webpack_require__.d(__webpack_exports__, "SandBox", function() { return /* reexport */ sandbox; }); -__webpack_require__.d(__webpack_exports__, "SelectControl", function() { return /* reexport */ SelectControl; }); +__webpack_require__.d(__webpack_exports__, "SelectControl", function() { return /* reexport */ select_control; }); __webpack_require__.d(__webpack_exports__, "Snackbar", function() { return /* reexport */ snackbar["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "SnackbarList", function() { return /* reexport */ snackbar_list; }); __webpack_require__.d(__webpack_exports__, "Spinner", function() { return /* reexport */ Spinner; }); @@ -18506,9 +17412,9 @@ __webpack_require__.d(__webpack_exports__, "Toolbar", function() { return /* ree __webpack_require__.d(__webpack_exports__, "ToolbarButton", function() { return /* reexport */ toolbar_button; }); __webpack_require__.d(__webpack_exports__, "__experimentalToolbarContext", function() { return /* reexport */ toolbar_context["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "ToolbarGroup", function() { return /* reexport */ toolbar_group; }); -__webpack_require__.d(__webpack_exports__, "__experimentalToolbarItem", function() { return /* reexport */ toolbar_item["a" /* default */]; }); +__webpack_require__.d(__webpack_exports__, "ToolbarItem", function() { return /* reexport */ toolbar_item["a" /* default */]; }); __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return /* reexport */ build_module_tooltip["a" /* default */]; }); -__webpack_require__.d(__webpack_exports__, "__experimentalTreeGrid", function() { return /* reexport */ TreeGrid; }); +__webpack_require__.d(__webpack_exports__, "__experimentalTreeGrid", function() { return /* reexport */ tree_grid; }); __webpack_require__.d(__webpack_exports__, "__experimentalTreeGridRow", function() { return /* reexport */ tree_grid_row; }); __webpack_require__.d(__webpack_exports__, "__experimentalTreeGridCell", function() { return /* reexport */ tree_grid_cell; }); __webpack_require__.d(__webpack_exports__, "__experimentalTreeGridItem", function() { return /* reexport */ tree_grid_item; }); @@ -18532,16 +17438,16 @@ __webpack_require__.d(__webpack_exports__, "withNotices", function() { return /* __webpack_require__.d(__webpack_exports__, "withSpokenMessages", function() { return /* reexport */ with_spoken_messages; }); // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(6); +var external_this_wp_primitives_ = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(15); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); @@ -18550,23 +17456,23 @@ var external_this_wp_element_ = __webpack_require__(0); var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); +var classnames = __webpack_require__(9); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); // EXTERNAL MODULE: ./node_modules/reakit/es/CompositeState-3a25dcee.js var CompositeState_3a25dcee = __webpack_require__(51); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js -var Composite = __webpack_require__(119); +var Composite = __webpack_require__(122); // EXTERNAL MODULE: ./node_modules/reakit/es/_rollupPluginBabelHelpers-1f0bf8c2.js -var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(17); +var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/reakit-system/es/createComponent.js + 1 modules -var createComponent = __webpack_require__(49); +var createComponent = __webpack_require__(50); // EXTERNAL MODULE: ./node_modules/reakit-system/es/createHook.js + 4 modules -var createHook = __webpack_require__(48); +var createHook = __webpack_require__(49); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -18605,7 +17511,7 @@ var Group = Object(createComponent["a" /* createComponent */])({ // EXTERNAL MODULE: ./node_modules/reakit/es/Id/Id.js -var Id = __webpack_require__(93); +var Id = __webpack_require__(95); // CONCATENATED MODULE: ./node_modules/reakit/es/Composite/CompositeGroup.js @@ -18691,13 +17597,13 @@ var CompositeGroup = Object(createComponent["a" /* createComponent */])({ var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/CompositeItem.js -var CompositeItem = __webpack_require__(120); +var CompositeItem = __webpack_require__(123); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js -var build_module_tooltip = __webpack_require__(86); +var build_module_tooltip = __webpack_require__(83); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -18840,7 +17746,7 @@ function getAlignmentIndex() { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js -var helpers_defineProperty = __webpack_require__(269); +var helpers_defineProperty = __webpack_require__(283); var defineProperty_default = /*#__PURE__*/__webpack_require__.n(helpers_defineProperty); // CONCATENATED MODULE: ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js @@ -18872,7 +17778,7 @@ var is_prop_valid_browser_esm_index = memoize_browser_esm(function (prop) { /* harmony default export */ var is_prop_valid_browser_esm = (is_prop_valid_browser_esm_index); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inheritsLoose.js -var inheritsLoose = __webpack_require__(145); +var inheritsLoose = __webpack_require__(149); var inheritsLoose_default = /*#__PURE__*/__webpack_require__.n(inheritsLoose); // CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js @@ -20756,6 +19662,17 @@ var G2 = { focusDark: '#fff' } }, + gray: { + 900: '#1e1e1e', + 700: '#757575', + // Meets 4.6:1 text contrast against white. + 600: '#949494', + // Meets 3:1 UI or large text contrast against white. + 400: '#ccc', + 200: '#ddd', + // Used for most borders. + 100: '#f0f0f0' + }, darkGray: { primary: '#1e1e1e' }, @@ -20868,16 +19785,16 @@ var UI = { theme: ADMIN.theme, background: BASE.white, backgroundDisabled: LIGHT_GRAY[200], - border: G2.darkGray.primary, + border: G2.gray[700], borderFocus: ADMIN.themeDark10, - borderDisabled: DARK_GRAY[700], - borderLight: LIGHT_GRAY[600], + borderDisabled: G2.gray[400], + borderLight: G2.gray[200], label: DARK_GRAY[500], textDisabled: DARK_GRAY[150], textDark: BASE.white, textLight: BASE.black }; -var COLORS = colors_values_objectSpread({}, BASE, { +var COLORS = colors_values_objectSpread(colors_values_objectSpread({}, BASE), {}, { darkGray: Object(external_this_lodash_["merge"])({}, DARK_GRAY, G2.darkGray), darkOpacity: DARK_OPACITY, darkOpacityLight: DARK_OPACITY_LIGHT, @@ -21261,7 +20178,7 @@ function AlignmentMatrixControlIcon(_ref) { var scale = (size / BASE_SIZE).toFixed(2); var classes = classnames_default()('component-alignment-matrix-control-icon', className); - var styles = icon_objectSpread({}, style, { + var styles = icon_objectSpread(icon_objectSpread({}, style), {}, { transform: "scale(".concat(scale, ")") }); @@ -21381,7 +20298,7 @@ function AlignmentMatrixControl(_ref) { AlignmentMatrixControl.Icon = AlignmentMatrixControlIcon; // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var animate = __webpack_require__(159); +var animate = __webpack_require__(135); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js @@ -21432,9 +20349,3709 @@ BaseControl.VisualLabel = function (_ref2) { /* harmony default export */ var base_control = (BaseControl); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles/flex-styles.js +function flex_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +var flex_styles_alignStyle = function alignStyle(_ref2) { + var align = _ref2.align; + var aligns = { + top: 'flex-start', + bottom: 'flex-end' + }; + var value = aligns[align] || align; + return /*#__PURE__*/css_browser_esm({ + alignItems: value + }, true ? "" : undefined); +}; + +var flex_styles_justifyStyle = function justifyStyle(_ref3) { + var justify = _ref3.justify, + isReversed = _ref3.isReversed; + var justifies = { + left: 'flex-start', + right: 'flex-end' + }; + var value = justifies[justify] || justify; + + if (isReversed && justifies[justify]) { + value = justify === 'left' ? justifies.right : justifies.left; + } + + return /*#__PURE__*/css_browser_esm({ + justifyContent: value + }, true ? "" : undefined); +}; + +var flex_styles_gapStyle = function gapStyle(_ref4) { + var gap = _ref4.gap, + isReversed = _ref4.isReversed; + var base = 4; + var value = typeof gap === 'number' ? base * gap : base; + var dir = isReversed ? 'left' : 'right'; + var margin = "margin-".concat(dir); + return /*#__PURE__*/css_browser_esm("> *{", margin, ":", value, "px;&:last-child{", margin, ":0;}}" + ( true ? "" : undefined)); +}; + +var flex_styles_ref = true ? { + name: "8kj89b", + styles: "flex-direction:row-reverse;" +} : undefined; + +var reversedStyles = function reversedStyles(_ref5) { + var isReversed = _ref5.isReversed; + if (!isReversed) return ''; + return flex_styles_ref; +}; + +var Flex = styled_base_browser_esm("div", { + target: "eboqfv50", + label: "Flex" +})("box-sizing:border-box;display:flex;", flex_styles_alignStyle, ";", flex_styles_justifyStyle, ";", flex_styles_gapStyle, ";", reversedStyles, ";" + ( true ? "" : undefined)); +var Item = styled_base_browser_esm("div", { + target: "eboqfv51", + label: "Item" +})( true ? { + name: "13luw5d", + styles: "box-sizing:border-box;min-width:0;max-width:100%;" +} : undefined); +var Block = /*#__PURE__*/styled_base_browser_esm(Item, { + target: "eboqfv52", + label: "Block" +})( true ? { + name: "1rr4qq7", + styles: "flex:1;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/block.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function FlexBlock(_ref, ref) { + var className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); + + var classes = classnames_default()('components-flex__block', className); + return Object(external_this_wp_element_["createElement"])(Block, Object(esm_extends["a" /* default */])({}, props, { + className: classes, + ref: ref + })); +} + +/* harmony default export */ var block = (Object(external_this_wp_element_["forwardRef"])(FlexBlock)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function FlexComponent(_ref, ref) { + var _ref$align = _ref.align, + align = _ref$align === void 0 ? 'center' : _ref$align, + className = _ref.className, + _ref$gap = _ref.gap, + gap = _ref$gap === void 0 ? 2 : _ref$gap, + _ref$justify = _ref.justify, + justify = _ref$justify === void 0 ? 'space-between' : _ref$justify, + _ref$isReversed = _ref.isReversed, + isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["align", "className", "gap", "justify", "isReversed"]); + + var classes = classnames_default()('components-flex', className); + return Object(external_this_wp_element_["createElement"])(Flex, Object(esm_extends["a" /* default */])({}, props, { + align: align, + className: classes, + ref: ref, + gap: gap, + justify: justify, + isReversed: isReversed + })); +} + +var flex_Flex = Object(external_this_wp_element_["forwardRef"])(FlexComponent); +/* harmony default export */ var flex = (flex_Flex); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/item.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function FlexItem(_ref, ref) { + var className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); + + var classes = classnames_default()('components-flex__item', className); + return Object(external_this_wp_element_["createElement"])(Item, Object(esm_extends["a" /* default */])({}, props, { + className: classes, + ref: ref + })); +} + +/* harmony default export */ var flex_item = (Object(external_this_wp_element_["forwardRef"])(FlexItem)); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); +} +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/font-family.js +var fontFamily = "font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;"; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/emotion-css.js +/** + * External dependencies + */ + +/* harmony default export */ var emotion_css = (css_browser_esm); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/text-mixins.js + + +function _templateObject9() { + var data = _taggedTemplateLiteral(["\n\t", "\n\t", "\n"]); + + _templateObject9 = function _templateObject9() { + return data; + }; + + return data; +} + +function _templateObject8() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject8 = function _templateObject8() { + return data; + }; + + return data; +} + +function _templateObject7() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject7 = function _templateObject7() { + return data; + }; + + return data; +} + +function _templateObject6() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject6 = function _templateObject6() { + return data; + }; + + return data; +} + +function _templateObject5() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject5 = function _templateObject5() { + return data; + }; + + return data; +} + +function _templateObject4() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject4 = function _templateObject4() { + return data; + }; + + return data; +} + +function _templateObject3() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject3 = function _templateObject3() { + return data; + }; + + return data; +} + +function _templateObject2() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject2 = function _templateObject2() { + return data; + }; + + return data; +} + +function _templateObject() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} + +/** + * Internal dependencies + */ + + +var fontWeightNormal = "font-weight: 400;"; +var fontWeightSemibold = "font-weight: 600;"; +var text_mixins_title = "\n ".concat(fontWeightNormal, "\n"); +var titleLarge = "\n\tfont-size: 32px;\n\tline-height: 40px;\n"; +var titleMedium = "\n\tfont-size: 24px;\n\tline-height: 32px;\n"; +var titleSmall = "\n\tfont-size: 20px;\n\tline-height: 28px;\n"; +var subtitle = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 14px;\n\tline-height: 20px;\n"); +var subtitleLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; +var subtitleSmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; +var text_mixins_body = "\n\t".concat(fontWeightNormal, "\n"); +var bodyLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; +var bodySmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; +var text_mixins_button = "\n ".concat(fontWeightSemibold, "\n font-size: 14px;\n line-height: 20px;\n"); +var caption = "\n\t".concat(fontWeightNormal, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); +var text_mixins_label = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); +/** + * @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'} TextVariant + */ + +/** + * @param {TextVariant} variantName + */ + +var text_mixins_variant = function variant() { + var variantName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'body'; + + switch (variantName) { + case 'title.large': + return emotion_css(_templateObject(), text_mixins_title, titleLarge); + + case 'title.medium': + return emotion_css(_templateObject2(), text_mixins_title, titleMedium); + + case 'title.small': + return emotion_css(_templateObject3(), text_mixins_title, titleSmall); + + case 'subtitle': + return emotion_css(_templateObject4(), subtitle, subtitleLarge); + + case 'subtitle.small': + return emotion_css(_templateObject5(), subtitle, subtitleSmall); + + case 'body': + return emotion_css(_templateObject6(), text_mixins_body); + + case 'body.large': + return emotion_css(_templateObject7(), text_mixins_body, bodyLarge); + + case 'body.small': + return emotion_css(_templateObject8(), text_mixins_body, bodySmall); + + case 'button': + return text_mixins_button; + + case 'caption': + return caption; + + case 'label': + return text_mixins_label; + } +}; +/** + * @typedef {Object} TextProps + * @property {TextVariant} variant one of TextVariant to be used + */ + +/** + * @param {TextProps} props + */ + + +var text_mixins_text = function text(props) { + return emotion_css(_templateObject9(), fontFamily, text_mixins_variant(props.variant)); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + + +/** + * Internal dependencies + */ + + +var Text = styled_base_browser_esm("p", { + target: "e15wbhsk0", + label: "Text" +})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n", text_mixins_text, true ? "" : undefined); + +/* harmony default export */ var build_module_text = (Text); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js + + + + +function input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + + + +var input_control_styles_ref = true ? { + name: "1dacand", + styles: "padding-top:0;" +} : undefined; + +var rootFloatLabelStyles = function rootFloatLabelStyles() { + return input_control_styles_ref; +}; + +var input_control_styles_ref2 = true ? { + name: "r6z5ec", + styles: "z-index:1;" +} : undefined; + +var rootFocusedStyles = function rootFocusedStyles(_ref8) { + var isFocused = _ref8.isFocused; + if (!isFocused) return ''; + return input_control_styles_ref2; +}; + +var input_control_styles_ref3 = true ? { + name: "uz6002", + styles: "align-items:flex-start;flex-direction:column;" +} : undefined; + +var input_control_styles_ref4 = true ? { + name: "53hdd7", + styles: "align-items:flex-start;flex-direction:column-reverse;" +} : undefined; + +var rootLabelPositionStyles = function rootLabelPositionStyles(_ref9) { + var labelPosition = _ref9.labelPosition; + + switch (labelPosition) { + case 'top': + return input_control_styles_ref3; + + case 'bottom': + return input_control_styles_ref4; + + default: + return ''; + } +}; + +var input_control_styles_Root = /*#__PURE__*/styled_base_browser_esm(flex, { + target: "e1cr7zh10", + label: "Root" +})("position:relative;border-radius:2px;", rootFloatLabelStyles, ";", rootFocusedStyles, ";", rootLabelPositionStyles, ";" + ( true ? "" : undefined)); + +var input_control_styles_containerDisabledStyles = function containerDisabledStyles(_ref10) { + var disabled = _ref10.disabled; + var backgroundColor = disabled ? colors_color('ui.backgroundDisabled') : colors_color('ui.background'); + return /*#__PURE__*/css_browser_esm({ + backgroundColor: backgroundColor + }, true ? "" : undefined); +}; + +var input_control_styles_ref5 = true ? { + name: "8atqhb", + styles: "width:100%;" +} : undefined; + +var containerWidthStyles = function containerWidthStyles(_ref11) { + var labelPosition = _ref11.labelPosition; + if (labelPosition === 'side') return ''; + return input_control_styles_ref5; +}; + +var Container = styled_base_browser_esm("div", { + target: "e1cr7zh11", + label: "Container" +})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", input_control_styles_containerDisabledStyles, ";", containerWidthStyles, ";" + ( true ? "" : undefined)); + +var input_control_styles_disabledStyles = function disabledStyles(_ref12) { + var disabled = _ref12.disabled; + if (!disabled) return ''; + return /*#__PURE__*/css_browser_esm({ + color: colors_color('ui.textDisabled') + }, true ? "" : undefined); +}; + +var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref13) { + var size = _ref13.size; + var sizes = { + default: '13px', + small: '11px' + }; + var fontSize = sizes[size]; + var fontSizeMobile = '16px'; + if (!fontSize) return ''; + return /*#__PURE__*/css_browser_esm("font-size:", fontSizeMobile, ";@media ( min-width:600px ){font-size:", fontSize, ";}" + ( true ? "" : undefined)); +}; + +var input_control_styles_sizeStyles = function sizeStyles(_ref14) { + var size = _ref14.size; + var sizes = { + default: { + height: 30, + lineHeight: 1, + minHeight: 30 + }, + small: { + height: 24, + lineHeight: 1, + minHeight: 24 + } + }; + var style = sizes[size] || sizes.default; + return /*#__PURE__*/css_browser_esm(style, true ? "" : undefined); +}; + +var input_control_styles_ref6 = true ? { + name: "103r1kr", + styles: "&::-webkit-input-placeholder{line-height:normal;}" +} : undefined; + +var placeholderStyles = function placeholderStyles() { + return input_control_styles_ref6; +}; + +var input_control_styles_dragStyles = function dragStyles(_ref15) { + var isDragging = _ref15.isDragging, + dragCursor = _ref15.dragCursor; + var defaultArrowStyles = ''; + var activeDragCursorStyles = ''; + + if (isDragging) { + defaultArrowStyles = /*#__PURE__*/css_browser_esm("cursor:", dragCursor, ";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" + ( true ? "" : undefined)); + } + + if (isDragging && dragCursor) { + activeDragCursorStyles = /*#__PURE__*/css_browser_esm("&:active{cursor:", dragCursor, ";}" + ( true ? "" : undefined)); + } + + return /*#__PURE__*/css_browser_esm(defaultArrowStyles, ";", activeDragCursorStyles, ";" + ( true ? "" : undefined)); +}; // TODO: Resolve need to use &&& to increase specificity +// https://github.com/WordPress/gutenberg/issues/18483 + + +var input_control_styles_Input = styled_base_browser_esm("input", { + target: "e1cr7zh12", + label: "Input" +})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;", input_control_styles_dragStyles, ";", input_control_styles_disabledStyles, ";", input_control_styles_fontSizeStyles, ";", input_control_styles_sizeStyles, ";", placeholderStyles, ";}" + ( true ? "" : undefined)); + +var input_control_styles_ref7 = true ? { + name: "8uhtka", + styles: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" +} : undefined; + +var labelTruncation = function labelTruncation() { + return input_control_styles_ref7; +}; + +var BaseLabel = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "e1cr7zh13", + label: "BaseLabel" +})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;padding-bottom:4px;padding-top:0;z-index:1;", labelTruncation, ";}" + ( true ? "" : undefined)); + +var input_control_styles_Label = function Label(props) { + return Object(external_this_wp_element_["createElement"])(BaseLabel, Object(esm_extends["a" /* default */])({}, props, { + as: "label" + })); +}; +var LabelWrapper = /*#__PURE__*/styled_base_browser_esm(flex_item, { + target: "e1cr7zh14", + label: "LabelWrapper" +})( true ? { + name: "120o8im", + styles: "max-width:calc( 100% - 10px );" +} : undefined); + +var input_control_styles_backdropFocusedStyles = function backdropFocusedStyles(_ref16) { + var disabled = _ref16.disabled, + isFocused = _ref16.isFocused; + var borderColor = isFocused ? colors_color('ui.borderFocus') : colors_color('ui.border'); + var boxShadow = null; + + if (isFocused) { + boxShadow = "0 0 0 1px ".concat(colors_color('ui.borderFocus'), " inset"); + } + + if (disabled) { + borderColor = colors_color('ui.borderDisabled'); + } + + return /*#__PURE__*/css_browser_esm({ + boxShadow: boxShadow, + borderColor: borderColor, + borderStyle: 'solid', + borderWidth: 1 + }, true ? "" : undefined); +}; + +var BackdropUI = styled_base_browser_esm("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;", input_control_styles_backdropFocusedStyles, ";", rtl({ + paddingLeft: 2 +}), "}" + ( true ? "" : undefined)); +var Prefix = styled_base_browser_esm("span", { + target: "e1cr7zh16", + label: "Prefix" +})( true ? { + name: "1pxuk39", + styles: "box-sizing:border-box;display:block;" +} : undefined); +var Suffix = styled_base_browser_esm("span", { + target: "e1cr7zh17", + label: "Suffix" +})( true ? { + name: "1pxuk39", + styles: "box-sizing:border-box;display:block;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/backdrop.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function Backdrop(_ref) { + var _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$isFocused = _ref.isFocused, + isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused; + return Object(external_this_wp_element_["createElement"])(BackdropUI, { + "aria-hidden": "true", + className: "components-input-control__backdrop", + disabled: disabled, + isFocused: isFocused + }); +} + +var MemoizedBackdrop = Object(external_this_wp_element_["memo"])(Backdrop); +/* harmony default export */ var backdrop = (MemoizedBackdrop); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/label.js + + + + +/** + * Internal dependencies + */ + + +function label_Label(_ref) { + var children = _ref.children, + hideLabelFromVision = _ref.hideLabelFromVision, + htmlFor = _ref.htmlFor, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "hideLabelFromVision", "htmlFor"]); + + if (!children) return null; + + if (hideLabelFromVision) { + return Object(external_this_wp_element_["createElement"])(visually_hidden, { + as: "label", + htmlFor: htmlFor + }, children); + } + + return Object(external_this_wp_element_["createElement"])(input_control_styles_Label, Object(esm_extends["a" /* default */])({ + htmlFor: htmlFor + }, props), children); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-base.js + + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function useUniqueId(idProp) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InputBase); + var id = "input-base-control-".concat(instanceId); + return idProp || id; +} + +function InputBase(_ref, ref) { + var children = _ref.children, + className = _ref.className, + _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$hideLabelFromVis = _ref.hideLabelFromVision, + hideLabelFromVision = _ref$hideLabelFromVis === void 0 ? false : _ref$hideLabelFromVis, + idProp = _ref.id, + _ref$isFocused = _ref.isFocused, + isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused, + label = _ref.label, + prefix = _ref.prefix, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + suffix = _ref.suffix, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "className", "disabled", "hideLabelFromVision", "id", "isFocused", "label", "prefix", "size", "suffix"]); + + var id = useUniqueId(idProp); + return Object(external_this_wp_element_["createElement"])(input_control_styles_Root, Object(esm_extends["a" /* default */])({}, props, { + className: className, + isFocused: isFocused, + ref: ref + }), Object(external_this_wp_element_["createElement"])(LabelWrapper, null, Object(external_this_wp_element_["createElement"])(label_Label, { + className: "components-input-control__label", + hideLabelFromVision: hideLabelFromVision, + htmlFor: id, + size: size + }, label)), Object(external_this_wp_element_["createElement"])(Container, { + className: "components-input-control__container", + disabled: disabled, + isFocused: isFocused + }, prefix && Object(external_this_wp_element_["createElement"])(Prefix, { + className: "components-input-control__prefix" + }, prefix), children, suffix && Object(external_this_wp_element_["createElement"])(Suffix, { + className: "components-input-control__suffix" + }, suffix), Object(external_this_wp_element_["createElement"])(backdrop, { + "aria-hidden": "true", + disabled: disabled, + isFocused: isFocused, + label: label, + size: size + }))); +} +/* harmony default export */ var input_base = (Object(external_this_wp_element_["forwardRef"])(InputBase)); + +// CONCATENATED MODULE: ./node_modules/react-use-gesture/dist/react-use-gesture.esm.js + + +// vector add +function addV(v1, v2) { + return v1.map(function (v, i) { + return v + v2[i]; + }); +} // vector substract + +function subV(v1, v2) { + return v1.map(function (v, i) { + return v - v2[i]; + }); +} +/** + * Calculates velocity + * @param delta the difference between current and previous vectors + * @param delta_t the time offset + * @param len the length of the delta vector + * @returns velocity + */ + +function calculateVelocity(delta, delta_t, len) { + len = len || Math.hypot.apply(Math, delta); + return delta_t ? len / delta_t : 0; +} +/** + * Calculates velocities vector + * @template T the expected vector type + * @param delta the difference between current and previous vectors + * @param delta_t the time offset + * @returns velocities vector + */ + +function calculateVelocities(delta, delta_t) { + return delta_t ? delta.map(function (v) { + return v / delta_t; + }) : Array(delta.length).fill(0); +} +/** + * Calculates distance + * @param movement the difference between current and initial vectors + * @returns distance + */ + +function calculateDistance(movement) { + return Math.hypot.apply(Math, movement); +} +/** + * Calculates direction + * @template T the expected vector type + * @param delta + * @param len + * @returns direction + */ + +function calculateDirection(delta, len) { + len = len || Math.hypot.apply(Math, delta) || 1; + return delta.map(function (v) { + return v / len; + }); +} +/** + * Calculates all kinematics + * @template T the expected vector type + * @param movement the difference between current and initial vectors + * @param delta the difference between current and previous vectors + * @param delta_t the time difference between current and previous timestamps + * @returns all kinematics + */ + +function calculateAllKinematics(movement, delta, delta_t) { + var len = Math.hypot.apply(Math, delta); + return { + velocities: calculateVelocities(delta, delta_t), + velocity: calculateVelocity(delta, delta_t, len), + distance: calculateDistance(movement), + direction: calculateDirection(delta, len) + }; +} +/** + * Because IE doesn't support `Math.sign` function, so we use the polyfill version of the function. + * This polyfill function is suggested by Mozilla + * :https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign#Polyfill + * @param x target number + */ + +function sign(x) { + if (Math.sign) return Math.sign(x); + return Number(x > 0) - Number(x < 0) || +x; +} +function getIntentionalDisplacement(movement, threshold) { + var abs = Math.abs(movement); + return abs >= threshold ? sign(movement) * threshold : false; +} + +function minMax(value, min, max) { + return Math.max(min, Math.min(value, max)); +} // Based on @aholachek ;) +// https://twitter.com/chpwn/status/285540192096497664 +// iOS constant = 0.55 +// https://medium.com/@nathangitter/building-fluid-interfaces-ios-swift-9732bb934bf5 + + +function rubberband2(distance, constant) { + // default constant from the article is 0.7 + return Math.pow(distance, constant * 5); +} + +function rubberband(distance, dimension, constant) { + if (dimension === 0 || Math.abs(dimension) === Infinity) return rubberband2(distance, constant); + return distance * dimension * constant / (dimension + constant * distance); +} + +function rubberbandIfOutOfBounds(position, min, max, constant) { + if (constant === void 0) { + constant = 0.15; + } + + if (constant === 0) return minMax(position, min, max); + + if (position < min) { + return -rubberband(min - position, max - min, constant) + min; + } + + if (position > max) { + return rubberband(position - max, max - min, constant) + max; + } + + return position; +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} + +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; +} + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(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 _arrayLikeToArray(o, minLen); +} + +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + + return arr2; +} + +function _createForOfIteratorHelperLoose(o) { + var i = 0; + + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[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."); + } + + i = o[Symbol.iterator](); + return i.next.bind(i); +} + +// blank function +function noop() {} // returns a function that chains all functions given as parameters + +var chainFns = function chainFns() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; + } + + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return fns.forEach(function (fn) { + return fn.apply(void 0, args); + }); + }; +}; +var def = { + array: function array(value) { + return Array.isArray(value) ? value : [value, value]; + }, + withDefault: function withDefault(value, defaultIfUndefined) { + return value !== void 0 ? value : defaultIfUndefined; + } +}; +function matchKeysFromObject(obj, matchingObject) { + var o = {}; + Object.entries(obj).forEach(function (_ref) { + var key = _ref[0], + value = _ref[1]; + return (value !== void 0 || key in matchingObject) && (o[key] = value); + }); + return o; +} +function valueFn(v) { + return typeof v === 'function' ? v() : v; +} + +function getInitialState() { + // common initial state for all gestures + var initialCommon = { + _active: false, + _blocked: false, + _intentional: [false, false], + _movement: [0, 0], + _initial: [0, 0], + _lastEventType: undefined, + event: undefined, + // currentTarget: undefined, + // pointerId: undefined, + values: [0, 0], + velocities: [0, 0], + delta: [0, 0], + movement: [0, 0], + offset: [0, 0], + lastOffset: [0, 0], + direction: [0, 0], + initial: [0, 0], + previous: [0, 0], + first: false, + last: false, + active: false, + timeStamp: 0, + startTime: 0, + elapsedTime: 0, + cancel: noop, + canceled: false, + memo: undefined, + args: undefined + }; // initial state for coordinates-based gestures + + var initialCoordinates = { + axis: undefined, + xy: [0, 0], + vxvy: [0, 0], + velocity: 0, + distance: 0 + }; // initial state for distance and angle-based gestures (pinch) + + var initialDistanceAngle = { + da: [0, 0], + vdva: [0, 0], + origin: undefined, + turns: 0 + }; // initial state object (used by the gesture controller) + + return { + shared: { + hovering: false, + scrolling: false, + wheeling: false, + dragging: false, + moving: false, + pinching: false, + touches: 0, + buttons: 0, + down: false, + shiftKey: false, + altKey: false, + metaKey: false, + ctrlKey: false + }, + drag: _extends(_extends(_extends({}, initialCommon), initialCoordinates), {}, { + _isTap: true, + _delayedEvent: false, + tap: false, + swipe: [0, 0] + }), + pinch: _extends(_extends({}, initialCommon), initialDistanceAngle), + wheel: _extends(_extends({}, initialCommon), initialCoordinates), + move: _extends(_extends({}, initialCommon), initialCoordinates), + scroll: _extends(_extends({}, initialCommon), initialCoordinates) + }; +} + +var setListeners = function setListeners(add) { + return function (el, listeners, options) { + var action = add ? 'addEventListener' : 'removeEventListener'; + listeners.forEach(function (_ref) { + var eventName = _ref[0], + fn = _ref[1]; + return el[action](eventName, fn, options); + }); + }; +}; +/** + * Whether the browser supports GestureEvent (ie Safari) + * @returns true if the browser supports gesture event + */ + + +function supportsGestureEvents() { + try { + // TODO [TS] possibly find GestureEvent definitions? + // @ts-ignore: no type definitions for webkit GestureEvents + return 'constructor' in GestureEvent; + } catch (e) { + return false; + } +} +var addListeners = /*#__PURE__*/setListeners(true); +var removeListeners = /*#__PURE__*/setListeners(false); +/** + * Gets modifier keys from event + * @param event + * @returns modifier keys + */ + +function getModifierKeys(event) { + var shiftKey = event.shiftKey, + altKey = event.altKey, + metaKey = event.metaKey, + ctrlKey = event.ctrlKey; + return { + shiftKey: shiftKey, + altKey: altKey, + metaKey: metaKey, + ctrlKey: ctrlKey + }; +} + +function getTouchEvents(event) { + if ('touches' in event) { + var touches = event.touches, + changedTouches = event.changedTouches; + return touches.length > 0 ? touches : changedTouches; + } + + return null; +} + +function getGenericEventData(event) { + var buttons = 'buttons' in event ? event.buttons : 0; + var touchEvents = getTouchEvents(event); + var touches = touchEvents && touchEvents.length || 0; + var down = touches > 0 || buttons > 0; + return _extends({ + touches: touches, + down: down, + buttons: buttons + }, getModifierKeys(event)); +} +/** + * Gets scroll event values + * @param event + * @returns scroll event values + */ + +function getScrollEventValues(event) { + // If the currentTarget is the window then we return the scrollX/Y position. + // If not (ie the currentTarget is a DOM element), then we return scrollLeft/Top + var _event$currentTarget = event.currentTarget, + scrollX = _event$currentTarget.scrollX, + scrollY = _event$currentTarget.scrollY, + scrollLeft = _event$currentTarget.scrollLeft, + scrollTop = _event$currentTarget.scrollTop; + return { + values: [scrollX || scrollLeft || 0, scrollY || scrollTop || 0] + }; +} +/** + * Gets wheel event values. + * @param event + * @returns wheel event values + */ + +function getWheelEventValues(event) { + var deltaX = event.deltaX, + deltaY = event.deltaY; //TODO implement polyfill ? + // https://developer.mozilla.org/en-US/docs/Web/Events/wheel#Polyfill + + return { + values: [deltaX, deltaY] + }; +} +/** + * Gets pointer event values. + * @param event + * @returns pointer event values + */ + +function getPointerEventValues(event) { + var touchEvents = getTouchEvents(event); + + var _ref2 = touchEvents ? touchEvents[0] : event, + clientX = _ref2.clientX, + clientY = _ref2.clientY; + + return { + values: [clientX, clientY] + }; +} +var WEBKIT_DISTANCE_SCALE_FACTOR = 260; +/** + * Gets webkit gesture event values. + * @param event + * @returns webkit gesture event values + */ + +function getWebkitGestureEventValues(event) { + return { + values: [event.scale * WEBKIT_DISTANCE_SCALE_FACTOR, event.rotation] + }; +} +/** + * Gets two touches event data + * @param event + * @returns two touches event data + */ + +function getTwoTouchesEventData(event) { + var touches = event.touches; + var dx = touches[1].clientX - touches[0].clientX; + var dy = touches[1].clientY - touches[0].clientY; + var values = [Math.hypot(dx, dy), -(Math.atan2(dx, dy) * 180) / Math.PI]; + var origin = [(touches[1].clientX + touches[0].clientX) / 2, (touches[1].clientY + touches[0].clientY) / 2]; + return { + values: values, + origin: origin + }; +} + +/** + * The controller will keep track of the state for all gestures and also keep + * track of timeouts, and window listeners. + * + * @template BinderType the type the bind function should return + */ + +var Controller = function Controller() { + var _this = this; + + this.state = getInitialState(); // state for all gestures + + this.timeouts = {}; // keeping track of timeouts for debounced gestures (such as move, scroll, wheel) + + this.domListeners = []; // when config.domTarget is set, we attach events directly to the dom + + this.windowListeners = {}; // keeps track of window listeners added by gestures (drag only at the moment) + + this.bindings = {}; // an object holding the handlers associated to the gestures + + /** + * Function ran on component unmount: cleans timeouts and removes dom listeners set by the bind function. + */ + + this.clean = function () { + _this.resetBindings(); + + Object.values(_this.timeouts).forEach(clearTimeout); + Object.keys(_this.windowListeners).forEach(function (stateKey) { + return _this.removeWindowListeners(stateKey); + }); + }; + /** + * Function run every time the bind function is run (ie on every render). + * Resets the binding object and remove dom listeners attached to config.domTarget + */ + + + this.resetBindings = function () { + _this.bindings = {}; + + var domTarget = _this.getDomTarget(); + + if (domTarget) { + removeListeners(domTarget, _this.domListeners, _this.config.eventOptions); + _this.domListeners = []; + } + }; + /** + * Returns the domTarget element and parses a ref if needed. + */ + + + this.getDomTarget = function () { + var domTarget = _this.config.domTarget; + return domTarget && 'current' in domTarget ? domTarget.current : domTarget; + }; + /** + * Commodity function to let recognizers simply add listeners to config.window. + */ + + + this.addWindowListeners = function (stateKey, listeners) { + if (!_this.config.window) return; // we use this.windowListeners to keep track of the listeners we add + + _this.windowListeners[stateKey] = listeners; + addListeners(_this.config.window, listeners, _this.config.eventOptions); + }; + /** + * Commodity function to let recognizers simply remove listeners to config.window. + */ + + + this.removeWindowListeners = function (stateKey) { + if (!_this.config.window) return; + var listeners = _this.windowListeners[stateKey]; + + if (listeners) { + removeListeners(_this.config.window, listeners, _this.config.eventOptions); + delete _this.windowListeners[stateKey]; + } + }; + /** + * When config.domTarget is set, this function will add dom listeners to it + */ + + + this.addDomTargetListeners = function (target) { + /** We iterate on the entries of this.binding for each event, then we chain + * the array of functions mapped to it and push them to this.domListeners + */ + Object.entries(_this.bindings).forEach(function (_ref) { + var event = _ref[0], + fns = _ref[1]; + + _this.domListeners.push([event.substr(2).toLowerCase(), chainFns.apply(void 0, fns)]); + }); + addListeners(target, _this.domListeners, _this.config.eventOptions); + }; + /** + * this.bindings is an object which keys match ReactEventHandlerKeys. + * Since a recognizer might want to bind a handler function to an event key already used by a previously + * added recognizer, we need to make sure that each event key is an array of all the functions mapped for + * that key. + */ + + + this.addBindings = function (eventNames, fn) { + var eventNamesArray = !Array.isArray(eventNames) ? [eventNames] : eventNames; + eventNamesArray.forEach(function (eventName) { + if (_this.bindings[eventName]) _this.bindings[eventName].push(fn);else _this.bindings[eventName] = [fn]; + }); + }; + /** + * getBindings will return an object that will be bound by users + * to the react component they want to interact with. + */ + + + this.getBindings = function () { + var bindings = {}; + var captureString = _this.config.captureString; + Object.entries(_this.bindings).forEach(function (_ref2) { + var event = _ref2[0], + fns = _ref2[1]; + var fnsArray = Array.isArray(fns) ? fns : [fns]; + var key = event + captureString; + bindings[key] = chainFns.apply(void 0, fnsArray); + }); + return bindings; + }; + + this.getBind = function () { + // If config.domTarget is set we add event listeners to it and return the clean function. + if (_this.config.domTarget) { + var domTarget = _this.getDomTarget(); + + domTarget && _this.addDomTargetListeners(domTarget); + return _this.clean; + } // If not, we return an object that contains gesture handlers mapped to react handler event keys. + + + return _this.getBindings(); + }; +}; + +/** + * @private + * + * Utility hook called by all gesture hooks and that will be responsible for the internals. + * + * @param {Partial} handlers + * @param {RecognizerClasses} classes + * @param {InternalConfig} config + * @param {NativeHandlersPartial} nativeHandlers - native handlers such as onClick, onMouseDown, etc. + * @returns {(...args: any[]) => HookReturnType} + */ + +function useRecognizers(handlers, classes, config, nativeHandlers) { + // The gesture controller keeping track of all gesture states + var controller = external_this_React_default.a.useMemo(function () { + var current = new Controller(); + /** + * The bind function will create gesture recognizers and return the right + * bind object depending on whether `domTarget` was specified in the config object. + */ + + var bind = function bind() { + current.resetBindings(); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + for (var _iterator = _createForOfIteratorHelperLoose(classes), _step; !(_step = _iterator()).done;) { + var RecognizerClass = _step.value; + new RecognizerClass(current, args).addBindings(); + } // we also add event bindings for native handlers + + + if (controller.nativeRefs) { + for (var eventName in controller.nativeRefs) { + current.addBindings(eventName, // @ts-ignore we're cheating when it comes to event type :( + controller.nativeRefs[eventName]); + } + } + + return current.getBind(); + }; + + return { + nativeRefs: nativeHandlers, + current: current, + bind: bind + }; + }, []); // We reassign the config and handlers to the controller on every render. + + controller.current.config = config; + controller.current.handlers = handlers; // We assign nativeHandlers, otherwise they won't be refreshed on the next render. + + controller.nativeRefs = nativeHandlers; // Run controller clean functions on unmount. + + external_this_React_default.a.useEffect(function () { + return controller.current.clean; + }, []); + return controller.bind; +} + +/** + * @private + * Recognizer abstract class. + * + * @protected + * @abstract + * @type {StateKey} whether the Recognizer should deal with coordinates or distance / angle + */ + +var Recognizer = /*#__PURE__*/function () { + /** + * Creates an instance of a gesture recognizer. + * @param stateKey drag, move, pinch, etc. + * @param controller the controller attached to the gesture + * @param [args] the args that should be passed to the gesture handler + */ + function Recognizer(stateKey, controller, args) { + var _this = this; + + if (args === void 0) { + args = []; + } + + this.stateKey = stateKey; + this.controller = controller; + this.args = args; + this.debounced = true; // Convenience method to set a timeout for a given gesture + + this.setTimeout = function (callback, ms) { + var _window; + + if (ms === void 0) { + ms = 140; + } + + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + _this.controller.timeouts[_this.stateKey] = (_window = window).setTimeout.apply(_window, [callback, ms].concat(args)); + }; // Convenience method to clear a timeout for a given gesture + + + this.clearTimeout = function () { + clearTimeout(_this.controller.timeouts[_this.stateKey]); + }; // Convenience method to add window listeners for a given gesture + + + this.addWindowListeners = function (listeners) { + _this.controller.addWindowListeners(_this.stateKey, listeners); + }; // Convenience method to remove window listeners for a given gesture + + + this.removeWindowListeners = function () { + _this.controller.removeWindowListeners(_this.stateKey); + }; + /** + * Returns the reinitialized start state for the gesture. + * Should be common to all gestures. + * + * @param {Vector2} values + * @param {UseGestureEvent} event + * @returns - the start state for the gesture + */ + + + this.getStartGestureState = function (values, event) { + return _extends(_extends({}, getInitialState()[_this.stateKey]), {}, { + _active: true, + values: values, + initial: values, + offset: _this.state.offset, + lastOffset: _this.state.offset, + startTime: event.timeStamp + }); + }; // Runs rubberband on a vector + + + this.rubberband = function (vector, rubberband) { + var bounds = _this.config.bounds; + /** + * [x, y]: [rubberband(x, min, max), rubberband(y, min, max)] + */ + + return vector.map(function (v, i) { + return rubberbandIfOutOfBounds(v, bounds[i][0], bounds[i][1], rubberband[i]); + }); + }; + /** + * Fires the gesture handler + * + * @param {boolean} [forceFlag] - if true, then the handler will fire even if the gesture is not intentional + */ + + + this.fireGestureHandler = function (forceFlag) { + /** + * If the gesture has been blocked (this can happen when the gesture has started in an unwanted direction), + * clean everything and don't do anything. + */ + if (_this.state._blocked) { + // we need debounced gestures to end by themselves + if (!_this.debounced) { + _this.state._active = false; + + _this.clean(); + } + + return null; + } // If the gesture has no intentional dimension, don't do fire the handler. + + + var _this$state$_intentio = _this.state._intentional, + intentionalX = _this$state$_intentio[0], + intentionalY = _this$state$_intentio[1]; + if (!forceFlag && intentionalX === false && intentionalY === false) return null; + var _this$state = _this.state, + _active = _this$state._active, + active = _this$state.active; + _this.state.active = _active; + _this.state.first = _active && !active; // `first` is true when the gesture becomes active + + _this.state.last = active && !_active; // `last` is true when the gesture becomes inactive + + _this.controller.state.shared[_this.ingKey] = _active; // Sets dragging, pinching, etc. to the gesture active state + + var state = _extends(_extends(_extends({}, _this.controller.state.shared), _this.state), _this.mapStateValues(_this.state)); // @ts-ignore + + + var newMemo = _this.handler(state); // Sets memo to the returned value of the handler (unless it's not undefined) + + + _this.state.memo = newMemo !== void 0 ? newMemo : _this.state.memo; // Cleans the gesture when the gesture is no longer active. + + if (!_active) _this.clean(); + return state; + }; + } // Returns the gesture config + + + var _proto = Recognizer.prototype; + + // Conveninence method to update the shared state + _proto.updateSharedState = function updateSharedState(sharedState) { + Object.assign(this.controller.state.shared, sharedState); + } // Conveninence method to update the gesture state + ; + + _proto.updateGestureState = function updateGestureState(gestureState) { + Object.assign(this.state, gestureState); + } + /** + * Returns a generic, common payload for all gestures from an event. + * + * @param {UseGestureEvent} event + * @param {boolean} [isStartEvent] + * @returns - the generic gesture payload + */ + ; + + _proto.getGenericPayload = function getGenericPayload(event, isStartEvent) { + var timeStamp = event.timeStamp, + type = event.type; + var _this$state2 = this.state, + values = _this$state2.values, + startTime = _this$state2.startTime; + return { + _lastEventType: type, + event: event, + timeStamp: timeStamp, + elapsedTime: isStartEvent ? 0 : timeStamp - startTime, + args: this.args, + previous: values + }; + } + /** + * Returns state properties depending on the movement and state. + * + * Should be overriden for custom behavior, doesn't do anything in the implementation + * below. + */ + ; + + _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, _state) { + return { + _intentional: _intentional, + _blocked: false + }; + } + /** + * Returns basic movement properties for the gesture based on the next values and current state. + */ + ; + + _proto.getMovement = function getMovement(values, state) { + if (state === void 0) { + state = this.state; + } + + var _this$config = this.config, + initial = _this$config.initial, + threshold = _this$config.threshold, + rubberband = _this$config.rubberband; + var t0 = threshold[0], + t1 = threshold[1]; + var _state2 = state, + _initial = _state2._initial, + _active = _state2._active, + intentional = _state2._intentional, + lastOffset = _state2.lastOffset, + prevMovement = _state2.movement; + var i0 = intentional[0], + i1 = intentional[1]; + + var _this$getInternalMove = this.getInternalMovement(values, state), + _m0 = _this$getInternalMove[0], + _m1 = _this$getInternalMove[1]; + /** + * For both dimensions of the gesture, check its intentionality on each frame. + */ + + + if (i0 === false) { + i0 = getIntentionalDisplacement(_m0, t0); + } + + if (i1 === false) { + i1 = getIntentionalDisplacement(_m1, t1); + } // Get gesture specific state properties based on intentionality and movement. + + + var intentionalityCheck = this.checkIntentionality([i0, i1], [_m0, _m1], state); + var _intentional = intentionalityCheck._intentional, + _blocked = intentionalityCheck._blocked; + var _i0 = _intentional[0], + _i1 = _intentional[1]; + var _movement = [_m0, _m1]; + if (_i0 !== false && intentional[0] === false) _initial[0] = valueFn(initial)[0]; + if (_i1 !== false && intentional[1] === false) _initial[1] = valueFn(initial)[1]; + /** + * If the gesture has been blocked (from gesture specific checkIntentionality), + * stop right there. + */ + + if (_blocked) return _extends(_extends({}, intentionalityCheck), {}, { + _movement: _movement, + delta: [0, 0] + }); + /** + * The movement sent to the handler has 0 in its dimensions when intentionality is false. + * It is calculated from the actual movement minus the threshold. + */ + + var movement = [_i0 !== false ? _m0 - _i0 : valueFn(initial)[0], _i1 !== false ? _m1 - _i1 : valueFn(initial)[1]]; + var offset = addV(movement, lastOffset); + /** + * Rubberband should be 0 when the gesture is no longer active, so that movement + * and offset can return within their bounds. + */ + + var _rubberband = _active ? rubberband : [0, 0]; + + movement = this.rubberband(addV(movement, _initial), _rubberband); // rubberbanded movement + + return _extends(_extends({}, intentionalityCheck), {}, { + _initial: _initial, + _movement: _movement, + movement: movement, + offset: this.rubberband(offset, _rubberband), + delta: subV(movement, prevMovement) + }); + } // Cleans the gesture. Can be overriden by gestures. + ; + + _proto.clean = function clean() { + this.clearTimeout(); + this.removeWindowListeners(); + }; + + _createClass(Recognizer, [{ + key: "config", + get: function get() { + return this.controller.config[this.stateKey]; + } // Is the gesture enabled + + }, { + key: "enabled", + get: function get() { + return this.controller.config.enabled && this.config.enabled; + } // Returns the controller state for a given gesture + + }, { + key: "state", + get: function get() { + return this.controller.state[this.stateKey]; + } // Returns the gesture handler + + }, { + key: "handler", + get: function get() { + return this.controller.handlers[this.stateKey]; + } + }]); + + return Recognizer; +}(); + +/** + * @private + * Abstract class for coordinates-based gesture recongizers + * @abstract + * @class CoordinatesRecognizer + * @extends {Recognizer} + * @template T + */ + +var CoordinatesRecognizer = /*#__PURE__*/function (_Recognizer) { + _inheritsLoose(CoordinatesRecognizer, _Recognizer); + + function CoordinatesRecognizer() { + return _Recognizer.apply(this, arguments) || this; + } + + var _proto = CoordinatesRecognizer.prototype; + + /** + * Returns the real movement (without taking intentionality into acount) + */ + _proto.getInternalMovement = function getInternalMovement(values, state) { + return subV(values, state.initial); + } + /** + * In coordinates-based gesture, this function will detect the first intentional axis, + * lock the gesture axis if lockDirection is specified in the config, block the gesture + * if the first intentional axis doesn't match the specified axis in config. + * + * @param {[FalseOrNumber, FalseOrNumber]} _intentional + * @param {Vector2} _movement + * @param {PartialGestureState} state + */ + ; + + _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, state) { + var _intentional2 = _intentional, + _ix = _intentional2[0], + _iy = _intentional2[1]; + var intentionalMovement = _ix !== false || _iy !== false; + var axis = state.axis; + var _blocked = false; // If the movement is intentional, we can compute axis. + + if (intentionalMovement) { + var _movement$map = _movement.map(Math.abs), + absX = _movement$map[0], + absY = _movement$map[1]; + + var _this$config = this.config, + configAxis = _this$config.axis, + lockDirection = _this$config.lockDirection; // We make sure we only set axis value if it hadn't been detected before. + + axis = axis || (absX > absY ? 'x' : absX < absY ? 'y' : undefined); + + if (!!configAxis || lockDirection) { + if (!!axis) { + // If the detected axis doesn't match the config axis we block the gesture + if (!!configAxis && axis !== configAxis) _blocked = true;else { + // Otherwise we prevent the gesture from updating the unwanted axis. + var lockedIndex = axis === 'x' ? 1 : 0; + _intentional[lockedIndex] = false; + } + } else { + // Until we've detected the axis, we prevent the hnadler from updating. + _intentional = [false, false]; + } + } + } + + return { + _intentional: _intentional, + _blocked: _blocked, + axis: axis + }; + }; + + _proto.getKinematics = function getKinematics(values, event) { + var timeStamp = this.state.timeStamp; + var movementDetection = this.getMovement(values, this.state); + var _blocked = movementDetection._blocked, + delta = movementDetection.delta, + movement = movementDetection.movement; + if (_blocked) return movementDetection; + var delta_t = event.timeStamp - timeStamp; + var kinematics = calculateAllKinematics(movement, delta, delta_t); + return _extends(_extends({ + values: values, + delta: delta + }, movementDetection), kinematics); + }; + + _proto.mapStateValues = function mapStateValues(state) { + return { + xy: state.values, + vxvy: state.velocities + }; + }; + + return CoordinatesRecognizer; +}(Recognizer); + +var TAP_DISTANCE_THRESHOLD = 3; +var SWIPE_MAX_ELAPSED_TIME = 220; +var FILTER_REPEATED_EVENTS_DELAY = 200; + +var DragRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(DragRecognizer, _CoordinatesRecognize); + + function DragRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'drag', controller, args) || this; + _this.ingKey = 'dragging'; + _this.wasTouch = false; + + _this.isEventTypeTouch = function (type) { + return !!type && type.indexOf('touch') === 0; + }; + + _this.dragShouldStart = function (event) { + var _getGenericEventData = getGenericEventData(event), + touches = _getGenericEventData.touches; + + var _lastEventType = _this.state._lastEventType; + /** + * This tries to filter out mouse events triggered by touch screens + * */ + // If the previous gesture was touch-based, and the current one is mouse based, + // this means that we might be dealing with mouse simulated events if they're close to + // each other. We're only doing this check when we're not using pointer events. + + if (!_this.controller.config.pointer && _this.isEventTypeTouch(_lastEventType) && !_this.isEventTypeTouch(event.type)) { + var delay = Math.abs(event.timeStamp - _this.state.startTime); + if (delay < FILTER_REPEATED_EVENTS_DELAY) return false; + } + + return _this.enabled && touches < 2; + }; + + _this.setPointers = function (event) { + var currentTarget = event.currentTarget, + pointerId = event.pointerId; + if (currentTarget) currentTarget.setPointerCapture(pointerId); + + _this.updateGestureState({ + currentTarget: currentTarget, + pointerId: pointerId + }); + }; + + _this.removePointers = function () { + var _this$state = _this.state, + currentTarget = _this$state.currentTarget, + pointerId = _this$state.pointerId; + if (currentTarget && pointerId) currentTarget.releasePointerCapture(pointerId); + }; + + _this.setListeners = function (isTouch) { + _this.removeWindowListeners(); + + var dragListeners = isTouch ? [['touchmove', _this.onDragChange], ['touchend', _this.onDragEnd], ['touchcancel', _this.onDragEnd]] : [['mousemove', _this.onDragChange], ['mouseup', _this.onDragEnd]]; + + _this.addWindowListeners(dragListeners); + }; + + _this.onDragStart = function (event) { + if (!_this.dragShouldStart(event)) return; // if pointers events + + if (_this.controller.config.pointer) _this.setPointers(event);else _this.setListeners(_this.isEventTypeTouch(event.type)); + + if (_this.config.delay > 0) { + _this.state._delayedEvent = true; + if (typeof event.persist === 'function') event.persist(); + + _this.setTimeout(function () { + return _this.startDrag(event); + }, _this.config.delay); + } else { + _this.startDrag(event); + } + }; + + _this.onDragChange = function (event) { + var canceled = _this.state.canceled; + if (canceled) return; + + if (!_this.state._active) { + if (_this.state._delayedEvent) { + _this.clearTimeout(); + + _this.startDrag(event); + } + + return; + } + + var genericEventData = getGenericEventData(event); + + if (!genericEventData.down) { + _this.onDragEnd(event); + + return; + } + + _this.updateSharedState(genericEventData); + + var _getPointerEventValue = getPointerEventValues(event), + values = _getPointerEventValue.values; + + var kinematics = _this.getKinematics(values, event); + + var _isTap = _this.state._isTap; + if (_isTap && calculateDistance(kinematics._movement) >= TAP_DISTANCE_THRESHOLD) _isTap = false; + + _this.updateGestureState(_extends(_extends(_extends({}, _this.getGenericPayload(event)), kinematics), {}, { + _isTap: _isTap, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onDragEnd = function (event) { + _this.state._active = false; + + _this.updateSharedState({ + down: false, + buttons: 0, + touches: 0 + }); + + var _this$state2 = _this.state, + _isTap = _this$state2._isTap, + values = _this$state2.values, + _this$state2$velociti = _this$state2.velocities, + vx = _this$state2$velociti[0], + vy = _this$state2$velociti[1], + _this$state2$movement = _this$state2.movement, + mx = _this$state2$movement[0], + my = _this$state2$movement[1], + _this$state2$_intenti = _this$state2._intentional, + ix = _this$state2$_intenti[0], + iy = _this$state2$_intenti[1]; + + var endState = _extends(_extends({}, _this.getGenericPayload(event)), _this.getMovement(values)); + + var elapsedTime = endState.elapsedTime; + var _this$config = _this.config, + _this$config$swipeVel = _this$config.swipeVelocity, + svx = _this$config$swipeVel[0], + svy = _this$config$swipeVel[1], + _this$config$swipeDis = _this$config.swipeDistance, + sx = _this$config$swipeDis[0], + sy = _this$config$swipeDis[1]; + var swipe = [0, 0]; + + if (elapsedTime < SWIPE_MAX_ELAPSED_TIME) { + if (ix !== false && Math.abs(vx) > svx && Math.abs(mx) > sx) swipe[0] = sign(vx); + if (iy !== false && Math.abs(vy) > svy && Math.abs(my) > sy) swipe[1] = sign(vy); + } + + _this.updateGestureState(_extends(_extends({ + event: event + }, endState), {}, { + tap: _isTap, + swipe: swipe + })); + + _this.fireGestureHandler(_this.config.filterTaps && _this.state._isTap); + }; + + _this.clean = function () { + _CoordinatesRecognize.prototype.clean.call(_assertThisInitialized(_this)); + + _this.state._delayedEvent = false; + if (_this.controller.config.pointer) _this.removePointers(); + }; + + _this.onCancel = function () { + _this.updateGestureState({ + canceled: true, + cancel: noop + }); + + _this.state._active = false; + + _this.updateSharedState({ + down: false, + buttons: 0, + touches: 0 + }); + + requestAnimationFrame(function () { + return _this.fireGestureHandler(); + }); + }; + + return _this; + } + + var _proto = DragRecognizer.prototype; + + _proto.startDrag = function startDrag(event) { + var _this2 = this; + + var _getPointerEventValue2 = getPointerEventValues(event), + values = _getPointerEventValue2.values; + + this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends({}, this.getStartGestureState(values, event)), this.getGenericPayload(event, true)); + + this.updateGestureState(_extends(_extends(_extends({}, startState), this.getMovement(values, startState)), {}, { + cancel: function cancel() { + return _this2.onCancel(); + } + })); + this.fireGestureHandler(); + }; + + _proto.addBindings = function addBindings() { + if (this.controller.config.pointer) { + this.controller.addBindings('onPointerDown', this.onDragStart); + this.controller.addBindings('onPointerMove', this.onDragChange); + this.controller.addBindings(['onPointerUp', 'onPointerCancel'], this.onDragEnd); + } else { + this.controller.addBindings(['onTouchStart', 'onMouseDown'], this.onDragStart); + } + }; + + return DragRecognizer; +}(CoordinatesRecognizer); + +var DEFAULT_DRAG_DELAY = 180; +var DEFAULT_RUBBERBAND = 0.15; +var DEFAULT_SWIPE_VELOCITY = 0.5; +var DEFAULT_SWIPE_DISTANCE = 60; +var defaultWindow = typeof window !== 'undefined' ? window : undefined; +var defaultCoordinatesOptions = { + lockDirection: false, + axis: undefined, + bounds: undefined +}; +/** + * @private + * + * Returns the internal generic option object. + * + * @param {Partial} [config={}] + * @returns {InternalGenericOptions} + */ + +function getInternalGenericOptions(config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + _config$eventOptions = _config.eventOptions; + _config$eventOptions = _config$eventOptions === void 0 ? {} : _config$eventOptions; + + var _config$eventOptions$ = _config$eventOptions.passive, + passive = _config$eventOptions$ === void 0 ? true : _config$eventOptions$, + _config$eventOptions$2 = _config$eventOptions.capture, + capture = _config$eventOptions$2 === void 0 ? false : _config$eventOptions$2, + _config$eventOptions$3 = _config$eventOptions.pointer, + pointer = _config$eventOptions$3 === void 0 ? false : _config$eventOptions$3, + _config$window = _config.window, + window = _config$window === void 0 ? defaultWindow : _config$window, + _config$domTarget = _config.domTarget, + domTarget = _config$domTarget === void 0 ? undefined : _config$domTarget, + _config$enabled = _config.enabled, + enabled = _config$enabled === void 0 ? true : _config$enabled, + restConfig = _objectWithoutPropertiesLoose(_config, ["eventOptions", "window", "domTarget", "enabled"]); + + return _extends(_extends({}, restConfig), {}, { + enabled: enabled, + domTarget: domTarget, + window: window, + // passive is always true if there's no domTarget + eventOptions: { + passive: !domTarget || !!passive, + capture: !!capture + }, + captureString: capture ? 'Capture' : '', + pointer: !!pointer + }); +} +function getInternalGestureOptions(gestureConfig) { + var _gestureConfig$thresh = gestureConfig.threshold, + threshold = _gestureConfig$thresh === void 0 ? undefined : _gestureConfig$thresh, + _gestureConfig$rubber = gestureConfig.rubberband, + rubberband = _gestureConfig$rubber === void 0 ? 0 : _gestureConfig$rubber, + _gestureConfig$enable = gestureConfig.enabled, + enabled = _gestureConfig$enable === void 0 ? true : _gestureConfig$enable, + _gestureConfig$initia = gestureConfig.initial, + initial = _gestureConfig$initia === void 0 ? [0, 0] : _gestureConfig$initia; + if (typeof rubberband === 'boolean') rubberband = rubberband ? DEFAULT_RUBBERBAND : 0; + if (threshold === void 0) threshold = 0; + return { + enabled: enabled, + initial: initial, + threshold: def.array(threshold), + rubberband: def.array(rubberband) + }; +} +function getInternalCoordinatesOptions(coordinatesConfig) { + if (coordinatesConfig === void 0) { + coordinatesConfig = {}; + } + + var _coordinatesConfig = coordinatesConfig, + axis = _coordinatesConfig.axis, + lockDirection = _coordinatesConfig.lockDirection, + _coordinatesConfig$bo = _coordinatesConfig.bounds, + bounds = _coordinatesConfig$bo === void 0 ? {} : _coordinatesConfig$bo, + internalOptions = _objectWithoutPropertiesLoose(_coordinatesConfig, ["axis", "lockDirection", "bounds"]); + + var boundsArray = [[def.withDefault(bounds.left, -Infinity), def.withDefault(bounds.right, Infinity)], [def.withDefault(bounds.top, -Infinity), def.withDefault(bounds.bottom, Infinity)]]; + return _extends(_extends(_extends(_extends({}, getInternalGestureOptions(internalOptions)), defaultCoordinatesOptions), matchKeysFromObject({ + axis: axis, + lockDirection: lockDirection + }, coordinatesConfig)), {}, { + bounds: boundsArray + }); +} +function getInternalDistanceAngleOptions(distanceAngleConfig) { + if (distanceAngleConfig === void 0) { + distanceAngleConfig = {}; + } + + var _distanceAngleConfig = distanceAngleConfig, + _distanceAngleConfig$ = _distanceAngleConfig.distanceBounds, + distanceBounds = _distanceAngleConfig$ === void 0 ? {} : _distanceAngleConfig$, + _distanceAngleConfig$2 = _distanceAngleConfig.angleBounds, + angleBounds = _distanceAngleConfig$2 === void 0 ? {} : _distanceAngleConfig$2, + internalOptions = _objectWithoutPropertiesLoose(_distanceAngleConfig, ["distanceBounds", "angleBounds"]); + + var boundsArray = [[def.withDefault(distanceBounds.min, -Infinity), def.withDefault(distanceBounds.max, Infinity)], [def.withDefault(angleBounds.min, -Infinity), def.withDefault(angleBounds.max, Infinity)]]; + return _extends(_extends({}, getInternalGestureOptions(internalOptions)), {}, { + bounds: boundsArray + }); +} +function getInternalDragOptions(dragConfig) { + if (dragConfig === void 0) { + dragConfig = {}; + } + + var _dragConfig = dragConfig, + enabled = _dragConfig.enabled, + threshold = _dragConfig.threshold, + bounds = _dragConfig.bounds, + rubberband = _dragConfig.rubberband, + initial = _dragConfig.initial, + dragOptions = _objectWithoutPropertiesLoose(_dragConfig, ["enabled", "threshold", "bounds", "rubberband", "initial"]); + + var _dragOptions$swipeVel = dragOptions.swipeVelocity, + swipeVelocity = _dragOptions$swipeVel === void 0 ? DEFAULT_SWIPE_VELOCITY : _dragOptions$swipeVel, + _dragOptions$swipeDis = dragOptions.swipeDistance, + swipeDistance = _dragOptions$swipeDis === void 0 ? DEFAULT_SWIPE_DISTANCE : _dragOptions$swipeDis, + _dragOptions$delay = dragOptions.delay, + delay = _dragOptions$delay === void 0 ? false : _dragOptions$delay, + _dragOptions$filterTa = dragOptions.filterTaps, + filterTaps = _dragOptions$filterTa === void 0 ? false : _dragOptions$filterTa, + axis = dragOptions.axis, + lockDirection = dragOptions.lockDirection; + + if (threshold === void 0) { + threshold = Math.max(0, filterTaps ? 3 : 0, lockDirection || axis ? 1 : 0); + } else { + filterTaps = true; + } + + var internalCoordinatesOptions = getInternalCoordinatesOptions(matchKeysFromObject({ + enabled: enabled, + threshold: threshold, + bounds: bounds, + rubberband: rubberband, + axis: axis, + lockDirection: lockDirection, + initial: initial + }, dragConfig)); + return _extends(_extends({}, internalCoordinatesOptions), {}, { + filterTaps: filterTaps || internalCoordinatesOptions.threshold[0] + internalCoordinatesOptions.threshold[1] > 0, + swipeVelocity: def.array(swipeVelocity), + swipeDistance: def.array(swipeDistance), + delay: typeof delay === 'number' ? delay : delay ? DEFAULT_DRAG_DELAY : 0 + }); +} + +/** + * @public + * + * Drag hook. + * + * @param {Handler<'drag'>} handler - the function fired every time the drag gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and drag options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useDrag(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + drag = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + drag: getInternalDragOptions(drag) + }); + + return useRecognizers({ + drag: handler + }, [DragRecognizer], mergedConfig); +} + +/** + * @private + * Abstract class for distance/angle-based gesture recongizers + * @abstract + * @class DistanceAngleRecognizer + * @extends {Recognizer} + * @template T + */ + +var DistanceAngleRecognizer = /*#__PURE__*/function (_Recognizer) { + _inheritsLoose(DistanceAngleRecognizer, _Recognizer); + + function DistanceAngleRecognizer() { + return _Recognizer.apply(this, arguments) || this; + } + + var _proto = DistanceAngleRecognizer.prototype; + + /** + * Returns the real movement (without taking intentionality into acount) + */ + _proto.getInternalMovement = function getInternalMovement(_ref, state) { + var d = _ref[0], + a = _ref[1]; + var da = state.values, + turns = state.turns, + initial = state.initial; // angle might not be defined when ctrl wheel is used for zoom only + // in that case we set it to the previous angle value + + a = a !== void 0 ? a : da[1]; + var delta_a = a - da[1]; + /** + * The angle value might jump from 179deg to -179deg when we actually want to + * read 181deg to ensure continuity. To make that happen, we detect when the jump + * is supsiciously high (ie > 270deg) and increase the `turns` value + */ + + var newTurns = Math.abs(delta_a) > 270 ? turns + sign(delta_a) : turns; // we update the angle difference to its corrected value + + var movement_d = d - initial[0]; + var movement_a = a - 360 * newTurns - initial[1]; + return [movement_d, movement_a]; + }; + + _proto.getKinematics = function getKinematics(values, event) { + var _this$state = this.state, + timeStamp = _this$state.timeStamp, + initial = _this$state.initial; + var movementDetection = this.getMovement(values, this.state); + var delta = movementDetection.delta, + movement = movementDetection.movement; + var turns = (values[1] - movement[1] - initial[1]) / 360; + var delta_t = event.timeStamp - timeStamp; + var kinematics = calculateAllKinematics(movement, delta, delta_t); + return _extends(_extends({ + values: values, + delta: delta, + turns: turns + }, movementDetection), kinematics); + }; + + _proto.mapStateValues = function mapStateValues(state) { + return { + da: state.values, + vdva: state.velocities + }; + }; + + return DistanceAngleRecognizer; +}(Recognizer); + +var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { + _inheritsLoose(PinchRecognizer, _DistanceAngleRecogni); + + function PinchRecognizer(controller, args) { + var _this; + + _this = _DistanceAngleRecogni.call(this, 'pinch', controller, args) || this; + _this.ingKey = 'pinching'; + + _this.pinchShouldStart = function (event) { + var _getGenericEventData = getGenericEventData(event), + touches = _getGenericEventData.touches; + + return _this.enabled && touches === 2; + }; + + _this.onPinchStart = function (event) { + if (!_this.pinchShouldStart(event)) return; + + var _getTwoTouchesEventDa = getTwoTouchesEventData(event), + values = _getTwoTouchesEventDa.values, + origin = _getTwoTouchesEventDa.origin; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends(_extends(_extends({}, startState), _this.getMovement(values, startState)), {}, { + origin: origin, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onPinchChange = function (event) { + var _this$state = _this.state, + canceled = _this$state.canceled, + timeStamp = _this$state.timeStamp, + _active = _this$state._active; + if (canceled || !_active) return; + var genericEventData = getGenericEventData(event); + if (genericEventData.touches !== 2 || event.timeStamp === timeStamp) return; + + _this.updateSharedState(genericEventData); + + var _getTwoTouchesEventDa2 = getTwoTouchesEventData(event), + values = _getTwoTouchesEventDa2.values, + origin = _getTwoTouchesEventDa2.origin; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends(_extends({}, _this.getGenericPayload(event)), kinematics), {}, { + origin: origin, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onPinchEnd = function (event) { + if (!_this.state.active) return; + _this.state._active = false; + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + _this.updateGestureState(_extends(_extends({ + event: event + }, _this.getGenericPayload(event)), _this.getMovement(_this.state.values))); + + _this.fireGestureHandler(); + }; + + _this.onCancel = function () { + _this.state._active = false; + + _this.updateGestureState({ + canceled: true, + cancel: noop + }); + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + requestAnimationFrame(function () { + return _this.fireGestureHandler(); + }); + }; + /** + * PINCH WITH WEBKIT GESTURES + */ + + + _this.onGestureStart = function (event) { + if (!_this.enabled) return; + event.preventDefault(); + + var _getWebkitGestureEven = getWebkitGestureEventValues(event), + values = _getWebkitGestureEven.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends(_extends(_extends({}, startState), _this.getMovement(values, startState)), {}, { + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onGestureChange = function (event) { + var _this$state2 = _this.state, + canceled = _this$state2.canceled, + _active = _this$state2._active; + if (canceled || !_active) return; + event.preventDefault(); + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getWebkitGestureEven2 = getWebkitGestureEventValues(event), + values = _getWebkitGestureEven2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends(_extends({}, _this.getGenericPayload(event)), kinematics), {}, { + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onGestureEnd = function (event) { + event.preventDefault(); + if (!_this.state.active) return; + _this.state._active = false; + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + _this.updateGestureState(_extends(_extends({ + event: event + }, _this.getGenericPayload(event)), _this.getMovement(_this.state.values))); + + _this.fireGestureHandler(); + }; + + _this.updateTouchData = function (event) { + if (!_this.enabled || event.touches.length !== 2 || !_this.state._active) return; + + var _getTwoTouchesEventDa3 = getTwoTouchesEventData(event), + origin = _getTwoTouchesEventDa3.origin; + + _this.state.origin = origin; + }; + /** + * PINCH WITH WHEEL + */ + + + _this.wheelShouldRun = function (event) { + return _this.enabled && event.ctrlKey; + }; + + _this.getWheelValuesFromEvent = function (event) { + var _getWheelEventValues = getWheelEventValues(event), + _getWheelEventValues$ = _getWheelEventValues.values, + delta_d = _getWheelEventValues$[1]; + + var _this$state$values = _this.state.values, + prev_d = _this$state$values[0], + prev_a = _this$state$values[1]; + var d = prev_d - delta_d; + var a = prev_a !== void 0 ? prev_a : 0; + return { + values: [d, a], + origin: [event.clientX, event.clientY], + delta: [0, delta_d] + }; + }; + + _this.onWheel = function (event) { + if (!_this.wheelShouldRun(event)) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onWheelEnd); + + if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); + }; + + _this.onWheelStart = function (event) { + var _this$getWheelValuesF = _this.getWheelValuesFromEvent(event), + values = _this$getWheelValuesF.values, + delta = _this$getWheelValuesF.delta, + origin = _this$getWheelValuesF.origin; + + if (!_this.controller.config.eventOptions.passive) { + event.preventDefault(); + } else if (false) {} + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)), {}, { + initial: _this.state.values + }); + + _this.updateGestureState(_extends(_extends(_extends({}, startState), _this.getMovement(values, startState)), {}, { + offset: values, + delta: delta, + origin: origin + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _this$getWheelValuesF2 = _this.getWheelValuesFromEvent(event), + values = _this$getWheelValuesF2.values, + origin = _this$getWheelValuesF2.origin, + delta = _this$getWheelValuesF2.delta; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends(_extends({}, _this.getGenericPayload(event)), kinematics), {}, { + origin: origin, + delta: delta + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_this.getMovement(_this.state.values)); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = PinchRecognizer.prototype; + + _proto.addBindings = function addBindings() { + // Only try to use gesture events when they are supported and domTarget is set + // as React doesn't support gesture handlers. + if (this.controller.config.domTarget && supportsGestureEvents()) { + this.controller.addBindings('onGestureStart', this.onGestureStart); + this.controller.addBindings('onGestureChange', this.onGestureChange); + this.controller.addBindings(['onGestureEnd', 'onTouchCancel'], this.onGestureEnd); + this.controller.addBindings(['onTouchStart', 'onTouchMove'], this.updateTouchData); + } else { + this.controller.addBindings('onTouchStart', this.onPinchStart); + this.controller.addBindings('onTouchMove', this.onPinchChange); + this.controller.addBindings(['onTouchEnd', 'onTouchCancel'], this.onPinchEnd); + this.controller.addBindings('onWheel', this.onWheel); + } + }; + + return PinchRecognizer; +}(DistanceAngleRecognizer); + +/** + * @public + * + * Pinch hook. + * + * @param {Handler<'pinch'>} handler - the function fired every time the pinch gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and pinch options + * @returns {(...args: any[]) => HookReturnType} + */ + +function usePinch(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + pinch = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + pinch: getInternalDistanceAngleOptions(pinch) + }); + + return useRecognizers({ + pinch: handler + }, [PinchRecognizer], mergedConfig); +} + +var WheelRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(WheelRecognizer, _CoordinatesRecognize); + + function WheelRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'wheel', controller, args) || this; + _this.ingKey = 'wheeling'; + _this.debounced = true; + + _this.wheelShouldRun = function (event) { + if (event.ctrlKey && 'pinch' in _this.controller.handlers) return false; + return _this.enabled; + }; + + _this.getValuesFromEvent = function (event) { + var prevValues = _this.state.values; + + var _getWheelEventValues = getWheelEventValues(event), + values = _getWheelEventValues.values; + + return { + values: addV(values, prevValues) + }; + }; + + _this.onWheel = function (event) { + if (!_this.wheelShouldRun(event)) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onWheelEnd); + + if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); + }; + + _this.onWheelStart = function (event) { + var _this$getValuesFromEv = _this.getValuesFromEvent(event), + values = _this$getValuesFromEv.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)), {}, { + initial: _this.state.values + }); + + var movementDetection = _this.getMovement(values, startState); + + var delta = movementDetection.delta; + + _this.updateGestureState(_extends(_extends(_extends({}, startState), movementDetection), {}, { + distance: calculateDistance(delta), + direction: calculateDirection(delta) + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _this$getValuesFromEv2 = _this.getValuesFromEvent(event), + values = _this$getValuesFromEv2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends({}, _this.getGenericPayload(event)), kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onWheelEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends(_extends({}, _this.getMovement(_this.state.values)), {}, { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = WheelRecognizer.prototype; + + _proto.addBindings = function addBindings() { + this.controller.addBindings('onWheel', this.onWheel); + }; + + return WheelRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Wheel hook. + * + * @param {Handler<'wheel'>} handler - the function fired every time the wheel gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and wheel options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useWheel(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + wheel = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + wheel: getInternalCoordinatesOptions(wheel) + }); + + return useRecognizers({ + wheel: handler + }, [WheelRecognizer], mergedConfig); +} + +var MoveRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(MoveRecognizer, _CoordinatesRecognize); + + function MoveRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'move', controller, args) || this; + _this.ingKey = 'moving'; + _this.debounced = true; + + _this.moveShouldRun = function () { + return _this.enabled; + }; + + _this.onMove = function (event) { + if (!_this.moveShouldRun()) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onMoveEnd); + + if (!_this.state._active) _this.onMoveStart(event);else _this.onMoveChange(event); + }; + + _this.onMoveStart = function (event) { + var _getPointerEventValue = getPointerEventValues(event), + values = _getPointerEventValue.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends(_extends({}, startState), _this.getMovement(values, startState))); + + _this.fireGestureHandler(); + }; + + _this.onMoveChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getPointerEventValue2 = getPointerEventValues(event), + values = _getPointerEventValue2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends({}, _this.getGenericPayload(event)), kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onMoveEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends(_extends({}, _this.getMovement(_this.state.values)), {}, { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + _this.onPointerEnter = function (event) { + _this.controller.state.shared.hovering = true; + if (!_this.controller.config.enabled) return; + + if (_this.controller.config.hover.enabled) { + var _getPointerEventValue3 = getPointerEventValues(event), + values = _getPointerEventValue3.values; + + var state = _extends(_extends(_extends(_extends({}, _this.controller.state.shared), _this.state), _this.getGenericPayload(event, true)), {}, { + values: values, + active: true, + hovering: true + }); + + _this.controller.handlers.hover(_extends(_extends({}, state), _this.mapStateValues(state))); + } + + if ('move' in _this.controller.handlers) _this.onMoveStart(event); + }; + + _this.onPointerLeave = function (event) { + _this.controller.state.shared.hovering = false; + if ('move' in _this.controller.handlers) _this.onMoveEnd(); + + if (_this.controller.config.hover.enabled) { + var _getPointerEventValue4 = getPointerEventValues(event), + values = _getPointerEventValue4.values; + + var state = _extends(_extends(_extends(_extends({}, _this.controller.state.shared), _this.state), _this.getGenericPayload(event)), {}, { + values: values, + active: false + }); + + _this.controller.handlers.hover(_extends(_extends({}, state), _this.mapStateValues(state))); + } + }; + + return _this; + } + + var _proto = MoveRecognizer.prototype; + + _proto.addBindings = function addBindings() { + if (this.controller.config.pointer) { + if ('move' in this.controller.handlers) { + this.controller.addBindings('onPointerMove', this.onMove); + } + + if ('hover' in this.controller.handlers) { + this.controller.addBindings('onPointerEnter', this.onPointerEnter); + this.controller.addBindings('onPointerLeave', this.onPointerLeave); + } + } else { + if ('move' in this.controller.handlers) { + this.controller.addBindings('onMouseMove', this.onMove); + } + + if ('hover' in this.controller.handlers) { + this.controller.addBindings('onMouseEnter', this.onPointerEnter); + this.controller.addBindings('onMouseLeave', this.onPointerLeave); + } + } + }; + + return MoveRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Move hook. + * + * @param {Handler<'move'>} handler - the function fired every time the move gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and move options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useMove(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + move = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + move: getInternalCoordinatesOptions(move) + }); + + return useRecognizers({ + move: handler + }, [MoveRecognizer], mergedConfig); +} + +/** + * @public + * + * Hover hook. + * + * @param {Handler<'hover'>} handler - the function fired every time the hover gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and hover options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useHover(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + hover = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + hover: _extends({ + enabled: true + }, hover) + }); + + return useRecognizers({ + hover: handler + }, [MoveRecognizer], mergedConfig); +} + +var ScrollRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(ScrollRecognizer, _CoordinatesRecognize); + + function ScrollRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'scroll', controller, args) || this; + _this.ingKey = 'scrolling'; + _this.debounced = true; + + _this.scrollShouldRun = function () { + return _this.enabled; + }; + + _this.onScroll = function (event) { + if (!_this.scrollShouldRun()) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onScrollEnd); + + if (!_this.state._active) _this.onScrollStart(event);else _this.onScrollChange(event); + }; + + _this.onScrollStart = function (event) { + var _getScrollEventValues = getScrollEventValues(event), + values = _getScrollEventValues.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends(_extends(_extends({}, _this.getStartGestureState(values, event)), _this.getGenericPayload(event, true)), {}, { + initial: _this.state.values + }); + + var movementDetection = _this.getMovement(values, startState); + + var delta = movementDetection.delta; + + _this.updateGestureState(_extends(_extends(_extends({}, startState), movementDetection), {}, { + distance: calculateDistance(delta), + direction: calculateDirection(delta) + })); + + _this.fireGestureHandler(); + }; + + _this.onScrollChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getScrollEventValues2 = getScrollEventValues(event), + values = _getScrollEventValues2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends(_extends({}, _this.getGenericPayload(event)), kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onScrollEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends(_extends({}, _this.getMovement(_this.state.values)), {}, { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = ScrollRecognizer.prototype; + + _proto.addBindings = function addBindings() { + this.controller.addBindings('onScroll', this.onScroll); + }; + + return ScrollRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Scroll hook. + * + * @param {Handler<'scroll'>} handler - the function fired every time the scroll gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and scroll options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useScroll(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + scroll = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends(_extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + })), {}, { + scroll: getInternalCoordinatesOptions(scroll) + }); + + return useRecognizers({ + scroll: handler + }, [ScrollRecognizer], mergedConfig); +} + +/** + * @public + * + * The most complete gesture hook, allowing support for multiple gestures. + * + * @param {UserHandlersPartial} handlers - an object with on[Gesture] keys containg gesture handlers + * @param {UseGestureConfig} [config={}] - the full config object + * @returns {(...args: any[]) => HookReturnType} + */ + +function useGesture(handlers, config) { + if (config === void 0) { + config = {}; + } + + /** + * If handlers contains {onDragStart, onDrag, onDragEnd, onMoveStart, onMove} + * actions will include 'onDrag' and 'onMove. + */ + var _React$useState = external_this_React_default.a.useState(function () { + return new Set(Object.keys(handlers).map(function (k) { + return k.replace(/End|Start/, ''); + })); + }), + actions = _React$useState[0]; + /** + * Here we compute the derived internal config based on the provided config object. + * We decompose the config into its generic and gesture options and compute each. + * TODO: this is currently done on every render! + */ + + + var _config = config, + drag = _config.drag, + wheel = _config.wheel, + move = _config.move, + scroll = _config.scroll, + pinch = _config.pinch, + hover = _config.hover, + restConfig = _objectWithoutPropertiesLoose(_config, ["drag", "wheel", "move", "scroll", "pinch", "hover"]); + + var mergedConfig = getInternalGenericOptions(restConfig); + var classes = []; + var internalHandlers = {}; // will hold reference to native handlers such as onClick, onMouseDown, etc. + + var _nativeHandlers = _extends({}, handlers); + + if (actions.has('onDrag')) { + classes.push(DragRecognizer); + internalHandlers.drag = includeStartEndHandlers(handlers, 'onDrag', _nativeHandlers); + mergedConfig.drag = getInternalDragOptions(drag); + } + + if (actions.has('onWheel')) { + classes.push(WheelRecognizer); + internalHandlers.wheel = includeStartEndHandlers(handlers, 'onWheel', _nativeHandlers); + mergedConfig.wheel = getInternalCoordinatesOptions(wheel); + } + + if (actions.has('onScroll')) { + classes.push(ScrollRecognizer); + internalHandlers.scroll = includeStartEndHandlers(handlers, 'onScroll', _nativeHandlers); + mergedConfig.scroll = getInternalCoordinatesOptions(scroll); + } + + if (actions.has('onMove')) { + classes.push(MoveRecognizer); + internalHandlers.move = includeStartEndHandlers(handlers, 'onMove', _nativeHandlers); + mergedConfig.move = getInternalCoordinatesOptions(move); + } + + if (actions.has('onPinch')) { + classes.push(PinchRecognizer); + internalHandlers.pinch = includeStartEndHandlers(handlers, 'onPinch', _nativeHandlers); + mergedConfig.pinch = getInternalDistanceAngleOptions(pinch); + } + + if (actions.has('onHover')) { + if (!actions.has('onMove')) classes.push(MoveRecognizer); + internalHandlers.hover = handlers.onHover; + mergedConfig.hover = _extends({ + enabled: true + }, hover); + delete _nativeHandlers.onHover; + } + + return useRecognizers(internalHandlers, classes, mergedConfig, _nativeHandlers); +} +/** + * @private + * + * This utility function will integrate start and end handlers into the regular + * handler function by using first and last conditions. + * + * @param {UserHandlersPartial} handlers - the handlers function object + * @param {HandlerKey} handlerKey - the key for which to integrate start and end handlers + * @returns + */ + +function includeStartEndHandlers(handlers, handlerKey, _nativeHandlers) { + var startKey = handlerKey + 'Start'; + var endKey = handlerKey + 'End'; + delete _nativeHandlers[handlerKey]; + delete _nativeHandlers[startKey]; + delete _nativeHandlers[endKey]; + + var fn = function fn(state) { + var memo = undefined; + if (state.first && startKey in handlers) handlers[startKey](state); + if (handlerKey in handlers) memo = handlers[handlerKey](state); + if (state.last && endKey in handlers) handlers[endKey](state); + return memo; + }; + + return fn; +} + + + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(19); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/utils.js +/** + * WordPress dependencies + */ + +/** + * Gets a CSS cursor value based on a drag direction. + * + * @param {string} dragDirection The drag direction. + * @return {string} The CSS cursor value. + */ + +function getDragCursor(dragDirection) { + var dragCursor = 'ns-resize'; + + switch (dragDirection) { + case 'n': + case 's': + dragCursor = 'ns-resize'; + break; + + case 'e': + case 'w': + dragCursor = 'ew-resize'; + break; + } + + return dragCursor; +} +/** + * Custom hook that renders a drag cursor when dragging. + * + * @param {boolean} isDragging The dragging state. + * @param {string} dragDirection The drag direction. + * + * @return {string} The CSS cursor value. + */ + +function useDragCursor(isDragging, dragDirection) { + var dragCursor = getDragCursor(dragDirection); + Object(external_this_wp_element_["useEffect"])(function () { + if (isDragging) { + document.documentElement.style.cursor = dragCursor; + document.documentElement.style.pointerEvents = 'none'; + } else { + document.documentElement.style.cursor = null; + document.documentElement.style.pointerEvents = null; + } + }, [isDragging]); + return dragCursor; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/state.js + + + +function state_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 state_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { state_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 { state_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var initialStateReducer = function initialStateReducer(state) { + return state; +}; + +var initialInputControlState = { + _event: {}, + error: null, + initialValue: '', + isDirty: false, + isDragEnabled: false, + isDragging: false, + isPressEnterToChange: false, + value: '' +}; +var actionTypes = { + CHANGE: 'CHANGE', + COMMIT: 'COMMIT', + DRAG_END: 'DRAG_END', + DRAG_START: 'DRAG_START', + DRAG: 'DRAG', + INVALIDATE: 'INVALIDATE', + PRESS_DOWN: 'PRESS_DOWN', + PRESS_ENTER: 'PRESS_ENTER', + PRESS_UP: 'PRESS_UP', + RESET: 'RESET', + UPDATE: 'UPDATE' +}; +var inputControlActionTypes = actionTypes; +/** + * Prepares initialState for the reducer. + * + * @param {Object} initialState The initial state. + * @return {Object} Prepared initialState for the reducer + */ + +function mergeInitialState() { + var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialInputControlState; + var value = initialState.value; + return state_objectSpread(state_objectSpread(state_objectSpread({}, initialInputControlState), initialState), {}, { + initialValue: value + }); +} +/** + * Composes multiple stateReducers into a single stateReducer, building + * the pipeline to control the flow for state and actions. + * + * @param {...Function} fns State reducers. + * @return {Function} The single composed stateReducer. + */ + + +var state_composeStateReducers = function composeStateReducers() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; + } + + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return fns.reduceRight(function (state, fn) { + var fnState = fn.apply(void 0, args); + return Object(external_this_lodash_["isEmpty"])(fnState) ? state : state_objectSpread(state_objectSpread({}, state), fnState); + }, {}); + }; +}; +/** + * Creates a reducer that opens the channel for external state subscription + * and modification. + * + * This technique uses the "stateReducer" design pattern: + * https://kentcdodds.com/blog/the-state-reducer-pattern/ + * + * @param {Function} composedStateReducers A custom reducer that can subscribe and modify state. + * @return {Function} The reducer. + */ + +function inputControlStateReducer(composedStateReducers) { + return function (state, action) { + var nextState = state_objectSpread({}, state); + + var type = action.type, + payload = action.payload; + + switch (type) { + /** + * Keyboard events + */ + case actionTypes.PRESS_UP: + nextState.isDirty = false; + break; + + case actionTypes.PRESS_DOWN: + nextState.isDirty = false; + break; + + /** + * Drag events + */ + + case actionTypes.DRAG_START: + nextState.isDragging = true; + break; + + case actionTypes.DRAG_END: + nextState.isDragging = false; + break; + + /** + * Input events + */ + + case actionTypes.CHANGE: + nextState.error = null; + nextState.value = payload.value; + + if (state.isPressEnterToChange) { + nextState.isDirty = true; + } + + break; + + case actionTypes.COMMIT: + nextState.value = payload.value; + nextState.isDirty = false; + break; + + case actionTypes.RESET: + nextState.error = null; + nextState.isDirty = false; + nextState.value = payload.value || state.initialValue; + break; + + case actionTypes.UPDATE: + if (payload.value !== state.value) { + nextState.value = payload.value; + nextState.isDirty = false; + } + + break; + + /** + * Validation + */ + + case actionTypes.INVALIDATE: + nextState.error = payload.error; + break; + } + + if (payload.event) { + nextState._event = payload.event; + } + /** + * Send the nextState + action to the composedReducers via + * this "bridge" mechanism. This allows external stateReducers + * to hook into actions, and modify state if needed. + */ + + + return composedStateReducers(nextState, action); + }; +} +/** + * A custom hook that connects and external stateReducer with an internal + * reducer. This hook manages the internal state of InputControl. + * However, by connecting an external stateReducer function, other + * components can react to actions as well as modify state before it is + * applied. + * + * This technique uses the "stateReducer" design pattern: + * https://kentcdodds.com/blog/the-state-reducer-pattern/ + * + * @param {Function} stateReducer An external state reducer. + * @param {Object} initialState The initial state for the reducer. + * @return {Object} State, dispatch, and a collection of actions. + */ + + +function useInputControlStateReducer() { + var stateReducer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialStateReducer; + var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : initialInputControlState; + + var _useReducer = Object(external_this_wp_element_["useReducer"])(inputControlStateReducer(stateReducer), mergeInitialState(initialState)), + _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), + state = _useReducer2[0], + dispatch = _useReducer2[1]; + + var createChangeEvent = function createChangeEvent(type) { + return function (nextValue, event) { + /** + * Persist allows for the (Synthetic) event to be used outside of + * this function call. + * https://reactjs.org/docs/events.html#event-pooling + */ + if (event && event.persist) { + event.persist(); + } + + dispatch({ + type: type, + payload: { + value: nextValue, + event: event + } + }); + }; + }; + + var createKeyEvent = function createKeyEvent(type) { + return function (event) { + /** + * Persist allows for the (Synthetic) event to be used outside of + * this function call. + * https://reactjs.org/docs/events.html#event-pooling + */ + if (event && event.persist) { + event.persist(); + } + + dispatch({ + type: type, + payload: { + event: event + } + }); + }; + }; + + var createDragEvent = function createDragEvent(type) { + return function (dragProps) { + dispatch({ + type: type, + payload: dragProps + }); + }; + }; + /** + * Actions for the reducer + */ + + + var change = createChangeEvent(actionTypes.CHANGE); + var inValidate = createChangeEvent(actionTypes.INVALIDATE); + var reset = createChangeEvent(actionTypes.RESET); + var commit = createChangeEvent(actionTypes.COMMIT); + var update = createChangeEvent(actionTypes.UPDATE); + var dragStart = createDragEvent(actionTypes.DRAG_START); + var drag = createDragEvent(actionTypes.DRAG); + var dragEnd = createDragEvent(actionTypes.DRAG_END); + var pressUp = createKeyEvent(actionTypes.PRESS_UP); + var pressDown = createKeyEvent(actionTypes.PRESS_DOWN); + var pressEnter = createKeyEvent(actionTypes.PRESS_ENTER); + return { + change: change, + commit: commit, + dispatch: dispatch, + drag: drag, + dragEnd: dragEnd, + dragStart: dragStart, + inValidate: inValidate, + pressDown: pressDown, + pressEnter: pressEnter, + pressUp: pressUp, + reset: reset, + state: state, + update: update + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/values.js +/** + * Determines if a value is null or undefined. + * + * @param {any} value The value to check. + * @return {boolean} Whether value is null or undefined. + */ +function isValueDefined(value) { + return value !== undefined && value !== null; +} +/** + * Determines if a value is empty, null, or undefined. + * + * @param {any} value The value to check. + * @return {boolean} Whether value is empty. + */ + +function isValueEmpty(value) { + var isEmptyString = value === ''; + return !isValueDefined(value) || isEmptyString; +} +/** + * Attempts to get a defined/non-null value from a collection of arguments. + * + * @param {Array} values Values to derive from. + * @param {any} fallbackValue Fallback value if there are no defined values. + * @return {any} A defined value or the fallback value. + */ + +function getDefinedValue() { + var _values$find; + + var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var fallbackValue = arguments.length > 1 ? arguments[1] : undefined; + return (_values$find = values.find(isValueDefined)) !== null && _values$find !== void 0 ? _values$find : fallbackValue; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js +/** + * WordPress dependencies + */ + +/* + * A `React.useEffect` that will not run on the first render. + * Source: + * https://github.com/reakit/reakit/blob/master/packages/reakit-utils/src/useUpdateEffect.ts + */ + +function useUpdateEffect(effect, deps) { + var mounted = Object(external_this_wp_element_["useRef"])(false); + Object(external_this_wp_element_["useEffect"])(function () { + if (mounted.current) { + return effect(); + } + + mounted.current = true; + return undefined; + }, deps); +} + +/* harmony default export */ var use_update_effect = (useUpdateEffect); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js + + + + +/** + * External dependencies + */ /** @@ -21449,26 +24066,748 @@ BaseControl.VisualLabel = function (_ref2) { -function getAngle(centerX, centerY, pointX, pointY) { - var y = pointY - centerY; - var x = pointX - centerX; - var angleInRadians = Math.atan2(y, x); - var angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90; - if (angleInDeg < 0) { - return 360 + angleInDeg; - } - return angleInDeg; + + +function InputField(_ref, ref) { + var _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$dragDirection = _ref.dragDirection, + dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, + _ref$dragThreshold = _ref.dragThreshold, + dragThreshold = _ref$dragThreshold === void 0 ? 10 : _ref$dragThreshold, + id = _ref.id, + _ref$isDragEnabled = _ref.isDragEnabled, + isDragEnabled = _ref$isDragEnabled === void 0 ? false : _ref$isDragEnabled, + isFocused = _ref.isFocused, + _ref$isPressEnterToCh = _ref.isPressEnterToChange, + isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, + _ref$onBlur = _ref.onBlur, + onBlur = _ref$onBlur === void 0 ? external_this_lodash_["noop"] : _ref$onBlur, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onDrag = _ref.onDrag, + onDrag = _ref$onDrag === void 0 ? external_this_lodash_["noop"] : _ref$onDrag, + _ref$onDragEnd = _ref.onDragEnd, + onDragEnd = _ref$onDragEnd === void 0 ? external_this_lodash_["noop"] : _ref$onDragEnd, + _ref$onDragStart = _ref.onDragStart, + onDragStart = _ref$onDragStart === void 0 ? external_this_lodash_["noop"] : _ref$onDragStart, + _ref$onFocus = _ref.onFocus, + onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, + _ref$onKeyDown = _ref.onKeyDown, + onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, + _ref$onValidate = _ref.onValidate, + onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + setIsFocused = _ref.setIsFocused, + _ref$stateReducer = _ref.stateReducer, + stateReducer = _ref$stateReducer === void 0 ? function (state) { + return state; + } : _ref$stateReducer, + valueProp = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "dragDirection", "dragThreshold", "id", "isDragEnabled", "isFocused", "isPressEnterToChange", "onBlur", "onChange", "onDrag", "onDragEnd", "onDragStart", "onFocus", "onKeyDown", "onValidate", "size", "setIsFocused", "stateReducer", "value"]); + + var _useInputControlState = useInputControlStateReducer(stateReducer, { + isDragEnabled: isDragEnabled, + value: valueProp, + isPressEnterToChange: isPressEnterToChange + }), + state = _useInputControlState.state, + change = _useInputControlState.change, + commit = _useInputControlState.commit, + drag = _useInputControlState.drag, + dragEnd = _useInputControlState.dragEnd, + dragStart = _useInputControlState.dragStart, + invalidate = _useInputControlState.invalidate, + pressDown = _useInputControlState.pressDown, + pressEnter = _useInputControlState.pressEnter, + pressUp = _useInputControlState.pressUp, + reset = _useInputControlState.reset, + update = _useInputControlState.update; + + var _event = state._event, + value = state.value, + isDragging = state.isDragging, + isDirty = state.isDirty; + var dragCursor = useDragCursor(isDragging, dragDirection); + /* + * Syncs value state using the focus state to determine the direction. + * Without focus it updates the value from the props. With focus it + * propagates the value and event through onChange. + */ + + use_update_effect(function () { + if (valueProp === value) { + return; + } + + if (!isFocused) { + update(valueProp); + } else if (!isDirty) { + onChange(value, { + event: _event + }); + } + }, [value, isDirty, isFocused, valueProp]); + + var handleOnBlur = function handleOnBlur(event) { + onBlur(event); + setIsFocused(false); + /** + * If isPressEnterToChange is set, this commits the value to + * the onChange callback. + */ + + if (isPressEnterToChange && isDirty) { + if (!isValueEmpty(value)) { + handleOnCommit({ + target: { + value: value + } + }, event); + } else { + reset(valueProp); + } + } + }; + + var handleOnFocus = function handleOnFocus(event) { + onFocus(event); + setIsFocused(true); + }; + + var handleOnChange = function handleOnChange(event) { + var nextValue = event.target.value; + change(nextValue, event); + }; + + var handleOnCommit = function handleOnCommit(event) { + var nextValue = event.target.value; + + try { + onValidate(nextValue, { + event: event + }); + commit(nextValue, event); + } catch (err) { + invalidate(err, { + event: event + }); + } + }; + + var handleOnKeyDown = function handleOnKeyDown(event) { + var keyCode = event.keyCode; + onKeyDown(event); + + switch (keyCode) { + case external_this_wp_keycodes_["UP"]: + pressUp(event); + break; + + case external_this_wp_keycodes_["DOWN"]: + pressDown(event); + break; + + case external_this_wp_keycodes_["ENTER"]: + pressEnter(event); + + if (isPressEnterToChange) { + event.preventDefault(); + handleOnCommit(event); + } + + break; + } + }; + + var dragGestureProps = useDrag(function (dragProps) { + var distance = dragProps.distance, + dragging = dragProps.dragging, + event = dragProps.event; + if (!isDragEnabled) return; + if (!distance) return; + event.stopPropagation(); + /** + * Quick return if no longer dragging. + * This prevents unnecessary value calculations. + */ + + if (!dragging) { + onDragEnd(dragProps); + dragEnd(dragProps); + return; + } + + onDrag(dragProps); + drag(dragProps); + + if (!isDragging) { + onDragStart(dragProps); + dragStart(dragProps); + } + }, { + threshold: dragThreshold, + enabled: isDragEnabled + }); + return Object(external_this_wp_element_["createElement"])(input_control_styles_Input, Object(esm_extends["a" /* default */])({}, props, dragGestureProps(), { + className: "components-input-control__input", + disabled: disabled, + dragCursor: dragCursor, + isDragging: isDragging, + id: id, + onBlur: handleOnBlur, + onChange: handleOnChange, + onFocus: handleOnFocus, + onKeyDown: handleOnKeyDown, + ref: ref, + size: size, + value: value + })); } -var angle_picker_control_AngleCircle = function AngleCircle(_ref) { +var ForwardedComponent = Object(external_this_wp_element_["forwardRef"])(InputField); +/* harmony default export */ var input_field = (ForwardedComponent); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/index.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function input_control_useUniqueId(idProp) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InputControl); + var id = "inspector-input-control-".concat(instanceId); + return idProp || id; +} + +function InputControl(_ref, ref) { + var _ref$__unstableStateR = _ref.__unstableStateReducer, + stateReducer = _ref$__unstableStateR === void 0 ? function (state) { + return state; + } : _ref$__unstableStateR, + className = _ref.className, + _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$hideLabelFromVis = _ref.hideLabelFromVision, + hideLabelFromVision = _ref$hideLabelFromVis === void 0 ? false : _ref$hideLabelFromVis, + idProp = _ref.id, + _ref$isPressEnterToCh = _ref.isPressEnterToChange, + isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, + label = _ref.label, + _ref$labelPosition = _ref.labelPosition, + labelPosition = _ref$labelPosition === void 0 ? 'top' : _ref$labelPosition, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onValidate = _ref.onValidate, + onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, + _ref$onKeyDown = _ref.onKeyDown, + onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, + prefix = _ref.prefix, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + suffix = _ref.suffix, + value = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "className", "disabled", "hideLabelFromVision", "id", "isPressEnterToChange", "label", "labelPosition", "onChange", "onValidate", "onKeyDown", "prefix", "size", "suffix", "value"]); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isFocused = _useState2[0], + setIsFocused = _useState2[1]; + + var id = input_control_useUniqueId(idProp); + var classes = classnames_default()('components-input-control', className); + return Object(external_this_wp_element_["createElement"])(input_base, { + className: classes, + disabled: disabled, + gap: 3, + hideLabelFromVision: hideLabelFromVision, + id: id, + isFocused: isFocused, + justify: "left", + label: label, + labelPosition: labelPosition, + prefix: prefix, + size: size, + suffix: suffix + }, Object(external_this_wp_element_["createElement"])(input_field, Object(esm_extends["a" /* default */])({}, props, { + className: "components-input-control__input", + disabled: disabled, + id: id, + isFocused: isFocused, + isPressEnterToChange: isPressEnterToChange, + onChange: onChange, + onKeyDown: onKeyDown, + onValidate: onValidate, + ref: ref, + setIsFocused: setIsFocused, + size: size, + stateReducer: stateReducer, + value: value + }))); +} +var input_control_ForwardedComponent = Object(external_this_wp_element_["forwardRef"])(InputControl); +/* harmony default export */ var input_control = (input_control_ForwardedComponent); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/styles/number-control-styles.js + + +function number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +var number_control_styles_ref = true ? { + name: "1b9wwt5", + styles: "&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" +} : undefined; + +var htmlArrowStyles = function htmlArrowStyles(_ref2) { + var hideHTMLArrows = _ref2.hideHTMLArrows; + if (!hideHTMLArrows) return ""; + return number_control_styles_ref; +}; + +var number_control_styles_Input = /*#__PURE__*/styled_base_browser_esm(input_control, { + target: "ep48uk90", + label: "Input" +})(htmlArrowStyles, ";" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/math.js +/** + * External dependencies + */ + +/** + * Parses and retrieves a number value. + * + * @param {any} value The incoming value. + * + * @return {number} The parsed number value. + */ + +function getNumber(value) { + var number = Number(value); + return isNaN(number) ? 0 : number; +} +/** + * Safely adds 2 values. + * + * @param {number|string} args Values to add together. + * + * @return {number} The sum of values. + */ + +function add() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return args.reduce(function (sum, arg) { + return sum + getNumber(arg); + }, 0); +} +/** + * Safely subtracts 2 values. + * + * @param {number|string} args Values to subtract together. + * + * @return {number} The difference of the 2 values. + */ + +function subtract() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return args.reduce(function (diff, arg, index) { + var value = getNumber(arg); + return index === 0 ? value : diff - value; + }); +} +/** + * Determines the decimal position of a number value. + * + * @param {number} value The number to evaluate. + * + * @return {number} The number of decimal places. + */ + +function getPrecision(value) { + var split = (value + '').split('.'); + return split[1] !== undefined ? split[1].length : 0; +} +/** + * Clamps a value based on a min/max range with rounding + * + * @param {number} value The value. + * @param {number} min The minimum range. + * @param {number} max The maximum range. + * @param {number} step A multiplier for the value. + * + * @return {number} The rounded and clamped value. + */ + + +function roundClamp() { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity; + var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Infinity; + var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + var baseValue = getNumber(value); + var stepValue = getNumber(step); + var precision = getPrecision(step); + var rounded = Math.round(baseValue / stepValue) * stepValue; + var clampedValue = Object(external_this_lodash_["clamp"])(rounded, min, max); + return precision ? getNumber(clampedValue.toFixed(precision)) : clampedValue; +} +/** + * Clamps a value based on a min/max range with rounding. + * Returns a string. + * + * @param {any} args Arguments for roundClamp(). + * @property {number} value The value. + * @property {number} min The minimum range. + * @property {number} max The maximum range. + * @property {number} step A multiplier for the value. + * + * @return {string} The rounded and clamped value. + */ + +function roundClampString() { + return roundClamp.apply(void 0, arguments).toString(); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-jump-step.js + + +/** + * WordPress dependencies + */ + +/** + * A custom hook that calculates a step value (used by elements like input + * [type="number"]). This value can be modified based on whether the Shift + * key is being held down. + * + * For example, a shiftStep of 10, and a step of 1... + * Starting from 10, the next incremented value will be 11. + * + * Holding down shift... + * Starting from 10, the next incremented value will be 20. + * + * @param {Object} props Properties for the hook. + * @param {boolean} [props.isShiftStepEnabled=true] Determines if jumping values with shift is enabled + * @param {number} [props.shiftStep=10] Multiplier to jump by, when holding shift key. + * @param {number} [props.step=1] Multiplier to jump by, when not-holding shift key. + * + * @return {number} The jump step value. + */ + +function useJumpStep(_ref) { + var _ref$isShiftStepEnabl = _ref.isShiftStepEnabled, + isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl, + _ref$shiftStep = _ref.shiftStep, + shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep, + _ref$step = _ref.step, + step = _ref$step === void 0 ? 1 : _ref$step; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isShiftKey = _useState2[0], + setIsShiftKey = _useState2[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + var handleShiftKeyToggle = function handleShiftKeyToggle(event) { + setIsShiftKey(event.shiftKey); + }; + + window.addEventListener('keydown', handleShiftKeyToggle); + window.addEventListener('keyup', handleShiftKeyToggle); + return function () { + window.removeEventListener('keydown', handleShiftKeyToggle); + window.removeEventListener('keyup', handleShiftKeyToggle); + }; + }, []); + var isEnabled = isShiftStepEnabled && isShiftKey; + return isEnabled ? shiftStep * step : step; +} + +/* harmony default export */ var use_jump_step = (useJumpStep); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/index.js + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + + +function NumberControl(_ref, ref) { + var _ref$__unstableStateR = _ref.__unstableStateReducer, + stateReducer = _ref$__unstableStateR === void 0 ? function (state) { + return state; + } : _ref$__unstableStateR, + className = _ref.className, + _ref$dragDirection = _ref.dragDirection, + dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, + _ref$hideHTMLArrows = _ref.hideHTMLArrows, + hideHTMLArrows = _ref$hideHTMLArrows === void 0 ? false : _ref$hideHTMLArrows, + _ref$isDragEnabled = _ref.isDragEnabled, + isDragEnabled = _ref$isDragEnabled === void 0 ? true : _ref$isDragEnabled, + _ref$isShiftStepEnabl = _ref.isShiftStepEnabled, + isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl, + label = _ref.label, + _ref$max = _ref.max, + max = _ref$max === void 0 ? Infinity : _ref$max, + _ref$min = _ref.min, + min = _ref$min === void 0 ? -Infinity : _ref$min, + _ref$shiftStep = _ref.shiftStep, + shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep, + _ref$step = _ref.step, + step = _ref$step === void 0 ? 1 : _ref$step, + _ref$type = _ref.type, + typeProp = _ref$type === void 0 ? 'number' : _ref$type, + valueProp = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "className", "dragDirection", "hideHTMLArrows", "isDragEnabled", "isShiftStepEnabled", "label", "max", "min", "shiftStep", "step", "type", "value"]); + + var isRtl = useRTL(); + var baseValue = roundClamp(0, min, max, step); + var jumpStep = use_jump_step({ + step: step, + shiftStep: shiftStep, + isShiftStepEnabled: isShiftStepEnabled + }); + var autoComplete = typeProp === 'number' ? 'off' : null; + var classes = classnames_default()('components-number-control', className); + /** + * "Middleware" function that intercepts updates from InputControl. + * This allows us to tap into actions to transform the (next) state for + * InputControl. + * + * @param {Object} state State from InputControl + * @param {Object} action Action triggering state change + * @return {Object} The updated state to apply to InputControl + */ + + var numberControlStateReducer = function numberControlStateReducer(state, action) { + var type = action.type, + payload = action.payload; + var event = payload === null || payload === void 0 ? void 0 : payload.event; + var currentValue = state.value; + /** + * Handles custom UP and DOWN Keyboard events + */ + + if (type === inputControlActionTypes.PRESS_UP || type === inputControlActionTypes.PRESS_DOWN) { + var enableShift = event.shiftKey && isShiftStepEnabled; + var incrementalValue = enableShift ? parseFloat(shiftStep) * parseFloat(step) : parseFloat(step); + var nextValue = isValueEmpty(currentValue) ? baseValue : currentValue; + + if (event === null || event === void 0 ? void 0 : event.preventDefault) { + event.preventDefault(); + } + + if (type === inputControlActionTypes.PRESS_UP) { + nextValue = add(nextValue, incrementalValue); + } + + if (type === inputControlActionTypes.PRESS_DOWN) { + nextValue = subtract(nextValue, incrementalValue); + } + + nextValue = roundClamp(nextValue, min, max, incrementalValue); + state.value = nextValue; + } + /** + * Handles drag to update events + */ + + + if (type === inputControlActionTypes.DRAG && isDragEnabled) { + var delta = payload.delta, + shiftKey = payload.shiftKey; + + var _delta = Object(slicedToArray["a" /* default */])(delta, 2), + x = _delta[0], + y = _delta[1]; + + var modifier = shiftKey ? parseFloat(shiftStep) * parseFloat(step) : parseFloat(step); + var directionModifier; + var directionBaseValue; + + switch (dragDirection) { + case 'n': + directionBaseValue = y; + directionModifier = -1; + break; + + case 'e': + directionBaseValue = x; + directionModifier = isRtl ? -1 : 1; + break; + + case 's': + directionBaseValue = y; + directionModifier = 1; + break; + + case 'w': + directionBaseValue = x; + directionModifier = isRtl ? 1 : -1; + break; + } + + var distance = directionBaseValue * modifier * directionModifier; + + var _nextValue; + + if (distance !== 0) { + _nextValue = roundClamp(add(currentValue, distance), min, max, modifier); + state.value = _nextValue; + } + } + /** + * Handles ENTER key press and submit + */ + + + if (type === inputControlActionTypes.PRESS_ENTER || type === inputControlActionTypes.SUBMIT) { + state.value = roundClamp(currentValue, min, max); + } + + return state; + }; + + return Object(external_this_wp_element_["createElement"])(number_control_styles_Input, Object(esm_extends["a" /* default */])({ + autoComplete: autoComplete, + inputMode: "numeric" + }, props, { + className: classes, + dragDirection: dragDirection, + hideHTMLArrows: hideHTMLArrows, + isDragEnabled: isDragEnabled, + label: label, + max: max, + min: min, + ref: ref, + step: jumpStep, + type: typeProp, + value: valueProp, + __unstableStateReducer: state_composeStateReducers(numberControlStateReducer, stateReducer) + })); +} +/* harmony default export */ var number_control = (Object(external_this_wp_element_["forwardRef"])(NumberControl)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/styles/angle-picker-control-styles.js + + +function angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * Internal dependencies + */ + + +var CIRCLE_SIZE = 30; +var angle_picker_control_styles_Root = /*#__PURE__*/styled_base_browser_esm(flex_Flex, { + target: "e65ony40", + label: "Root" +})( true ? { + name: "tn9ygg", + styles: "max-width:200px;" +} : undefined); +var NumberControlWrapper = /*#__PURE__*/styled_base_browser_esm(flex_item, { + target: "e65ony41", + label: "NumberControlWrapper" +})( true ? { + name: "1jgxixz", + styles: "width:80px;" +} : undefined); +var CircleRoot = styled_base_browser_esm("div", { + target: "e65ony42", + label: "CircleRoot" +})("border-radius:50%;border:1px solid ", colors_color('ui.borderLight'), ";box-sizing:border-box;cursor:grab;height:", CIRCLE_SIZE, "px;overflow:hidden;width:", CIRCLE_SIZE, "px;" + ( true ? "" : undefined)); +var CircleIndicatorWrapper = styled_base_browser_esm("div", { + target: "e65ony43", + label: "CircleIndicatorWrapper" +})( true ? { + name: "11t5m37", + styles: "box-sizing:border-box;position:relative;width:100%;height:100%;" +} : undefined); +var CircleIndicator = styled_base_browser_esm("div", { + target: "e65ony44", + label: "CircleIndicator" +})("background:", colors_color('ui.border'), ";border-radius:50%;border:3px solid ", colors_color('ui.border'), ";bottom:0;box-sizing:border-box;display:block;height:1px;left:0;margin:auto;position:absolute;right:0;top:-", CIRCLE_SIZE / 2, "px;width:1px;" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/angle-circle.js + + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function AngleCircle(_ref) { var value = _ref.value, onChange = _ref.onChange, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["value", "onChange"]); var angleCircleRef = Object(external_this_wp_element_["useRef"])(); var angleCircleCenter = Object(external_this_wp_element_["useRef"])(); + var previousCursorValue = Object(external_this_wp_element_["useRef"])(); var setAngleCircleCenter = function setAngleCircleCenter() { var rect = angleCircleRef.current.getBoundingClientRect(); @@ -21484,7 +24823,9 @@ var angle_picker_control_AngleCircle = function AngleCircle(_ref) { centerY = _angleCircleCenter$cu.y; // Prevent (drag) mouse events from selecting and accidentally // triggering actions from other elements. - event.preventDefault(); + event.preventDefault(); // Ensure the input isn't focused as preventDefault would leave it + + document.activeElement.blur(); onChange(getAngle(centerX, centerY, event.clientX, event.clientY)); }; @@ -21499,95 +24840,148 @@ var angle_picker_control_AngleCircle = function AngleCircle(_ref) { startDrag = _useDragging.startDrag, isDragging = _useDragging.isDragging; + Object(external_this_wp_element_["useEffect"])(function () { + if (isDragging) { + if (previousCursorValue.current === undefined) { + previousCursorValue.current = document.body.style.cursor; + } + + document.body.style.cursor = 'grabbing'; + } else { + document.body.style.cursor = previousCursorValue.current || null; + previousCursorValue.current = undefined; + } + }, [isDragging]); return ( /* eslint-disable jsx-a11y/no-static-element-interactions */ - Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + Object(external_this_wp_element_["createElement"])(CircleRoot, Object(esm_extends["a" /* default */])({ ref: angleCircleRef, onMouseDown: startDrag, className: "components-angle-picker-control__angle-circle", style: isDragging ? { cursor: 'grabbing' } : undefined - }, props), Object(external_this_wp_element_["createElement"])("div", { + }, props), Object(external_this_wp_element_["createElement"])(CircleIndicatorWrapper, { style: value ? { transform: "rotate(".concat(value, "deg)") } : undefined, className: "components-angle-picker-control__angle-circle-indicator-wrapper" - }, Object(external_this_wp_element_["createElement"])("span", { + }, Object(external_this_wp_element_["createElement"])(CircleIndicator, { className: "components-angle-picker-control__angle-circle-indicator" }))) /* eslint-enable jsx-a11y/no-static-element-interactions */ ); -}; +} -function AnglePickerControl(_ref2) { - var value = _ref2.value, - _onChange = _ref2.onChange, - _ref2$label = _ref2.label, - label = _ref2$label === void 0 ? Object(external_this_wp_i18n_["__"])('Angle') : _ref2$label; - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(AnglePickerControl); - var inputId = "components-angle-picker-control__input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(base_control, { - label: label, - id: inputId, - className: "components-angle-picker-control" - }, Object(external_this_wp_element_["createElement"])(angle_picker_control_AngleCircle, { - value: value, - onChange: _onChange, - "aria-hidden": "true" - }), Object(external_this_wp_element_["createElement"])("input", { +function getAngle(centerX, centerY, pointX, pointY) { + var y = pointY - centerY; + var x = pointX - centerX; + var angleInRadians = Math.atan2(y, x); + var angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90; + + if (angleInDeg < 0) { + return 360 + angleInDeg; + } + + return angleInDeg; +} + +/* harmony default export */ var angle_circle = (AngleCircle); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function AnglePickerControl(_ref) { + var className = _ref.className, + idProp = _ref.id, + value = _ref.value, + onChange = _ref.onChange, + label = _ref.label, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "id", "value", "onChange", "label"]); + + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(AnglePickerControl, 'components-angle-picker-control__input'); + var id = idProp || instanceId; + + var handleOnNumberChange = function handleOnNumberChange(unprocessedValue) { + var inputValue = unprocessedValue !== '' ? parseInt(unprocessedValue, 10) : 0; + onChange(inputValue); + }; + + var classes = classnames_default()('components-angle-picker-control', className); + return Object(external_this_wp_element_["createElement"])(base_control, Object(esm_extends["a" /* default */])({ + className: classes, + id: id, + label: label + }, props), Object(external_this_wp_element_["createElement"])(angle_picker_control_styles_Root, { + gap: 3 + }, Object(external_this_wp_element_["createElement"])(NumberControlWrapper, null, Object(external_this_wp_element_["createElement"])(number_control, { className: "components-angle-picker-control__input-field", - type: "number", - id: inputId, - onChange: function onChange(event) { - var unprocessedValue = event.target.value; - var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : 0; - - _onChange(inputValue); - }, - value: value, - min: 0, + id: id, max: 360, - step: "1" - })); + min: 0, + onChange: handleOnNumberChange, + step: "1", + value: value + })), Object(external_this_wp_element_["createElement"])(block, null, Object(external_this_wp_element_["createElement"])(angle_circle, { + "aria-hidden": "true", + value: value, + onChange: onChange + })))); } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(18); -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(21); - // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js -var build_module_button = __webpack_require__(34); +var build_module_button = __webpack_require__(36); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + 2 modules -var popover = __webpack_require__(112); +var popover = __webpack_require__(115); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(54); +var external_this_wp_a11y_ = __webpack_require__(52); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js @@ -21599,7 +24993,7 @@ var external_this_wp_a11y_ = __webpack_require__(54); -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -21676,7 +25070,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re -function autocomplete_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (autocomplete_isNativeReflectConstruct()) { 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 autocomplete_createSuper(Derived) { var hasNativeReflectConstruct = autocomplete_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 autocomplete_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; } } @@ -22194,4416 +25588,6 @@ var autocomplete_Autocomplete = /*#__PURE__*/function (_Component) { }(external_this_wp_element_["Component"]); /* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"]])(autocomplete_Autocomplete)); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles/flex-styles.js - - -function flex_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - -/** - * External dependencies - */ - - -var flex_styles_alignStyle = function alignStyle(_ref2) { - var align = _ref2.align; - var aligns = { - top: 'flex-start', - bottom: 'flex-end' - }; - var value = aligns[align] || align; - return /*#__PURE__*/css_browser_esm({ - alignItems: value - }, true ? "" : undefined); -}; - -var flex_styles_justifyStyle = function justifyStyle(_ref3) { - var justify = _ref3.justify, - isReversed = _ref3.isReversed; - var justifies = { - left: 'flex-start', - right: 'flex-end' - }; - var value = justifies[justify] || justify; - - if (isReversed && justifies[justify]) { - value = justify === 'left' ? justifies.right : justifies.left; - } - - return /*#__PURE__*/css_browser_esm({ - justifyContent: value - }, true ? "" : undefined); -}; - -var flex_styles_gapStyle = function gapStyle(_ref4) { - var gap = _ref4.gap, - isReversed = _ref4.isReversed; - var base = 4; - var value = typeof gap === 'number' ? base * gap : base; - var dir = isReversed ? 'left' : 'right'; - var padding = "padding-".concat(dir); - return /*#__PURE__*/css_browser_esm("> *{", padding, ":", value, "px;&:last-child{", padding, ":0;}}" + ( true ? "" : undefined)); -}; - -var flex_styles_ref = true ? { - name: "8kj89b", - styles: "flex-direction:row-reverse;" -} : undefined; - -var reversedStyles = function reversedStyles(_ref5) { - var isReversed = _ref5.isReversed; - if (!isReversed) return ''; - return flex_styles_ref; -}; - -var Flex = styled_base_browser_esm("div", { - target: "eboqfv50", - label: "Flex" -})("box-sizing:border-box;display:flex;", flex_styles_alignStyle, ";", flex_styles_justifyStyle, ";", flex_styles_gapStyle, ";", reversedStyles, ";" + ( true ? "" : undefined)); -var Item = styled_base_browser_esm("div", { - target: "eboqfv51", - label: "Item" -})( true ? { - name: "13luw5d", - styles: "box-sizing:border-box;min-width:0;max-width:100%;" -} : undefined); -var Block = /*#__PURE__*/styled_base_browser_esm(Item, { - target: "eboqfv52", - label: "Block" -})( true ? { - name: "1rr4qq7", - styles: "flex:1;" -} : undefined); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/item.js - - - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * WordPress dependencies - */ - - - -function FlexItem(_ref, ref) { - var className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); - - var classes = classnames_default()('components-flex__item', className); - return Object(external_this_wp_element_["createElement"])(Item, Object(esm_extends["a" /* default */])({}, props, { - className: classes, - ref: ref - })); -} - -/* harmony default export */ var flex_item = (Object(external_this_wp_element_["forwardRef"])(FlexItem)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/block.js - - - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * WordPress dependencies - */ - - - -function FlexBlock(_ref, ref) { - var className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); - - var classes = classnames_default()('components-flex__block', className); - return Object(external_this_wp_element_["createElement"])(Block, Object(esm_extends["a" /* default */])({}, props, { - className: classes, - ref: ref - })); -} - -/* harmony default export */ var block = (Object(external_this_wp_element_["forwardRef"])(FlexBlock)); - -// CONCATENATED MODULE: ./node_modules/react-use-gesture/dist/react-use-gesture.esm.js - - -// vector add -function addV(v1, v2) { - return v1.map(function (v, i) { - return v + v2[i]; - }); -} // vector substract - -function subV(v1, v2) { - return v1.map(function (v, i) { - return v - v2[i]; - }); -} -/** - * Calculates velocity - * @param delta the difference between current and previous vectors - * @param delta_t the time offset - * @param len the length of the delta vector - * @returns velocity - */ - -function calculateVelocity(delta, delta_t, len) { - len = len || Math.hypot.apply(Math, delta); - return delta_t ? len / delta_t : 0; -} -/** - * Calculates velocities vector - * @template T the expected vector type - * @param delta the difference between current and previous vectors - * @param delta_t the time offset - * @returns velocities vector - */ - -function calculateVelocities(delta, delta_t) { - return delta_t ? delta.map(function (v) { - return v / delta_t; - }) : Array(delta.length).fill(0); -} -/** - * Calculates distance - * @param movement the difference between current and initial vectors - * @returns distance - */ - -function calculateDistance(movement) { - return Math.hypot.apply(Math, movement); -} -/** - * Calculates direction - * @template T the expected vector type - * @param delta - * @param len - * @returns direction - */ - -function calculateDirection(delta, len) { - len = len || Math.hypot.apply(Math, delta) || 1; - return delta.map(function (v) { - return v / len; - }); -} -/** - * Calculates all kinematics - * @template T the expected vector type - * @param movement the difference between current and initial vectors - * @param delta the difference between current and previous vectors - * @param delta_t the time difference between current and previous timestamps - * @returns all kinematics - */ - -function calculateAllKinematics(movement, delta, delta_t) { - var len = Math.hypot.apply(Math, delta); - return { - velocities: calculateVelocities(delta, delta_t), - velocity: calculateVelocity(delta, delta_t, len), - distance: calculateDistance(movement), - direction: calculateDirection(delta, len) - }; -} -function getIntentionalDisplacement(movement, threshold) { - var abs = Math.abs(movement); - return abs >= threshold ? Math.sign(movement) * threshold : false; -} - -function minMax(value, min, max) { - return Math.max(min, Math.min(value, max)); -} // Based on @aholachek ;) -// https://twitter.com/chpwn/status/285540192096497664 -// iOS constant = 0.55 -// https://medium.com/@nathangitter/building-fluid-interfaces-ios-swift-9732bb934bf5 - - -function rubberband2(distance, constant) { - // default constant from the article is 0.7 - return Math.pow(distance, constant * 5); -} - -function rubberband(distance, dimension, constant) { - if (dimension === 0 || Math.abs(dimension) === Infinity) return rubberband2(distance, constant); - return distance * dimension * constant / (dimension + constant * distance); -} - -function rubberbandIfOutOfBounds(position, min, max, constant) { - if (constant === void 0) { - constant = 0.15; - } - - if (constant === 0) return minMax(position, min, max); - - if (position < min) { - return -rubberband(min - position, max - min, constant) + min; - } - - if (position > max) { - return rubberband(position - max, max - min, constant) + max; - } - - return position; -} - -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} - -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; -} - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(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(n); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} - -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - - return arr2; -} - -function _createForOfIteratorHelperLoose(o) { - var i = 0; - - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { - if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[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."); - } - - i = o[Symbol.iterator](); - return i.next.bind(i); -} - -// blank function -function noop() {} // returns a function that chains all functions given as parameters - -var chainFns = function chainFns() { - for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { - fns[_key] = arguments[_key]; - } - - return function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return fns.forEach(function (fn) { - return fn.apply(void 0, args); - }); - }; -}; -var def = { - array: function array(value) { - return Array.isArray(value) ? value : [value, value]; - }, - withDefault: function withDefault(value, defaultIfUndefined) { - return value !== void 0 ? value : defaultIfUndefined; - } -}; -function matchKeysFromObject(obj, matchingObject) { - var o = {}; - Object.entries(obj).forEach(function (_ref) { - var key = _ref[0], - value = _ref[1]; - return (value !== void 0 || key in matchingObject) && (o[key] = value); - }); - return o; -} -function valueFn(v) { - return typeof v === 'function' ? v() : v; -} - -function getInitialState() { - // common initial state for all gestures - var initialCommon = { - _active: false, - _blocked: false, - _intentional: [false, false], - _movement: [0, 0], - _initial: [0, 0], - _lastEventType: undefined, - event: undefined, - // currentTarget: undefined, - // pointerId: undefined, - values: [0, 0], - velocities: [0, 0], - delta: [0, 0], - movement: [0, 0], - offset: [0, 0], - lastOffset: [0, 0], - direction: [0, 0], - initial: [0, 0], - previous: [0, 0], - first: false, - last: false, - active: false, - timeStamp: 0, - startTime: 0, - elapsedTime: 0, - cancel: noop, - canceled: false, - memo: undefined, - args: undefined - }; // initial state for coordinates-based gestures - - var initialCoordinates = { - axis: undefined, - xy: [0, 0], - vxvy: [0, 0], - velocity: 0, - distance: 0 - }; // initial state for distance and angle-based gestures (pinch) - - var initialDistanceAngle = { - da: [0, 0], - vdva: [0, 0], - origin: undefined, - turns: 0 - }; // initial state object (used by the gesture controller) - - return { - shared: { - hovering: false, - scrolling: false, - wheeling: false, - dragging: false, - moving: false, - pinching: false, - touches: 0, - buttons: 0, - down: false, - shiftKey: false, - altKey: false, - metaKey: false, - ctrlKey: false - }, - drag: _extends({}, initialCommon, {}, initialCoordinates, { - _isTap: true, - _delayedEvent: false, - tap: false, - swipe: [0, 0] - }), - pinch: _extends({}, initialCommon, {}, initialDistanceAngle), - wheel: _extends({}, initialCommon, {}, initialCoordinates), - move: _extends({}, initialCommon, {}, initialCoordinates), - scroll: _extends({}, initialCommon, {}, initialCoordinates) - }; -} - -var setListeners = function setListeners(add) { - return function (el, listeners, options) { - var action = add ? 'addEventListener' : 'removeEventListener'; - listeners.forEach(function (_ref) { - var eventName = _ref[0], - fn = _ref[1]; - return el[action](eventName, fn, options); - }); - }; -}; -/** - * Whether the browser supports GestureEvent (ie Safari) - * @returns true if the browser supports gesture event - */ - - -function supportsGestureEvents() { - try { - // TODO [TS] possibly find GestureEvent definitions? - // @ts-ignore: no type definitions for webkit GestureEvents - return 'constructor' in GestureEvent; - } catch (e) { - return false; - } -} -var addListeners = /*#__PURE__*/setListeners(true); -var removeListeners = /*#__PURE__*/setListeners(false); -/** - * Gets modifier keys from event - * @param event - * @returns modifier keys - */ - -function getModifierKeys(event) { - var shiftKey = event.shiftKey, - altKey = event.altKey, - metaKey = event.metaKey, - ctrlKey = event.ctrlKey; - return { - shiftKey: shiftKey, - altKey: altKey, - metaKey: metaKey, - ctrlKey: ctrlKey - }; -} - -function getTouchEvents(event) { - if ('touches' in event) { - var touches = event.touches, - changedTouches = event.changedTouches; - return touches.length > 0 ? touches : changedTouches; - } - - return null; -} - -function getGenericEventData(event) { - var buttons = 'buttons' in event ? event.buttons : 0; - var touchEvents = getTouchEvents(event); - var touches = touchEvents && touchEvents.length || 0; - var down = touches > 0 || buttons > 0; - return _extends({ - touches: touches, - down: down, - buttons: buttons - }, getModifierKeys(event)); -} -/** - * Gets scroll event values - * @param event - * @returns scroll event values - */ - -function getScrollEventValues(event) { - // If the currentTarget is the window then we return the scrollX/Y position. - // If not (ie the currentTarget is a DOM element), then we return scrollLeft/Top - var _event$currentTarget = event.currentTarget, - scrollX = _event$currentTarget.scrollX, - scrollY = _event$currentTarget.scrollY, - scrollLeft = _event$currentTarget.scrollLeft, - scrollTop = _event$currentTarget.scrollTop; - return { - values: [scrollX || scrollLeft || 0, scrollY || scrollTop || 0] - }; -} -/** - * Gets wheel event values. - * @param event - * @returns wheel event values - */ - -function getWheelEventValues(event) { - var deltaX = event.deltaX, - deltaY = event.deltaY; //TODO implement polyfill ? - // https://developer.mozilla.org/en-US/docs/Web/Events/wheel#Polyfill - - return { - values: [deltaX, deltaY] - }; -} -/** - * Gets pointer event values. - * @param event - * @returns pointer event values - */ - -function getPointerEventValues(event) { - var touchEvents = getTouchEvents(event); - - var _ref2 = touchEvents ? touchEvents[0] : event, - clientX = _ref2.clientX, - clientY = _ref2.clientY; - - return { - values: [clientX, clientY] - }; -} -var WEBKIT_DISTANCE_SCALE_FACTOR = 260; -/** - * Gets webkit gesture event values. - * @param event - * @returns webkit gesture event values - */ - -function getWebkitGestureEventValues(event) { - return { - values: [event.scale * WEBKIT_DISTANCE_SCALE_FACTOR, event.rotation] - }; -} -/** - * Gets two touches event data - * @param event - * @returns two touches event data - */ - -function getTwoTouchesEventData(event) { - var touches = event.touches; - var dx = touches[1].clientX - touches[0].clientX; - var dy = touches[1].clientY - touches[0].clientY; - var values = [Math.hypot(dx, dy), -(Math.atan2(dx, dy) * 180) / Math.PI]; - var origin = [(touches[1].clientX + touches[0].clientX) / 2, (touches[1].clientY + touches[0].clientY) / 2]; - return { - values: values, - origin: origin - }; -} - -/** - * The controller will keep track of the state for all gestures and also keep - * track of timeouts, and window listeners. - * - * @template BinderType the type the bind function should return - */ - -var Controller = function Controller() { - var _this = this; - - this.state = getInitialState(); // state for all gestures - - this.timeouts = {}; // keeping track of timeouts for debounced gestures (such as move, scroll, wheel) - - this.domListeners = []; // when config.domTarget is set, we attach events directly to the dom - - this.windowListeners = {}; // keeps track of window listeners added by gestures (drag only at the moment) - - this.bindings = {}; // an object holding the handlers associated to the gestures - - /** - * Function ran on component unmount: cleans timeouts and removes dom listeners set by the bind function. - */ - - this.clean = function () { - _this.resetBindings(); - - Object.values(_this.timeouts).forEach(clearTimeout); - Object.keys(_this.windowListeners).forEach(function (stateKey) { - return _this.removeWindowListeners(stateKey); - }); - }; - /** - * Function run every time the bind function is run (ie on every render). - * Resets the binding object and remove dom listeners attached to config.domTarget - */ - - - this.resetBindings = function () { - _this.bindings = {}; - - var domTarget = _this.getDomTarget(); - - if (domTarget) { - removeListeners(domTarget, _this.domListeners, _this.config.eventOptions); - _this.domListeners = []; - } - }; - /** - * Returns the domTarget element and parses a ref if needed. - */ - - - this.getDomTarget = function () { - var domTarget = _this.config.domTarget; - return domTarget && 'current' in domTarget ? domTarget.current : domTarget; - }; - /** - * Commodity function to let recognizers simply add listeners to config.window. - */ - - - this.addWindowListeners = function (stateKey, listeners) { - if (!_this.config.window) return; // we use this.windowListeners to keep track of the listeners we add - - _this.windowListeners[stateKey] = listeners; - addListeners(_this.config.window, listeners, _this.config.eventOptions); - }; - /** - * Commodity function to let recognizers simply remove listeners to config.window. - */ - - - this.removeWindowListeners = function (stateKey) { - if (!_this.config.window) return; - var listeners = _this.windowListeners[stateKey]; - - if (listeners) { - removeListeners(_this.config.window, listeners, _this.config.eventOptions); - delete _this.windowListeners[stateKey]; - } - }; - /** - * When config.domTarget is set, this function will add dom listeners to it - */ - - - this.addDomTargetListeners = function (target) { - /** We iterate on the entries of this.binding for each event, then we chain - * the array of functions mapped to it and push them to this.domListeners - */ - Object.entries(_this.bindings).forEach(function (_ref) { - var event = _ref[0], - fns = _ref[1]; - - _this.domListeners.push([event.substr(2).toLowerCase(), chainFns.apply(void 0, fns)]); - }); - addListeners(target, _this.domListeners, _this.config.eventOptions); - }; - /** - * this.bindings is an object which keys match ReactEventHandlerKeys. - * Since a recognizer might want to bind a handler function to an event key already used by a previously - * added recognizer, we need to make sure that each event key is an array of all the functions mapped for - * that key. - */ - - - this.addBindings = function (eventNames, fn) { - var eventNamesArray = !Array.isArray(eventNames) ? [eventNames] : eventNames; - eventNamesArray.forEach(function (eventName) { - if (_this.bindings[eventName]) _this.bindings[eventName].push(fn);else _this.bindings[eventName] = [fn]; - }); - }; - /** - * getBindings will return an object that will be bound by users - * to the react component they want to interact with. - */ - - - this.getBindings = function () { - var bindings = {}; - var captureString = _this.config.captureString; - Object.entries(_this.bindings).forEach(function (_ref2) { - var event = _ref2[0], - fns = _ref2[1]; - var fnsArray = Array.isArray(fns) ? fns : [fns]; - var key = event + captureString; - bindings[key] = chainFns.apply(void 0, fnsArray); - }); - return bindings; - }; - - this.getBind = function () { - // If config.domTarget is set we add event listeners to it and return the clean function. - if (_this.config.domTarget) { - var domTarget = _this.getDomTarget(); - - domTarget && _this.addDomTargetListeners(domTarget); - return _this.clean; - } // If not, we return an object that contains gesture handlers mapped to react handler event keys. - - - return _this.getBindings(); - }; -}; - -/** - * @private - * - * Utility hook called by all gesture hooks and that will be responsible for the internals. - * - * @param {Partial} handlers - * @param {RecognizerClasses} classes - * @param {InternalConfig} config - * @param {NativeHandlersPartial} nativeHandlers - native handlers such as onClick, onMouseDown, etc. - * @returns {(...args: any[]) => HookReturnType} - */ - -function useRecognizers(handlers, classes, config, nativeHandlers) { - // The gesture controller keeping track of all gesture states - var controller = external_this_React_default.a.useMemo(function () { - var current = new Controller(); - /** - * The bind function will create gesture recognizers and return the right - * bind object depending on whether `domTarget` was specified in the config object. - */ - - var bind = function bind() { - current.resetBindings(); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - for (var _iterator = _createForOfIteratorHelperLoose(classes), _step; !(_step = _iterator()).done;) { - var RecognizerClass = _step.value; - new RecognizerClass(current, args).addBindings(); - } // we also add event bindings for native handlers - - - if (controller.nativeRefs) { - for (var eventName in controller.nativeRefs) { - current.addBindings(eventName, // @ts-ignore we're cheating when it comes to event type :( - controller.nativeRefs[eventName]); - } - } - - return current.getBind(); - }; - - return { - nativeRefs: nativeHandlers, - current: current, - bind: bind - }; - }, []); // We reassign the config and handlers to the controller on every render. - - controller.current.config = config; - controller.current.handlers = handlers; // We assign nativeHandlers, otherwise they won't be refreshed on the next render. - - controller.nativeRefs = nativeHandlers; // Run controller clean functions on unmount. - - external_this_React_default.a.useEffect(function () { - return controller.current.clean; - }, []); - return controller.bind; -} - -/** - * @private - * Recognizer abstract class. - * - * @protected - * @abstract - * @type {StateKey} whether the Recognizer should deal with coordinates or distance / angle - */ - -var Recognizer = /*#__PURE__*/function () { - /** - * Creates an instance of a gesture recognizer. - * @param stateKey drag, move, pinch, etc. - * @param controller the controller attached to the gesture - * @param [args] the args that should be passed to the gesture handler - */ - function Recognizer(stateKey, controller, args) { - var _this = this; - - if (args === void 0) { - args = []; - } - - this.stateKey = stateKey; - this.controller = controller; - this.args = args; - this.debounced = true; // Convenience method to set a timeout for a given gesture - - this.setTimeout = function (callback, ms) { - var _window; - - if (ms === void 0) { - ms = 140; - } - - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - _this.controller.timeouts[_this.stateKey] = (_window = window).setTimeout.apply(_window, [callback, ms].concat(args)); - }; // Convenience method to clear a timeout for a given gesture - - - this.clearTimeout = function () { - clearTimeout(_this.controller.timeouts[_this.stateKey]); - }; // Convenience method to add window listeners for a given gesture - - - this.addWindowListeners = function (listeners) { - _this.controller.addWindowListeners(_this.stateKey, listeners); - }; // Convenience method to remove window listeners for a given gesture - - - this.removeWindowListeners = function () { - _this.controller.removeWindowListeners(_this.stateKey); - }; - /** - * Returns the reinitialized start state for the gesture. - * Should be common to all gestures. - * - * @param {Vector2} values - * @param {UseGestureEvent} event - * @returns - the start state for the gesture - */ - - - this.getStartGestureState = function (values, event) { - return _extends({}, getInitialState()[_this.stateKey], { - _active: true, - values: values, - initial: values, - offset: _this.state.offset, - lastOffset: _this.state.offset, - startTime: event.timeStamp - }); - }; // Runs rubberband on a vector - - - this.rubberband = function (vector, rubberband) { - var bounds = _this.config.bounds; - /** - * [x, y]: [rubberband(x, min, max), rubberband(y, min, max)] - */ - - return vector.map(function (v, i) { - return rubberbandIfOutOfBounds(v, bounds[i][0], bounds[i][1], rubberband[i]); - }); - }; - /** - * Fires the gesture handler - * - * @param {boolean} [forceFlag] - if true, then the handler will fire even if the gesture is not intentional - */ - - - this.fireGestureHandler = function (forceFlag) { - /** - * If the gesture has been blocked (this can happen when the gesture has started in an unwanted direction), - * clean everything and don't do anything. - */ - if (_this.state._blocked) { - // we need debounced gestures to end by themselves - if (!_this.debounced) { - _this.state._active = false; - - _this.clean(); - } - - return null; - } // If the gesture has no intentional dimension, don't do fire the handler. - - - var _this$state$_intentio = _this.state._intentional, - intentionalX = _this$state$_intentio[0], - intentionalY = _this$state$_intentio[1]; - if (!forceFlag && intentionalX === false && intentionalY === false) return null; - var _this$state = _this.state, - _active = _this$state._active, - active = _this$state.active; - _this.state.active = _active; - _this.state.first = _active && !active; // `first` is true when the gesture becomes active - - _this.state.last = active && !_active; // `last` is true when the gesture becomes inactive - - _this.controller.state.shared[_this.ingKey] = _active; // Sets dragging, pinching, etc. to the gesture active state - - var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.mapStateValues(_this.state)); // @ts-ignore - - - var newMemo = _this.handler(state); // Sets memo to the returned value of the handler (unless it's not undefined) - - - _this.state.memo = newMemo !== void 0 ? newMemo : _this.state.memo; // Cleans the gesture when the gesture is no longer active. - - if (!_active) _this.clean(); - return state; - }; - } // Returns the gesture config - - - var _proto = Recognizer.prototype; - - // Conveninence method to update the shared state - _proto.updateSharedState = function updateSharedState(sharedState) { - Object.assign(this.controller.state.shared, sharedState); - } // Conveninence method to update the gesture state - ; - - _proto.updateGestureState = function updateGestureState(gestureState) { - Object.assign(this.state, gestureState); - } - /** - * Returns a generic, common payload for all gestures from an event. - * - * @param {UseGestureEvent} event - * @param {boolean} [isStartEvent] - * @returns - the generic gesture payload - */ - ; - - _proto.getGenericPayload = function getGenericPayload(event, isStartEvent) { - var timeStamp = event.timeStamp, - type = event.type; - var _this$state2 = this.state, - values = _this$state2.values, - startTime = _this$state2.startTime; - return { - _lastEventType: type, - event: event, - timeStamp: timeStamp, - elapsedTime: isStartEvent ? 0 : timeStamp - startTime, - args: this.args, - previous: values - }; - } - /** - * Returns state properties depending on the movement and state. - * - * Should be overriden for custom behavior, doesn't do anything in the implementation - * below. - */ - ; - - _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, _state) { - return { - _intentional: _intentional, - _blocked: false - }; - } - /** - * Returns basic movement properties for the gesture based on the next values and current state. - */ - ; - - _proto.getMovement = function getMovement(values, state) { - if (state === void 0) { - state = this.state; - } - - var _this$config = this.config, - initial = _this$config.initial, - threshold = _this$config.threshold, - rubberband = _this$config.rubberband; - var t0 = threshold[0], - t1 = threshold[1]; - var _state2 = state, - _initial = _state2._initial, - _active = _state2._active, - intentional = _state2._intentional, - lastOffset = _state2.lastOffset, - prevMovement = _state2.movement; - var i0 = intentional[0], - i1 = intentional[1]; - - var _this$getInternalMove = this.getInternalMovement(values, state), - _m0 = _this$getInternalMove[0], - _m1 = _this$getInternalMove[1]; - /** - * For both dimensions of the gesture, check its intentionality on each frame. - */ - - - if (i0 === false) { - i0 = getIntentionalDisplacement(_m0, t0); - } - - if (i1 === false) { - i1 = getIntentionalDisplacement(_m1, t1); - } // Get gesture specific state properties based on intentionality and movement. - - - var intentionalityCheck = this.checkIntentionality([i0, i1], [_m0, _m1], state); - var _intentional = intentionalityCheck._intentional, - _blocked = intentionalityCheck._blocked; - var _i0 = _intentional[0], - _i1 = _intentional[1]; - var _movement = [_m0, _m1]; - if (_i0 !== false && intentional[0] === false) _initial[0] = valueFn(initial)[0]; - if (_i1 !== false && intentional[1] === false) _initial[1] = valueFn(initial)[1]; - /** - * If the gesture has been blocked (from gesture specific checkIntentionality), - * stop right there. - */ - - if (_blocked) return _extends({}, intentionalityCheck, { - _movement: _movement, - delta: [0, 0] - }); - /** - * The movement sent to the handler has 0 in its dimensions when intentionality is false. - * It is calculated from the actual movement minus the threshold. - */ - - var movement = [_i0 !== false ? _m0 - _i0 : valueFn(initial)[0], _i1 !== false ? _m1 - _i1 : valueFn(initial)[1]]; - var offset = addV(movement, lastOffset); - /** - * Rubberband should be 0 when the gesture is no longer active, so that movement - * and offset can return within their bounds. - */ - - var _rubberband = _active ? rubberband : [0, 0]; - - movement = this.rubberband(addV(movement, _initial), _rubberband); // rubberbanded movement - - return _extends({}, intentionalityCheck, { - _initial: _initial, - _movement: _movement, - movement: movement, - offset: this.rubberband(offset, _rubberband), - delta: subV(movement, prevMovement) - }); - } // Cleans the gesture. Can be overriden by gestures. - ; - - _proto.clean = function clean() { - this.clearTimeout(); - this.removeWindowListeners(); - }; - - _createClass(Recognizer, [{ - key: "config", - get: function get() { - return this.controller.config[this.stateKey]; - } // Is the gesture enabled - - }, { - key: "enabled", - get: function get() { - return this.controller.config.enabled && this.config.enabled; - } // Returns the controller state for a given gesture - - }, { - key: "state", - get: function get() { - return this.controller.state[this.stateKey]; - } // Returns the gesture handler - - }, { - key: "handler", - get: function get() { - return this.controller.handlers[this.stateKey]; - } - }]); - - return Recognizer; -}(); - -/** - * @private - * Abstract class for coordinates-based gesture recongizers - * @abstract - * @class CoordinatesRecognizer - * @extends {Recognizer} - * @template T - */ - -var CoordinatesRecognizer = /*#__PURE__*/function (_Recognizer) { - _inheritsLoose(CoordinatesRecognizer, _Recognizer); - - function CoordinatesRecognizer() { - return _Recognizer.apply(this, arguments) || this; - } - - var _proto = CoordinatesRecognizer.prototype; - - /** - * Returns the real movement (without taking intentionality into acount) - */ - _proto.getInternalMovement = function getInternalMovement(values, state) { - return subV(values, state.initial); - } - /** - * In coordinates-based gesture, this function will detect the first intentional axis, - * lock the gesture axis if lockDirection is specified in the config, block the gesture - * if the first intentional axis doesn't match the specified axis in config. - * - * @param {[FalseOrNumber, FalseOrNumber]} _intentional - * @param {Vector2} _movement - * @param {PartialGestureState} state - */ - ; - - _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, state) { - var _intentional2 = _intentional, - _ix = _intentional2[0], - _iy = _intentional2[1]; - var intentionalMovement = _ix !== false || _iy !== false; - var axis = state.axis; - var _blocked = false; // If the movement is intentional, we can compute axis. - - if (intentionalMovement) { - var _movement$map = _movement.map(Math.abs), - absX = _movement$map[0], - absY = _movement$map[1]; - - var _this$config = this.config, - configAxis = _this$config.axis, - lockDirection = _this$config.lockDirection; // We make sure we only set axis value if it hadn't been detected before. - - axis = axis || (absX > absY ? 'x' : absX < absY ? 'y' : undefined); - - if (!!configAxis || lockDirection) { - if (!!axis) { - // If the detected axis doesn't match the config axis we block the gesture - if (!!configAxis && axis !== configAxis) _blocked = true;else { - // Otherwise we prevent the gesture from updating the unwanted axis. - var lockedIndex = axis === 'x' ? 1 : 0; - _intentional[lockedIndex] = false; - } - } else { - // Until we've detected the axis, we prevent the hnadler from updating. - _intentional = [false, false]; - } - } - } - - return { - _intentional: _intentional, - _blocked: _blocked, - axis: axis - }; - }; - - _proto.getKinematics = function getKinematics(values, event) { - var timeStamp = this.state.timeStamp; - var movementDetection = this.getMovement(values, this.state); - var _blocked = movementDetection._blocked, - delta = movementDetection.delta, - movement = movementDetection.movement; - if (_blocked) return movementDetection; - var delta_t = event.timeStamp - timeStamp; - var kinematics = calculateAllKinematics(movement, delta, delta_t); - return _extends({ - values: values, - delta: delta - }, movementDetection, {}, kinematics); - }; - - _proto.mapStateValues = function mapStateValues(state) { - return { - xy: state.values, - vxvy: state.velocities - }; - }; - - return CoordinatesRecognizer; -}(Recognizer); - -var TAP_DISTANCE_THRESHOLD = 3; -var SWIPE_MAX_ELAPSED_TIME = 220; -var FILTER_REPEATED_EVENTS_DELAY = 200; - -var DragRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { - _inheritsLoose(DragRecognizer, _CoordinatesRecognize); - - function DragRecognizer(controller, args) { - var _this; - - _this = _CoordinatesRecognize.call(this, 'drag', controller, args) || this; - _this.ingKey = 'dragging'; - _this.wasTouch = false; - - _this.isEventTypeTouch = function (type) { - return !!type && type.indexOf('touch') === 0; - }; - - _this.dragShouldStart = function (event) { - var _getGenericEventData = getGenericEventData(event), - touches = _getGenericEventData.touches; - - var _lastEventType = _this.state._lastEventType; - /** - * This tries to filter out mouse events triggered by touch screens - * */ - // If the previous gesture was touch-based, and the current one is mouse based, - // this means that we might be dealing with mouse simulated events if they're close to - // each other. We're only doing this check when we're not using pointer events. - - if (!_this.controller.config.pointer && _this.isEventTypeTouch(_lastEventType) && !_this.isEventTypeTouch(event.type)) { - var delay = Math.abs(event.timeStamp - _this.state.startTime); - if (delay < FILTER_REPEATED_EVENTS_DELAY) return false; - } - - return _this.enabled && touches < 2; - }; - - _this.setPointers = function (event) { - var currentTarget = event.currentTarget, - pointerId = event.pointerId; - if (currentTarget) currentTarget.setPointerCapture(pointerId); - - _this.updateGestureState({ - currentTarget: currentTarget, - pointerId: pointerId - }); - }; - - _this.removePointers = function () { - var _this$state = _this.state, - currentTarget = _this$state.currentTarget, - pointerId = _this$state.pointerId; - if (currentTarget && pointerId) currentTarget.releasePointerCapture(pointerId); - }; - - _this.setListeners = function (isTouch) { - _this.removeWindowListeners(); - - var dragListeners = isTouch ? [['touchmove', _this.onDragChange], ['touchend', _this.onDragEnd], ['touchcancel', _this.onDragEnd]] : [['mousemove', _this.onDragChange], ['mouseup', _this.onDragEnd]]; - - _this.addWindowListeners(dragListeners); - }; - - _this.onDragStart = function (event) { - if (!_this.dragShouldStart(event)) return; // if pointers events - - if (_this.controller.config.pointer) _this.setPointers(event);else _this.setListeners(_this.isEventTypeTouch(event.type)); - - if (_this.config.delay > 0) { - _this.state._delayedEvent = true; - if (typeof event.persist === 'function') event.persist(); - - _this.setTimeout(function () { - return _this.startDrag(event); - }, _this.config.delay); - } else { - _this.startDrag(event); - } - }; - - _this.onDragChange = function (event) { - var canceled = _this.state.canceled; - if (canceled) return; - - if (!_this.state._active) { - if (_this.state._delayedEvent) { - _this.clearTimeout(); - - _this.startDrag(event); - } - - return; - } - - var genericEventData = getGenericEventData(event); - - if (!genericEventData.down) { - _this.onDragEnd(event); - - return; - } - - _this.updateSharedState(genericEventData); - - var _getPointerEventValue = getPointerEventValues(event), - values = _getPointerEventValue.values; - - var kinematics = _this.getKinematics(values, event); - - var _isTap = _this.state._isTap; - if (_isTap && calculateDistance(kinematics._movement) >= TAP_DISTANCE_THRESHOLD) _isTap = false; - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { - _isTap: _isTap, - cancel: function cancel() { - return _this.onCancel(); - } - })); - - _this.fireGestureHandler(); - }; - - _this.onDragEnd = function (event) { - _this.state._active = false; - - _this.updateSharedState({ - down: false, - buttons: 0, - touches: 0 - }); - - var _this$state2 = _this.state, - _isTap = _this$state2._isTap, - values = _this$state2.values, - _this$state2$velociti = _this$state2.velocities, - vx = _this$state2$velociti[0], - vy = _this$state2$velociti[1], - _this$state2$movement = _this$state2.movement, - mx = _this$state2$movement[0], - my = _this$state2$movement[1], - _this$state2$_intenti = _this$state2._intentional, - ix = _this$state2$_intenti[0], - iy = _this$state2$_intenti[1]; - - var endState = _extends({}, _this.getGenericPayload(event), {}, _this.getMovement(values)); - - var elapsedTime = endState.elapsedTime; - var _this$config = _this.config, - _this$config$swipeVel = _this$config.swipeVelocity, - svx = _this$config$swipeVel[0], - svy = _this$config$swipeVel[1], - _this$config$swipeDis = _this$config.swipeDistance, - sx = _this$config$swipeDis[0], - sy = _this$config$swipeDis[1]; - var swipe = [0, 0]; - - if (elapsedTime < SWIPE_MAX_ELAPSED_TIME) { - if (ix !== false && Math.abs(vx) > svx && Math.abs(mx) > sx) swipe[0] = Math.sign(vx); - if (iy !== false && Math.abs(vy) > svy && Math.abs(my) > sy) swipe[1] = Math.sign(vy); - } - - _this.updateGestureState(_extends({ - event: event - }, endState, { - tap: _isTap, - swipe: swipe - })); - - _this.fireGestureHandler(_this.config.filterTaps && _this.state._isTap); - }; - - _this.clean = function () { - _CoordinatesRecognize.prototype.clean.call(_assertThisInitialized(_this)); - - _this.state._delayedEvent = false; - if (_this.controller.config.pointer) _this.removePointers(); - }; - - _this.onCancel = function () { - _this.updateGestureState({ - canceled: true, - cancel: noop - }); - - _this.state._active = false; - - _this.updateSharedState({ - down: false, - buttons: 0, - touches: 0 - }); - - requestAnimationFrame(function () { - return _this.fireGestureHandler(); - }); - }; - - return _this; - } - - var _proto = DragRecognizer.prototype; - - _proto.startDrag = function startDrag(event) { - var _this2 = this; - - var _getPointerEventValue2 = getPointerEventValues(event), - values = _getPointerEventValue2.values; - - this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, this.getStartGestureState(values, event), {}, this.getGenericPayload(event, true)); - - this.updateGestureState(_extends({}, startState, {}, this.getMovement(values, startState), { - cancel: function cancel() { - return _this2.onCancel(); - } - })); - this.fireGestureHandler(); - }; - - _proto.addBindings = function addBindings() { - if (this.controller.config.pointer) { - this.controller.addBindings('onPointerDown', this.onDragStart); - this.controller.addBindings('onPointerMove', this.onDragChange); - this.controller.addBindings(['onPointerUp', 'onPointerCancel'], this.onDragEnd); - } else { - this.controller.addBindings(['onTouchStart', 'onMouseDown'], this.onDragStart); - } - }; - - return DragRecognizer; -}(CoordinatesRecognizer); - -var DEFAULT_DRAG_DELAY = 180; -var DEFAULT_RUBBERBAND = 0.15; -var DEFAULT_SWIPE_VELOCITY = 0.5; -var DEFAULT_SWIPE_DISTANCE = 60; -var defaultWindow = typeof window !== 'undefined' ? window : undefined; -var defaultCoordinatesOptions = { - lockDirection: false, - axis: undefined, - bounds: undefined -}; -/** - * @private - * - * Returns the internal generic option object. - * - * @param {Partial} [config={}] - * @returns {InternalGenericOptions} - */ - -function getInternalGenericOptions(config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - _config$eventOptions = _config.eventOptions; - _config$eventOptions = _config$eventOptions === void 0 ? {} : _config$eventOptions; - - var _config$eventOptions$ = _config$eventOptions.passive, - passive = _config$eventOptions$ === void 0 ? true : _config$eventOptions$, - _config$eventOptions$2 = _config$eventOptions.capture, - capture = _config$eventOptions$2 === void 0 ? false : _config$eventOptions$2, - _config$eventOptions$3 = _config$eventOptions.pointer, - pointer = _config$eventOptions$3 === void 0 ? false : _config$eventOptions$3, - _config$window = _config.window, - window = _config$window === void 0 ? defaultWindow : _config$window, - _config$domTarget = _config.domTarget, - domTarget = _config$domTarget === void 0 ? undefined : _config$domTarget, - _config$enabled = _config.enabled, - enabled = _config$enabled === void 0 ? true : _config$enabled, - restConfig = _objectWithoutPropertiesLoose(_config, ["eventOptions", "window", "domTarget", "enabled"]); - - return _extends({}, restConfig, { - enabled: enabled, - domTarget: domTarget, - window: window, - // passive is always true if there's no domTarget - eventOptions: { - passive: !domTarget || !!passive, - capture: !!capture - }, - captureString: capture ? 'Capture' : '', - pointer: !!pointer - }); -} -function getInternalGestureOptions(gestureConfig) { - var _gestureConfig$thresh = gestureConfig.threshold, - threshold = _gestureConfig$thresh === void 0 ? undefined : _gestureConfig$thresh, - _gestureConfig$rubber = gestureConfig.rubberband, - rubberband = _gestureConfig$rubber === void 0 ? 0 : _gestureConfig$rubber, - _gestureConfig$enable = gestureConfig.enabled, - enabled = _gestureConfig$enable === void 0 ? true : _gestureConfig$enable, - _gestureConfig$initia = gestureConfig.initial, - initial = _gestureConfig$initia === void 0 ? [0, 0] : _gestureConfig$initia; - if (typeof rubberband === 'boolean') rubberband = rubberband ? DEFAULT_RUBBERBAND : 0; - if (threshold === void 0) threshold = 0; - return { - enabled: enabled, - initial: initial, - threshold: def.array(threshold), - rubberband: def.array(rubberband) - }; -} -function getInternalCoordinatesOptions(coordinatesConfig) { - if (coordinatesConfig === void 0) { - coordinatesConfig = {}; - } - - var _coordinatesConfig = coordinatesConfig, - axis = _coordinatesConfig.axis, - lockDirection = _coordinatesConfig.lockDirection, - _coordinatesConfig$bo = _coordinatesConfig.bounds, - bounds = _coordinatesConfig$bo === void 0 ? {} : _coordinatesConfig$bo, - internalOptions = _objectWithoutPropertiesLoose(_coordinatesConfig, ["axis", "lockDirection", "bounds"]); - - var boundsArray = [[def.withDefault(bounds.left, -Infinity), def.withDefault(bounds.right, Infinity)], [def.withDefault(bounds.top, -Infinity), def.withDefault(bounds.bottom, Infinity)]]; - return _extends({}, getInternalGestureOptions(internalOptions), {}, defaultCoordinatesOptions, {}, matchKeysFromObject({ - axis: axis, - lockDirection: lockDirection - }, coordinatesConfig), { - bounds: boundsArray - }); -} -function getInternalDistanceAngleOptions(distanceAngleConfig) { - if (distanceAngleConfig === void 0) { - distanceAngleConfig = {}; - } - - var _distanceAngleConfig = distanceAngleConfig, - _distanceAngleConfig$ = _distanceAngleConfig.distanceBounds, - distanceBounds = _distanceAngleConfig$ === void 0 ? {} : _distanceAngleConfig$, - _distanceAngleConfig$2 = _distanceAngleConfig.angleBounds, - angleBounds = _distanceAngleConfig$2 === void 0 ? {} : _distanceAngleConfig$2, - internalOptions = _objectWithoutPropertiesLoose(_distanceAngleConfig, ["distanceBounds", "angleBounds"]); - - var boundsArray = [[def.withDefault(distanceBounds.min, -Infinity), def.withDefault(distanceBounds.max, Infinity)], [def.withDefault(angleBounds.min, -Infinity), def.withDefault(angleBounds.max, Infinity)]]; - return _extends({}, getInternalGestureOptions(internalOptions), { - bounds: boundsArray - }); -} -function getInternalDragOptions(dragConfig) { - if (dragConfig === void 0) { - dragConfig = {}; - } - - var _dragConfig = dragConfig, - enabled = _dragConfig.enabled, - threshold = _dragConfig.threshold, - bounds = _dragConfig.bounds, - rubberband = _dragConfig.rubberband, - initial = _dragConfig.initial, - dragOptions = _objectWithoutPropertiesLoose(_dragConfig, ["enabled", "threshold", "bounds", "rubberband", "initial"]); - - var _dragOptions$swipeVel = dragOptions.swipeVelocity, - swipeVelocity = _dragOptions$swipeVel === void 0 ? DEFAULT_SWIPE_VELOCITY : _dragOptions$swipeVel, - _dragOptions$swipeDis = dragOptions.swipeDistance, - swipeDistance = _dragOptions$swipeDis === void 0 ? DEFAULT_SWIPE_DISTANCE : _dragOptions$swipeDis, - _dragOptions$delay = dragOptions.delay, - delay = _dragOptions$delay === void 0 ? false : _dragOptions$delay, - _dragOptions$filterTa = dragOptions.filterTaps, - filterTaps = _dragOptions$filterTa === void 0 ? false : _dragOptions$filterTa, - axis = dragOptions.axis, - lockDirection = dragOptions.lockDirection; - - if (threshold === void 0) { - threshold = Math.max(0, filterTaps ? 3 : 0, lockDirection || axis ? 1 : 0); - } else { - filterTaps = true; - } - - var internalCoordinatesOptions = getInternalCoordinatesOptions(matchKeysFromObject({ - enabled: enabled, - threshold: threshold, - bounds: bounds, - rubberband: rubberband, - axis: axis, - lockDirection: lockDirection, - initial: initial - }, dragConfig)); - return _extends({}, internalCoordinatesOptions, { - filterTaps: filterTaps || internalCoordinatesOptions.threshold[0] + internalCoordinatesOptions.threshold[1] > 0, - swipeVelocity: def.array(swipeVelocity), - swipeDistance: def.array(swipeDistance), - delay: typeof delay === 'number' ? delay : delay ? DEFAULT_DRAG_DELAY : 0 - }); -} - -/** - * @public - * - * Drag hook. - * - * @param {Handler<'drag'>} handler - the function fired every time the drag gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and drag options - * @returns {(...args: any[]) => HookReturnType} - */ - -function useDrag(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - drag = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - drag: getInternalDragOptions(drag) - }); - - return useRecognizers({ - drag: handler - }, [DragRecognizer], mergedConfig); -} - -/** - * @private - * Abstract class for distance/angle-based gesture recongizers - * @abstract - * @class DistanceAngleRecognizer - * @extends {Recognizer} - * @template T - */ - -var DistanceAngleRecognizer = /*#__PURE__*/function (_Recognizer) { - _inheritsLoose(DistanceAngleRecognizer, _Recognizer); - - function DistanceAngleRecognizer() { - return _Recognizer.apply(this, arguments) || this; - } - - var _proto = DistanceAngleRecognizer.prototype; - - /** - * Returns the real movement (without taking intentionality into acount) - */ - _proto.getInternalMovement = function getInternalMovement(_ref, state) { - var d = _ref[0], - a = _ref[1]; - var da = state.values, - turns = state.turns, - initial = state.initial; // angle might not be defined when ctrl wheel is used for zoom only - // in that case we set it to the previous angle value - - a = a !== void 0 ? a : da[1]; - var delta_a = a - da[1]; - /** - * The angle value might jump from 179deg to -179deg when we actually want to - * read 181deg to ensure continuity. To make that happen, we detect when the jump - * is supsiciously high (ie > 270deg) and increase the `turns` value - */ - - var newTurns = Math.abs(delta_a) > 270 ? turns + Math.sign(delta_a) : turns; // we update the angle difference to its corrected value - - var movement_d = d - initial[0]; - var movement_a = a - 360 * newTurns - initial[1]; - return [movement_d, movement_a]; - }; - - _proto.getKinematics = function getKinematics(values, event) { - var _this$state = this.state, - timeStamp = _this$state.timeStamp, - initial = _this$state.initial; - var movementDetection = this.getMovement(values, this.state); - var delta = movementDetection.delta, - movement = movementDetection.movement; - var turns = (values[1] - movement[1] - initial[1]) / 360; - var delta_t = event.timeStamp - timeStamp; - var kinematics = calculateAllKinematics(movement, delta, delta_t); - return _extends({ - values: values, - delta: delta, - turns: turns - }, movementDetection, {}, kinematics); - }; - - _proto.mapStateValues = function mapStateValues(state) { - return { - da: state.values, - vdva: state.velocities - }; - }; - - return DistanceAngleRecognizer; -}(Recognizer); - -var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { - _inheritsLoose(PinchRecognizer, _DistanceAngleRecogni); - - function PinchRecognizer(controller, args) { - var _this; - - _this = _DistanceAngleRecogni.call(this, 'pinch', controller, args) || this; - _this.ingKey = 'pinching'; - - _this.pinchShouldStart = function (event) { - var _getGenericEventData = getGenericEventData(event), - touches = _getGenericEventData.touches; - - return _this.enabled && touches === 2; - }; - - _this.onPinchStart = function (event) { - if (!_this.pinchShouldStart(event)) return; - - var _getTwoTouchesEventDa = getTwoTouchesEventData(event), - values = _getTwoTouchesEventDa.values, - origin = _getTwoTouchesEventDa.origin; - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); - - _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { - origin: origin, - cancel: function cancel() { - return _this.onCancel(); - } - })); - - _this.fireGestureHandler(); - }; - - _this.onPinchChange = function (event) { - var _this$state = _this.state, - canceled = _this$state.canceled, - timeStamp = _this$state.timeStamp, - _active = _this$state._active; - if (canceled || !_active) return; - var genericEventData = getGenericEventData(event); - if (genericEventData.touches !== 2 || event.timeStamp === timeStamp) return; - - _this.updateSharedState(genericEventData); - - var _getTwoTouchesEventDa2 = getTwoTouchesEventData(event), - values = _getTwoTouchesEventDa2.values, - origin = _getTwoTouchesEventDa2.origin; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { - origin: origin, - cancel: function cancel() { - return _this.onCancel(); - } - })); - - _this.fireGestureHandler(); - }; - - _this.onPinchEnd = function (event) { - if (!_this.state.active) return; - _this.state._active = false; - - _this.updateSharedState({ - down: false, - touches: 0 - }); - - _this.updateGestureState(_extends({ - event: event - }, _this.getGenericPayload(event), {}, _this.getMovement(_this.state.values))); - - _this.fireGestureHandler(); - }; - - _this.onCancel = function () { - _this.state._active = false; - - _this.updateGestureState({ - canceled: true, - cancel: noop - }); - - _this.updateSharedState({ - down: false, - touches: 0 - }); - - requestAnimationFrame(function () { - return _this.fireGestureHandler(); - }); - }; - /** - * PINCH WITH WEBKIT GESTURES - */ - - - _this.onGestureStart = function (event) { - if (!_this.enabled) return; - event.preventDefault(); - - var _getWebkitGestureEven = getWebkitGestureEventValues(event), - values = _getWebkitGestureEven.values; - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); - - _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { - cancel: function cancel() { - return _this.onCancel(); - } - })); - - _this.fireGestureHandler(); - }; - - _this.onGestureChange = function (event) { - var _this$state2 = _this.state, - canceled = _this$state2.canceled, - _active = _this$state2._active; - if (canceled || !_active) return; - event.preventDefault(); - var genericEventData = getGenericEventData(event); - - _this.updateSharedState(genericEventData); - - var _getWebkitGestureEven2 = getWebkitGestureEventValues(event), - values = _getWebkitGestureEven2.values; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { - cancel: function cancel() { - return _this.onCancel(); - } - })); - - _this.fireGestureHandler(); - }; - - _this.onGestureEnd = function (event) { - event.preventDefault(); - if (!_this.state.active) return; - _this.state._active = false; - - _this.updateSharedState({ - down: false, - touches: 0 - }); - - _this.updateGestureState(_extends({ - event: event - }, _this.getGenericPayload(event), {}, _this.getMovement(_this.state.values))); - - _this.fireGestureHandler(); - }; - - _this.updateTouchData = function (event) { - if (!_this.enabled || event.touches.length !== 2 || !_this.state._active) return; - - var _getTwoTouchesEventDa3 = getTwoTouchesEventData(event), - origin = _getTwoTouchesEventDa3.origin; - - _this.state.origin = origin; - }; - /** - * PINCH WITH WHEEL - */ - - - _this.wheelShouldRun = function (event) { - return _this.enabled && event.ctrlKey; - }; - - _this.getWheelValuesFromEvent = function (event) { - var _getWheelEventValues = getWheelEventValues(event), - _getWheelEventValues$ = _getWheelEventValues.values, - delta_d = _getWheelEventValues$[1]; - - var _this$state$values = _this.state.values, - prev_d = _this$state$values[0], - prev_a = _this$state$values[1]; - var d = prev_d - delta_d; - var a = prev_a !== void 0 ? prev_a : 0; - return { - values: [d, a], - origin: [event.clientX, event.clientY], - delta: [0, delta_d] - }; - }; - - _this.onWheel = function (event) { - if (!_this.wheelShouldRun(event)) return; - - _this.clearTimeout(); - - _this.setTimeout(_this.onWheelEnd); - - if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); - }; - - _this.onWheelStart = function (event) { - var _this$getWheelValuesF = _this.getWheelValuesFromEvent(event), - values = _this$getWheelValuesF.values, - delta = _this$getWheelValuesF.delta, - origin = _this$getWheelValuesF.origin; - - if (!_this.controller.config.eventOptions.passive) { - event.preventDefault(); - } else if (false) {} - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { - initial: _this.state.values - }); - - _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { - offset: values, - delta: delta, - origin: origin - })); - - _this.fireGestureHandler(); - }; - - _this.onWheelChange = function (event) { - var genericEventData = getGenericEventData(event); - - _this.updateSharedState(genericEventData); - - var _this$getWheelValuesF2 = _this.getWheelValuesFromEvent(event), - values = _this$getWheelValuesF2.values, - origin = _this$getWheelValuesF2.origin, - delta = _this$getWheelValuesF2.delta; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { - origin: origin, - delta: delta - })); - - _this.fireGestureHandler(); - }; - - _this.onWheelEnd = function () { - _this.state._active = false; - - _this.updateGestureState(_this.getMovement(_this.state.values)); - - _this.fireGestureHandler(); - }; - - return _this; - } - - var _proto = PinchRecognizer.prototype; - - _proto.addBindings = function addBindings() { - // Only try to use gesture events when they are supported and domTarget is set - // as React doesn't support gesture handlers. - if (this.controller.config.domTarget && supportsGestureEvents()) { - this.controller.addBindings('onGestureStart', this.onGestureStart); - this.controller.addBindings('onGestureChange', this.onGestureChange); - this.controller.addBindings(['onGestureEnd', 'onTouchCancel'], this.onGestureEnd); - this.controller.addBindings(['onTouchStart', 'onTouchMove'], this.updateTouchData); - } else { - this.controller.addBindings('onTouchStart', this.onPinchStart); - this.controller.addBindings('onTouchMove', this.onPinchChange); - this.controller.addBindings(['onTouchEnd', 'onTouchCancel'], this.onPinchEnd); - this.controller.addBindings('onWheel', this.onWheel); - } - }; - - return PinchRecognizer; -}(DistanceAngleRecognizer); - -/** - * @public - * - * Pinch hook. - * - * @param {Handler<'pinch'>} handler - the function fired every time the pinch gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and pinch options - * @returns {(...args: any[]) => HookReturnType} - */ - -function usePinch(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - pinch = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - pinch: getInternalDistanceAngleOptions(pinch) - }); - - return useRecognizers({ - pinch: handler - }, [PinchRecognizer], mergedConfig); -} - -var WheelRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { - _inheritsLoose(WheelRecognizer, _CoordinatesRecognize); - - function WheelRecognizer(controller, args) { - var _this; - - _this = _CoordinatesRecognize.call(this, 'wheel', controller, args) || this; - _this.ingKey = 'wheeling'; - _this.debounced = true; - - _this.wheelShouldRun = function (event) { - if (event.ctrlKey && 'pinch' in _this.controller.handlers) return false; - return _this.enabled; - }; - - _this.getValuesFromEvent = function (event) { - var prevValues = _this.state.values; - - var _getWheelEventValues = getWheelEventValues(event), - values = _getWheelEventValues.values; - - return { - values: addV(values, prevValues) - }; - }; - - _this.onWheel = function (event) { - if (!_this.wheelShouldRun(event)) return; - - _this.clearTimeout(); - - _this.setTimeout(_this.onWheelEnd); - - if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); - }; - - _this.onWheelStart = function (event) { - var _this$getValuesFromEv = _this.getValuesFromEvent(event), - values = _this$getValuesFromEv.values; - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { - initial: _this.state.values - }); - - var movementDetection = _this.getMovement(values, startState); - - var delta = movementDetection.delta; - - _this.updateGestureState(_extends({}, startState, {}, movementDetection, { - distance: calculateDistance(delta), - direction: calculateDirection(delta) - })); - - _this.fireGestureHandler(); - }; - - _this.onWheelChange = function (event) { - var genericEventData = getGenericEventData(event); - - _this.updateSharedState(genericEventData); - - var _this$getValuesFromEv2 = _this.getValuesFromEvent(event), - values = _this$getValuesFromEv2.values; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); - - _this.fireGestureHandler(); - }; - - _this.onWheelEnd = function () { - _this.state._active = false; - - _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { - velocities: [0, 0], - velocity: 0 - })); - - _this.fireGestureHandler(); - }; - - return _this; - } - - var _proto = WheelRecognizer.prototype; - - _proto.addBindings = function addBindings() { - this.controller.addBindings('onWheel', this.onWheel); - }; - - return WheelRecognizer; -}(CoordinatesRecognizer); - -/** - * @public - * - * Wheel hook. - * - * @param {Handler<'wheel'>} handler - the function fired every time the wheel gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and wheel options - * @returns {(...args: any[]) => HookReturnType} - */ - -function useWheel(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - wheel = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - wheel: getInternalCoordinatesOptions(wheel) - }); - - return useRecognizers({ - wheel: handler - }, [WheelRecognizer], mergedConfig); -} - -var MoveRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { - _inheritsLoose(MoveRecognizer, _CoordinatesRecognize); - - function MoveRecognizer(controller, args) { - var _this; - - _this = _CoordinatesRecognize.call(this, 'move', controller, args) || this; - _this.ingKey = 'moving'; - _this.debounced = true; - - _this.moveShouldRun = function () { - return _this.enabled; - }; - - _this.onMove = function (event) { - if (!_this.moveShouldRun()) return; - - _this.clearTimeout(); - - _this.setTimeout(_this.onMoveEnd); - - if (!_this.state._active) _this.onMoveStart(event);else _this.onMoveChange(event); - }; - - _this.onMoveStart = function (event) { - var _getPointerEventValue = getPointerEventValues(event), - values = _getPointerEventValue.values; - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); - - _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState))); - - _this.fireGestureHandler(); - }; - - _this.onMoveChange = function (event) { - var genericEventData = getGenericEventData(event); - - _this.updateSharedState(genericEventData); - - var _getPointerEventValue2 = getPointerEventValues(event), - values = _getPointerEventValue2.values; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); - - _this.fireGestureHandler(); - }; - - _this.onMoveEnd = function () { - _this.state._active = false; - - _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { - velocities: [0, 0], - velocity: 0 - })); - - _this.fireGestureHandler(); - }; - - _this.onPointerEnter = function (event) { - _this.controller.state.shared.hovering = true; - if (!_this.controller.config.enabled) return; - - if (_this.controller.config.hover.enabled) { - var _getPointerEventValue3 = getPointerEventValues(event), - values = _getPointerEventValue3.values; - - var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.getGenericPayload(event, true), { - values: values, - active: true, - hovering: true - }); - - _this.controller.handlers.hover(_extends({}, state, {}, _this.mapStateValues(state))); - } - - if ('move' in _this.controller.handlers) _this.onMoveStart(event); - }; - - _this.onPointerLeave = function (event) { - _this.controller.state.shared.hovering = false; - if ('move' in _this.controller.handlers) _this.onMoveEnd(); - - if (_this.controller.config.hover.enabled) { - var _getPointerEventValue4 = getPointerEventValues(event), - values = _getPointerEventValue4.values; - - var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.getGenericPayload(event), { - values: values, - active: false - }); - - _this.controller.handlers.hover(_extends({}, state, {}, _this.mapStateValues(state))); - } - }; - - return _this; - } - - var _proto = MoveRecognizer.prototype; - - _proto.addBindings = function addBindings() { - if (this.controller.config.pointer) { - if ('move' in this.controller.handlers) { - this.controller.addBindings('onPointerMove', this.onMove); - } - - if ('hover' in this.controller.handlers) { - this.controller.addBindings('onPointerEnter', this.onPointerEnter); - this.controller.addBindings('onPointerLeave', this.onPointerLeave); - } - } else { - if ('move' in this.controller.handlers) { - this.controller.addBindings('onMouseMove', this.onMove); - } - - if ('hover' in this.controller.handlers) { - this.controller.addBindings('onMouseEnter', this.onPointerEnter); - this.controller.addBindings('onMouseLeave', this.onPointerLeave); - } - } - }; - - return MoveRecognizer; -}(CoordinatesRecognizer); - -/** - * @public - * - * Move hook. - * - * @param {Handler<'move'>} handler - the function fired every time the move gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and move options - * @returns {(...args: any[]) => HookReturnType} - */ - -function useMove(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - move = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - move: getInternalCoordinatesOptions(move) - }); - - return useRecognizers({ - move: handler - }, [MoveRecognizer], mergedConfig); -} - -/** - * @public - * - * Hover hook. - * - * @param {Handler<'hover'>} handler - the function fired every time the hover gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and hover options - * @returns {(...args: any[]) => HookReturnType} - */ - -function useHover(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - hover = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - hover: _extends({ - enabled: true - }, hover) - }); - - return useRecognizers({ - hover: handler - }, [MoveRecognizer], mergedConfig); -} - -var ScrollRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { - _inheritsLoose(ScrollRecognizer, _CoordinatesRecognize); - - function ScrollRecognizer(controller, args) { - var _this; - - _this = _CoordinatesRecognize.call(this, 'scroll', controller, args) || this; - _this.ingKey = 'scrolling'; - _this.debounced = true; - - _this.scrollShouldRun = function () { - return _this.enabled; - }; - - _this.onScroll = function (event) { - if (!_this.scrollShouldRun()) return; - - _this.clearTimeout(); - - _this.setTimeout(_this.onScrollEnd); - - if (!_this.state._active) _this.onScrollStart(event);else _this.onScrollChange(event); - }; - - _this.onScrollStart = function (event) { - var _getScrollEventValues = getScrollEventValues(event), - values = _getScrollEventValues.values; - - _this.updateSharedState(getGenericEventData(event)); - - var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { - initial: _this.state.values - }); - - var movementDetection = _this.getMovement(values, startState); - - var delta = movementDetection.delta; - - _this.updateGestureState(_extends({}, startState, {}, movementDetection, { - distance: calculateDistance(delta), - direction: calculateDirection(delta) - })); - - _this.fireGestureHandler(); - }; - - _this.onScrollChange = function (event) { - var genericEventData = getGenericEventData(event); - - _this.updateSharedState(genericEventData); - - var _getScrollEventValues2 = getScrollEventValues(event), - values = _getScrollEventValues2.values; - - var kinematics = _this.getKinematics(values, event); - - _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); - - _this.fireGestureHandler(); - }; - - _this.onScrollEnd = function () { - _this.state._active = false; - - _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { - velocities: [0, 0], - velocity: 0 - })); - - _this.fireGestureHandler(); - }; - - return _this; - } - - var _proto = ScrollRecognizer.prototype; - - _proto.addBindings = function addBindings() { - this.controller.addBindings('onScroll', this.onScroll); - }; - - return ScrollRecognizer; -}(CoordinatesRecognizer); - -/** - * @public - * - * Scroll hook. - * - * @param {Handler<'scroll'>} handler - the function fired every time the scroll gesture updates - * @param {(Config | {})} [config={}] - the config object including generic options and scroll options - * @returns {(...args: any[]) => HookReturnType} - */ - -function useScroll(handler, config) { - if (config === void 0) { - config = {}; - } - - var _config = config, - domTarget = _config.domTarget, - eventOptions = _config.eventOptions, - window = _config.window, - scroll = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); - /** - * TODO: at the moment we recompute the config object at every render - * this could probably be optimized - */ - - - var mergedConfig = _extends({}, getInternalGenericOptions({ - domTarget: domTarget, - eventOptions: eventOptions, - window: window - }), { - scroll: getInternalCoordinatesOptions(scroll) - }); - - return useRecognizers({ - scroll: handler - }, [ScrollRecognizer], mergedConfig); -} - -/** - * @public - * - * The most complete gesture hook, allowing support for multiple gestures. - * - * @param {UserHandlersPartial} handlers - an object with on[Gesture] keys containg gesture handlers - * @param {UseGestureConfig} [config={}] - the full config object - * @returns {(...args: any[]) => HookReturnType} - */ - -function useGesture(handlers, config) { - if (config === void 0) { - config = {}; - } - - /** - * If handlers contains {onDragStart, onDrag, onDragEnd, onMoveStart, onMove} - * actions will include 'onDrag' and 'onMove. - */ - var _React$useState = external_this_React_default.a.useState(function () { - return new Set(Object.keys(handlers).map(function (k) { - return k.replace(/End|Start/, ''); - })); - }), - actions = _React$useState[0]; - /** - * Here we compute the derived internal config based on the provided config object. - * We decompose the config into its generic and gesture options and compute each. - * TODO: this is currently done on every render! - */ - - - var _config = config, - drag = _config.drag, - wheel = _config.wheel, - move = _config.move, - scroll = _config.scroll, - pinch = _config.pinch, - hover = _config.hover, - restConfig = _objectWithoutPropertiesLoose(_config, ["drag", "wheel", "move", "scroll", "pinch", "hover"]); - - var mergedConfig = getInternalGenericOptions(restConfig); - var classes = []; - var internalHandlers = {}; // will hold reference to native handlers such as onClick, onMouseDown, etc. - - var _nativeHandlers = _extends({}, handlers); - - if (actions.has('onDrag')) { - classes.push(DragRecognizer); - internalHandlers.drag = includeStartEndHandlers(handlers, 'onDrag', _nativeHandlers); - mergedConfig.drag = getInternalDragOptions(drag); - } - - if (actions.has('onWheel')) { - classes.push(WheelRecognizer); - internalHandlers.wheel = includeStartEndHandlers(handlers, 'onWheel', _nativeHandlers); - mergedConfig.wheel = getInternalCoordinatesOptions(wheel); - } - - if (actions.has('onScroll')) { - classes.push(ScrollRecognizer); - internalHandlers.scroll = includeStartEndHandlers(handlers, 'onScroll', _nativeHandlers); - mergedConfig.scroll = getInternalCoordinatesOptions(scroll); - } - - if (actions.has('onMove')) { - classes.push(MoveRecognizer); - internalHandlers.move = includeStartEndHandlers(handlers, 'onMove', _nativeHandlers); - mergedConfig.move = getInternalCoordinatesOptions(move); - } - - if (actions.has('onPinch')) { - classes.push(PinchRecognizer); - internalHandlers.pinch = includeStartEndHandlers(handlers, 'onPinch', _nativeHandlers); - mergedConfig.pinch = getInternalDistanceAngleOptions(pinch); - } - - if (actions.has('onHover')) { - if (!actions.has('onMove')) classes.push(MoveRecognizer); - internalHandlers.hover = handlers.onHover; - mergedConfig.hover = _extends({ - enabled: true - }, hover); - delete _nativeHandlers.onHover; - } - - return useRecognizers(internalHandlers, classes, mergedConfig, _nativeHandlers); -} -/** - * @private - * - * This utility function will integrate start and end handlers into the regular - * handler function by using first and last conditions. - * - * @param {UserHandlersPartial} handlers - the handlers function object - * @param {HandlerKey} handlerKey - the key for which to integrate start and end handlers - * @returns - */ - -function includeStartEndHandlers(handlers, handlerKey, _nativeHandlers) { - var startKey = handlerKey + 'Start'; - var endKey = handlerKey + 'End'; - delete _nativeHandlers[handlerKey]; - delete _nativeHandlers[startKey]; - delete _nativeHandlers[endKey]; - - var fn = function fn(state) { - var memo = undefined; - if (state.first && startKey in handlers) handlers[startKey](state); - if (handlerKey in handlers) memo = handlers[handlerKey](state); - if (state.last && endKey in handlers) handlers[endKey](state); - return memo; - }; - - return fn; -} - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/index.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -function FlexComponent(_ref, ref) { - var _ref$align = _ref.align, - align = _ref$align === void 0 ? 'center' : _ref$align, - className = _ref.className, - _ref$gap = _ref.gap, - gap = _ref$gap === void 0 ? 2 : _ref$gap, - _ref$justify = _ref.justify, - justify = _ref$justify === void 0 ? 'space-between' : _ref$justify, - _ref$isReversed = _ref.isReversed, - isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["align", "className", "gap", "justify", "isReversed"]); - - var classes = classnames_default()('components-flex', className); - return Object(external_this_wp_element_["createElement"])(Flex, Object(esm_extends["a" /* default */])({}, props, { - align: align, - className: classes, - ref: ref, - gap: gap, - justify: justify, - isReversed: isReversed - })); -} - -var flex_Flex = Object(external_this_wp_element_["forwardRef"])(FlexComponent); -/* harmony default export */ var flex = (flex_Flex); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/state.js - - - -function state_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 state_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { state_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 { state_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var initialStateReducer = function initialStateReducer(state) { - return state; -}; - -var initialInputControlState = { - _event: {}, - error: null, - initialValue: '', - isDirty: false, - isDragEnabled: false, - isDragging: false, - isPressEnterToChange: false, - value: '' -}; -var actionTypes = { - CHANGE: 'CHANGE', - COMMIT: 'COMMIT', - DRAG_END: 'DRAG_END', - DRAG_START: 'DRAG_START', - DRAG: 'DRAG', - INVALIDATE: 'INVALIDATE', - PRESS_DOWN: 'PRESS_DOWN', - PRESS_ENTER: 'PRESS_ENTER', - PRESS_UP: 'PRESS_UP', - RESET: 'RESET', - UPDATE: 'UPDATE' -}; -var inputControlActionTypes = actionTypes; -/** - * Prepares initialState for the reducer. - * - * @param {Object} initialState The initial state. - * @return {Object} Prepared initialState for the reducer - */ - -function mergeInitialState() { - var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialInputControlState; - var value = initialState.value; - return state_objectSpread({}, initialInputControlState, {}, initialState, { - initialValue: value - }); -} -/** - * Composes multiple stateReducers into a single stateReducer, building - * the pipeline to control the flow for state and actions. - * - * @param {...Function} fns State reducers. - * @return {Function} The single composed stateReducer. - */ - - -var state_composeStateReducers = function composeStateReducers() { - for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { - fns[_key] = arguments[_key]; - } - - return function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return fns.reduceRight(function (state, fn) { - var fnState = fn.apply(void 0, args); - return Object(external_this_lodash_["isEmpty"])(fnState) ? state : state_objectSpread({}, state, {}, fnState); - }, {}); - }; -}; -/** - * Creates a reducer that opens the channel for external state subscription - * and modification. - * - * This technique uses the "stateReducer" design pattern: - * https://kentcdodds.com/blog/the-state-reducer-pattern/ - * - * @param {Function} composedStateReducers A custom reducer that can subscribe and modify state. - * @return {Function} The reducer. - */ - -function inputControlStateReducer(composedStateReducers) { - return function (state, action) { - var nextState = state_objectSpread({}, state); - - var type = action.type, - payload = action.payload; - - switch (type) { - /** - * Keyboard events - */ - case actionTypes.PRESS_UP: - nextState.isDirty = false; - break; - - case actionTypes.PRESS_DOWN: - nextState.isDirty = false; - break; - - /** - * Drag events - */ - - case actionTypes.DRAG_START: - nextState.isDragging = true; - break; - - case actionTypes.DRAG_END: - nextState.isDragging = false; - break; - - /** - * Input events - */ - - case actionTypes.CHANGE: - nextState.error = null; - nextState.value = payload.value; - - if (state.isPressEnterToChange) { - nextState.isDirty = true; - } - - break; - - case actionTypes.COMMIT: - nextState.value = payload.value; - nextState.isDirty = false; - break; - - case actionTypes.RESET: - nextState.error = null; - nextState.isDirty = false; - nextState.value = payload.value || state.initialValue; - break; - - case actionTypes.UPDATE: - if (payload.value !== state.value) { - nextState.value = payload.value; - nextState.isDirty = false; - } - - break; - - /** - * Validation - */ - - case actionTypes.INVALIDATE: - nextState.error = payload.error; - break; - } - - if (payload.event) { - nextState._event = payload.event; - } - /** - * Send the nextState + action to the composedReducers via - * this "bridge" mechanism. This allows external stateReducers - * to hook into actions, and modify state if needed. - */ - - - return composedStateReducers(nextState, action); - }; -} -/** - * A custom hook that connects and external stateReducer with an internal - * reducer. This hook manages the internal state of InputControl. - * However, by connecting an external stateReducer function, other - * components can react to actions as well as modify state before it is - * applied. - * - * This technique uses the "stateReducer" design pattern: - * https://kentcdodds.com/blog/the-state-reducer-pattern/ - * - * @param {Function} stateReducer An external state reducer. - * @param {Object} initialState The initial state for the reducer. - * @return {Object} State, dispatch, and a collection of actions. - */ - - -function useInputControlStateReducer() { - var stateReducer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialStateReducer; - var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : initialInputControlState; - - var _useReducer = Object(external_this_wp_element_["useReducer"])(inputControlStateReducer(stateReducer), mergeInitialState(initialState)), - _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), - state = _useReducer2[0], - dispatch = _useReducer2[1]; - - var createChangeEvent = function createChangeEvent(type) { - return function (nextValue, event) { - /** - * Persist allows for the (Synthetic) event to be used outside of - * this function call. - * https://reactjs.org/docs/events.html#event-pooling - */ - if (event && event.persist) { - event.persist(); - } - - dispatch({ - type: type, - payload: { - value: nextValue, - event: event - } - }); - }; - }; - - var createKeyEvent = function createKeyEvent(type) { - return function (event) { - /** - * Persist allows for the (Synthetic) event to be used outside of - * this function call. - * https://reactjs.org/docs/events.html#event-pooling - */ - if (event && event.persist) { - event.persist(); - } - - dispatch({ - type: type, - payload: { - event: event - } - }); - }; - }; - - var createDragEvent = function createDragEvent(type) { - return function (dragProps) { - dispatch({ - type: type, - payload: dragProps - }); - }; - }; - /** - * Actions for the reducer - */ - - - var change = createChangeEvent(actionTypes.CHANGE); - var inValidate = createChangeEvent(actionTypes.INVALIDATE); - var reset = createChangeEvent(actionTypes.RESET); - var commit = createChangeEvent(actionTypes.COMMIT); - var update = createChangeEvent(actionTypes.UPDATE); - var dragStart = createDragEvent(actionTypes.DRAG_START); - var drag = createDragEvent(actionTypes.DRAG); - var dragEnd = createDragEvent(actionTypes.DRAG_END); - var pressUp = createKeyEvent(actionTypes.PRESS_UP); - var pressDown = createKeyEvent(actionTypes.PRESS_DOWN); - var pressEnter = createKeyEvent(actionTypes.PRESS_ENTER); - return { - change: change, - commit: commit, - dispatch: dispatch, - drag: drag, - dragEnd: dragEnd, - dragStart: dragStart, - inValidate: inValidate, - pressDown: pressDown, - pressEnter: pressEnter, - pressUp: pressUp, - reset: reset, - state: state, - update: update - }; -} - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js -function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); -} -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/font-family.js -var fontFamily = "font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;"; - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/emotion-css.js -/** - * External dependencies - */ - -/* harmony default export */ var emotion_css = (css_browser_esm); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/text-mixins.js - - -function _templateObject9() { - var data = _taggedTemplateLiteral(["\n\t", "\n\t", "\n"]); - - _templateObject9 = function _templateObject9() { - return data; - }; - - return data; -} - -function _templateObject8() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject8 = function _templateObject8() { - return data; - }; - - return data; -} - -function _templateObject7() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject7 = function _templateObject7() { - return data; - }; - - return data; -} - -function _templateObject6() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject6 = function _templateObject6() { - return data; - }; - - return data; -} - -function _templateObject5() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject5 = function _templateObject5() { - return data; - }; - - return data; -} - -function _templateObject4() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject4 = function _templateObject4() { - return data; - }; - - return data; -} - -function _templateObject3() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject3 = function _templateObject3() { - return data; - }; - - return data; -} - -function _templateObject2() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject2 = function _templateObject2() { - return data; - }; - - return data; -} - -function _templateObject() { - var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); - - _templateObject = function _templateObject() { - return data; - }; - - return data; -} - -/** - * Internal dependencies - */ - - -var fontWeightNormal = "font-weight: 400;"; -var fontWeightSemibold = "font-weight: 600;"; -var text_mixins_title = "\n ".concat(fontWeightNormal, "\n"); -var titleLarge = "\n\tfont-size: 32px;\n\tline-height: 40px;\n"; -var titleMedium = "\n\tfont-size: 24px;\n\tline-height: 32px;\n"; -var titleSmall = "\n\tfont-size: 20px;\n\tline-height: 28px;\n"; -var subtitle = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 14px;\n\tline-height: 20px;\n"); -var subtitleLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; -var subtitleSmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; -var text_mixins_body = "\n\t".concat(fontWeightNormal, "\n"); -var bodyLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; -var bodySmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; -var text_mixins_button = "\n ".concat(fontWeightSemibold, "\n font-size: 14px;\n line-height: 20px;\n"); -var caption = "\n\t".concat(fontWeightNormal, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); -var text_mixins_label = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); -/** - * @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'} TextVariant - */ - -/** - * @param {TextVariant} variantName - */ - -var text_mixins_variant = function variant() { - var variantName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'body'; - - switch (variantName) { - case 'title.large': - return emotion_css(_templateObject(), text_mixins_title, titleLarge); - - case 'title.medium': - return emotion_css(_templateObject2(), text_mixins_title, titleMedium); - - case 'title.small': - return emotion_css(_templateObject3(), text_mixins_title, titleSmall); - - case 'subtitle': - return emotion_css(_templateObject4(), subtitle, subtitleLarge); - - case 'subtitle.small': - return emotion_css(_templateObject5(), subtitle, subtitleSmall); - - case 'body': - return emotion_css(_templateObject6(), text_mixins_body); - - case 'body.large': - return emotion_css(_templateObject7(), text_mixins_body, bodyLarge); - - case 'body.small': - return emotion_css(_templateObject8(), text_mixins_body, bodySmall); - - case 'button': - return text_mixins_button; - - case 'caption': - return caption; - - case 'label': - return text_mixins_label; - } -}; -/** - * @typedef {Object} TextProps - * @property {TextVariant} variant one of TextVariant to be used - */ - -/** - * @param {TextProps} props - */ - - -var text_mixins_text = function text(props) { - return emotion_css(_templateObject9(), fontFamily, text_mixins_variant(props.variant)); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/index.js - - -/** - * Internal dependencies - */ - - -var Text = styled_base_browser_esm("p", { - target: "e15wbhsk0", - label: "Text" -})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n", text_mixins_text, true ? "" : undefined); - -/* harmony default export */ var build_module_text = (Text); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js - - - - -function input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - -/** - * External dependencies - */ - - -/** - * Internal dependencies - */ - - -var FLOATING_LABEL_TRANSITION_SPEED = '60ms'; - -var input_control_styles_rootFloatLabelStyles = function rootFloatLabelStyles(_ref3) { - var isFloatingLabel = _ref3.isFloatingLabel; - var paddingTop = isFloatingLabel ? 5 : 0; - return /*#__PURE__*/css_browser_esm({ - paddingTop: paddingTop - }, true ? "" : undefined); -}; - -var input_control_styles_ref = true ? { - name: "r6z5ec", - styles: "z-index:1;" -} : undefined; - -var rootFocusedStyles = function rootFocusedStyles(_ref4) { - var isFocused = _ref4.isFocused; - if (!isFocused) return ''; - return input_control_styles_ref; -}; - -var input_control_styles_Root = styled_base_browser_esm("div", { - target: "e1cr7zh10", - label: "Root" -})("box-sizing:border-box;position:relative;border-radius:2px;", input_control_styles_rootFloatLabelStyles, ";", rootFocusedStyles, ";" + ( true ? "" : undefined)); - -var input_control_styles_containerDisabledStyle = function containerDisabledStyle(_ref5) { - var disabled = _ref5.disabled; - var backgroundColor = disabled ? colors_color('ui.backgroundDisabled') : colors_color('ui.background'); - return /*#__PURE__*/css_browser_esm({ - backgroundColor: backgroundColor - }, true ? "" : undefined); -}; - -var Container = styled_base_browser_esm("div", { - target: "e1cr7zh11", - label: "Container" -})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;position:relative;", input_control_styles_containerDisabledStyle, ";" + ( true ? "" : undefined)); - -var input_control_styles_disabledStyles = function disabledStyles(_ref6) { - var disabled = _ref6.disabled; - if (!disabled) return ''; - return /*#__PURE__*/css_browser_esm({ - color: colors_color('ui.textDisabled') - }, true ? "" : undefined); -}; - -var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref7) { - var size = _ref7.size; - var sizes = { - default: '13px', - small: '11px' - }; - var fontSize = sizes[size]; - var fontSizeMobile = '16px'; - if (!fontSize) return ''; - return /*#__PURE__*/css_browser_esm("font-size:", fontSizeMobile, ";@media ( min-width:600px ){font-size:", fontSize, ";}" + ( true ? "" : undefined)); -}; - -var input_control_styles_sizeStyles = function sizeStyles(_ref8) { - var size = _ref8.size; - var sizes = { - default: { - height: 30, - lineHeight: 1, - minHeight: 30 - }, - small: { - height: 24, - lineHeight: 1, - minHeight: 24 - } - }; - var style = sizes[size] || sizes.default; - return /*#__PURE__*/css_browser_esm(style, true ? "" : undefined); -}; - -var input_control_styles_placeholderStyles = function placeholderStyles(_ref9) { - var isFilled = _ref9.isFilled, - isFloating = _ref9.isFloating, - isFloatingLabel = _ref9.isFloatingLabel; - var opacity = 1; - - if (isFloatingLabel) { - if (!isFilled && !isFloating) { - opacity = 0; - } - } - - return /*#__PURE__*/css_browser_esm("&::placeholder{opacity:", opacity, ";}&::-webkit-input-placeholder{line-height:normal;}" + ( true ? "" : undefined)); -}; - -var input_control_styles_dragStyles = function dragStyles(_ref10) { - var isDragging = _ref10.isDragging, - dragCursor = _ref10.dragCursor; - var defaultArrowStyles = ''; - var activeDragCursorStyles = ''; - - if (isDragging) { - defaultArrowStyles = /*#__PURE__*/css_browser_esm("cursor:", dragCursor, ";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" + ( true ? "" : undefined)); - } - - if (isDragging && dragCursor) { - activeDragCursorStyles = /*#__PURE__*/css_browser_esm("&:active{cursor:", dragCursor, ";}" + ( true ? "" : undefined)); - } - - return /*#__PURE__*/css_browser_esm(defaultArrowStyles, ";", activeDragCursorStyles, ";" + ( true ? "" : undefined)); -}; // TODO: Resolve need to use &&& to increase specificity -// https://github.com/WordPress/gutenberg/issues/18483 - - -var input_control_styles_Input = styled_base_browser_esm("input", { - target: "e1cr7zh12", - label: "Input" -})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;outline:none;padding-left:8px;padding-right:8px;width:100%;", input_control_styles_dragStyles, ";", input_control_styles_disabledStyles, ";", input_control_styles_fontSizeStyles, ";", input_control_styles_sizeStyles, ";", input_control_styles_placeholderStyles, ";}" + ( true ? "" : undefined)); - -var input_control_styles_laberColor = function laberColor(_ref11) { - var isFloatingLabel = _ref11.isFloatingLabel, - isFilled = _ref11.isFilled, - isFloating = _ref11.isFloating; - var isPlaceholder = isFloatingLabel && !isFilled; - var textColor = isPlaceholder || isFloating ? colors_color('ui.textDisabled') : 'currentColor'; - return /*#__PURE__*/css_browser_esm({ - color: textColor - }, true ? "" : undefined); -}; - -var input_control_styles_labelFontSize = function labelFontSize(_ref12) { - var isFloatingLabel = _ref12.isFloatingLabel, - size = _ref12.size; - var sizes = { - default: '13px', - small: '11px' - }; - var fontSize = sizes[size]; - var lineHeight = isFloatingLabel ? 1.2 : null; - return /*#__PURE__*/css_browser_esm({ - fontSize: fontSize, - lineHeight: lineHeight - }, true ? "" : undefined); -}; - -var input_control_styles_labelPosition = function labelPosition(_ref13) { - var isFloatingLabel = _ref13.isFloatingLabel, - isFloating = _ref13.isFloating, - size = _ref13.size; - var paddingBottom = isFloatingLabel ? 0 : 4; - var position = isFloatingLabel ? 'absolute' : null; - var pointerEvents = isFloating ? null : 'none'; - var isSmall = size === 'small'; - var offsetTop = isSmall ? 1 : 2; - var offset = isSmall ? '-1px' : '-3px'; - var marginTop = isFloating ? 0 : offsetTop; - var marginLeft = isFloatingLabel ? 8 : 0; - var transform = isFloating ? "translate( 0, calc(-100% + ".concat(offset, ") ) scale( 0.75 )") : 'translate( 0, -50%) scale(1)'; - - if (!isFloatingLabel) { - transform = null; - } - - var transition = isFloatingLabel ? "transform ".concat(FLOATING_LABEL_TRANSITION_SPEED, " linear") : null; - return /*#__PURE__*/css_browser_esm({ - marginTop: marginTop, - paddingBottom: paddingBottom, - position: position, - pointerEvents: pointerEvents, - transition: transition, - transform: transform - }, rtl({ - marginLeft: marginLeft - })(), rtl({ - transformOrigin: 'top left' - }, { - transformOrigin: 'top right' - })(), true ? "" : undefined); -}; - -var input_control_styles_ref2 = true ? { - name: "fjfd5j", - styles: "max-width:calc( 100% - 10px );overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" -} : undefined; - -var labelTruncation = function labelTruncation(_ref14) { - var isFloating = _ref14.isFloating; - if (isFloating) return ''; - return input_control_styles_ref2; -}; - -var BaseLabel = /*#__PURE__*/styled_base_browser_esm(build_module_text, { - target: "e1cr7zh13", - label: "BaseLabel" -})("&&&{box-sizing:border-box;display:block;margin:0;max-width:100%;padding:0;pointer-events:none;top:50%;transition:transform ", FLOATING_LABEL_TRANSITION_SPEED, " linear,max-width ", FLOATING_LABEL_TRANSITION_SPEED, " linear;z-index:1;", input_control_styles_laberColor, ";", input_control_styles_labelFontSize, ";", input_control_styles_labelPosition, ";", labelTruncation, ";", reduceMotion('transition'), ";", rtl({ - left: 0 -}), "}" + ( true ? "" : undefined)); - -var input_control_styles_Label = function Label(props) { - return Object(external_this_wp_element_["createElement"])(BaseLabel, Object(esm_extends["a" /* default */])({}, props, { - as: "label" - })); -}; - -var input_control_styles_fieldsetTopStyles = function fieldsetTopStyles(_ref15) { - var isFloatingLabel = _ref15.isFloatingLabel; - var top = isFloatingLabel ? -5 : 0; - return /*#__PURE__*/css_browser_esm({ - top: top - }, true ? "" : undefined); -}; - -var input_control_styles_fieldsetFocusedStyles = function fieldsetFocusedStyles(_ref16) { - var disabled = _ref16.disabled, - isFocused = _ref16.isFocused; - var borderColor = isFocused ? colors_color('ui.borderFocus') : colors_color('ui.border'); - - if (disabled) { - borderColor = 'ui.borderDisabled'; - } - - var borderWidth = isFocused ? 2 : 1; - var borderStyle = 'solid'; - return /*#__PURE__*/css_browser_esm({ - borderColor: borderColor, - borderStyle: borderStyle, - borderWidth: borderWidth - }, true ? "" : undefined); -}; - -var Fieldset = styled_base_browser_esm("fieldset", { - target: "e1cr7zh14", - label: "Fieldset" -})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;", input_control_styles_fieldsetFocusedStyles, ";", input_control_styles_fieldsetTopStyles, ";", rtl({ - paddingLeft: 2 -}), "}" + ( true ? "" : undefined)); - -var input_control_styles_legendSize = function legendSize(_ref17) { - var isFloating = _ref17.isFloating, - size = _ref17.size; - var maxWidth = isFloating ? 1000 : 0.01; - var sizes = { - default: 9.75, - small: 8.25 - }; - var fontSize = sizes[size]; - return /*#__PURE__*/css_browser_esm({ - fontSize: fontSize, - maxWidth: maxWidth - }, true ? "" : undefined); -}; - -var Legend = styled_base_browser_esm("legend", { - target: "e1cr7zh15", - label: "Legend" -})("&&&{box-sizing:border-box;display:block;height:11px;line-height:11px;margin:0;padding:0;transition:max-width ", FLOATING_LABEL_TRANSITION_SPEED, " linear;visibility:hidden;width:auto;", input_control_styles_legendSize, ";", reduceMotion('transition'), ";}" + ( true ? "" : undefined)); - -var BaseLegendText = /*#__PURE__*/styled_base_browser_esm(build_module_text, { - target: "e1cr7zh16", - label: "BaseLegendText" -})("box-sizing:border-box;display:inline-block;", rtl({ - paddingLeft: 4, - paddingRight: 5 -}), true ? "" : undefined); - -var input_control_styles_LegendText = function LegendText(props) { - return Object(external_this_wp_element_["createElement"])(BaseLegendText, Object(esm_extends["a" /* default */])({}, props, { - as: "span" - })); -}; -var Suffix = styled_base_browser_esm("span", { - target: "e1cr7zh17", - label: "Suffix" -})( true ? { - name: "1pxuk39", - styles: "box-sizing:border-box;display:block;" -} : undefined); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/backdrop.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -function Backdrop(_ref) { - var _ref$disabled = _ref.disabled, - disabled = _ref$disabled === void 0 ? false : _ref$disabled, - _ref$isFloating = _ref.isFloating, - isFloating = _ref$isFloating === void 0 ? false : _ref$isFloating, - _ref$isFloatingLabel = _ref.isFloatingLabel, - isFloatingLabel = _ref$isFloatingLabel === void 0 ? false : _ref$isFloatingLabel, - _ref$isFocused = _ref.isFocused, - isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused, - label = _ref.label, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 'default' : _ref$size; - return Object(external_this_wp_element_["createElement"])(Fieldset, { - "aria-hidden": "true", - className: "components-input-control__backdrop", - disabled: disabled, - isFloatingLabel: isFloatingLabel, - isFocused: isFocused - }, isFloatingLabel && Object(external_this_wp_element_["createElement"])(Legend, { - "aria-hidden": "true", - className: "components-input-control__backdrop-label", - isFloating: isFloating, - size: size - }, Object(external_this_wp_element_["createElement"])(input_control_styles_LegendText, { - className: "components-input-control__backdrop-text" - }, label))); -} - -var MemoizedBackdrop = Object(external_this_wp_element_["memo"])(Backdrop); -/* harmony default export */ var backdrop = (MemoizedBackdrop); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/utils.js -/** - * WordPress dependencies - */ - -/** - * Gets a CSS cursor value based on a drag direction. - * - * @param {string} dragDirection The drag direction. - * @return {string} The CSS cursor value. - */ - -function getDragCursor(dragDirection) { - var dragCursor = 'ns-resize'; - - switch (dragDirection) { - case 'n': - case 's': - dragCursor = 'ns-resize'; - break; - - case 'e': - case 'w': - dragCursor = 'ew-resize'; - break; - } - - return dragCursor; -} -/** - * Custom hook that renders a drag cursor when dragging. - * - * @param {boolean} isDragging The dragging state. - * @param {string} dragDirection The drag direction. - * - * @return {string} The CSS cursor value. - */ - -function useDragCursor(isDragging, dragDirection) { - var dragCursor = getDragCursor(dragDirection); - Object(external_this_wp_element_["useEffect"])(function () { - if (isDragging) { - document.documentElement.style.cursor = dragCursor; - document.documentElement.style.pointerEvents = 'none'; - } else { - document.documentElement.style.cursor = null; - document.documentElement.style.pointerEvents = null; - } - }, [isDragging]); - return dragCursor; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/values.js -/** - * Determines if a value is null or undefined. - * - * @param {any} value The value to check. - * @return {boolean} Whether value is null or undefined. - */ -function isValueDefined(value) { - return value !== undefined && value !== null; -} -/** - * Determines if a value is empty, null, or undefined. - * - * @param {any} value The value to check. - * @return {boolean} Whether value is empty. - */ - -function isValueEmpty(value) { - var isEmptyString = value === ''; - return !isValueDefined(value) || isEmptyString; -} -/** - * Attempts to get a defined/non-null value from a collection of arguments. - * - * @param {Array} values Values to derive from. - * @param {any} fallbackValue Fallback value if there are no defined values. - * @return {any} A defined value or the fallback value. - */ - -function getDefinedValue() { - var _values$find; - - var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var fallbackValue = arguments.length > 1 ? arguments[1] : undefined; - return (_values$find = values.find(isValueDefined)) !== null && _values$find !== void 0 ? _values$find : fallbackValue; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - -function InputField(_ref, ref) { - var _ref$disabled = _ref.disabled, - disabled = _ref$disabled === void 0 ? false : _ref$disabled, - _ref$dragDirection = _ref.dragDirection, - dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, - _ref$dragThreshold = _ref.dragThreshold, - dragThreshold = _ref$dragThreshold === void 0 ? 10 : _ref$dragThreshold, - id = _ref.id, - _ref$isDragEnabled = _ref.isDragEnabled, - isDragEnabled = _ref$isDragEnabled === void 0 ? false : _ref$isDragEnabled, - _ref$isFloating = _ref.isFloating, - isFloating = _ref$isFloating === void 0 ? false : _ref$isFloating, - _ref$isFloatingLabelS = _ref.isFloatingLabelSet, - isFloatingLabelSet = _ref$isFloatingLabelS === void 0 ? false : _ref$isFloatingLabelS, - _ref$isPressEnterToCh = _ref.isPressEnterToChange, - isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, - _ref$onBlur = _ref.onBlur, - onBlur = _ref$onBlur === void 0 ? external_this_lodash_["noop"] : _ref$onBlur, - _ref$onChange = _ref.onChange, - onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, - _ref$onDrag = _ref.onDrag, - onDrag = _ref$onDrag === void 0 ? external_this_lodash_["noop"] : _ref$onDrag, - _ref$onDragEnd = _ref.onDragEnd, - onDragEnd = _ref$onDragEnd === void 0 ? external_this_lodash_["noop"] : _ref$onDragEnd, - _ref$onDragStart = _ref.onDragStart, - onDragStart = _ref$onDragStart === void 0 ? external_this_lodash_["noop"] : _ref$onDragStart, - _ref$onFocus = _ref.onFocus, - onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, - _ref$onKeyDown = _ref.onKeyDown, - onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, - onUpdateValue = _ref.onUpdateValue, - _ref$onValidate = _ref.onValidate, - onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 'default' : _ref$size, - _ref$stateReducer = _ref.stateReducer, - stateReducer = _ref$stateReducer === void 0 ? function (state) { - return state; - } : _ref$stateReducer, - valueProp = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "dragDirection", "dragThreshold", "id", "isDragEnabled", "isFloating", "isFloatingLabelSet", "isPressEnterToChange", "onBlur", "onChange", "onDrag", "onDragEnd", "onDragStart", "onFocus", "onKeyDown", "onUpdateValue", "onValidate", "size", "stateReducer", "value"]); - - var _useInputControlState = useInputControlStateReducer(stateReducer, { - isDragEnabled: isDragEnabled, - value: valueProp, - isPressEnterToChange: isPressEnterToChange - }), - state = _useInputControlState.state, - change = _useInputControlState.change, - commit = _useInputControlState.commit, - drag = _useInputControlState.drag, - dragEnd = _useInputControlState.dragEnd, - dragStart = _useInputControlState.dragStart, - invalidate = _useInputControlState.invalidate, - pressDown = _useInputControlState.pressDown, - pressEnter = _useInputControlState.pressEnter, - pressUp = _useInputControlState.pressUp, - reset = _useInputControlState.reset, - update = _useInputControlState.update; - - var _event = state._event, - value = state.value, - isDragging = state.isDragging, - isDirty = state.isDirty; - var valueRef = Object(external_this_wp_element_["useRef"])(value); - var dragCursor = useDragCursor(isDragging, dragDirection); - Object(external_this_wp_element_["useEffect"])(function () { - /** - * Handles syncing incoming value changes with internal state. - * This effectively enables a "controlled" state. - * https://reactjs.org/docs/forms.html#controlled-components - */ - if (valueProp !== valueRef.current) { - update(valueProp); - valueRef.current = valueProp; // Quick return to avoid firing the onChange callback - - return; - } - /** - * Fires the onChange callback when internal state value changes. - */ - - - if (value !== valueRef.current && !isDirty) { - onChange(value, { - event: _event - }); - onUpdateValue(!isValueEmpty(value)); - valueRef.current = value; - } - }, [value, isDirty, valueProp]); - - var handleOnBlur = function handleOnBlur(event) { - onBlur(event); - /** - * If isPressEnterToChange is set, this commits the value to - * the onChange callback. - */ - - if (isPressEnterToChange && isDirty) { - if (!isValueEmpty(value)) { - handleOnCommit({ - target: { - value: value - } - }, event); - } else { - reset(valueProp); - } - } - }; - - var handleOnFocus = function handleOnFocus(event) { - onFocus(event); - }; - - var handleOnChange = function handleOnChange(event) { - var nextValue = event.target.value; - change(nextValue, event); - }; - - var handleOnCommit = function handleOnCommit(event) { - var nextValue = event.target.value; - - try { - onValidate(nextValue, { - event: event - }); - commit(nextValue, event); - } catch (err) { - invalidate(err, { - event: event - }); - } - }; - - var handleOnKeyDown = function handleOnKeyDown(event) { - var keyCode = event.keyCode; - onKeyDown(event); - - switch (keyCode) { - case external_this_wp_keycodes_["UP"]: - pressUp(event); - break; - - case external_this_wp_keycodes_["DOWN"]: - pressDown(event); - break; - - case external_this_wp_keycodes_["ENTER"]: - pressEnter(event); - - if (isPressEnterToChange) { - event.preventDefault(); - handleOnCommit(event); - } - - break; - } - }; - - var dragGestureProps = useDrag(function (dragProps) { - var distance = dragProps.distance, - dragging = dragProps.dragging, - event = dragProps.event; - if (!isDragEnabled) return; - if (!distance) return; - event.stopPropagation(); - /** - * Quick return if no longer dragging. - * This prevents unnecessary value calculations. - */ - - if (!dragging) { - onDragEnd(dragProps); - dragEnd(dragProps); - return; - } - - onDrag(dragProps); - drag(dragProps); - - if (!isDragging) { - onDragStart(dragProps); - dragStart(dragProps); - } - }, { - threshold: dragThreshold, - enabled: isDragEnabled - }); - return Object(external_this_wp_element_["createElement"])(input_control_styles_Input, Object(esm_extends["a" /* default */])({}, props, dragGestureProps(), { - className: "components-input-control__input", - disabled: disabled, - dragCursor: dragCursor, - isDragging: isDragging, - id: id, - isFloating: isFloating, - isFloatingLabel: isFloatingLabelSet, - onBlur: handleOnBlur, - onChange: handleOnChange, - onFocus: handleOnFocus, - onKeyDown: handleOnKeyDown, - ref: ref, - size: size, - value: value - })); -} - -var ForwardedComponent = Object(external_this_wp_element_["forwardRef"])(InputField); -/* harmony default export */ var input_field = (ForwardedComponent); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/label.js - - - - -/** - * Internal dependencies - */ - - -function label_Label(_ref) { - var children = _ref.children, - hideLabelFromVision = _ref.hideLabelFromVision, - htmlFor = _ref.htmlFor, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "hideLabelFromVision", "htmlFor"]); - - if (!children) return null; - - if (hideLabelFromVision) { - return Object(external_this_wp_element_["createElement"])(visually_hidden, { - as: "label", - htmlFor: htmlFor - }, children); - } - - return Object(external_this_wp_element_["createElement"])(input_control_styles_Label, Object(esm_extends["a" /* default */])({ - htmlFor: htmlFor - }, props), children); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/index.js - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - - -function useUniqueId(idProp) { - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InputControl); - var id = "inspector-input-control-".concat(instanceId); - return idProp || id; -} - -function InputControl(_ref, ref) { - var _ref$__unstableStateR = _ref.__unstableStateReducer, - stateReducer = _ref$__unstableStateR === void 0 ? function (state) { - return state; - } : _ref$__unstableStateR, - children = _ref.children, - className = _ref.className, - _ref$disabled = _ref.disabled, - disabled = _ref$disabled === void 0 ? false : _ref$disabled, - _ref$hideLabelFromVis = _ref.hideLabelFromVision, - hideLabelFromVision = _ref$hideLabelFromVis === void 0 ? false : _ref$hideLabelFromVis, - idProp = _ref.id, - _ref$isPressEnterToCh = _ref.isPressEnterToChange, - isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, - _ref$isFloatingLabel = _ref.isFloatingLabel, - isFloatingLabel = _ref$isFloatingLabel === void 0 ? false : _ref$isFloatingLabel, - label = _ref.label, - _ref$onBlur = _ref.onBlur, - onBlur = _ref$onBlur === void 0 ? external_this_lodash_["noop"] : _ref$onBlur, - _ref$onChange = _ref.onChange, - onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, - _ref$onFocus = _ref.onFocus, - onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, - _ref$onValidate = _ref.onValidate, - onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, - _ref$onKeyDown = _ref.onKeyDown, - onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 'default' : _ref$size, - suffix = _ref.suffix, - value = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "children", "className", "disabled", "hideLabelFromVision", "id", "isPressEnterToChange", "isFloatingLabel", "label", "onBlur", "onChange", "onFocus", "onValidate", "onKeyDown", "size", "suffix", "value"]); - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isFocused = _useState2[0], - setIsFocused = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(!isValueEmpty(value)), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isFilled = _useState4[0], - setIsFilled = _useState4[1]; - - var id = useUniqueId(idProp); - var classes = classnames_default()('components-input-control', className); - - var handleOnBlur = function handleOnBlur(event) { - onBlur(event); - setIsFocused(false); - }; - - var handleOnFocus = function handleOnFocus(event) { - onFocus(event); - setIsFocused(true); - }; - - var isInputFilled = isFilled || !isValueEmpty(value); - var isFloating = isFloatingLabel ? isInputFilled || isFocused : false; - var isFloatingLabelSet = !hideLabelFromVision && isFloatingLabel && label; - return Object(external_this_wp_element_["createElement"])(input_control_styles_Root, { - className: classes, - isFloatingLabel: isFloatingLabelSet, - isFocused: isFocused - }, Object(external_this_wp_element_["createElement"])(label_Label, { - className: "components-input-control__label", - hideLabelFromVision: hideLabelFromVision, - htmlFor: id, - isFilled: isFilled, - isFloating: isFloating, - isFloatingLabel: isFloatingLabel, - size: size - }, label), Object(external_this_wp_element_["createElement"])(Container, { - className: "components-input-control__container", - disabled: disabled, - isFocused: isFocused - }, Object(external_this_wp_element_["createElement"])(input_field, Object(esm_extends["a" /* default */])({}, props, { - className: "components-input-control__input", - disabled: disabled, - id: id, - isFloating: isFloating, - isFloatingLabelSet: isFloatingLabelSet, - isPressEnterToChange: isPressEnterToChange, - onBlur: handleOnBlur, - onChange: onChange, - onFocus: handleOnFocus, - onKeyDown: onKeyDown, - onUpdateValue: setIsFilled, - onValidate: onValidate, - ref: ref, - setIsFocused: setIsFocused, - size: size, - stateReducer: stateReducer, - value: value - })), suffix && Object(external_this_wp_element_["createElement"])(Suffix, { - className: "components-input-control__suffix" - }, suffix), Object(external_this_wp_element_["createElement"])(backdrop, { - "aria-hidden": "true", - disabled: disabled, - isFloating: isFloating, - isFloatingLabel: isFloatingLabelSet, - isFocused: isFocused, - label: label, - size: size - }), children)); -} -/* harmony default export */ var input_control = (Object(external_this_wp_element_["forwardRef"])(InputControl)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/styles/number-control-styles.js - - -function number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - -/** - * External dependencies - */ - - -/** - * Internal dependencies - */ - - -var number_control_styles_ref = true ? { - name: "1b9wwt5", - styles: "&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" -} : undefined; - -var htmlArrowStyles = function htmlArrowStyles(_ref2) { - var hideHTMLArrows = _ref2.hideHTMLArrows; - if (!hideHTMLArrows) return ""; - return number_control_styles_ref; -}; - -var number_control_styles_Input = /*#__PURE__*/styled_base_browser_esm(input_control, { - target: "ep48uk90", - label: "Input" -})(htmlArrowStyles, ";" + ( true ? "" : undefined)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/math.js -/** - * External dependencies - */ - -/** - * Parses and retrieves a number value. - * - * @param {any} value The incoming value. - * - * @return {number} The parsed number value. - */ - -function getNumber(value) { - var number = Number(value); - return isNaN(number) ? 0 : number; -} -/** - * Safely adds 2 values. - * - * @param {number|string} args Values to add together. - * - * @return {number} The sum of values. - */ - -function add() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return args.reduce(function (sum, arg) { - return sum + getNumber(arg); - }, 0); -} -/** - * Safely subtracts 2 values. - * - * @param {number|string} args Values to subtract together. - * - * @return {number} The difference of the 2 values. - */ - -function subtract() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return args.reduce(function (diff, arg, index) { - var value = getNumber(arg); - return index === 0 ? value : diff - value; - }); -} -/** - * Determines the decimal position of a number value. - * - * @param {number} value The number to evaluate. - * - * @return {number} The number of decimal places. - */ - -function getPrecision(value) { - var split = (value + '').split('.'); - return split[1] !== undefined ? split[1].length : 0; -} -/** - * Clamps a value based on a min/max range with rounding - * - * @param {number} value The value. - * @param {number} min The minimum range. - * @param {number} max The maximum range. - * @param {number} step A multiplier for the value. - * - * @return {number} The rounded and clamped value. - */ - - -function roundClamp() { - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity; - var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Infinity; - var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; - var baseValue = getNumber(value); - var stepValue = getNumber(step); - var precision = getPrecision(step); - var rounded = Math.round(baseValue / stepValue) * stepValue; - var clampedValue = Object(external_this_lodash_["clamp"])(rounded, min, max); - return precision ? getNumber(clampedValue.toFixed(precision)) : clampedValue; -} -/** - * Clamps a value based on a min/max range with rounding. - * Returns a string. - * - * @param {any} args Arguments for roundClamp(). - * @property {number} value The value. - * @property {number} min The minimum range. - * @property {number} max The maximum range. - * @property {number} step A multiplier for the value. - * - * @return {string} The rounded and clamped value. - */ - -function roundClampString() { - return roundClamp.apply(void 0, arguments).toString(); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-jump-step.js - - -/** - * WordPress dependencies - */ - -/** - * A custom hook that calculates a step value (used by elements like input - * [type="number"]). This value can be modified based on whether the Shift - * key is being held down. - * - * For example, a shiftStep of 10, and a step of 1... - * Starting from 10, the next incremented value will be 11. - * - * Holding down shift... - * Starting from 10, the next incremented value will be 20. - * - * @param {Object} props Properties for the hook. - * @param {boolean} [props.isShiftStepEnabled=true] Determines if jumping values with shift is enabled - * @param {number} [props.shiftStep=10] Multiplier to jump by, when holding shift key. - * @param {number} [props.step=1] Multiplier to jump by, when not-holding shift key. - * - * @return {number} The jump step value. - */ - -function useJumpStep(_ref) { - var _ref$isShiftStepEnabl = _ref.isShiftStepEnabled, - isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl, - _ref$shiftStep = _ref.shiftStep, - shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep, - _ref$step = _ref.step, - step = _ref$step === void 0 ? 1 : _ref$step; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isShiftKey = _useState2[0], - setIsShiftKey = _useState2[1]; - - Object(external_this_wp_element_["useEffect"])(function () { - var handleShiftKeyToggle = function handleShiftKeyToggle(event) { - setIsShiftKey(event.shiftKey); - }; - - window.addEventListener('keydown', handleShiftKeyToggle); - window.addEventListener('keyup', handleShiftKeyToggle); - return function () { - window.removeEventListener('keydown', handleShiftKeyToggle); - window.removeEventListener('keyup', handleShiftKeyToggle); - }; - }, []); - var isEnabled = isShiftStepEnabled && isShiftKey; - return isEnabled ? shiftStep * step : step; -} - -/* harmony default export */ var use_jump_step = (useJumpStep); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - - - -function NumberControl(_ref, ref) { - var _ref$__unstableStateR = _ref.__unstableStateReducer, - stateReducer = _ref$__unstableStateR === void 0 ? function (state) { - return state; - } : _ref$__unstableStateR, - className = _ref.className, - _ref$dragDirection = _ref.dragDirection, - dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, - _ref$hideHTMLArrows = _ref.hideHTMLArrows, - hideHTMLArrows = _ref$hideHTMLArrows === void 0 ? false : _ref$hideHTMLArrows, - _ref$isDragEnabled = _ref.isDragEnabled, - isDragEnabled = _ref$isDragEnabled === void 0 ? true : _ref$isDragEnabled, - _ref$isShiftStepEnabl = _ref.isShiftStepEnabled, - isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl, - label = _ref.label, - _ref$max = _ref.max, - max = _ref$max === void 0 ? Infinity : _ref$max, - _ref$min = _ref.min, - min = _ref$min === void 0 ? -Infinity : _ref$min, - _ref$shiftStep = _ref.shiftStep, - shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep, - _ref$step = _ref.step, - step = _ref$step === void 0 ? 1 : _ref$step, - _ref$type = _ref.type, - typeProp = _ref$type === void 0 ? 'number' : _ref$type, - valueProp = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "className", "dragDirection", "hideHTMLArrows", "isDragEnabled", "isShiftStepEnabled", "label", "max", "min", "shiftStep", "step", "type", "value"]); - - var isRtl = useRTL(); - var baseValue = roundClamp(0, min, max, step); - var jumpStep = use_jump_step({ - step: step, - shiftStep: shiftStep, - isShiftStepEnabled: isShiftStepEnabled - }); - var autoComplete = typeProp === 'number' ? 'off' : null; - var classes = classnames_default()('components-number-control', className); - /** - * "Middleware" function that intercepts updates from InputControl. - * This allows us to tap into actions to transform the (next) state for - * InputControl. - * - * @param {Object} state State from InputControl - * @param {Object} action Action triggering state change - * @return {Object} The updated state to apply to InputControl - */ - - var numberControlStateReducer = function numberControlStateReducer(state, action) { - var type = action.type, - payload = action.payload; - var event = payload === null || payload === void 0 ? void 0 : payload.event; - var currentValue = state.value; - /** - * Handles custom UP and DOWN Keyboard events - */ - - if (type === inputControlActionTypes.PRESS_UP || type === inputControlActionTypes.PRESS_DOWN) { - var enableShift = event.shiftKey && isShiftStepEnabled; - var incrementalValue = enableShift ? parseFloat(shiftStep) * parseFloat(step) : parseFloat(step); - var nextValue = isValueEmpty(currentValue) ? baseValue : currentValue; - - if (event === null || event === void 0 ? void 0 : event.preventDefault) { - event.preventDefault(); - } - - if (type === inputControlActionTypes.PRESS_UP) { - nextValue = add(nextValue, incrementalValue); - } - - if (type === inputControlActionTypes.PRESS_DOWN) { - nextValue = subtract(nextValue, incrementalValue); - } - - nextValue = roundClamp(nextValue, min, max, incrementalValue); - state.value = nextValue; - } - /** - * Handles drag to update events - */ - - - if (type === inputControlActionTypes.DRAG && isDragEnabled) { - var delta = payload.delta, - shiftKey = payload.shiftKey; - - var _delta = Object(slicedToArray["a" /* default */])(delta, 2), - x = _delta[0], - y = _delta[1]; - - var modifier = shiftKey ? parseFloat(shiftStep) * parseFloat(step) : parseFloat(step); - var directionModifier; - var directionBaseValue; - - switch (dragDirection) { - case 'n': - directionBaseValue = y; - directionModifier = -1; - break; - - case 'e': - directionBaseValue = x; - directionModifier = isRtl ? -1 : 1; - break; - - case 's': - directionBaseValue = y; - directionModifier = 1; - break; - - case 'w': - directionBaseValue = x; - directionModifier = isRtl ? 1 : -1; - break; - } - - var distance = directionBaseValue * modifier * directionModifier; - - var _nextValue; - - if (distance !== 0) { - _nextValue = roundClamp(add(currentValue, distance), min, max, modifier); - state.value = _nextValue; - } - } - /** - * Handles ENTER key press and submit - */ - - - if (type === inputControlActionTypes.PRESS_ENTER || type === inputControlActionTypes.SUBMIT) { - state.value = roundClamp(currentValue, min, max); - } - - return state; - }; - - return Object(external_this_wp_element_["createElement"])(number_control_styles_Input, Object(esm_extends["a" /* default */])({ - autoComplete: autoComplete, - inputMode: "numeric" - }, props, { - className: classes, - dragDirection: dragDirection, - hideHTMLArrows: hideHTMLArrows, - isDragEnabled: isDragEnabled, - label: label, - max: max, - min: min, - ref: ref, - step: jumpStep, - type: typeProp, - value: valueProp, - __unstableStateReducer: state_composeStateReducers(numberControlStateReducer, stateReducer) - })); -} -/* harmony default export */ var number_control = (Object(external_this_wp_element_["forwardRef"])(NumberControl)); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/styles/unit-control-styles.js @@ -26772,6 +25756,8 @@ function parseUnit(initialValue) { return item.value === unit; }); unit = match === null || match === void 0 ? void 0 : match.value; + } else { + unit = DEFAULT_UNIT.value; } return [num, unit]; @@ -26944,7 +25930,7 @@ var defaultOptions = { function useControlledState(currentState) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions; - var _defaultOptions$optio = use_controlled_state_objectSpread({}, defaultOptions, {}, options), + var _defaultOptions$optio = use_controlled_state_objectSpread(use_controlled_state_objectSpread({}, defaultOptions), options), initial = _defaultOptions$optio.initial, fallback = _defaultOptions$optio.fallback; @@ -26954,6 +25940,15 @@ function useControlledState(currentState) { setInternalState = _useState2[1]; var hasCurrentState = isValueDefined(currentState); + /* + * Resets internal state if value every changes from uncontrolled <-> controlled. + */ + + Object(external_this_wp_element_["useEffect"])(function () { + if (hasCurrentState && internalState) { + setInternalState(undefined); + } + }, [hasCurrentState, internalState]); var state = getDefinedValue([currentState, internalState, initial], fallback); var setState = function setState(nextState) { @@ -27036,20 +26031,47 @@ function UnitControl(_ref, ref) { _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), unit = _useControlledState2[0], setUnit = _useControlledState2[1]; + /* + * Storing parsed unit changes to be applied during the onChange callback + * cycle. + */ + + var nextParsedUnitRef = Object(external_this_wp_element_["useRef"])(); var classes = classnames_default()('components-unit-control', className); var handleOnChange = function handleOnChange(next, changeProps) { - /** + if (next === '') { + onChange('', changeProps); + return; + } + /* * Customizing the onChange callback. * This allows as to broadcast a combined value+unit to onChange. */ + + var _getValidParsedUnit = getValidParsedUnit(next, units, value, unit), _getValidParsedUnit2 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit, 2), parsedValue = _getValidParsedUnit2[0], parsedUnit = _getValidParsedUnit2[1]; - var nextValue = "".concat(parsedValue).concat(parsedUnit); + var nextParsedUnit = nextParsedUnitRef.current; + /* + * If we've noticed a (parsed) unit change, which would have been + * stored in nextParsedUnitRef, we'll update our local unit set, + * as well as fire the onUnitChange callback. + */ + + if (nextParsedUnit) { + onUnitChange(nextParsedUnit, changeProps); + setUnit(nextParsedUnit); // We have to reset this ref value to properly track new changes. + + nextParsedUnitRef.current = null; + } + + var nextUnit = nextParsedUnit || parsedUnit; + var nextValue = "".concat(parsedValue).concat(nextUnit); onChange(nextValue, changeProps); }; @@ -27080,7 +26102,7 @@ function UnitControl(_ref, ref) { var type = action.type, payload = action.payload; var event = payload === null || payload === void 0 ? void 0 : payload.event; - /** + /* * Customizes the commit interaction. * * This occurs when pressing ENTER to fire a change. @@ -27101,9 +26123,15 @@ function UnitControl(_ref, ref) { state.value = parsedValue; // Update unit if the incoming parsed unit is different. if (unit !== parsedUnit) { - handleOnUnitChange(parsedUnit, { - event: event - }); + /* + * We start by storing the next parsedUnit value in our + * nextParsedUnitRef. We can't set the unit during this + * stateReducer callback as it cause state update + * conflicts within React's render cycle. + * + * https://github.com/facebook/react/issues/18178 + */ + nextParsedUnitRef.current = parsedUnit; } } @@ -27124,7 +26152,7 @@ function UnitControl(_ref, ref) { }, Object(external_this_wp_element_["createElement"])(ValueInput, Object(esm_extends["a" /* default */])({ "aria-label": label, type: isPressEnterToChange ? 'text' : 'number' - }, props, { + }, Object(external_this_lodash_["omit"])(props, ['children']), { autoComplete: autoComplete, className: classes, disabled: disabled, @@ -27297,7 +26325,6 @@ function BoxUnitControl(_ref) { isLast: isLast, isOnly: isOnly, isPressEnterToChange: true, - isFloatingLabel: true, isResetValueOnUnitChange: false, value: value }, props)))); @@ -27307,10 +26334,19 @@ function Tooltip(_ref3) { var children = _ref3.children, text = _ref3.text; if (!text) return children; + /** + * Wrapping the children in a `

    ` as Tooltip as it attempts + * to render the . Using a plain `
    ` appears to + * resolve this issue. + * + * Originally discovered and referenced here: + * https://github.com/WordPress/gutenberg/pull/24966#issuecomment-685875026 + */ + return Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { text: text, position: "top" - }, children); + }, Object(external_this_wp_element_["createElement"])("div", null, children)); } // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/utils.js @@ -27770,10 +26806,10 @@ function getSide(side, value) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(179); +var library_link = __webpack_require__(184); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(204); +var link_off = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js @@ -28086,7 +27122,9 @@ function BoxControl(_ref) { valuesProp = _ref.values, units = _ref.units; - var _useControlledState = use_controlled_state(valuesProp), + var _useControlledState = use_controlled_state(valuesProp, { + fallback: DEFAULT_VALUES + }), _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), values = _useControlledState2[0], setValues = _useControlledState2[1]; @@ -28130,12 +27168,12 @@ function BoxControl(_ref) { var handleOnHoverOn = function handleOnHoverOn() { var next = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - onChangeShowVisualizer(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES, {}, next)); + onChangeShowVisualizer(box_control_objectSpread(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES), next)); }; var handleOnHoverOff = function handleOnHoverOff() { var next = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - onChangeShowVisualizer(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES, {}, next)); + onChangeShowVisualizer(box_control_objectSpread(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES), next)); }; var handleOnReset = function handleOnReset() { @@ -28145,7 +27183,7 @@ function BoxControl(_ref) { setIsDirty(false); }; - var inputControlProps = box_control_objectSpread({}, inputProps, { + var inputControlProps = box_control_objectSpread(box_control_objectSpread({}, inputProps), {}, { onChange: handleOnChange, onFocus: handleOnFocus, onHoverOn: handleOnHoverOn, @@ -28365,7 +27403,7 @@ function CardBody(props) { isShady = props.isShady, additionalProps = Object(objectWithoutProperties["a" /* default */])(props, ["className", "isShady"]); - var mergedProps = body_objectSpread({}, body_defaultProps, {}, context_useCardContext(), {}, props); + var mergedProps = body_objectSpread(body_objectSpread(body_objectSpread({}, body_defaultProps), context_useCardContext()), props); var size = mergedProps.size; var classes = classnames_default()('components-card__body', isShady && 'is-shady', size && "is-size-".concat(size), className); @@ -28432,7 +27470,7 @@ function CardFooter(props) { isShady = props.isShady, additionalProps = Object(objectWithoutProperties["a" /* default */])(props, ["className", "isShady"]); - var mergedProps = footer_objectSpread({}, footer_defaultProps, {}, context_useCardContext(), {}, props); + var mergedProps = footer_objectSpread(footer_objectSpread(footer_objectSpread({}, footer_defaultProps), context_useCardContext()), props); var isBorderless = mergedProps.isBorderless, size = mergedProps.size; @@ -28473,7 +27511,7 @@ function CardHeader(props) { isShady = props.isShady, additionalProps = Object(objectWithoutProperties["a" /* default */])(props, ["className", "isShady"]); - var mergedProps = header_objectSpread({}, header_defaultProps, {}, context_useCardContext(), {}, props); + var mergedProps = header_objectSpread(header_objectSpread(header_objectSpread({}, header_defaultProps), context_useCardContext()), props); var isBorderless = mergedProps.isBorderless, size = mergedProps.size; @@ -28510,10 +27548,10 @@ function CardMedia(props) { /* harmony default export */ var media = (CardMedia); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(137); +var build_module_icon = __webpack_require__(142); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(154); +var check = __webpack_require__(158); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/checkbox-control/index.js @@ -28959,7 +27997,7 @@ function KeyboardShortcuts(_ref2) { -function alpha_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (alpha_isNativeReflectConstruct()) { 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 alpha_createSuper(Derived) { var hasNativeReflectConstruct = alpha_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 alpha_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; } } @@ -29199,7 +28237,7 @@ var alpha_Alpha = /*#__PURE__*/function (_Component) { -function hue_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hue_isNativeReflectConstruct()) { 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 hue_createSuper(Derived) { var hasNativeReflectConstruct = hue_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 hue_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; } } @@ -29432,7 +28470,7 @@ var hue_Hue = /*#__PURE__*/function (_Component) { /* harmony default export */ var hue = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], external_this_wp_compose_["withInstanceId"])(hue_Hue)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(296); +var chevron_down = __webpack_require__(312); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-control/index.js @@ -29493,7 +28531,7 @@ function TextControl(_ref) { -function inputs_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (inputs_isNativeReflectConstruct()) { 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 inputs_createSuper(Derived) { var hasNativeReflectConstruct = inputs_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 inputs_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; } } @@ -29858,7 +28896,7 @@ var inputs_Inputs = /*#__PURE__*/function (_Component2) { -function saturation_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (saturation_isNativeReflectConstruct()) { 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 saturation_createSuper(Derived) { var hasNativeReflectConstruct = saturation_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 saturation_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; } } @@ -30105,7 +29143,7 @@ var saturation_Saturation = /*#__PURE__*/function (_Component) { -function color_picker_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (color_picker_isNativeReflectConstruct()) { 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 color_picker_createSuper(Derived) { var hasNativeReflectConstruct = color_picker_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 color_picker_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; } } @@ -30222,7 +29260,7 @@ var color_picker_dataToColors = function dataToColors(oldColors, _ref) { return color_picker_objectSpread({ source: source - }, color_picker_objectSpread({}, oldColors[source], {}, Object(defineProperty["a" /* default */])({}, valueKey, value))); + }, color_picker_objectSpread(color_picker_objectSpread({}, oldColors[source]), Object(defineProperty["a" /* default */])({}, valueKey, value))); }; var color_picker_ColorPicker = /*#__PURE__*/function (_Component) { @@ -30240,7 +29278,7 @@ var color_picker_ColorPicker = /*#__PURE__*/function (_Component) { _this = _super.apply(this, arguments); var colors = colorToState(color); - _this.state = color_picker_objectSpread({}, colors, { + _this.state = color_picker_objectSpread(color_picker_objectSpread({}, colors), {}, { draftHex: toLowerCase(colors.hex), draftRgb: colors.rgb, draftHsl: colors.hsl @@ -30262,7 +29300,7 @@ var color_picker_ColorPicker = /*#__PURE__*/function (_Component) { if (color_picker_isValidColor(data)) { var colors = colorToState(data, data.h || oldHue); - this.setState(color_picker_objectSpread({}, colors, { + this.setState(color_picker_objectSpread(color_picker_objectSpread({}, colors), {}, { draftHex: toLowerCase(colors.hex), draftHsl: colors.hsl, draftRgb: colors.rgb @@ -30461,7 +29499,9 @@ function Dropdown(_ref) { function closeIfFocusOutside() { - if (!containerRef.current.contains(document.activeElement) && !document.activeElement.closest('[role="dialog"]')) { + var ownerDocument = containerRef.current.ownerDocument; + + if (!containerRef.current.contains(ownerDocument.activeElement) && !ownerDocument.activeElement.closest('[role="dialog"]')) { close(); } } @@ -30549,6 +29589,7 @@ function DropdownLinkAction(_ref2) { onToggle = _ref3.onToggle; return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ "aria-expanded": isOpen, + "aria-haspopup": "true", onClick: onToggle, isLink: true }, buttonProps), linkText); @@ -30575,7 +29616,9 @@ function CircularOptionPicker(_ref5) { children = _ref5.children; return Object(external_this_wp_element_["createElement"])("div", { className: classnames_default()('components-circular-option-picker', className) - }, options, children, actions && Object(external_this_wp_element_["createElement"])("div", { + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-circular-option-picker__swatches" + }, options), children, actions && Object(external_this_wp_element_["createElement"])("div", { className: "components-circular-option-picker__custom-clear-wrapper" }, actions)); } @@ -30669,8 +29712,478 @@ function ColorPalette(_ref) { }); } +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js + + + + + + + + + + +function token_input_createSuper(Derived) { var hasNativeReflectConstruct = token_input_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 token_input_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 + */ + + + +var token_input_TokenInput = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(TokenInput, _Component); + + var _super = token_input_createSuper(TokenInput); + + function TokenInput() { + var _this; + + Object(classCallCheck["a" /* default */])(this, TokenInput); + + _this = _super.apply(this, arguments); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.bindInput = _this.bindInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(TokenInput, [{ + key: "focus", + value: function focus() { + this.input.focus(); + } + }, { + key: "hasFocus", + value: function hasFocus() { + return this.input === this.input.ownerDocument.activeElement; + } + }, { + key: "bindInput", + value: function bindInput(ref) { + this.input = ref; + } + }, { + key: "onChange", + value: function onChange(event) { + this.props.onChange({ + value: event.target.value + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + value = _this$props.value, + isExpanded = _this$props.isExpanded, + instanceId = _this$props.instanceId, + selectedSuggestionIndex = _this$props.selectedSuggestionIndex, + className = _this$props.className, + props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["value", "isExpanded", "instanceId", "selectedSuggestionIndex", "className"]); + + var size = value ? value.length + 1 : 0; + return Object(external_this_wp_element_["createElement"])("input", Object(esm_extends["a" /* default */])({ + ref: this.bindInput, + id: "components-form-token-input-".concat(instanceId), + type: "text" + }, props, { + value: value || '', + onChange: this.onChange, + size: size, + className: classnames_default()(className, 'components-form-token-field__input'), + role: "combobox", + "aria-expanded": isExpanded, + "aria-autocomplete": "list", + "aria-owns": isExpanded ? "components-form-token-suggestions-".concat(instanceId) : undefined, + "aria-activedescendant": selectedSuggestionIndex !== -1 ? "components-form-token-suggestions-".concat(instanceId, "-").concat(selectedSuggestionIndex) : undefined, + "aria-describedby": "components-form-token-suggestions-howto-".concat(instanceId) + })); + } + }]); + + return TokenInput; +}(external_this_wp_element_["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__(126); +var lib_default = /*#__PURE__*/__webpack_require__.n(lib); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js + + + + + + + + +function suggestions_list_createSuper(Derived) { var hasNativeReflectConstruct = suggestions_list_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 suggestions_list_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 + */ + + + + +var suggestions_list_SuggestionsList = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(SuggestionsList, _Component); + + var _super = suggestions_list_createSuper(SuggestionsList); + + function SuggestionsList() { + var _this; + + Object(classCallCheck["a" /* default */])(this, SuggestionsList); + + _this = _super.apply(this, arguments); + _this.handleMouseDown = _this.handleMouseDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.bindList = _this.bindList.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(SuggestionsList, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + var _this2 = this; + + // only have to worry about scrolling selected suggestion into view + // when already expanded + if (this.props.selectedIndex > -1 && this.props.scrollIntoView) { + this.scrollingIntoView = true; + lib_default()(this.list.children[this.props.selectedIndex], this.list, { + onlyScrollIfNeeded: true + }); + this.props.setTimeout(function () { + _this2.scrollingIntoView = false; + }, 100); + } + } + }, { + key: "bindList", + value: function bindList(ref) { + this.list = ref; + } + }, { + key: "handleHover", + value: function handleHover(suggestion) { + var _this3 = this; + + return function () { + if (!_this3.scrollingIntoView) { + _this3.props.onHover(suggestion); + } + }; + } + }, { + key: "handleClick", + value: function handleClick(suggestion) { + var _this4 = this; + + return function () { + _this4.props.onSelect(suggestion); + }; + } + }, { + key: "handleMouseDown", + value: function handleMouseDown(e) { + // By preventing default here, we will not lose focus of when clicking a suggestion + e.preventDefault(); + } + }, { + key: "computeSuggestionMatch", + value: function computeSuggestionMatch(suggestion) { + var match = this.props.displayTransform(this.props.match || '').toLocaleLowerCase(); + + if (match.length === 0) { + return null; + } + + suggestion = this.props.displayTransform(suggestion); + var indexOfMatch = suggestion.toLocaleLowerCase().indexOf(match); + return { + suggestionBeforeMatch: suggestion.substring(0, indexOfMatch), + suggestionMatch: suggestion.substring(indexOfMatch, indexOfMatch + match.length), + suggestionAfterMatch: suggestion.substring(indexOfMatch + match.length) + }; + } + }, { + key: "render", + value: function render() { + var _this5 = this; + + // We set `tabIndex` here because otherwise Firefox sets focus on this + // div when tabbing off of the input in `TokenField` -- not really sure + // why, since usually a div isn't focusable by default + // TODO does this still apply now that it's a
      and not a
      ? + return Object(external_this_wp_element_["createElement"])("ul", { + ref: this.bindList, + className: "components-form-token-field__suggestions-list", + id: "components-form-token-suggestions-".concat(this.props.instanceId), + role: "listbox" + }, Object(external_this_lodash_["map"])(this.props.suggestions, function (suggestion, index) { + var match = _this5.computeSuggestionMatch(suggestion); + + var classeName = classnames_default()('components-form-token-field__suggestion', { + 'is-selected': index === _this5.props.selectedIndex + }); + /* eslint-disable jsx-a11y/click-events-have-key-events */ + + return Object(external_this_wp_element_["createElement"])("li", { + id: "components-form-token-suggestions-".concat(_this5.props.instanceId, "-").concat(index), + role: "option", + className: classeName, + key: _this5.props.displayTransform(suggestion), + onMouseDown: _this5.handleMouseDown, + onClick: _this5.handleClick(suggestion), + onMouseEnter: _this5.handleHover(suggestion), + "aria-selected": index === _this5.props.selectedIndex + }, match ? Object(external_this_wp_element_["createElement"])("span", { + "aria-label": _this5.props.displayTransform(suggestion) + }, match.suggestionBeforeMatch, Object(external_this_wp_element_["createElement"])("strong", { + className: "components-form-token-field__suggestion-match" + }, match.suggestionMatch), match.suggestionAfterMatch) : _this5.props.displayTransform(suggestion)); + /* eslint-enable jsx-a11y/click-events-have-key-events */ + })); + } + }]); + + return SuggestionsList; +}(external_this_wp_element_["Component"]); + +suggestions_list_SuggestionsList.defaultProps = { + match: '', + onHover: function onHover() {}, + onSelect: function onSelect() {}, + suggestions: Object.freeze([]) +}; +/* harmony default export */ var suggestions_list = (Object(external_this_wp_compose_["withSafeTimeout"])(suggestions_list_SuggestionsList)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/index.js + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + +function ComboboxControl(_ref) { + var _currentOption$label; + + var value = _ref.value, + label = _ref.label, + options = _ref.options, + onChange = _ref.onChange, + onFilterValueChange = _ref.onFilterValueChange, + hideLabelFromVision = _ref.hideLabelFromVision, + help = _ref.help, + _ref$messages = _ref.messages, + messages = _ref$messages === void 0 ? { + selected: Object(external_this_wp_i18n_["__"])('Item selected.') + } : _ref$messages; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ComboboxControl); + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + selectedSuggestion = _useState2[0], + setSelectedSuggestion = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isExpanded = _useState4[0], + setIsExpanded = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(''), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + inputValue = _useState6[0], + setInputValue = _useState6[1]; + + var inputContainer = Object(external_this_wp_element_["useRef"])(); + var currentOption = options.find(function (option) { + return option.value === value; + }); + var currentLabel = (_currentOption$label = currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) !== null && _currentOption$label !== void 0 ? _currentOption$label : ''; + var matchingSuggestions = Object(external_this_wp_element_["useMemo"])(function () { + var startsWithMatch = []; + var containsMatch = []; + var match = inputValue.toLocaleLowerCase(); + options.forEach(function (option) { + var index = option.label.toLocaleLowerCase().indexOf(match); + + if (index === 0) { + startsWithMatch.push(option); + } else if (index > 0) { + containsMatch.push(option); + } + }); + return startsWithMatch.concat(containsMatch); + }, [inputValue, options, value]); + + var onSuggestionSelected = function onSuggestionSelected(newSelectedSuggestion) { + onChange(newSelectedSuggestion.value); + Object(external_this_wp_a11y_["speak"])(messages.selected, 'assertive'); + setSelectedSuggestion(newSelectedSuggestion); + setInputValue(''); + setIsExpanded(false); + }; + + var handleArrowNavigation = function handleArrowNavigation() { + var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + var index = matchingSuggestions.indexOf(selectedSuggestion); + var nextIndex = index + offset; + + if (nextIndex < 0) { + nextIndex = matchingSuggestions.length - 1; + } else if (nextIndex >= matchingSuggestions.length) { + nextIndex = 0; + } + + setSelectedSuggestion(matchingSuggestions[nextIndex]); + setIsExpanded(true); + }; + + var onKeyDown = function onKeyDown(event) { + var preventDefault = false; + + switch (event.keyCode) { + case external_this_wp_keycodes_["ENTER"]: + if (selectedSuggestion) { + onSuggestionSelected(selectedSuggestion); + preventDefault = true; + } + + break; + + case external_this_wp_keycodes_["UP"]: + handleArrowNavigation(-1); + preventDefault = true; + break; + + case external_this_wp_keycodes_["DOWN"]: + handleArrowNavigation(1); + preventDefault = true; + break; + + case external_this_wp_keycodes_["ESCAPE"]: + setIsExpanded(false); + setSelectedSuggestion(null); + preventDefault = true; + event.stopPropagation(); + break; + + default: + break; + } + + if (preventDefault) { + event.preventDefault(); + } + }; + + var onFocus = function onFocus() { + // Avoid focus loss when touching the container. + // TODO: TokenInput should preferably forward ref + inputContainer.current.input.focus(); + setIsExpanded(true); + onFilterValueChange(''); + }; + + var onBlur = function onBlur() { + setIsExpanded(false); + }; + + var onInputChange = function onInputChange(event) { + var text = event.value; + setInputValue(text); + onFilterValueChange(text); + setIsExpanded(true); + }; // Announcements + + + Object(external_this_wp_element_["useEffect"])(function () { + var hasMatchingSuggestions = matchingSuggestions.length > 0; + + if (isExpanded) { + var message = hasMatchingSuggestions ? Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of results. */ + Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : Object(external_this_wp_i18n_["__"])('No results.'); + Object(external_this_wp_a11y_["speak"])(message, 'assertive'); + } + }, [matchingSuggestions, isExpanded]); // Disable reason: There is no appropriate role which describes the + // input container intended accessible usability. + // TODO: Refactor click detection to use blur to stop propagation. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])(base_control, { + className: "components-combobox-control", + tabIndex: "-1", + label: label, + id: "components-form-token-input-".concat(instanceId), + hideLabelFromVision: hideLabelFromVision, + help: help + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-combobox-control__suggestions-container", + tabIndex: "-1", + onFocus: onFocus, + onKeyDown: onKeyDown + }, Object(external_this_wp_element_["createElement"])(token_input, { + className: "components-combobox-control__input", + instanceId: instanceId, + ref: inputContainer, + value: isExpanded ? inputValue : currentLabel, + onBlur: onBlur, + isExpanded: isExpanded, + selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion), + onChange: onInputChange + }), isExpanded && Object(external_this_wp_element_["createElement"])(suggestions_list, { + instanceId: instanceId, + match: { + label: inputValue + }, + displayTransform: function displayTransform(suggestion) { + return suggestion.label; + }, + suggestions: matchingSuggestions, + selectedIndex: matchingSuggestions.indexOf(selectedSuggestion), + onHover: setSelectedSuggestion, + onSelect: onSuggestionSelected, + scrollIntoView: true + }))); + /* eslint-enable jsx-a11y/no-static-element-interactions */ +} + +/* harmony default export */ var combobox_control = (ComboboxControl); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js -var objectWithoutPropertiesLoose = __webpack_require__(41); +var objectWithoutPropertiesLoose = __webpack_require__(42); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js function inheritsLoose_inheritsLoose(subClass, superClass) { @@ -30683,206 +30196,11 @@ 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__(193); +var react_is = __webpack_require__(198); -// CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/es/index.js -function isElement(el) { - return el != null && typeof el === 'object' && el.nodeType === 1; -} +// 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}); -function canOverflow(overflow, skipOverflowHiddenElements) { - if (skipOverflowHiddenElements && overflow === 'hidden') { - return false; - } - - return overflow !== 'visible' && overflow !== 'clip'; -} - -function getFrameElement(el) { - if (!el.ownerDocument || !el.ownerDocument.defaultView) { - return null; - } - - try { - return el.ownerDocument.defaultView.frameElement; - } catch (e) { - return null; - } -} - -function isHiddenByFrame(el) { - var frame = getFrameElement(el); - - if (!frame) { - return false; - } - - return frame.clientHeight < el.scrollHeight || frame.clientWidth < el.scrollWidth; -} - -function isScrollable(el, skipOverflowHiddenElements) { - if (el.clientHeight < el.scrollHeight || el.clientWidth < el.scrollWidth) { - var style = getComputedStyle(el, null); - return canOverflow(style.overflowY, skipOverflowHiddenElements) || canOverflow(style.overflowX, skipOverflowHiddenElements) || isHiddenByFrame(el); - } - - return false; -} - -function alignNearest(scrollingEdgeStart, scrollingEdgeEnd, scrollingSize, scrollingBorderStart, scrollingBorderEnd, elementEdgeStart, elementEdgeEnd, elementSize) { - if (elementEdgeStart < scrollingEdgeStart && elementEdgeEnd > scrollingEdgeEnd || elementEdgeStart > scrollingEdgeStart && elementEdgeEnd < scrollingEdgeEnd) { - return 0; - } - - if (elementEdgeStart <= scrollingEdgeStart && elementSize <= scrollingSize || elementEdgeEnd >= scrollingEdgeEnd && elementSize >= scrollingSize) { - return elementEdgeStart - scrollingEdgeStart - scrollingBorderStart; - } - - if (elementEdgeEnd > scrollingEdgeEnd && elementSize < scrollingSize || elementEdgeStart < scrollingEdgeStart && elementSize > scrollingSize) { - return elementEdgeEnd - scrollingEdgeEnd + scrollingBorderEnd; - } - - return 0; -} - -/* harmony default export */ var es = (function (target, options) { - var scrollMode = options.scrollMode, - block = options.block, - inline = options.inline, - boundary = options.boundary, - skipOverflowHiddenElements = options.skipOverflowHiddenElements; - var checkBoundary = typeof boundary === 'function' ? boundary : function (node) { - return node !== boundary; - }; - - if (!isElement(target)) { - throw new TypeError('Invalid target'); - } - - var scrollingElement = document.scrollingElement || document.documentElement; - var frames = []; - var cursor = target; - - while (isElement(cursor) && checkBoundary(cursor)) { - cursor = cursor.parentNode; - - if (cursor === scrollingElement) { - frames.push(cursor); - break; - } - - if (cursor === document.body && isScrollable(cursor) && !isScrollable(document.documentElement)) { - continue; - } - - if (isScrollable(cursor, skipOverflowHiddenElements)) { - frames.push(cursor); - } - } - - var viewportWidth = window.visualViewport ? visualViewport.width : innerWidth; - var viewportHeight = window.visualViewport ? visualViewport.height : innerHeight; - var viewportX = window.scrollX || pageXOffset; - var viewportY = window.scrollY || pageYOffset; - - var _target$getBoundingCl = target.getBoundingClientRect(), - targetHeight = _target$getBoundingCl.height, - targetWidth = _target$getBoundingCl.width, - targetTop = _target$getBoundingCl.top, - targetRight = _target$getBoundingCl.right, - targetBottom = _target$getBoundingCl.bottom, - targetLeft = _target$getBoundingCl.left; - - var targetBlock = block === 'start' || block === 'nearest' ? targetTop : block === 'end' ? targetBottom : targetTop + targetHeight / 2; - var targetInline = inline === 'center' ? targetLeft + targetWidth / 2 : inline === 'end' ? targetRight : targetLeft; - var computations = []; - - for (var index = 0; index < frames.length; index++) { - var frame = frames[index]; - - var _frame$getBoundingCli = frame.getBoundingClientRect(), - height = _frame$getBoundingCli.height, - width = _frame$getBoundingCli.width, - top = _frame$getBoundingCli.top, - right = _frame$getBoundingCli.right, - bottom = _frame$getBoundingCli.bottom, - left = _frame$getBoundingCli.left; - - if (scrollMode === 'if-needed' && targetTop >= 0 && targetLeft >= 0 && targetBottom <= viewportHeight && targetRight <= viewportWidth && targetTop >= top && targetBottom <= bottom && targetLeft >= left && targetRight <= right) { - return computations; - } - - var frameStyle = getComputedStyle(frame); - var borderLeft = parseInt(frameStyle.borderLeftWidth, 10); - var borderTop = parseInt(frameStyle.borderTopWidth, 10); - var borderRight = parseInt(frameStyle.borderRightWidth, 10); - var borderBottom = parseInt(frameStyle.borderBottomWidth, 10); - var blockScroll = 0; - var inlineScroll = 0; - var scrollbarWidth = 'offsetWidth' in frame ? frame.offsetWidth - frame.clientWidth - borderLeft - borderRight : 0; - var scrollbarHeight = 'offsetHeight' in frame ? frame.offsetHeight - frame.clientHeight - borderTop - borderBottom : 0; - - if (scrollingElement === frame) { - if (block === 'start') { - blockScroll = targetBlock; - } else if (block === 'end') { - blockScroll = targetBlock - viewportHeight; - } else if (block === 'nearest') { - blockScroll = alignNearest(viewportY, viewportY + viewportHeight, viewportHeight, borderTop, borderBottom, viewportY + targetBlock, viewportY + targetBlock + targetHeight, targetHeight); - } else { - blockScroll = targetBlock - viewportHeight / 2; - } - - if (inline === 'start') { - inlineScroll = targetInline; - } else if (inline === 'center') { - inlineScroll = targetInline - viewportWidth / 2; - } else if (inline === 'end') { - inlineScroll = targetInline - viewportWidth; - } else { - inlineScroll = alignNearest(viewportX, viewportX + viewportWidth, viewportWidth, borderLeft, borderRight, viewportX + targetInline, viewportX + targetInline + targetWidth, targetWidth); - } - - blockScroll = Math.max(0, blockScroll + viewportY); - inlineScroll = Math.max(0, inlineScroll + viewportX); - } else { - if (block === 'start') { - blockScroll = targetBlock - top - borderTop; - } else if (block === 'end') { - blockScroll = targetBlock - bottom + borderBottom + scrollbarHeight; - } else if (block === 'nearest') { - blockScroll = alignNearest(top, bottom, height, borderTop, borderBottom + scrollbarHeight, targetBlock, targetBlock + targetHeight, targetHeight); - } else { - blockScroll = targetBlock - (top + height / 2) + scrollbarHeight / 2; - } - - if (inline === 'start') { - inlineScroll = targetInline - left - borderLeft; - } else if (inline === 'center') { - inlineScroll = targetInline - (left + width / 2) + scrollbarWidth / 2; - } else if (inline === 'end') { - inlineScroll = targetInline - right + borderRight + scrollbarWidth; - } else { - inlineScroll = alignNearest(left, right, width, borderLeft, borderRight + scrollbarWidth, targetInline, targetInline + targetWidth, targetWidth); - } - - var scrollLeft = frame.scrollLeft, - scrollTop = frame.scrollTop; - blockScroll = Math.max(0, Math.min(scrollTop + blockScroll, frame.scrollHeight - height + scrollbarHeight)); - inlineScroll = Math.max(0, Math.min(scrollLeft + inlineScroll, frame.scrollWidth - width + scrollbarWidth)); - targetBlock += scrollTop - blockScroll; - targetInline += scrollLeft - inlineScroll; - } - - computations.push({ - el: frame, - top: blockScroll, - left: inlineScroll - }); - } - - return computations; -}); // CONCATENATED MODULE: ./node_modules/downshift/dist/downshift.esm.js @@ -30920,7 +30238,7 @@ function downshift_esm_scrollIntoView(node, menuNode) { return; } - var actions = es(node, { + var actions = index_module(node, { boundary: menuNode, block: 'nearest', scrollMode: 'if-needed' @@ -35138,17 +34456,17 @@ function CustomSelectControl(_ref3) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/dashicon/index.js -var dashicon = __webpack_require__(148); +var dashicon = __webpack_require__(151); // EXTERNAL MODULE: ./node_modules/react-dates/initialize.js -var initialize = __webpack_require__(306); +var initialize = __webpack_require__(319); // EXTERNAL MODULE: external {"this":"moment"} -var external_this_moment_ = __webpack_require__(43); +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__(270); +var DayPickerSingleDateController = __webpack_require__(284); var DayPickerSingleDateController_default = /*#__PURE__*/__webpack_require__.n(DayPickerSingleDateController); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date.js @@ -35160,7 +34478,7 @@ var DayPickerSingleDateController_default = /*#__PURE__*/__webpack_require__.n(D -function date_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (date_isNativeReflectConstruct()) { 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 date_createSuper(Derived) { var hasNativeReflectConstruct = date_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 date_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; } } @@ -35200,6 +34518,7 @@ var date_DatePicker = /*#__PURE__*/function (_Component) { _this.onChangeMoment = _this.onChangeMoment.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.nodeRef = Object(external_this_wp_element_["createRef"])(); _this.keepFocusInside = _this.keepFocusInside.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.isDayHighlighted = _this.isDayHighlighted.bind(Object(assertThisInitialized["a" /* default */])(_this)); return _this; } /* @@ -35261,6 +34580,26 @@ var date_DatePicker = /*#__PURE__*/function (_Component) { } return currentDate ? external_this_moment_default()(currentDate) : external_this_moment_default()(); + } // todo change reference to `isDayHighlighted` every time, `events` prop change + + }, { + key: "isDayHighlighted", + value: function isDayHighlighted(date) { + var _this$props$events; + + // Do not highlight when no events. + if (!((_this$props$events = this.props.events) === null || _this$props$events === void 0 ? void 0 : _this$props$events.length)) { + return false; + } + + if (this.props.onMonthPreviewed) { + this.props.onMonthPreviewed(date.toDate()); + } // Compare date against highlighted events. + + + return this.props.events.some(function (highlighted) { + return date.isSame(highlighted.date, 'day'); + }); } }, { key: "render", @@ -35289,6 +34628,7 @@ var date_DatePicker = /*#__PURE__*/function (_Component) { isOutsideRange: function isOutsideRange(date) { return isInvalidDate && isInvalidDate(date.toDate()); }, + isDayHighlighted: this.isDayHighlighted, onPrevMonthClick: this.keepFocusInside, onNextMonthClick: this.keepFocusInside })); @@ -35300,18 +34640,60 @@ var date_DatePicker = /*#__PURE__*/function (_Component) { /* harmony default export */ var date_time_date = (date_DatePicker); +// EXTERNAL MODULE: external {"this":["wp","date"]} +var external_this_wp_date_ = __webpack_require__(75); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/timezone.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Displays timezone information when user timezone is different from site timezone. + */ + +var timezone_TimeZone = function TimeZone() { + var _getDateSettings = Object(external_this_wp_date_["__experimentalGetSettings"])(), + timezone = _getDateSettings.timezone; // Convert timezone offset to hours. + + + var userTimezoneOffset = -1 * (new Date().getTimezoneOffset() / 60); // System timezone and user timezone match, nothing needed. + // Compare as numbers because it comes over as string. + + if (Number(timezone.offset) === userTimezoneOffset) { + return null; + } + + var offsetSymbol = timezone.offset >= 0 ? '+' : ''; + var zoneAbbr = '' !== timezone.abbr && isNaN(timezone.abbr) ? timezone.abbr : "UTC".concat(offsetSymbol).concat(timezone.offset); + var timezoneDetail = 'UTC' === timezone.string ? Object(external_this_wp_i18n_["__"])('Coordinated Universal Time') : "(".concat(zoneAbbr, ") ").concat(timezone.string.replace('_', ' ')); + return Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + position: "top center", + text: timezoneDetail + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-datetime__timezone" + }, zoneAbbr)); +}; + +/* harmony default export */ var date_time_timezone = (timezone_TimeZone); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time.js +function time_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 time_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (time_isNativeReflectConstruct()) { 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 time_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; } } +function time_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { time_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 { time_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** * External dependencies @@ -35331,415 +34713,245 @@ function time_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || + /** * Module Constants */ var time_TIMEZONELESS_FORMAT = 'YYYY-MM-DDTHH:mm:ss'; +/** + * + * A shared component to parse, validate, and handle remounting of the underlying form field element like and to be updated independently before the - * value is applied and propagated. This independent updating action is - * necessary to accommodate individual keystroke values that may not - * be considered "valid" (e.g. within the min - max range). - */ - var _useControlledState = use_controlled_state(valueProp), - _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), - value = _useControlledState2[0], - setValue = _useControlledState2[1]; - - var handleOnReset = function handleOnReset(event) { - onReset(event); - setValue(''); - }; - - var handleOnCommit = function handleOnCommit(event) { - var nextValue = parseFloat(event.target.value); - - if (isNaN(nextValue)) { - handleOnReset(); - return; - } - - setValue(nextValue); - onChange(nextValue); - }; - - var handleOnBlur = function handleOnBlur(event) { - onBlur(event); - handleOnCommit(event); - }; - - var handleOnChange = function handleOnChange(next) { - handleOnCommit({ - target: { - value: next - } - }); - }; - - var handleOnKeyDown = function handleOnKeyDown(event) { - var keyCode = event.keyCode; - onKeyDown(event); - - if (keyCode === external_this_wp_keycodes_["ENTER"]) { - event.preventDefault(); - handleOnCommit(event); - } - }; - - return Object(external_this_wp_element_["createElement"])(InputNumber, Object(esm_extends["a" /* default */])({ - "aria-label": label, - className: "components-range-control__number", - inputMode: "decimal", - onBlur: handleOnBlur, - onChange: handleOnChange, - onKeyDown: handleOnKeyDown, - type: "number", - value: value - }, props)); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/index.js @@ -38544,7 +38263,6 @@ function input_field_InputField(_ref) { - function RangeControl(_ref, ref) { var _inputRef$current; @@ -38608,6 +38326,8 @@ function RangeControl(_ref, ref) { value = _useControlledRangeVa2[0], setValue = _useControlledRangeVa2[1]; + var isResetPendent = Object(external_this_wp_element_["useRef"])(false); + var _useState = Object(external_this_wp_element_["useState"])(showTooltipProp), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), showTooltip = _useState2[0], @@ -38645,17 +38365,35 @@ function RangeControl(_ref, ref) { var handleOnRangeChange = function handleOnRangeChange(event) { var nextValue = parseFloat(event.target.value); - handleOnChange(nextValue); + setValue(nextValue); + onChange(nextValue); }; var handleOnChange = function handleOnChange(nextValue) { - if (isNaN(nextValue)) { - handleOnReset(); - return; - } - + nextValue = parseFloat(nextValue); setValue(nextValue); - onChange(nextValue); + /* + * Calls onChange only when nextValue is numeric + * otherwise may queue a reset for the blur event. + */ + + if (!isNaN(nextValue)) { + if (nextValue < min || nextValue > max) { + nextValue = floatClamp(nextValue, min, max); + } + + onChange(nextValue); + isResetPendent.current = false; + } else if (allowReset) { + isResetPendent.current = true; + } + }; + + var handleOnInputNumberBlur = function handleOnInputNumberBlur() { + if (isResetPendent.current) { + handleOnReset(); + isResetPendent.current = false; + } }; var handleOnReset = function handleOnReset() { @@ -38770,14 +38508,16 @@ function RangeControl(_ref, ref) { value: value })), afterIcon && Object(external_this_wp_element_["createElement"])(AfterIconWrapper, null, Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { icon: afterIcon - })), withInputField && Object(external_this_wp_element_["createElement"])(input_field_InputField, { + })), withInputField && Object(external_this_wp_element_["createElement"])(InputNumber, { + "aria-label": label, + className: "components-range-control__number", disabled: disabled, + inputMode: "decimal", isShiftStepEnabled: isShiftStepEnabled, - label: label, max: max, min: min, + onBlur: handleOnInputNumberBlur, onChange: handleOnChange, - onReset: handleOnReset, shiftStep: shiftStep, step: step, value: inputSliderValue @@ -38878,7 +38618,7 @@ function FontSizePicker(_ref) { className: "components-font-size-picker__controls" }, fontSizes.length > 0 && Object(external_this_wp_element_["createElement"])(CustomSelectControl, { className: 'components-font-size-picker__select', - label: Object(external_this_wp_i18n_["__"])('Preset size'), + label: Object(external_this_wp_i18n_["__"])('Font size'), options: options, value: options.find(function (option) { return option.key === selectedFontSizeSlug; @@ -39111,262 +38851,6 @@ function Token(_ref) { })); } -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js - - - - - - - - - - -function token_input_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (token_input_isNativeReflectConstruct()) { 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 token_input_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; } } - -/** - * WordPress dependencies - */ - - -var token_input_TokenInput = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(TokenInput, _Component); - - var _super = token_input_createSuper(TokenInput); - - function TokenInput() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TokenInput); - - _this = _super.apply(this, arguments); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.bindInput = _this.bindInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(TokenInput, [{ - key: "focus", - value: function focus() { - this.input.focus(); - } - }, { - key: "hasFocus", - value: function hasFocus() { - return this.input === document.activeElement; - } - }, { - key: "bindInput", - value: function bindInput(ref) { - this.input = ref; - } - }, { - key: "onChange", - value: function onChange(event) { - this.props.onChange({ - value: event.target.value - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - value = _this$props.value, - isExpanded = _this$props.isExpanded, - instanceId = _this$props.instanceId, - selectedSuggestionIndex = _this$props.selectedSuggestionIndex, - props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["value", "isExpanded", "instanceId", "selectedSuggestionIndex"]); - - var size = value.length + 1; - return Object(external_this_wp_element_["createElement"])("input", Object(esm_extends["a" /* default */])({ - ref: this.bindInput, - id: "components-form-token-input-".concat(instanceId), - type: "text" - }, props, { - value: value, - onChange: this.onChange, - size: size, - className: "components-form-token-field__input", - role: "combobox", - "aria-expanded": isExpanded, - "aria-autocomplete": "list", - "aria-owns": isExpanded ? "components-form-token-suggestions-".concat(instanceId) : undefined, - "aria-activedescendant": selectedSuggestionIndex !== -1 ? "components-form-token-suggestions-".concat(instanceId, "-").concat(selectedSuggestionIndex) : undefined, - "aria-describedby": "components-form-token-suggestions-howto-".concat(instanceId) - })); - } - }]); - - return TokenInput; -}(external_this_wp_element_["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__(123); -var lib_default = /*#__PURE__*/__webpack_require__.n(lib); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js - - - - - - - - -function suggestions_list_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (suggestions_list_isNativeReflectConstruct()) { 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 suggestions_list_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 - */ - - - - -var suggestions_list_SuggestionsList = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(SuggestionsList, _Component); - - var _super = suggestions_list_createSuper(SuggestionsList); - - function SuggestionsList() { - var _this; - - Object(classCallCheck["a" /* default */])(this, SuggestionsList); - - _this = _super.apply(this, arguments); - _this.handleMouseDown = _this.handleMouseDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.bindList = _this.bindList.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(SuggestionsList, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - var _this2 = this; - - // only have to worry about scrolling selected suggestion into view - // when already expanded - if (this.props.selectedIndex > -1 && this.props.scrollIntoView) { - this.scrollingIntoView = true; - lib_default()(this.list.children[this.props.selectedIndex], this.list, { - onlyScrollIfNeeded: true - }); - this.props.setTimeout(function () { - _this2.scrollingIntoView = false; - }, 100); - } - } - }, { - key: "bindList", - value: function bindList(ref) { - this.list = ref; - } - }, { - key: "handleHover", - value: function handleHover(suggestion) { - var _this3 = this; - - return function () { - if (!_this3.scrollingIntoView) { - _this3.props.onHover(suggestion); - } - }; - } - }, { - key: "handleClick", - value: function handleClick(suggestion) { - var _this4 = this; - - return function () { - _this4.props.onSelect(suggestion); - }; - } - }, { - key: "handleMouseDown", - value: function handleMouseDown(e) { - // By preventing default here, we will not lose focus of when clicking a suggestion - e.preventDefault(); - } - }, { - key: "computeSuggestionMatch", - value: function computeSuggestionMatch(suggestion) { - var match = this.props.displayTransform(this.props.match || '').toLocaleLowerCase(); - - if (match.length === 0) { - return null; - } - - suggestion = this.props.displayTransform(suggestion); - var indexOfMatch = suggestion.toLocaleLowerCase().indexOf(match); - return { - suggestionBeforeMatch: suggestion.substring(0, indexOfMatch), - suggestionMatch: suggestion.substring(indexOfMatch, indexOfMatch + match.length), - suggestionAfterMatch: suggestion.substring(indexOfMatch + match.length) - }; - } - }, { - key: "render", - value: function render() { - var _this5 = this; - - // We set `tabIndex` here because otherwise Firefox sets focus on this - // div when tabbing off of the input in `TokenField` -- not really sure - // why, since usually a div isn't focusable by default - // TODO does this still apply now that it's a
        and not a
        ? - return Object(external_this_wp_element_["createElement"])("ul", { - ref: this.bindList, - className: "components-form-token-field__suggestions-list", - id: "components-form-token-suggestions-".concat(this.props.instanceId), - role: "listbox" - }, Object(external_this_lodash_["map"])(this.props.suggestions, function (suggestion, index) { - var match = _this5.computeSuggestionMatch(suggestion); - - var classeName = classnames_default()('components-form-token-field__suggestion', { - 'is-selected': index === _this5.props.selectedIndex - }); - /* eslint-disable jsx-a11y/click-events-have-key-events */ - - return Object(external_this_wp_element_["createElement"])("li", { - id: "components-form-token-suggestions-".concat(_this5.props.instanceId, "-").concat(index), - role: "option", - className: classeName, - key: suggestion, - onMouseDown: _this5.handleMouseDown, - onClick: _this5.handleClick(suggestion), - onMouseEnter: _this5.handleHover(suggestion), - "aria-selected": index === _this5.props.selectedIndex - }, match ? Object(external_this_wp_element_["createElement"])("span", { - "aria-label": _this5.props.displayTransform(suggestion) - }, match.suggestionBeforeMatch, Object(external_this_wp_element_["createElement"])("strong", { - className: "components-form-token-field__suggestion-match" - }, match.suggestionMatch), match.suggestionAfterMatch) : _this5.props.displayTransform(suggestion)); - /* eslint-enable jsx-a11y/click-events-have-key-events */ - })); - } - }]); - - return SuggestionsList; -}(external_this_wp_element_["Component"]); - -suggestions_list_SuggestionsList.defaultProps = { - match: '', - onHover: function onHover() {}, - onSelect: function onSelect() {}, - suggestions: Object.freeze([]) -}; -/* harmony default export */ var suggestions_list = (Object(external_this_wp_compose_["withSafeTimeout"])(suggestions_list_SuggestionsList)); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/index.js @@ -39382,7 +38866,7 @@ function form_token_field_ownKeys(object, enumerableOnly) { var keys = Object.ke function form_token_field_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { form_token_field_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 { form_token_field_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function form_token_field_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (form_token_field_isNativeReflectConstruct()) { 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 form_token_field_createSuper(Derived) { var hasNativeReflectConstruct = form_token_field_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 form_token_field_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; } } @@ -39970,7 +39454,7 @@ var form_token_field_FormTokenField = /*#__PURE__*/function (_Component) { }; if (!(maxLength && value.length >= maxLength)) { - props = form_token_field_objectSpread({}, props, { + props = form_token_field_objectSpread(form_token_field_objectSpread({}, props), {}, { onChange: this.onInputChange }); } @@ -40072,100 +39556,25 @@ 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))); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/icons.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -var LinearGradientIcon = Object(external_this_wp_compose_["withInstanceId"])(function (_ref) { - var instanceId = _ref.instanceId; - var linerGradientId = "linear-gradient-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - fill: "none", - height: "20", - viewBox: "0 0 20 20", - width: "20", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["LinearGradient"], { - id: linerGradientId, - gradientUnits: "userSpaceOnUse", - x1: "10", - x2: "10", - y1: "1", - y2: "19" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Stop"], { - offset: "0", - stopColor: "#000000" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Stop"], { - offset: "1", - stopColor: "#ffffff" - })), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m1 1h18v18h-18z", - fill: "url(#".concat(linerGradientId, ")") - })); -}); -var RadialGradientIcon = Object(external_this_wp_compose_["withInstanceId"])(function (_ref2) { - var instanceId = _ref2.instanceId; - var radialGradientId = "radial-gradient-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - fill: "none", - height: "20", - viewBox: "0 0 20 20", - width: "20", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["RadialGradient"], { - id: radialGradientId, - cx: "0", - cy: "0", - gradientTransform: "matrix(0 9 -9 0 10 10)", - gradientUnits: "userSpaceOnUse", - r: "1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Stop"], { - offset: "0", - stopColor: "#000000" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Stop"], { - offset: "1", - stopColor: "#ffffff" - })), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Circle"], { - cx: "10", - cy: "10", - fill: "url(#".concat(radialGradientId, ")"), - r: "9" - })); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus-circle.js - - -/** - * WordPress dependencies - */ - -var plusCircle = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" -})); -/* harmony default export */ var plus_circle = (plusCircle); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js +var plus = __webpack_require__(208); // EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js -var build_node = __webpack_require__(194); +var build_node = __webpack_require__(199); var node_default = /*#__PURE__*/__webpack_require__.n(build_node); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js +/** + * WordPress dependencies + */ + var INSERT_POINT_WIDTH = 23; var GRADIENT_MARKERS_WIDTH = 18; var MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = (INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH) / 2; var MINIMUM_ABSOLUTE_LEFT_POSITION = 5; -var MINIMUM_DISTANCE_BETWEEN_POINTS = 9; +var MINIMUM_DISTANCE_BETWEEN_POINTS = 0; +var MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10; +var KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; var MINIMUM_SIGNIFICANT_MOVE = 5; var DEFAULT_GRADIENT = 'linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)'; var COLOR_POPOVER_PROPS = { @@ -40177,6 +39586,13 @@ var HORIZONTAL_GRADIENT_ORIENTATION = { type: 'angular', value: 90 }; +var GRADIENT_OPTIONS = [{ + value: 'linear-gradient', + label: Object(external_this_wp_i18n_["__"])('Linear') +}, { + value: 'radial-gradient', + label: Object(external_this_wp_i18n_["__"])('Radial') +}]; // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/serializer.js @@ -40189,10 +39605,14 @@ function serializeGradientColor(_ref) { var type = _ref.type, value = _ref.value; - if (type === 'literal' || type === 'hex') { + if (type === 'literal') { return value; } + if (type === 'hex') { + return "#".concat(value); + } + return "".concat(type, "(").concat(value.join(','), ")"); } function serializeGradientPosition(_ref2) { @@ -40272,19 +39692,19 @@ function getGradientWithColorStopAdded(gradientAST, relativePosition, rgbaColor) type: '%', value: relativePosition }; - return utils_objectSpread({}, gradientAST, { + return utils_objectSpread(utils_objectSpread({}, gradientAST), {}, { colorStops: [].concat(Object(toConsumableArray["a" /* default */])(gradientAST.colorStops), [colorStop]) }); } function getGradientWithPositionAtIndexChanged(gradientAST, index, relativePosition) { - return utils_objectSpread({}, gradientAST, { + return utils_objectSpread(utils_objectSpread({}, gradientAST), {}, { colorStops: gradientAST.colorStops.map(function (colorStop, colorStopIndex) { if (colorStopIndex !== index) { return colorStop; } - return utils_objectSpread({}, colorStop, { - length: utils_objectSpread({}, colorStop.length, { + return utils_objectSpread(utils_objectSpread({}, colorStop), {}, { + length: utils_objectSpread(utils_objectSpread({}, colorStop.length), {}, { value: relativePosition }) }); @@ -40314,19 +39734,19 @@ function getGradientWithPositionAtIndexSummed(gradientAST, index, valueToSum) { } function getGradientWithPositionAtIndexIncreased(gradientAST, index) { - return getGradientWithPositionAtIndexSummed(gradientAST, index, MINIMUM_DISTANCE_BETWEEN_POINTS); + return getGradientWithPositionAtIndexSummed(gradientAST, index, KEYBOARD_CONTROL_POINT_VARIATION); } function getGradientWithPositionAtIndexDecreased(gradientAST, index) { - return getGradientWithPositionAtIndexSummed(gradientAST, index, -MINIMUM_DISTANCE_BETWEEN_POINTS); + return getGradientWithPositionAtIndexSummed(gradientAST, index, -KEYBOARD_CONTROL_POINT_VARIATION); } function getGradientWithColorAtIndexChanged(gradientAST, index, rgbaColor) { - return utils_objectSpread({}, gradientAST, { + return utils_objectSpread(utils_objectSpread({}, gradientAST), {}, { colorStops: gradientAST.colorStops.map(function (colorStop, colorStopIndex) { if (colorStopIndex !== index) { return colorStop; } - return utils_objectSpread({}, colorStop, {}, tinyColorRgbToGradientColorStop(rgbaColor)); + return utils_objectSpread(utils_objectSpread({}, colorStop), tinyColorRgbToGradientColorStop(rgbaColor)); }) }); } @@ -40337,7 +39757,7 @@ function getGradientWithColorAtPositionChanged(gradientAST, relativePositionValu return getGradientWithColorAtIndexChanged(gradientAST, index, rgbaColor); } function getGradientWithControlPointRemoved(gradientAST, index) { - return utils_objectSpread({}, gradientAST, { + return utils_objectSpread(utils_objectSpread({}, gradientAST), {}, { colorStops: gradientAST.colorStops.filter(function (elem, elemIndex) { return elemIndex !== index; }) @@ -40445,7 +39865,7 @@ function getGradientParsed(value) { -function control_points_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (control_points_isNativeReflectConstruct()) { 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 control_points_createSuper(Derived) { var hasNativeReflectConstruct = control_points_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 control_points_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; } } @@ -40548,6 +39968,7 @@ function ControlPointButton(_ref) { "aria-label": Object(external_this_wp_i18n_["sprintf"])( // translators: %1$s: gradient position e.g: 70%, %2$s: gradient color code e.g: rgb(52,121,151). Object(external_this_wp_i18n_["__"])('Gradient control point at position %1$s with color code %2$s.'), position, color), "aria-describedby": descriptionId, + "aria-haspopup": "true", "aria-expanded": isOpen, className: classnames_default()('components-custom-gradient-picker__control-point-button', { 'is-active': isOpen @@ -40718,6 +40139,7 @@ function InsertPoint(_ref) { onToggle = _ref2.onToggle; return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { "aria-expanded": isOpen, + "aria-haspopup": "true", onClick: function onClick() { if (isOpen) { onCloseInserter(); @@ -40729,7 +40151,7 @@ function InsertPoint(_ref) { onToggle(); }, className: "components-custom-gradient-picker__insert-point", - icon: plus_circle, + icon: plus["a" /* default */], style: { left: insertPosition !== null ? "".concat(insertPosition, "%") : undefined } @@ -40847,7 +40269,7 @@ function CustomGradientBar(_ref4) { if (Object(external_this_lodash_["some"])(markerPoints, function (_ref5) { var positionValue = _ref5.positionValue; - return Math.abs(insertPosition - positionValue) < MINIMUM_DISTANCE_BETWEEN_POINTS; + return Math.abs(insertPosition - positionValue) < MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; })) { if (gradientBarState.id === 'MOVING_INSERTER') { gradientBarStateDispatch({ @@ -40920,270 +40342,22 @@ function CustomGradientBar(_ref4) { }))); } -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-item/index.js -var toolbar_item = __webpack_require__(132); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-context/index.js -var toolbar_context = __webpack_require__(87); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/toolbar-button-container.js +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js -var toolbar_button_container_ToolbarButtonContainer = function ToolbarButtonContainer(props) { - return Object(external_this_wp_element_["createElement"])("div", { - className: props.className - }, props.children); -}; - -/* harmony default export */ var toolbar_button_container = (toolbar_button_container_ToolbarButtonContainer); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/index.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - +function custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /** * Internal dependencies */ - - - - - -function ToolbarButton(_ref, ref) { - var containerClassName = _ref.containerClassName, - className = _ref.className, - extraProps = _ref.extraProps, - children = _ref.children, - title = _ref.title, - isActive = _ref.isActive, - isDisabled = _ref.isDisabled, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["containerClassName", "className", "extraProps", "children", "title", "isActive", "isDisabled"]); - - var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); - - if (!accessibleToolbarState) { - // This should be deprecated when - // becomes stable. - return Object(external_this_wp_element_["createElement"])(toolbar_button_container, { - className: containerClassName - }, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - ref: ref, - icon: props.icon, - label: title, - shortcut: props.shortcut, - "data-subscript": props.subscript, - onClick: function onClick(event) { - event.stopPropagation(); - - if (props.onClick) { - props.onClick(event); - } - }, - className: classnames_default()('components-toolbar__control', className), - isPressed: isActive, - disabled: isDisabled, - "data-experimental-toolbar-item": true - }, extraProps, props), children)); - } // ToobarItem will pass all props to the render prop child, which will pass - // all props to Button. This means that ToolbarButton has the same API as - // Button. - - - return Object(external_this_wp_element_["createElement"])(toolbar_item["a" /* default */], Object(esm_extends["a" /* default */])({ - className: classnames_default()('components-toolbar-button', className) - }, extraProps, props, { - ref: ref - }), function (toolbarItemProps) { - return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - label: title, - isPressed: isActive, - disabled: isDisabled - }, toolbarItemProps), children); - }); -} - -/* harmony default export */ var toolbar_button = (Object(external_this_wp_element_["forwardRef"])(ToolbarButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-container.js - - - - -var toolbar_group_container_ToolbarGroupContainer = function ToolbarGroupContainer(_ref) { - var className = _ref.className, - children = _ref.children, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "children"]); - - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - className: className - }, props), children); -}; - -/* harmony default export */ var toolbar_group_container = (toolbar_group_container_ToolbarGroupContainer); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-collapsed.js - - - - - -function toolbar_group_collapsed_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 toolbar_group_collapsed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { toolbar_group_collapsed_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 { toolbar_group_collapsed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - -function ToolbarGroupCollapsed(_ref) { - var _ref$controls = _ref.controls, - controls = _ref$controls === void 0 ? [] : _ref$controls, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["controls"]); - - // It'll contain state if `ToolbarGroup` is being used within - // `` - var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); - - var renderDropdownMenu = function renderDropdownMenu(toggleProps) { - return Object(external_this_wp_element_["createElement"])(dropdown_menu, Object(esm_extends["a" /* default */])({ - controls: controls, - toggleProps: toolbar_group_collapsed_objectSpread({}, toggleProps, { - 'data-experimental-toolbar-item': true - }) - }, props)); - }; - - if (accessibleToolbarState) { - return Object(external_this_wp_element_["createElement"])(toolbar_item["a" /* default */], null, renderDropdownMenu); - } - - return renderDropdownMenu(); -} - -/* harmony default export */ var toolbar_group_collapsed = (ToolbarGroupCollapsed); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/index.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -/** - * Renders a collapsible group of controls - * - * The `controls` prop accepts an array of sets. A set is an array of controls. - * Controls have the following shape: - * - * ``` - * { - * icon: string, - * title: string, - * subscript: string, - * onClick: Function, - * isActive: boolean, - * isDisabled: boolean - * } - * ``` - * - * For convenience it is also possible to pass only an array of controls. It is - * then assumed this is the only set. - * - * Either `controls` or `children` is required, otherwise this components - * renders nothing. - * - * @param {Object} props Component props. - * @param {Array} [props.controls] The controls to render in this toolbar. - * @param {WPElement} [props.children] Any other things to render inside the toolbar besides the controls. - * @param {string} [props.className] Class to set on the container div. - * @param {boolean} [props.isCollapsed] Turns ToolbarGroup into a dropdown menu. - * @param {string} [props.title] ARIA label for dropdown menu if is collapsed. - */ - -function ToolbarGroup(_ref) { - var _ref$controls = _ref.controls, - controls = _ref$controls === void 0 ? [] : _ref$controls, - children = _ref.children, - className = _ref.className, - isCollapsed = _ref.isCollapsed, - title = _ref.title, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["controls", "children", "className", "isCollapsed", "title"]); - - // It'll contain state if `ToolbarGroup` is being used within - // `` - var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); - - if ((!controls || !controls.length) && !children) { - return null; - } - - var finalClassName = classnames_default()( // Unfortunately, there's legacy code referencing to `.components-toolbar` - // So we can't get rid of it - accessibleToolbarState ? 'components-toolbar-group' : 'components-toolbar', className); // Normalize controls to nested array of objects (sets of controls) - - var controlSets = controls; - - if (!Array.isArray(controlSets[0])) { - controlSets = [controlSets]; - } - - if (isCollapsed) { - return Object(external_this_wp_element_["createElement"])(toolbar_group_collapsed, Object(esm_extends["a" /* default */])({ - label: title, - controls: controlSets, - className: finalClassName, - children: children - }, props)); - } - - return Object(external_this_wp_element_["createElement"])(toolbar_group_container, Object(esm_extends["a" /* default */])({ - className: finalClassName - }, props), Object(external_this_lodash_["flatMap"])(controlSets, function (controlSet, indexOfSet) { - return controlSet.map(function (control, indexOfControl) { - return Object(external_this_wp_element_["createElement"])(toolbar_button, Object(esm_extends["a" /* default */])({ - key: [indexOfSet, indexOfControl].join(), - containerClassName: indexOfSet > 0 && indexOfControl === 0 ? 'has-left-divider' : null - }, control)); - }); - }), children); -} - -/* harmony default export */ var toolbar_group = (ToolbarGroup); +var SelectWrapper = /*#__PURE__*/styled_base_browser_esm(flex_item, { + target: "e99xvul0", + label: "SelectWrapper" +})( true ? { + name: "14kcwr6", + styles: "width:110px;" +} : undefined); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js @@ -41222,7 +40396,7 @@ var custom_gradient_picker_GradientAnglePicker = function GradientAnglePicker(_r var angle = Object(external_this_lodash_["get"])(gradientAST, ['orientation', 'value'], DEFAULT_LINEAR_GRADIENT_ANGLE); var onAngleChange = function onAngleChange(newAngle) { - onChange(serializeGradient(custom_gradient_picker_objectSpread({}, gradientAST, { + onChange(serializeGradient(custom_gradient_picker_objectSpread(custom_gradient_picker_objectSpread({}, gradientAST), {}, { orientation: { type: 'angular', value: newAngle @@ -41243,35 +40417,36 @@ var custom_gradient_picker_GradientTypePicker = function GradientTypePicker(_ref var type = gradientAST.type; var onSetLinearGradient = function onSetLinearGradient() { - onChange(serializeGradient(custom_gradient_picker_objectSpread({}, gradientAST, {}, gradientAST.orientation ? {} : { + onChange(serializeGradient(custom_gradient_picker_objectSpread(custom_gradient_picker_objectSpread(custom_gradient_picker_objectSpread({}, gradientAST), gradientAST.orientation ? {} : { orientation: HORIZONTAL_GRADIENT_ORIENTATION - }, { + }), {}, { type: 'linear-gradient' }))); }; var onSetRadialGradient = function onSetRadialGradient() { - onChange(serializeGradient(custom_gradient_picker_objectSpread({}, Object(external_this_lodash_["omit"])(gradientAST, ['orientation']), { + onChange(serializeGradient(custom_gradient_picker_objectSpread(custom_gradient_picker_objectSpread({}, Object(external_this_lodash_["omit"])(gradientAST, ['orientation'])), {}, { type: 'radial-gradient' }))); }; - return Object(external_this_wp_element_["createElement"])(base_control, { - className: "components-custom-gradient-picker__type-picker" - }, Object(external_this_wp_element_["createElement"])(base_control.VisualLabel, null, Object(external_this_wp_i18n_["__"])('Type')), Object(external_this_wp_element_["createElement"])(toolbar_group, { - className: "components-custom-gradient-picker__toolbar", - controls: [{ - icon: Object(external_this_wp_element_["createElement"])(LinearGradientIcon, null), - title: Object(external_this_wp_i18n_["__"])('Linear Gradient'), - isActive: hasGradient && type === 'linear-gradient', - onClick: onSetLinearGradient - }, { - icon: Object(external_this_wp_element_["createElement"])(RadialGradientIcon, null), - title: Object(external_this_wp_i18n_["__"])('Radial Gradient'), - isActive: hasGradient && type === 'radial-gradient', - onClick: onSetRadialGradient - }] - })); + var handleOnChange = function handleOnChange(next) { + if (next === 'linear-gradient') { + onSetLinearGradient(); + } + + if (next === 'radial-gradient') { + onSetRadialGradient(); + } + }; + + return Object(external_this_wp_element_["createElement"])(select_control, { + className: "components-custom-gradient-picker__type-picker", + label: Object(external_this_wp_i18n_["__"])('Type'), + onChange: handleOnChange, + options: GRADIENT_OPTIONS, + value: hasGradient && type + }); }; function CustomGradientPicker(_ref3) { @@ -41288,17 +40463,18 @@ function CustomGradientPicker(_ref3) { }, Object(external_this_wp_element_["createElement"])(CustomGradientBar, { value: value, onChange: onChange - }), Object(external_this_wp_element_["createElement"])("div", { + }), Object(external_this_wp_element_["createElement"])(flex_Flex, { + gap: 3, className: "components-custom-gradient-picker__ui-line" - }, Object(external_this_wp_element_["createElement"])(custom_gradient_picker_GradientTypePicker, { + }, Object(external_this_wp_element_["createElement"])(SelectWrapper, null, Object(external_this_wp_element_["createElement"])(custom_gradient_picker_GradientTypePicker, { gradientAST: gradientAST, hasGradient: hasGradient, onChange: onChange - }), type === 'linear-gradient' && Object(external_this_wp_element_["createElement"])(custom_gradient_picker_GradientAnglePicker, { + })), type === 'linear-gradient' && Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(custom_gradient_picker_GradientAnglePicker, { gradientAST: gradientAST, hasGradient: hasGradient, onChange: onChange - }))); + })))); } // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/gradient-picker/index.js @@ -41368,13 +40544,13 @@ function GradientPicker(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js -var isolated_event_container = __webpack_require__(131); +var isolated_event_container = __webpack_require__(136); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js -var with_focus_return = __webpack_require__(130); +var with_focus_return = __webpack_require__(134); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js -var with_constrained_tabbing = __webpack_require__(129); +var with_constrained_tabbing = __webpack_require__(133); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/frame.js @@ -41385,7 +40561,7 @@ var with_constrained_tabbing = __webpack_require__(129); -function frame_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (frame_isNativeReflectConstruct()) { 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 frame_createSuper(Derived) { var hasNativeReflectConstruct = frame_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 frame_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; } } @@ -41536,7 +40712,7 @@ var frame_ModalFrame = /*#__PURE__*/function (_Component) { /* harmony default export */ var modal_frame = (Object(external_this_wp_compose_["compose"])([with_focus_return["a" /* default */], with_constrained_tabbing["a" /* default */], with_focus_outside["a" /* default */]])(frame_ModalFrame)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(153); +var library_close = __webpack_require__(157); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js @@ -41657,7 +40833,7 @@ function showApp() { -function modal_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (modal_isNativeReflectConstruct()) { 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 modal_createSuper(Derived) { var hasNativeReflectConstruct = modal_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 modal_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; } } @@ -42153,7 +41329,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__(165); +var build_module_shortcut = __webpack_require__(169); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-item/index.js @@ -42176,6 +41352,7 @@ var build_module_shortcut = __webpack_require__(165); + /** * Renders a generic menu item for use inside the more menu. * @@ -42220,8 +41397,7 @@ function MenuItem(_ref, ref) { } return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - ref: ref, - icon: icon // Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked + ref: ref // Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked , "aria-checked": role === 'menuitemcheckbox' || role === 'menuitemradio' ? isSelected : undefined, role: role, @@ -42229,6 +41405,8 @@ function MenuItem(_ref, ref) { }, props), children, Object(external_this_wp_element_["createElement"])(build_module_shortcut["a" /* default */], { className: "components-menu-item__shortcut", shortcut: shortcut + }), icon && Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { + icon: icon })); } /* harmony default export */ var menu_item = (Object(external_this_wp_element_["forwardRef"])(MenuItem)); @@ -42282,7 +41460,7 @@ function MenuItemsChoice(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(160); +var scroll_lock = __webpack_require__(163); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js @@ -42336,6 +41514,574 @@ function TabbableContainer(_ref, ref) { } /* harmony default export */ var tabbable = (Object(external_this_wp_element_["forwardRef"])(TabbableContainer)); +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/constants.js +var ROOT_MENU = 'root'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/context.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var NavigationContext = Object(external_this_wp_element_["createContext"])({ + activeItem: undefined, + activeMenu: ROOT_MENU, + setActiveMenu: external_this_lodash_["noop"], + navigationTree: { + items: {}, + getItem: external_this_lodash_["noop"], + addItem: external_this_lodash_["noop"], + removeItem: external_this_lodash_["noop"], + menus: {}, + getMenu: external_this_lodash_["noop"], + addMenu: external_this_lodash_["noop"], + removeMenu: external_this_lodash_["noop"] + } +}); +var context_useNavigationContext = function useNavigationContext() { + return Object(external_this_wp_element_["useContext"])(NavigationContext); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/styles/navigation-styles.js + + +function navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * Internal dependencies + */ + + + + +var NavigationUI = styled_base_browser_esm("div", { + target: "ejwewyf0", + label: "NavigationUI" +})("width:100%;background-color:", G2.darkGray.primary, ";color:#f0f0f0;padding:0 8px;overflow:hidden;" + ( true ? "" : undefined)); +var MenuUI = styled_base_browser_esm("div", { + target: "ejwewyf1", + label: "MenuUI" +})( true ? { + 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;}" +} : undefined); +var MenuBackButtonUI = /*#__PURE__*/styled_base_browser_esm(build_module_button["a" /* default */], { + target: "ejwewyf2", + label: "MenuBackButtonUI" +})("&.is-tertiary{color:", G2.lightGray.ui, ";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}" + ( true ? "" : undefined)); +var MenuTitleUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "ejwewyf3", + label: "MenuTitleUI" +})("padding:4px 0 4px 16px;margin-bottom:8px;color:", G2.gray[100], ";" + ( true ? "" : undefined)); +var GroupTitleUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "ejwewyf4", + label: "GroupTitleUI" +})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:", G2.gray[100], ";" + ( true ? "" : undefined)); +var ItemUI = styled_base_browser_esm("li", { + target: "ejwewyf5", + label: "ItemUI" +})("border-radius:2px;color:", G2.lightGray.ui, ";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:", G2.lightGray.ui, ";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:", UI.theme, ";color:", UI.textDark, ";button,a{color:", UI.textDark, ";}}svg path{color:", G2.lightGray.ui, ";}" + ( true ? "" : undefined)); +var ItemBadgeUI = styled_base_browser_esm("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;}}", reduceMotion('animation'), ";" + ( true ? "" : undefined)); +var ItemTitleUI = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "ejwewyf7", + label: "ItemTitleUI" +})( true ? { + name: "zs804i", + styles: "margin-right:auto;text-align:left;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-navigation-tree-nodes.js + + + +function use_navigation_tree_nodes_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 use_navigation_tree_nodes_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_navigation_tree_nodes_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 { use_navigation_tree_nodes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var use_navigation_tree_nodes_useNavigationTreeNodes = function useNavigationTreeNodes() { + var _useState = Object(external_this_wp_element_["useState"])({}), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + nodes = _useState2[0], + setNodes = _useState2[1]; + + var getNode = function getNode(key) { + return nodes[key]; + }; + + var addNode = function addNode(key, value) { + return setNodes(function (original) { + return use_navigation_tree_nodes_objectSpread(use_navigation_tree_nodes_objectSpread({}, original), {}, Object(defineProperty["a" /* default */])({}, key, Object(external_this_lodash_["omit"])(value, 'children'))); + }); + }; + + var removeNode = function removeNode(key) { + return setNodes(function (original) { + return Object(external_this_lodash_["omit"])(original, key); + }); + }; + + return { + nodes: nodes, + getNode: getNode, + addNode: addNode, + removeNode: removeNode + }; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-create-navigation-tree.js +/** + * Internal dependencies + */ + +var use_create_navigation_tree_useCreateNavigationTree = function useCreateNavigationTree() { + var _useNavigationTreeNod = use_navigation_tree_nodes_useNavigationTreeNodes(), + items = _useNavigationTreeNod.nodes, + getItem = _useNavigationTreeNod.getNode, + addItem = _useNavigationTreeNod.addNode, + removeItem = _useNavigationTreeNod.removeNode; + + var _useNavigationTreeNod2 = use_navigation_tree_nodes_useNavigationTreeNodes(), + menus = _useNavigationTreeNod2.nodes, + getMenu = _useNavigationTreeNod2.getNode, + addMenu = _useNavigationTreeNod2.addNode, + removeMenu = _useNavigationTreeNod2.removeNode; + + return { + items: items, + getItem: getItem, + addItem: addItem, + removeItem: removeItem, + menus: menus, + getMenu: getMenu, + addMenu: addMenu, + removeMenu: removeMenu + }; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/index.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function Navigation(_ref) { + var activeItem = _ref.activeItem, + _ref$activeMenu = _ref.activeMenu, + activeMenu = _ref$activeMenu === void 0 ? ROOT_MENU : _ref$activeMenu, + children = _ref.children, + className = _ref.className, + _ref$onActivateMenu = _ref.onActivateMenu, + onActivateMenu = _ref$onActivateMenu === void 0 ? external_this_lodash_["noop"] : _ref$onActivateMenu; + + var _useState = Object(external_this_wp_element_["useState"])(activeMenu), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + menu = _useState2[0], + setMenu = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + slideOrigin = _useState4[0], + setSlideOrigin = _useState4[1]; + + var navigationTree = use_create_navigation_tree_useCreateNavigationTree(); + + var setActiveMenu = function setActiveMenu(menuId) { + var slideInOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'left'; + + if (!navigationTree.getMenu(menuId)) { + return; + } + + setSlideOrigin(slideInOrigin); + setMenu(menuId); + onActivateMenu(menuId); + }; // Used to prevent the sliding animation on mount + + + var isMounted = Object(external_this_wp_element_["useRef"])(false); + Object(external_this_wp_element_["useEffect"])(function () { + if (!isMounted.current) { + isMounted.current = true; + } + }, []); + Object(external_this_wp_element_["useEffect"])(function () { + if (activeMenu !== menu) { + setActiveMenu(activeMenu); + } + }, [activeMenu]); + var context = { + activeItem: activeItem, + activeMenu: menu, + setActiveMenu: setActiveMenu, + navigationTree: navigationTree + }; + var classes = classnames_default()('components-navigation', className); + return Object(external_this_wp_element_["createElement"])(NavigationUI, { + className: classes + }, Object(external_this_wp_element_["createElement"])(animate["a" /* default */], { + key: menu, + type: "slide-in", + options: { + origin: slideOrigin + } + }, function (_ref2) { + var animateClassName = _ref2.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()(Object(defineProperty["a" /* default */])({}, animateClassName, isMounted.current && slideOrigin)) + }, Object(external_this_wp_element_["createElement"])(NavigationContext.Provider, { + value: context + }, children)); + })); +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js +var chevron_left = __webpack_require__(214); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function NavigationBackButton(_ref) { + var _navigationTree$getMe; + + var backButtonLabel = _ref.backButtonLabel, + className = _ref.className, + href = _ref.href, + _onClick = _ref.onClick, + parentMenu = _ref.parentMenu; + + var _useNavigationContext = context_useNavigationContext(), + setActiveMenu = _useNavigationContext.setActiveMenu, + navigationTree = _useNavigationContext.navigationTree; + + var classes = classnames_default()('components-navigation__back-button', className); + var parentMenuTitle = (_navigationTree$getMe = navigationTree.getMenu(parentMenu)) === null || _navigationTree$getMe === void 0 ? void 0 : _navigationTree$getMe.title; + return Object(external_this_wp_element_["createElement"])(MenuBackButtonUI, { + className: classes, + isTertiary: true, + href: href, + onClick: function onClick() { + return parentMenu ? setActiveMenu(parentMenu, 'right') : _onClick; + } + }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: chevron_left["a" /* default */] + }), backButtonLabel || parentMenuTitle || Object(external_this_wp_i18n_["__"])('Back')); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/context.js +/** + * WordPress dependencies + */ + +var NavigationMenuContext = Object(external_this_wp_element_["createContext"])({ + menu: undefined, + isActive: false +}); +var context_useNavigationMenuContext = function useNavigationMenuContext() { + return Object(external_this_wp_element_["useContext"])(NavigationMenuContext); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/index.js + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function NavigationGroup(_ref) { + var children = _ref.children, + className = _ref.className, + title = _ref.title; + + var _useNavigationMenuCon = context_useNavigationMenuContext(), + isActive = _useNavigationMenuCon.isActive; // Keep the children rendered to make sure inactive items are included in the navigation tree + + + if (!isActive) { + return children; + } + + var classes = classnames_default()('components-navigation__group', className); + return Object(external_this_wp_element_["createElement"])("li", { + className: classes + }, title && Object(external_this_wp_element_["createElement"])(GroupTitleUI, { + as: "h3", + className: "components-navigation__group-title", + variant: "caption" + }, title), Object(external_this_wp_element_["createElement"])("ul", null, children)); +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js +var chevron_right = __webpack_require__(213); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js + + +function use_navigation_tree_item_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 use_navigation_tree_item_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_navigation_tree_item_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 { use_navigation_tree_item_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var use_navigation_tree_item_useNavigationTreeItem = function useNavigationTreeItem(props) { + var _useNavigationContext = context_useNavigationContext(), + _useNavigationContext2 = _useNavigationContext.navigationTree, + addItem = _useNavigationContext2.addItem, + removeItem = _useNavigationContext2.removeItem; + + var _useNavigationMenuCon = context_useNavigationMenuContext(), + menu = _useNavigationMenuCon.menu; + + var key = props.item; + Object(external_this_wp_element_["useEffect"])(function () { + addItem(key, use_navigation_tree_item_objectSpread(use_navigation_tree_item_objectSpread({}, props), {}, { + menu: menu + })); + return function () { + removeItem(key); + }; + }, []); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/index.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function NavigationItem(props) { + var badge = props.badge, + children = props.children, + className = props.className, + href = props.href, + item = props.item, + navigateToMenu = props.navigateToMenu, + _props$onClick = props.onClick, + onClick = _props$onClick === void 0 ? external_this_lodash_["noop"] : _props$onClick, + title = props.title, + restProps = Object(objectWithoutProperties["a" /* default */])(props, ["badge", "children", "className", "href", "item", "navigateToMenu", "onClick", "title"]); + + use_navigation_tree_item_useNavigationTreeItem(props); + + var _useNavigationContext = context_useNavigationContext(), + activeItem = _useNavigationContext.activeItem, + setActiveMenu = _useNavigationContext.setActiveMenu; + + var _useNavigationMenuCon = context_useNavigationMenuContext(), + isActive = _useNavigationMenuCon.isActive; // If this item is in an inactive menu, then we skip rendering + // We need to make sure this component gets mounted though + // To make sure inactive items are included in the navigation tree + + + if (!isActive) { + return null; + } + + var classes = classnames_default()('components-navigation__item', className, { + 'is-active': item && activeItem === item + }); + + var onItemClick = function onItemClick(event) { + if (navigateToMenu) { + setActiveMenu(navigateToMenu); + } + + onClick(event); + }; + + return Object(external_this_wp_element_["createElement"])(ItemUI, { + className: classes + }, children || Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + href: href, + onClick: onItemClick + }, restProps), title && Object(external_this_wp_element_["createElement"])(ItemTitleUI, { + className: "components-navigation__item-title", + variant: "body.small", + as: "span" + }, title), badge && Object(external_this_wp_element_["createElement"])(ItemBadgeUI, { + className: "components-navigation__item-badge" + }, badge), navigateToMenu && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: chevron_right["a" /* default */] + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/use-navigation-tree-menu.js + + +function use_navigation_tree_menu_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 use_navigation_tree_menu_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_navigation_tree_menu_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 { use_navigation_tree_menu_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var use_navigation_tree_menu_useNavigationTreeMenu = function useNavigationTreeMenu(props) { + var _useNavigationContext = context_useNavigationContext(), + _useNavigationContext2 = _useNavigationContext.navigationTree, + addMenu = _useNavigationContext2.addMenu, + removeMenu = _useNavigationContext2.removeMenu; + + var key = props.menu || ROOT_MENU; + Object(external_this_wp_element_["useEffect"])(function () { + addMenu(key, use_navigation_tree_menu_objectSpread(use_navigation_tree_menu_objectSpread({}, props), {}, { + menu: key + })); + return function () { + removeMenu(key); + }; + }, []); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/index.js + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + + + + + +function NavigationMenu(props) { + var backButtonLabel = props.backButtonLabel, + children = props.children, + className = props.className, + _props$menu = props.menu, + menu = _props$menu === void 0 ? ROOT_MENU : _props$menu, + parentMenu = props.parentMenu, + title = props.title; + use_navigation_tree_menu_useNavigationTreeMenu(props); + + var _useNavigationContext = context_useNavigationContext(), + activeMenu = _useNavigationContext.activeMenu; + + var isActive = activeMenu === menu; + var classes = classnames_default()('components-navigation__menu', className); + var context = { + menu: menu, + isActive: isActive + }; // Keep the children rendered to make sure inactive items are included in the navigation tree + + if (!isActive) { + return Object(external_this_wp_element_["createElement"])(NavigationMenuContext.Provider, { + value: context + }, children); + } + + return Object(external_this_wp_element_["createElement"])(NavigationMenuContext.Provider, { + value: context + }, Object(external_this_wp_element_["createElement"])(MenuUI, { + className: classes + }, parentMenu && Object(external_this_wp_element_["createElement"])(NavigationBackButton, { + backButtonLabel: backButtonLabel, + parentMenu: parentMenu + }), title && Object(external_this_wp_element_["createElement"])(MenuTitleUI, { + as: "h2", + className: "components-navigation__menu-title", + variant: "subtitle" + }, title), Object(external_this_wp_element_["createElement"])("ul", null, children))); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/notice/index.js @@ -42547,8 +42293,23 @@ function Panel(_ref) { /* harmony default export */ var panel = (Panel); +// CONCATENATED MODULE: ./node_modules/react-merge-refs/dist/react-merge-refs.esm.js +function mergeRefs(refs) { + return function (value) { + refs.forEach(function (ref) { + if (typeof ref === "function") { + ref(value); + } else if (ref != null) { + ref.current = value; + } + }); + }; +} + +/* harmony default export */ var react_merge_refs_esm = (mergeRefs); + // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(295); +var chevron_up = __webpack_require__(311); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/body.js @@ -42556,112 +42317,112 @@ var chevron_up = __webpack_require__(295); - - - - -function body_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (body_isNativeReflectConstruct()) { 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 body_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 */ + /** * Internal dependencies */ -var body_PanelBody = /*#__PURE__*/function (_Component) { - Object(inherits["a" /* default */])(PanelBody, _Component); - var _super = body_createSuper(PanelBody); +function PanelBody(_ref, ref) { + var children = _ref.children, + className = _ref.className, + icon = _ref.icon, + initialOpen = _ref.initialOpen, + _ref$onToggle = _ref.onToggle, + onToggle = _ref$onToggle === void 0 ? external_this_lodash_["noop"] : _ref$onToggle, + opened = _ref.opened, + title = _ref.title; - function PanelBody(props) { - var _this; + var _useControlledState = use_controlled_state(opened, { + initial: initialOpen === undefined ? true : initialOpen + }), + _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), + isOpened = _useControlledState2[0], + setIsOpened = _useControlledState2[1]; - Object(classCallCheck["a" /* default */])(this, PanelBody); + var nodeRef = Object(external_this_wp_element_["useRef"])(); // Defaults to 'smooth' scrolling + // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView - _this = _super.apply(this, arguments); - _this.state = { - opened: props.initialOpen === undefined ? true : props.initialOpen - }; - _this.toggle = _this.toggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } + var scrollBehavior = Object(external_this_wp_compose_["useReducedMotion"])() ? 'auto' : 'smooth'; - Object(createClass["a" /* default */])(PanelBody, [{ - key: "toggle", - value: function toggle(event) { - event.preventDefault(); + var handleOnToggle = function handleOnToggle(event) { + event.preventDefault(); + var next = !isOpened; + setIsOpened(next); + onToggle(next); + }; // Runs after initial render - if (this.props.opened === undefined) { - this.setState(function (state) { - return { - opened: !state.opened - }; + + use_update_effect(function () { + if (isOpened) { + /* + * Scrolls the content into view when visible. + * This improves the UX when there are multiple stacking + * components in a scrollable container. + */ + if (nodeRef.current.scrollIntoView) { + nodeRef.current.scrollIntoView({ + inline: 'nearest', + block: 'nearest', + behavior: scrollBehavior }); } - - if (this.props.onToggle) { - this.props.onToggle(); - } } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - title = _this$props.title, - children = _this$props.children, - opened = _this$props.opened, - className = _this$props.className, - icon = _this$props.icon, - forwardedRef = _this$props.forwardedRef; - var isOpened = opened === undefined ? this.state.opened : opened; - var classes = classnames_default()('components-panel__body', className, { - 'is-opened': isOpened - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - ref: forwardedRef - }, !!title && Object(external_this_wp_element_["createElement"])("h2", { - className: "components-panel__body-title" - }, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { - className: "components-panel__body-toggle", - onClick: this.toggle, - "aria-expanded": isOpened - }, Object(external_this_wp_element_["createElement"])("span", { - "aria-hidden": "true" - }, Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { - className: "components-panel__arrow", - icon: isOpened ? chevron_up["a" /* default */] : chevron_down["a" /* default */] - })), title, icon && Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { - icon: icon, - className: "components-panel__icon", - size: 20 - }))), isOpened && children); - } - }]); + }, [isOpened, scrollBehavior]); + var classes = classnames_default()('components-panel__body', className, { + 'is-opened': isOpened + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + ref: react_merge_refs_esm([nodeRef, ref]) + }, Object(external_this_wp_element_["createElement"])(PanelBodyTitle, { + icon: icon, + isOpened: isOpened, + onClick: handleOnToggle, + title: title + }), isOpened && children); +} +var PanelBodyTitle = Object(external_this_wp_element_["forwardRef"])(function (_ref2, ref) { + var isOpened = _ref2.isOpened, + icon = _ref2.icon, + title = _ref2.title, + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["isOpened", "icon", "title"]); - return PanelBody; -}(external_this_wp_element_["Component"]); - -var body_forwardedPanelBody = function forwardedPanelBody(props, ref) { - return Object(external_this_wp_element_["createElement"])(body_PanelBody, Object(esm_extends["a" /* default */])({}, props, { - forwardedRef: ref - })); -}; - -body_forwardedPanelBody.displayName = 'PanelBody'; -/* harmony default export */ var panel_body = (Object(external_this_wp_element_["forwardRef"])(body_forwardedPanelBody)); + if (!title) return null; + return Object(external_this_wp_element_["createElement"])("h2", { + className: "components-panel__body-title" + }, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + className: "components-panel__body-toggle", + "aria-expanded": isOpened, + ref: ref + }, props), Object(external_this_wp_element_["createElement"])("span", { + "aria-hidden": "true" + }, Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { + className: "components-panel__arrow", + icon: isOpened ? chevron_up["a" /* default */] : chevron_down["a" /* default */] + })), title, icon && Object(external_this_wp_element_["createElement"])(components_build_module_icon["a" /* default */], { + icon: icon, + className: "components-panel__icon", + size: 20 + }))); +}); +var body_ForwardedComponent = Object(external_this_wp_element_["forwardRef"])(PanelBody); +body_ForwardedComponent.displayName = 'PanelBody'; +/* harmony default export */ var panel_body = (body_ForwardedComponent); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/row.js @@ -42802,7 +42563,7 @@ function buildTermsTree(flatTerms) { var fillWithChildren = function fillWithChildren(terms) { return terms.map(function (term) { var children = termsByParent[term.id]; - return terms_objectSpread({}, term, { + return terms_objectSpread(terms_objectSpread({}, term), {}, { children: children && children.length ? fillWithChildren(children) : [] }); }); @@ -42849,7 +42610,7 @@ function TreeSelect(_ref) { value: '', label: noOptionLabel }].concat(Object(toConsumableArray["a" /* default */])(tree_select_getSelectOptions(tree)))); - return Object(external_this_wp_element_["createElement"])(SelectControl, Object(esm_extends["a" /* default */])({ + return Object(external_this_wp_element_["createElement"])(select_control, Object(esm_extends["a" /* default */])({ label: label, options: options, onChange: onChange @@ -42902,6 +42663,7 @@ function AuthorSelect(_ref) { authorList = _ref.authorList, selectedAuthorId = _ref.selectedAuthorId, onChange = _ref.onChange; + if (!authorList) return null; var termsTree = buildTermsTree(authorList); return Object(external_this_wp_element_["createElement"])(TreeSelect, Object(esm_extends["a" /* default */])({ label: label, @@ -42950,7 +42712,7 @@ function QueryControls(_ref) { onNumberOfItemsChange = _ref.onNumberOfItemsChange, onOrderChange = _ref.onOrderChange, onOrderByChange = _ref.onOrderByChange; - return [onOrderChange && onOrderByChange && Object(external_this_wp_element_["createElement"])(SelectControl, { + return [onOrderChange && onOrderByChange && Object(external_this_wp_element_["createElement"])(select_control, { key: "query-controls-order-select", label: Object(external_this_wp_i18n_["__"])('Order by'), value: "".concat(orderBy, "/").concat(order), @@ -43021,16 +42783,16 @@ function QueryControls(_ref) { } // EXTERNAL MODULE: ./node_modules/reakit-warning/es/index.js + 2 modules -var reakit_warning_es = __webpack_require__(80); +var es = __webpack_require__(81); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/useLiveRef.js var useLiveRef = __webpack_require__(46); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/createEvent.js -var createEvent = __webpack_require__(122); +var createEvent = __webpack_require__(125); // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js -var warning = __webpack_require__(106); +var warning = __webpack_require__(108); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/useSealedState.js var useSealedState = __webpack_require__(62); @@ -43332,7 +43094,7 @@ function radio_Radio(_ref, ref) { /* harmony default export */ var build_module_radio = (Object(external_this_wp_element_["forwardRef"])(radio_Radio)); // EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js -var useCreateElement = __webpack_require__(78); +var useCreateElement = __webpack_require__(79); // CONCATENATED MODULE: ./node_modules/reakit/es/Radio/RadioGroup.js @@ -43421,19 +43183,19 @@ function radio_group_objectSpread(target) { for (var i = 1; i < arguments.length function radio_group_RadioGroup(_ref, ref) { - var accessibilityLabel = _ref.accessibilityLabel, + var label = _ref.label, checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, onChange = _ref.onChange, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["accessibilityLabel", "checked", "defaultChecked", "disabled", "onChange"]); + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["label", "checked", "defaultChecked", "disabled", "onChange"]); var radioState = useRadioState({ state: defaultChecked, baseId: props.id }); - var radioContext = radio_group_objectSpread({}, radioState, { + var radioContext = radio_group_objectSpread(radio_group_objectSpread({}, radioState), {}, { disabled: disabled, // controlled or uncontrolled state: checked || radioState.state, @@ -43445,7 +43207,7 @@ function radio_group_RadioGroup(_ref, ref) { }, Object(external_this_wp_element_["createElement"])(RadioGroup, Object(esm_extends["a" /* default */])({ ref: ref, as: button_group, - "aria-label": accessibilityLabel + "aria-label": label }, radioState, props))); } @@ -43616,7 +43378,7 @@ var resizer_Resizer = /** @class */ (function (_super) { // EXTERNAL MODULE: ./node_modules/fast-memoize/src/index.js -var fast_memoize_src = __webpack_require__(116); +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 @@ -43656,6 +43418,14 @@ var snap = src_default()(function (n, size) { return Math.round(n / size) * size var hasDirection = src_default()(function (dir, target) { return new RegExp(dir, 'i').test(target); }); +// INFO: In case of window is a Proxy and does not porxy Events correctly, use isTouchEvent & isMouseEvent to distinguish event type instead of `instanceof`. +var isTouchEvent = function (event) { + return Boolean(event.touches && event.touches.length); +}; +var isMouseEvent = function (event) { + return Boolean((event.clientX || event.clientX === 0) && + (event.clientY || event.clientY === 0)); +}; var findClosestSnap = src_default()(function (n, snapArray, snapGap) { if (snapGap === void 0) { snapGap = 0; } var closestGapIndex = snapArray.reduce(function (prev, curr, index) { return (Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index : prev); }, 0); @@ -43692,15 +43462,18 @@ var getStringSize = src_default()(function (n) { }); var getPixelSize = function (size, parentSize, innerWidth, innerHeight) { if (size && typeof size === 'string') { + if (endsWith(size, 'px')) { + return Number(size.replace('px', '')); + } if (endsWith(size, '%')) { var ratio = Number(size.replace('%', '')) / 100; return parentSize * ratio; } - else if (endsWith(size, 'vw')) { + if (endsWith(size, 'vw')) { var ratio = Number(size.replace('vw', '')) / 100; return innerWidth * ratio; } - else if (endsWith(size, 'vh')) { + if (endsWith(size, 'vh')) { var ratio = Number(size.replace('vh', '')) / 100; return innerHeight * ratio; } @@ -43766,6 +43539,37 @@ var lib_Resizable = /** @class */ (function (_super) { // For target boundary _this.targetLeft = 0; _this.targetTop = 0; + _this.appendBase = function () { + if (!_this.resizable || !_this.window) { + return null; + } + var parent = _this.parentNode; + if (!parent) { + return null; + } + var element = _this.window.document.createElement('div'); + element.style.width = '100%'; + element.style.height = '100%'; + element.style.position = 'absolute'; + element.style.transform = 'scale(0, 0)'; + element.style.left = '0'; + element.style.flex = '0'; + if (element.classList) { + element.classList.add(baseClassName); + } + else { + element.className += baseClassName; + } + parent.appendChild(element); + return element; + }; + _this.removeBase = function (base) { + var parent = _this.parentNode; + if (!parent) { + return; + } + parent.removeChild(base); + }; _this.ref = function (c) { if (c) { _this.resizable = c; @@ -43813,7 +43617,7 @@ var lib_Resizable = /** @class */ (function (_super) { } return this.resizable.parentNode; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Resizable.prototype, "window", { @@ -43826,32 +43630,14 @@ var lib_Resizable = /** @class */ (function (_super) { } return this.resizable.ownerDocument.defaultView; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Resizable.prototype, "propsSize", { get: function () { return this.props.size || this.props.defaultSize || DEFAULT_SIZE; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Resizable.prototype, "base", { - get: function () { - var parent = this.parentNode; - if (!parent) { - return undefined; - } - var children = [].slice.call(parent.children); - for (var _i = 0, children_1 = children; _i < children_1.length; _i++) { - var n = children_1[_i]; - if (n.classList.contains(baseClassName)) { - return n; - } - } - return undefined; - }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Resizable.prototype, "size", { @@ -43875,7 +43661,7 @@ var lib_Resizable = /** @class */ (function (_super) { } return { width: width, height: height }; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Resizable.prototype, "sizeStyle", { @@ -43905,36 +43691,38 @@ var lib_Resizable = /** @class */ (function (_super) { : getSize('height'); return { width: width, height: height }; }, - enumerable: true, + enumerable: false, configurable: true }); Resizable.prototype.getParentSize = function () { - if (!this.base || !this.parentNode) { + if (!this.parentNode) { if (!this.window) { return { width: 0, height: 0 }; } return { width: this.window.innerWidth, height: this.window.innerHeight }; } + var base = this.appendBase(); + if (!base) { + return { width: 0, height: 0 }; + } // INFO: To calculate parent width with flex layout var wrapChanged = false; var wrap = this.parentNode.style.flexWrap; - var minWidth = this.base.style.minWidth; if (wrap !== 'wrap') { wrapChanged = true; this.parentNode.style.flexWrap = 'wrap'; // HACK: Use relative to get parent padding size } - this.base.style.position = 'relative'; - this.base.style.minWidth = '100%'; + base.style.position = 'relative'; + base.style.minWidth = '100%'; var size = { - width: this.base.offsetWidth, - height: this.base.offsetHeight, + width: base.offsetWidth, + height: base.offsetHeight, }; - this.base.style.position = 'absolute'; if (wrapChanged) { this.parentNode.style.flexWrap = wrap; } - this.base.style.minWidth = minWidth; + this.removeBase(base); return size; }; Resizable.prototype.bindEvents = function () { @@ -43968,39 +43756,10 @@ var lib_Resizable = /** @class */ (function (_super) { height: this.state.height || this.size.height, flexBasis: computedStyle.flexBasis !== 'auto' ? computedStyle.flexBasis : undefined, }); - var parent = this.parentNode; - if (!parent) { - return; - } - if (this.base) { - return; - } - var element = this.window.document.createElement('div'); - element.style.width = '100%'; - element.style.height = '100%'; - element.style.position = 'absolute'; - element.style.transform = 'scale(0, 0)'; - element.style.left = '0'; - element.style.flex = '0'; - if (element.classList) { - element.classList.add(baseClassName); - } - else { - element.className += baseClassName; - } - parent.appendChild(element); }; Resizable.prototype.componentWillUnmount = function () { if (this.window) { this.unbindEvents(); - var parent_1 = this.parentNode; - if (!this.base || !parent_1) { - return; - } - if (!parent_1 || !this.base) { - return; - } - parent_1.removeChild(this.base); } }; Resizable.prototype.createSizeForCssProperty = function (newSize, kind) { @@ -44013,10 +43772,10 @@ var lib_Resizable = /** @class */ (function (_super) { }; Resizable.prototype.calculateNewMaxFromBoundary = function (maxWidth, maxHeight) { if (this.props.bounds === 'parent') { - var parent_2 = this.parentNode; - if (parent_2) { - var boundWidth = parent_2.offsetWidth + (this.parentLeft - this.resizableLeft); - var boundHeight = parent_2.offsetHeight + (this.parentTop - this.resizableTop); + var parent_1 = this.parentNode; + if (parent_1) { + var boundWidth = parent_1.offsetWidth + (this.parentLeft - this.resizableLeft); + var boundHeight = parent_1.offsetHeight + (this.parentTop - this.resizableTop); maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth; maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight; } @@ -44101,9 +43860,9 @@ var lib_Resizable = /** @class */ (function (_super) { Resizable.prototype.setBoundingClientRect = function () { // For parent boundary if (this.props.bounds === 'parent') { - var parent_3 = this.parentNode; - if (parent_3) { - var parentRect = parent_3.getBoundingClientRect(); + var parent_2 = this.parentNode; + if (parent_2) { + var parentRect = parent_2.getBoundingClientRect(); this.parentLeft = parentRect.left; this.parentTop = parentRect.top; } @@ -44127,7 +43886,7 @@ var lib_Resizable = /** @class */ (function (_super) { } var clientX = 0; var clientY = 0; - if (event.nativeEvent instanceof this.window.MouseEvent) { + if (event.nativeEvent && isMouseEvent(event.nativeEvent)) { clientX = event.nativeEvent.clientX; clientY = event.nativeEvent.clientY; // When user click with right button the resize is stuck in resizing mode @@ -44137,7 +43896,7 @@ var lib_Resizable = /** @class */ (function (_super) { return; } } - else if (event.nativeEvent instanceof this.window.TouchEvent) { + else if (event.nativeEvent && isTouchEvent(event.nativeEvent)) { clientX = event.nativeEvent.touches[0].clientX; clientY = event.nativeEvent.touches[0].clientY; } @@ -44164,9 +43923,9 @@ var lib_Resizable = /** @class */ (function (_super) { var flexBasis; var computedStyle = this.window.getComputedStyle(this.resizable); if (computedStyle.flexBasis !== 'auto') { - var parent_4 = this.parentNode; - if (parent_4) { - var dir = this.window.getComputedStyle(parent_4).flexDirection; + var parent_3 = this.parentNode; + if (parent_3) { + var dir = this.window.getComputedStyle(parent_3).flexDirection; this.flexDir = dir.startsWith('row') ? 'row' : 'column'; flexBasis = computedStyle.flexBasis; } @@ -44192,7 +43951,7 @@ var lib_Resizable = /** @class */ (function (_super) { if (!this.state.isResizing || !this.resizable || !this.window) { return; } - if (this.window.TouchEvent && event instanceof this.window.TouchEvent) { + if (this.window.TouchEvent && isTouchEvent(event)) { try { event.preventDefault(); event.stopPropagation(); @@ -44202,8 +43961,8 @@ var lib_Resizable = /** @class */ (function (_super) { } } var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight; - var clientX = event instanceof this.window.MouseEvent ? event.clientX : event.touches[0].clientX; - var clientY = event instanceof this.window.MouseEvent ? event.clientY : event.touches[0].clientY; + var clientX = isTouchEvent(event) ? event.touches[0].clientX : event.clientX; + var clientY = isTouchEvent(event) ? event.touches[0].clientY : event.clientY; var _b = this.state, direction = _b.direction, original = _b.original, width = _b.width, height = _b.height; var parentSize = this.getParentSize(); var max = calculateNewMax(parentSize, this.window.innerWidth, this.window.innerHeight, maxWidth, maxHeight, minWidth, minHeight); @@ -44320,7 +44079,6 @@ var lib_Resizable = /** @class */ (function (_super) { }; Resizable.prototype.render = function () { var _this = this; - var _a; var extendsProps = Object.keys(this.props).reduce(function (acc, key) { if (definedProps.indexOf(key) !== -1) { return acc; @@ -44332,7 +44090,7 @@ var lib_Resizable = /** @class */ (function (_super) { if (this.state.flexBasis) { style.flexBasis = this.state.flexBasis; } - var Wrapper = (_a = this.props.as) !== null && _a !== void 0 ? _a : 'div'; + var Wrapper = this.props.as || 'div'; return (external_this_React_["createElement"](Wrapper, lib_assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps), this.state.isResizing && external_this_React_["createElement"]("div", { style: this.state.backgroundStyle }), this.props.children, @@ -44367,7 +44125,7 @@ var lib_Resizable = /** @class */ (function (_super) { // EXTERNAL MODULE: ./node_modules/react-resize-aware/dist/index.js -var dist = __webpack_require__(149); +var dist = __webpack_require__(152); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/utils.js @@ -44698,7 +44456,7 @@ function resize_tooltip_label_Label(_ref, ref) { var labelStyle = {}; if (isBottom) { - style = label_objectSpread({}, style, { + style = label_objectSpread(label_objectSpread({}, style), {}, { position: 'absolute', bottom: CURSOR_OFFSET_TOP * -1, left: '50%', @@ -44710,7 +44468,7 @@ function resize_tooltip_label_Label(_ref, ref) { } if (isCorner) { - style = label_objectSpread({}, style, { + style = label_objectSpread(label_objectSpread({}, style), {}, { position: 'absolute', top: CORNER_OFFSET, right: isRTL ? null : CORNER_OFFSET, @@ -44927,7 +44685,7 @@ function ResponsiveWrapper(_ref) { -function sandbox_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (sandbox_isNativeReflectConstruct()) { 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 sandbox_createSuper(Derived) { var hasNativeReflectConstruct = sandbox_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 sandbox_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; } } @@ -45131,17 +44889,17 @@ 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__(161); +var snackbar = __webpack_require__(164); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} var external_this_regeneratorRuntime_ = __webpack_require__(24); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(50); +var asyncToGenerator = __webpack_require__(47); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(113); +var web_cjs = __webpack_require__(116); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js @@ -45384,7 +45142,7 @@ function TabPanel(_ref2) { }, [tabs]); return Object(external_this_wp_element_["createElement"])("div", { className: className - }, Object(external_this_wp_element_["createElement"])(menu, { + }, Object(external_this_wp_element_["createElement"])(navigable_container_menu, { role: "tablist", orientation: orientation, onNavigate: onNavigate, @@ -45562,8 +45320,271 @@ function ToggleControl(_ref) { }, label)); } +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-item/index.js +var toolbar_item = __webpack_require__(137); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-context/index.js +var toolbar_context = __webpack_require__(91); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/toolbar-button-container.js + + +var toolbar_button_container_ToolbarButtonContainer = function ToolbarButtonContainer(props) { + return Object(external_this_wp_element_["createElement"])("div", { + className: props.className + }, props.children); +}; + +/* harmony default export */ var toolbar_button_container = (toolbar_button_container_ToolbarButtonContainer); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function ToolbarButton(_ref, ref) { + var containerClassName = _ref.containerClassName, + className = _ref.className, + extraProps = _ref.extraProps, + children = _ref.children, + title = _ref.title, + isActive = _ref.isActive, + isDisabled = _ref.isDisabled, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["containerClassName", "className", "extraProps", "children", "title", "isActive", "isDisabled"]); + + var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); + + if (!accessibleToolbarState) { + return Object(external_this_wp_element_["createElement"])(toolbar_button_container, { + className: containerClassName + }, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + ref: ref, + icon: props.icon, + label: title, + shortcut: props.shortcut, + "data-subscript": props.subscript, + onClick: function onClick(event) { + event.stopPropagation(); + + if (props.onClick) { + props.onClick(event); + } + }, + className: classnames_default()('components-toolbar__control', className), + isPressed: isActive, + disabled: isDisabled, + "data-toolbar-item": true + }, extraProps, props), children)); + } // ToobarItem will pass all props to the render prop child, which will pass + // all props to Button. This means that ToolbarButton has the same API as + // Button. + + + return Object(external_this_wp_element_["createElement"])(toolbar_item["a" /* default */], Object(esm_extends["a" /* default */])({ + className: classnames_default()('components-toolbar-button', className) + }, extraProps, props, { + ref: ref + }), function (toolbarItemProps) { + return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + label: title, + isPressed: isActive, + disabled: isDisabled + }, toolbarItemProps), children); + }); +} + +/* harmony default export */ var toolbar_button = (Object(external_this_wp_element_["forwardRef"])(ToolbarButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-container.js + + + + +var toolbar_group_container_ToolbarGroupContainer = function ToolbarGroupContainer(_ref) { + var className = _ref.className, + children = _ref.children, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "children"]); + + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + className: className + }, props), children); +}; + +/* harmony default export */ var toolbar_group_container = (toolbar_group_container_ToolbarGroupContainer); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-collapsed.js + + + + + +function toolbar_group_collapsed_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 toolbar_group_collapsed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { toolbar_group_collapsed_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 { toolbar_group_collapsed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + +function ToolbarGroupCollapsed(_ref) { + var _ref$controls = _ref.controls, + controls = _ref$controls === void 0 ? [] : _ref$controls, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["controls"]); + + // It'll contain state if `ToolbarGroup` is being used within + // `` + var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); + + var renderDropdownMenu = function renderDropdownMenu(toggleProps) { + return Object(external_this_wp_element_["createElement"])(dropdown_menu, Object(esm_extends["a" /* default */])({ + controls: controls, + toggleProps: toolbar_group_collapsed_objectSpread(toolbar_group_collapsed_objectSpread({}, toggleProps), {}, { + 'data-toolbar-item': true + }) + }, props)); + }; + + if (accessibleToolbarState) { + return Object(external_this_wp_element_["createElement"])(toolbar_item["a" /* default */], null, renderDropdownMenu); + } + + return renderDropdownMenu(); +} + +/* harmony default export */ var toolbar_group_collapsed = (ToolbarGroupCollapsed); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/index.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +/** + * Renders a collapsible group of controls + * + * The `controls` prop accepts an array of sets. A set is an array of controls. + * Controls have the following shape: + * + * ``` + * { + * icon: string, + * title: string, + * subscript: string, + * onClick: Function, + * isActive: boolean, + * isDisabled: boolean + * } + * ``` + * + * For convenience it is also possible to pass only an array of controls. It is + * then assumed this is the only set. + * + * Either `controls` or `children` is required, otherwise this components + * renders nothing. + * + * @param {Object} props Component props. + * @param {Array} [props.controls] The controls to render in this toolbar. + * @param {WPElement} [props.children] Any other things to render inside the toolbar besides the controls. + * @param {string} [props.className] Class to set on the container div. + * @param {boolean} [props.isCollapsed] Turns ToolbarGroup into a dropdown menu. + * @param {string} [props.title] ARIA label for dropdown menu if is collapsed. + */ + +function ToolbarGroup(_ref) { + var _ref$controls = _ref.controls, + controls = _ref$controls === void 0 ? [] : _ref$controls, + children = _ref.children, + className = _ref.className, + isCollapsed = _ref.isCollapsed, + title = _ref.title, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["controls", "children", "className", "isCollapsed", "title"]); + + // It'll contain state if `ToolbarGroup` is being used within + // `` + var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(toolbar_context["a" /* default */]); + + if ((!controls || !controls.length) && !children) { + return null; + } + + var finalClassName = classnames_default()( // Unfortunately, there's legacy code referencing to `.components-toolbar` + // So we can't get rid of it + accessibleToolbarState ? 'components-toolbar-group' : 'components-toolbar', className); // Normalize controls to nested array of objects (sets of controls) + + var controlSets = controls; + + if (!Array.isArray(controlSets[0])) { + controlSets = [controlSets]; + } + + if (isCollapsed) { + return Object(external_this_wp_element_["createElement"])(toolbar_group_collapsed, Object(esm_extends["a" /* default */])({ + label: title, + controls: controlSets, + className: finalClassName, + children: children + }, props)); + } + + return Object(external_this_wp_element_["createElement"])(toolbar_group_container, Object(esm_extends["a" /* default */])({ + className: finalClassName + }, props), Object(external_this_lodash_["flatMap"])(controlSets, function (controlSet, indexOfSet) { + return controlSet.map(function (control, indexOfControl) { + return Object(external_this_wp_element_["createElement"])(toolbar_button, Object(esm_extends["a" /* default */])({ + key: [indexOfSet, indexOfControl].join(), + containerClassName: indexOfSet > 0 && indexOfControl === 0 ? 'has-left-divider' : null + }, control)); + }); + }), children); +} + +/* harmony default export */ var toolbar_group = (ToolbarGroup); + // EXTERNAL MODULE: ./node_modules/reakit/es/Toolbar/ToolbarState.js -var ToolbarState = __webpack_require__(166); +var ToolbarState = __webpack_require__(170); // CONCATENATED MODULE: ./node_modules/reakit/es/Toolbar/Toolbar.js @@ -45640,8 +45661,8 @@ var Toolbar = Object(createComponent["a" /* createComponent */])({ function ToolbarContainer(_ref, ref) { - var accessibilityLabel = _ref.accessibilityLabel, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["accessibilityLabel"]); + var label = _ref.label, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["label"]); // https://reakit.io/docs/basic-concepts/#state-hooks // Passing baseId for server side rendering (which includes snapshots) @@ -45656,7 +45677,7 @@ function ToolbarContainer(_ref, ref) { value: toolbarState }, Object(external_this_wp_element_["createElement"])(Toolbar, Object(esm_extends["a" /* default */])({ ref: ref, - "aria-label": accessibilityLabel + "aria-label": label }, toolbarState, props))) ); } @@ -45677,6 +45698,7 @@ function ToolbarContainer(_ref, ref) { */ + /** * Internal dependencies */ @@ -45688,33 +45710,34 @@ function ToolbarContainer(_ref, ref) { * * To add controls, simply pass `ToolbarButton` components as children. * - * @param {Object} props Component props. - * @param {string} [props.className] Class to set on the container div. - * @param {string} [props.__experimentalAccessibilityLabel] ARIA label for toolbar container. - * @param {Object} ref React Element ref. + * @param {Object} props Component props. + * @param {string} [props.className] Class to set on the container div. + * @param {string} [props.label] ARIA label for toolbar container. + * @param {Object} ref React Element ref. */ function toolbar_Toolbar(_ref, ref) { var className = _ref.className, - __experimentalAccessibilityLabel = _ref.__experimentalAccessibilityLabel, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "__experimentalAccessibilityLabel"]); + label = _ref.label, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "label"]); - if (__experimentalAccessibilityLabel) { - return Object(external_this_wp_element_["createElement"])(toolbar_container // `ToolbarGroup` already uses components-toolbar for compatibility reasons - , Object(esm_extends["a" /* default */])({ - className: classnames_default()('components-accessible-toolbar', className), - accessibilityLabel: __experimentalAccessibilityLabel, - ref: ref - }, props)); - } // When the __experimentalAccessibilityLabel prop is not passed, Toolbar will - // fallback to ToolbarGroup. This should be deprecated as soon as the new API - // gets stable. - // See https://github.com/WordPress/gutenberg/pull/20008#issuecomment-624503410 + if (!label) { + external_this_wp_deprecated_default()('Using Toolbar without label prop', { + alternative: 'ToolbarGroup component', + link: 'https://developer.wordpress.org/block-editor/components/toolbar/' + }); + return Object(external_this_wp_element_["createElement"])(toolbar_group, Object(esm_extends["a" /* default */])({}, props, { + className: className + })); + } // `ToolbarGroup` already uses components-toolbar for compatibility reasons - return Object(external_this_wp_element_["createElement"])(toolbar_group, Object(esm_extends["a" /* default */])({}, props, { - className: className - })); + var finalClassName = classnames_default()('components-accessible-toolbar', className); + return Object(external_this_wp_element_["createElement"])(toolbar_container, Object(esm_extends["a" /* default */])({ + className: finalClassName, + label: label, + ref: ref + }, props)); } /* harmony default export */ var toolbar = (Object(external_this_wp_element_["forwardRef"])(toolbar_Toolbar)); @@ -45819,13 +45842,13 @@ function getRowFocusables(rowElement) { * Renders both a table and tbody element, used to create a tree hierarchy. * * @see https://github.com/WordPress/gutenberg/blob/master/packages/components/src/tree-grid/README.md - * * @param {Object} props Component props. - * @param {WPElement} props.children Children to be rendered + * @param {WPElement} props.children Children to be rendered. + * @param {Object} ref A ref to the underlying DOM table element. */ -function TreeGrid(_ref) { +function TreeGrid(_ref, ref) { var children = _ref.children, props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children"]); @@ -45922,12 +45945,20 @@ function TreeGrid(_ref) { event.preventDefault(); } }, []); + /* Disable reason: A treegrid is implemented using a table element. */ + + /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */ + return Object(external_this_wp_element_["createElement"])(RovingTabIndex, null, Object(external_this_wp_element_["createElement"])("table", Object(esm_extends["a" /* default */])({}, props, { role: "treegrid", - onKeyDown: onKeyDown + onKeyDown: onKeyDown, + ref: ref }), Object(external_this_wp_element_["createElement"])("tbody", null, children))); + /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */ } +/* harmony default export */ var tree_grid = (Object(external_this_wp_element_["forwardRef"])(TreeGrid)); + @@ -46072,13 +46103,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__(121); +var slot_fill = __webpack_require__(124); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js + 1 modules -var slot_fill_context = __webpack_require__(124); +var slot_fill_context = __webpack_require__(128); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(158); +var use_slot = __webpack_require__(162); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js @@ -46125,7 +46156,7 @@ var defaultShortcuts = { } var nextRegion = regions[0]; - var selectedIndex = regions.indexOf(document.activeElement); + var selectedIndex = regions.indexOf(container.current.ownerDocument.activeElement); if (selectedIndex !== -1) { var nextIndex = selectedIndex + offset; @@ -46174,7 +46205,7 @@ var defaultShortcuts = { -function with_fallback_styles_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_fallback_styles_isNativeReflectConstruct()) { 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 with_fallback_styles_createSuper(Derived) { var hasNativeReflectConstruct = with_fallback_styles_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 with_fallback_styles_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; } } @@ -46263,7 +46294,7 @@ function with_fallback_styles_isNativeReflectConstruct() { if (typeof Reflect == }); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); +var external_this_wp_hooks_ = __webpack_require__(33); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js @@ -46273,7 +46304,7 @@ var external_this_wp_hooks_ = __webpack_require__(32); -function with_filters_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_filters_isNativeReflectConstruct()) { 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 with_filters_createSuper(Derived) { var hasNativeReflectConstruct = with_filters_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 with_filters_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; } } @@ -46404,7 +46435,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__(192); +var with_focus_return_context = __webpack_require__(197); // 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 @@ -46485,7 +46516,7 @@ function with_notices_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function with_notices_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_notices_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 { with_notices_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -function with_notices_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_notices_isNativeReflectConstruct()) { 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 with_notices_createSuper(Derived) { var hasNativeReflectConstruct = with_notices_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 with_notices_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; } } @@ -46549,7 +46580,7 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef Object(createClass["a" /* default */])(WrappedBlockEdit, [{ key: "createNotice", value: function createNotice(notice) { - var noticeToAdd = notice.id ? notice : with_notices_objectSpread({}, notice, { + var noticeToAdd = notice.id ? notice : with_notices_objectSpread(with_notices_objectSpread({}, notice), {}, { id: esm_browser_v4() }); this.setState(function (state) { @@ -46708,6 +46739,12 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef + + + + + + @@ -46728,16 +46765,17 @@ function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undef /***/ }), -/* 260 */, -/* 261 */, -/* 262 */, -/* 263 */, -/* 264 */, -/* 265 */, -/* 266 */, -/* 267 */, -/* 268 */, -/* 269 */ +/* 273 */, +/* 274 */, +/* 275 */, +/* 276 */, +/* 277 */, +/* 278 */, +/* 279 */, +/* 280 */, +/* 281 */, +/* 282 */, +/* 283 */ /***/ (function(module, exports) { function _defineProperty(obj, key, value) { @@ -46758,7 +46796,7 @@ function _defineProperty(obj, key, value) { module.exports = _defineProperty; /***/ }), -/* 270 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -46772,7 +46810,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -46784,69 +46822,69 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(141); +var _reactMomentProptypes = __webpack_require__(146); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(227); +var _object3 = __webpack_require__(240); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(237); +var _isTouchDevice = __webpack_require__(250); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isSameDay = __webpack_require__(189); +var _isSameDay = __webpack_require__(194); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(238); +var _isAfterDay = __webpack_require__(251); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _getVisibleDays = __webpack_require__(368); +var _getVisibleDays = __webpack_require__(381); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(241); +var _isDayVisible = __webpack_require__(254); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _toISODateString = __webpack_require__(242); +var _toISODateString = __webpack_require__(255); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(190); +var _toISOMonthString = __webpack_require__(195); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _ScrollableOrientationShape = __webpack_require__(142); +var _ScrollableOrientationShape = __webpack_require__(147); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(155); +var _DayOfWeekShape = __webpack_require__(159); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(243); +var _CalendarInfoPositionShape = __webpack_require__(256); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); -var _DayPicker = __webpack_require__(369); +var _DayPicker = __webpack_require__(382); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -47806,20 +47844,6 @@ DayPickerSingleDateController.propTypes = propTypes; DayPickerSingleDateController.defaultProps = defaultProps; /***/ }), -/* 271 */, -/* 272 */, -/* 273 */, -/* 274 */, -/* 275 */, -/* 276 */, -/* 277 */, -/* 278 */, -/* 279 */, -/* 280 */, -/* 281 */, -/* 282 */, -/* 283 */, -/* 284 */, /* 285 */, /* 286 */, /* 287 */, @@ -47830,13 +47854,29 @@ DayPickerSingleDateController.defaultProps = defaultProps; /* 292 */, /* 293 */, /* 294 */, -/* 295 */ +/* 295 */, +/* 296 */, +/* 297 */, +/* 298 */, +/* 299 */, +/* 300 */, +/* 301 */, +/* 302 */, +/* 303 */, +/* 304 */, +/* 305 */, +/* 306 */, +/* 307 */, +/* 308 */, +/* 309 */, +/* 310 */, +/* 311 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -47848,19 +47888,19 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z" + d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z" })); /* harmony default export */ __webpack_exports__["a"] = (chevronUp); /***/ }), -/* 296 */ +/* 312 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -47872,21 +47912,18 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z" + d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" })); /* harmony default export */ __webpack_exports__["a"] = (chevronDown); /***/ }), -/* 297 */, -/* 298 */, -/* 299 */, -/* 300 */, -/* 301 */, -/* 302 */, -/* 303 */, -/* 304 */, -/* 305 */ +/* 313 */, +/* 314 */, +/* 315 */, +/* 316 */, +/* 317 */, +/* 318 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47908,21 +47945,21 @@ exports.isValidElementType=function(a){return"string"===typeof a||"function"===t /***/ }), -/* 306 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -__webpack_require__(307); +__webpack_require__(320); /***/ }), -/* 307 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(308); +var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(321); var _registerCSSInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerCSSInterfaceWithDefaultTheme); @@ -47931,7 +47968,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd (0, _registerCSSInterfaceWithDefaultTheme2['default'])(); /***/ }), -/* 308 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47942,11 +47979,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerCSSInterfaceWithDefaultTheme; -var _reactWithStylesInterfaceCss = __webpack_require__(309); +var _reactWithStylesInterfaceCss = __webpack_require__(322); var _reactWithStylesInterfaceCss2 = _interopRequireDefault(_reactWithStylesInterfaceCss); -var _registerInterfaceWithDefaultTheme = __webpack_require__(353); +var _registerInterfaceWithDefaultTheme = __webpack_require__(366); var _registerInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerInterfaceWithDefaultTheme); @@ -47957,36 +47994,36 @@ function registerCSSInterfaceWithDefaultTheme() { } /***/ }), -/* 309 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(310).default; +module.exports = __webpack_require__(323).default; /***/ }), -/* 310 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _arrayPrototype = __webpack_require__(311); +var _arrayPrototype = __webpack_require__(324); var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); -var _globalCache = __webpack_require__(349); +var _globalCache = __webpack_require__(362); var _globalCache2 = _interopRequireDefault(_globalCache); -var _constants = __webpack_require__(350); +var _constants = __webpack_require__(363); -var _getClassName = __webpack_require__(351); +var _getClassName = __webpack_require__(364); var _getClassName2 = _interopRequireDefault(_getClassName); -var _separateStyles2 = __webpack_require__(352); +var _separateStyles2 = __webpack_require__(365); var _separateStyles3 = _interopRequireDefault(_separateStyles2); @@ -48044,19 +48081,19 @@ function resolve(stylesArray) { exports['default'] = { create: create, resolve: resolve }; /***/ }), -/* 311 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); -var callBind = __webpack_require__(181); +var define = __webpack_require__(103); +var callBind = __webpack_require__(186); -var implementation = __webpack_require__(207); -var getPolyfill = __webpack_require__(222); +var implementation = __webpack_require__(220); +var getPolyfill = __webpack_require__(235); var polyfill = getPolyfill(); -var shim = __webpack_require__(348); +var shim = __webpack_require__(361); var boundFlat = callBind(polyfill); @@ -48070,7 +48107,7 @@ module.exports = boundFlat; /***/ }), -/* 312 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48081,7 +48118,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__(205); // 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'); @@ -48199,7 +48236,7 @@ module.exports = keysShim; /***/ }), -/* 313 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48258,7 +48295,7 @@ module.exports = function bind(that) { /***/ }), -/* 314 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48307,7 +48344,7 @@ module.exports = function hasSymbols() { /***/ }), -/* 315 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48319,11 +48356,11 @@ var $Array = GetIntrinsic('%Array%'); var $species = GetIntrinsic('%Symbol.species%', true); var $TypeError = GetIntrinsic('%TypeError%'); -var Get = __webpack_require__(182); -var IsArray = __webpack_require__(183); -var IsConstructor = __webpack_require__(319); -var IsInteger = __webpack_require__(324); -var Type = __webpack_require__(90); +var Get = __webpack_require__(187); +var IsArray = __webpack_require__(188); +var IsConstructor = __webpack_require__(332); +var IsInteger = __webpack_require__(337); +var Type = __webpack_require__(92); // https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate @@ -48360,7 +48397,7 @@ module.exports = function ArraySpeciesCreate(originalArray, length) { /***/ }), -/* 316 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { var hasMap = typeof Map === 'function' && Map.prototype; @@ -48377,10 +48414,11 @@ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; +var functionToString = Function.prototype.toString; var match = String.prototype.match; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var inspectCustom = __webpack_require__(317).custom; +var inspectCustom = __webpack_require__(330).custom; var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; module.exports = function inspect_(obj, options, depth, seen) { @@ -48389,6 +48427,27 @@ module.exports = function inspect_(obj, options, depth, seen) { if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } + if ( + has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' + ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity + : opts.maxStringLength !== null + ) + ) { + throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); + } + var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; + if (typeof customInspect !== 'boolean') { + throw new TypeError('option "customInspect", if provided, must be `true` or `false`'); + } + + if ( + has(opts, 'indent') + && opts.indent !== null + && opts.indent !== '\t' + && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) + ) { + throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); + } if (typeof obj === 'undefined') { return 'undefined'; @@ -48416,26 +48475,37 @@ module.exports = function inspect_(obj, options, depth, seen) { var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; if (typeof depth === 'undefined') { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return '[Object]'; + return isArray(obj) ? '[Array]' : '[Object]'; } + var indent = getIndent(opts, depth); + if (typeof seen === 'undefined') { seen = []; } else if (indexOf(seen, obj) >= 0) { return '[Circular]'; } - function inspect(value, from) { + function inspect(value, from, noIndent) { if (from) { seen = seen.slice(); seen.push(from); } + if (noIndent) { + var newOpts = { + depth: opts.depth + }; + if (has(opts, 'quoteStyle')) { + newOpts.quoteStyle = opts.quoteStyle; + } + return inspect_(value, newOpts, depth + 1, seen); + } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === 'function') { var name = nameOf(obj); - return '[Function' + (name ? ': ' + name : '') + ']'; + return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']'; } if (isSymbol(obj)) { var symString = Symbol.prototype.toString.call(obj); @@ -48454,14 +48524,18 @@ module.exports = function inspect_(obj, options, depth, seen) { } if (isArray(obj)) { if (obj.length === 0) { return '[]'; } - return '[ ' + arrObjKeys(obj, inspect).join(', ') + ' ]'; + var xs = arrObjKeys(obj, inspect); + if (indent && !singleLineValues(xs)) { + return '[' + indentedJoin(xs, indent) + ']'; + } + return '[ ' + xs.join(', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); if (parts.length === 0) { return '[' + String(obj) + ']'; } return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }'; } - if (typeof obj === 'object') { + if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function') { return obj[inspectSymbol](); } else if (typeof obj.inspect === 'function') { @@ -48471,16 +48545,16 @@ module.exports = function inspect_(obj, options, depth, seen) { if (isMap(obj)) { var mapParts = []; mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj) + ' => ' + inspect(value, obj)); + mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); }); - return collectionOf('Map', mapSize.call(obj), mapParts); + return collectionOf('Map', mapSize.call(obj), mapParts, indent); } if (isSet(obj)) { var setParts = []; setForEach.call(obj, function (value) { setParts.push(inspect(value, obj)); }); - return collectionOf('Set', setSize.call(obj), setParts); + return collectionOf('Set', setSize.call(obj), setParts, indent); } if (isWeakMap(obj)) { return weakCollectionOf('WeakMap'); @@ -48501,9 +48575,12 @@ module.exports = function inspect_(obj, options, depth, seen) { return markBoxed(inspect(String(obj))); } if (!isDate(obj) && !isRegExp(obj)) { - var xs = arrObjKeys(obj, inspect); - if (xs.length === 0) { return '{}'; } - return '{ ' + xs.join(', ') + ' }'; + var ys = arrObjKeys(obj, inspect); + if (ys.length === 0) { return '{}'; } + if (indent) { + return '{' + indentedJoin(ys, indent) + '}'; + } + return '{ ' + ys.join(', ') + ' }'; } return String(obj); }; @@ -48538,7 +48615,7 @@ function toStr(obj) { function nameOf(f) { if (f.name) { return f.name; } - var m = match.call(f, /^function\s*([\w$]+)/); + var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } @@ -48624,6 +48701,11 @@ function isElement(x) { } function inspectString(str, opts) { + if (str.length > opts.maxStringLength) { + var remaining = str.length - opts.maxStringLength; + var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); + return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer; + } // eslint-disable-next-line no-control-regex var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); @@ -48646,8 +48728,39 @@ function weakCollectionOf(type) { return type + ' { ? }'; } -function collectionOf(type, size, entries) { - return type + ' (' + size + ') {' + entries.join(', ') + '}'; +function collectionOf(type, size, entries, indent) { + var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', '); + return type + ' (' + size + ') {' + joinedEntries + '}'; +} + +function singleLineValues(xs) { + for (var i = 0; i < xs.length; i++) { + if (indexOf(xs[i], '\n') >= 0) { + return false; + } + } + return true; +} + +function getIndent(opts, depth) { + var baseIndent; + if (opts.indent === '\t') { + baseIndent = '\t'; + } else if (typeof opts.indent === 'number' && opts.indent > 0) { + baseIndent = Array(opts.indent + 1).join(' '); + } else { + return null; + } + return { + base: baseIndent, + prev: Array(depth + 1).join(baseIndent) + }; +} + +function indentedJoin(xs, indent) { + if (xs.length === 0) { return ''; } + var lineJoiner = '\n' + indent.prev + indent.base; + return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { @@ -48673,13 +48786,13 @@ function arrObjKeys(obj, inspect) { /***/ }), -/* 317 */ +/* 330 */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), -/* 318 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48710,7 +48823,7 @@ module.exports = function Type(x) { /***/ }), -/* 319 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48720,7 +48833,7 @@ var GetIntrinsic = __webpack_require__(58); var $construct = GetIntrinsic('%Reflect.construct%', true); -var DefinePropertyOrThrow = __webpack_require__(320); +var DefinePropertyOrThrow = __webpack_require__(333); try { DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); } catch (e) { @@ -48757,7 +48870,7 @@ if (DefinePropertyOrThrow && $construct) { /***/ }), -/* 320 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48767,16 +48880,16 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var isPropertyDescriptor = __webpack_require__(321); -var DefineOwnProperty = __webpack_require__(208); +var isPropertyDescriptor = __webpack_require__(334); +var DefineOwnProperty = __webpack_require__(221); -var FromPropertyDescriptor = __webpack_require__(209); -var IsAccessorDescriptor = __webpack_require__(322); -var IsDataDescriptor = __webpack_require__(210); -var IsPropertyKey = __webpack_require__(128); -var SameValue = __webpack_require__(211); -var ToPropertyDescriptor = __webpack_require__(212); -var Type = __webpack_require__(90); +var FromPropertyDescriptor = __webpack_require__(222); +var IsAccessorDescriptor = __webpack_require__(335); +var IsDataDescriptor = __webpack_require__(223); +var IsPropertyKey = __webpack_require__(131); +var SameValue = __webpack_require__(224); +var ToPropertyDescriptor = __webpack_require__(225); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow @@ -48814,7 +48927,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { /***/ }), -/* 321 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48822,7 +48935,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { var GetIntrinsic = __webpack_require__(58); -var has = __webpack_require__(91); +var has = __webpack_require__(93); var $TypeError = GetIntrinsic('%TypeError%'); module.exports = function IsPropertyDescriptor(ES, Desc) { @@ -48852,17 +48965,17 @@ module.exports = function IsPropertyDescriptor(ES, Desc) { /***/ }), -/* 322 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(91); +var has = __webpack_require__(93); -var assertRecord = __webpack_require__(184); +var assertRecord = __webpack_require__(189); -var Type = __webpack_require__(90); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor @@ -48882,7 +48995,7 @@ module.exports = function IsAccessorDescriptor(Desc) { /***/ }), -/* 323 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48890,11 +49003,11 @@ module.exports = function IsAccessorDescriptor(Desc) { // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11 -module.exports = __webpack_require__(214); +module.exports = __webpack_require__(227); /***/ }), -/* 324 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48907,8 +49020,8 @@ var $Math = GetIntrinsic('%Math%'); var $floor = $Math.floor; var $abs = $Math.abs; -var $isNaN = __webpack_require__(185); -var $isFinite = __webpack_require__(215); +var $isNaN = __webpack_require__(190); +var $isFinite = __webpack_require__(228); // https://www.ecma-international.org/ecma-262/6.0/#sec-isinteger @@ -48922,7 +49035,7 @@ module.exports = function IsInteger(argument) { /***/ }), -/* 325 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48932,15 +49045,15 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var MAX_SAFE_INTEGER = __webpack_require__(216); +var MAX_SAFE_INTEGER = __webpack_require__(229); -var Call = __webpack_require__(326); -var CreateDataPropertyOrThrow = __webpack_require__(327); -var Get = __webpack_require__(182); -var HasProperty = __webpack_require__(334); -var IsArray = __webpack_require__(183); -var ToLength = __webpack_require__(218); -var ToString = __webpack_require__(344); +var Call = __webpack_require__(339); +var CreateDataPropertyOrThrow = __webpack_require__(340); +var Get = __webpack_require__(187); +var HasProperty = __webpack_require__(347); +var IsArray = __webpack_require__(188); +var ToLength = __webpack_require__(231); +var ToString = __webpack_require__(357); // https://ecma-international.org/ecma-262/10.0/#sec-flattenintoarray @@ -48987,14 +49100,14 @@ module.exports = function FlattenIntoArray(target, source, sourceLen, start, dep /***/ }), -/* 326 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var GetIntrinsic = __webpack_require__(58); -var callBound = __webpack_require__(140); +var callBound = __webpack_require__(145); var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%'); @@ -49007,7 +49120,7 @@ module.exports = function Call(F, V) { /***/ }), -/* 327 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49017,9 +49130,9 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var CreateDataProperty = __webpack_require__(328); -var IsPropertyKey = __webpack_require__(128); -var Type = __webpack_require__(90); +var CreateDataProperty = __webpack_require__(341); +var IsPropertyKey = __webpack_require__(131); +var Type = __webpack_require__(92); // // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow @@ -49039,7 +49152,7 @@ module.exports = function CreateDataPropertyOrThrow(O, P, V) { /***/ }), -/* 328 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49049,15 +49162,15 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var DefineOwnProperty = __webpack_require__(208); +var DefineOwnProperty = __webpack_require__(221); -var FromPropertyDescriptor = __webpack_require__(209); -var OrdinaryGetOwnProperty = __webpack_require__(329); -var IsDataDescriptor = __webpack_require__(210); -var IsExtensible = __webpack_require__(333); -var IsPropertyKey = __webpack_require__(128); -var SameValue = __webpack_require__(211); -var Type = __webpack_require__(90); +var FromPropertyDescriptor = __webpack_require__(222); +var OrdinaryGetOwnProperty = __webpack_require__(342); +var IsDataDescriptor = __webpack_require__(223); +var IsExtensible = __webpack_require__(346); +var IsPropertyKey = __webpack_require__(131); +var SameValue = __webpack_require__(224); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty @@ -49091,7 +49204,7 @@ module.exports = function CreateDataProperty(O, P, V) { /***/ }), -/* 329 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49099,20 +49212,20 @@ module.exports = function CreateDataProperty(O, P, V) { var GetIntrinsic = __webpack_require__(58); -var $gOPD = __webpack_require__(330); +var $gOPD = __webpack_require__(343); var $TypeError = GetIntrinsic('%TypeError%'); -var callBound = __webpack_require__(140); +var callBound = __webpack_require__(145); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); -var has = __webpack_require__(91); +var has = __webpack_require__(93); -var IsArray = __webpack_require__(183); -var IsPropertyKey = __webpack_require__(128); -var IsRegExp = __webpack_require__(331); -var ToPropertyDescriptor = __webpack_require__(212); -var Type = __webpack_require__(90); +var IsArray = __webpack_require__(188); +var IsPropertyKey = __webpack_require__(131); +var IsRegExp = __webpack_require__(344); +var ToPropertyDescriptor = __webpack_require__(225); +var Type = __webpack_require__(92); // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty @@ -49142,7 +49255,7 @@ module.exports = function OrdinaryGetOwnProperty(O, P) { /***/ }), -/* 330 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49164,7 +49277,7 @@ module.exports = $gOPD; /***/ }), -/* 331 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49174,9 +49287,9 @@ var GetIntrinsic = __webpack_require__(58); var $match = GetIntrinsic('%Symbol.match%', true); -var hasRegExpMatcher = __webpack_require__(332); +var hasRegExpMatcher = __webpack_require__(345); -var ToBoolean = __webpack_require__(213); +var ToBoolean = __webpack_require__(226); // https://ecma-international.org/ecma-262/6.0/#sec-isregexp @@ -49195,19 +49308,21 @@ module.exports = function IsRegExp(argument) { /***/ }), -/* 332 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var hasSymbols = __webpack_require__(206)(); +var hasSymbols = __webpack_require__(219)(); var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol'; +var hasOwnProperty; var regexExec; var isRegexMarker; var badStringifier; if (hasToStringTag) { + hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty); regexExec = Function.call.bind(RegExp.prototype.exec); isRegexMarker = {}; @@ -49225,6 +49340,7 @@ if (hasToStringTag) { } var toStr = Object.prototype.toString; +var gOPD = Object.getOwnPropertyDescriptor; var regexClass = '[object RegExp]'; module.exports = hasToStringTag @@ -49234,6 +49350,12 @@ module.exports = hasToStringTag return false; } + var descriptor = gOPD(value, 'lastIndex'); + var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value'); + if (!hasLastIndexDataProperty) { + return false; + } + try { regexExec(value, badStringifier); } catch (e) { @@ -49251,7 +49373,7 @@ module.exports = hasToStringTag /***/ }), -/* 333 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49261,7 +49383,7 @@ var GetIntrinsic = __webpack_require__(58); var $Object = GetIntrinsic('%Object%'); -var isPrimitive = __webpack_require__(217); +var isPrimitive = __webpack_require__(230); var $preventExtensions = $Object.preventExtensions; var $isExtensible = $Object.isExtensible; @@ -49278,7 +49400,7 @@ module.exports = $preventExtensions /***/ }), -/* 334 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49288,8 +49410,8 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var IsPropertyKey = __webpack_require__(128); -var Type = __webpack_require__(90); +var IsPropertyKey = __webpack_require__(131); +var Type = __webpack_require__(92); // https://ecma-international.org/ecma-262/6.0/#sec-hasproperty @@ -49305,7 +49427,7 @@ module.exports = function HasProperty(O, P) { /***/ }), -/* 335 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49315,10 +49437,10 @@ var GetIntrinsic = __webpack_require__(58); var $Math = GetIntrinsic('%Math%'); -var ToNumber = __webpack_require__(336); -var $isNaN = __webpack_require__(185); -var $isFinite = __webpack_require__(215); -var $sign = __webpack_require__(337); +var ToNumber = __webpack_require__(349); +var $isNaN = __webpack_require__(190); +var $isFinite = __webpack_require__(228); +var $sign = __webpack_require__(350); var $floor = $Math.floor; var $abs = $Math.abs; @@ -49334,7 +49456,7 @@ module.exports = function ToInteger(value) { /***/ }), -/* 336 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49348,7 +49470,7 @@ module.exports = function ToNumber(value) { /***/ }), -/* 337 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49360,7 +49482,7 @@ module.exports = function sign(number) { /***/ }), -/* 338 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49373,9 +49495,9 @@ var $Number = GetIntrinsic('%Number%'); var $RegExp = GetIntrinsic('%RegExp%'); var $parseInteger = GetIntrinsic('%parseInt%'); -var callBound = __webpack_require__(140); -var regexTester = __webpack_require__(339); -var isPrimitive = __webpack_require__(217); +var callBound = __webpack_require__(145); +var regexTester = __webpack_require__(352); +var isPrimitive = __webpack_require__(230); var $strSlice = callBound('String.prototype.slice'); var isBinary = regexTester(/^0b[01]+$/i); @@ -49398,7 +49520,7 @@ var $trim = function (value) { return $replace(value, trimRegex, ''); }; -var ToPrimitive = __webpack_require__(340); +var ToPrimitive = __webpack_require__(353); // https://www.ecma-international.org/ecma-262/6.0/#sec-tonumber @@ -49426,7 +49548,7 @@ module.exports = function ToNumber(argument) { /***/ }), -/* 339 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49436,7 +49558,7 @@ var GetIntrinsic = __webpack_require__(58); var $test = GetIntrinsic('RegExp.prototype.test'); -var callBind = __webpack_require__(181); +var callBind = __webpack_require__(186); module.exports = function regexTester(regex) { return callBind($test, regex); @@ -49444,13 +49566,13 @@ module.exports = function regexTester(regex) { /***/ }), -/* 340 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toPrimitive = __webpack_require__(341); +var toPrimitive = __webpack_require__(354); // https://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive @@ -49463,7 +49585,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 341 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49471,10 +49593,10 @@ module.exports = function ToPrimitive(input) { var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(342); -var isCallable = __webpack_require__(214); -var isDate = __webpack_require__(220); -var isSymbol = __webpack_require__(186); +var isPrimitive = __webpack_require__(355); +var isCallable = __webpack_require__(227); +var isDate = __webpack_require__(233); +var isSymbol = __webpack_require__(191); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -49545,7 +49667,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 342 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49557,14 +49679,14 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 343 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(221); +var hasSymbolSham = __webpack_require__(234); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -49575,10 +49697,10 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(127))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) /***/ }), -/* 344 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49600,7 +49722,7 @@ module.exports = function ToString(argument) { /***/ }), -/* 345 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49610,7 +49732,7 @@ var GetIntrinsic = __webpack_require__(58); var $Object = GetIntrinsic('%Object%'); -var RequireObjectCoercible = __webpack_require__(346); +var RequireObjectCoercible = __webpack_require__(359); // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject @@ -49621,17 +49743,17 @@ module.exports = function ToObject(value) { /***/ }), -/* 346 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(347); +module.exports = __webpack_require__(360); /***/ }), -/* 347 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49652,14 +49774,14 @@ module.exports = function CheckObjectCoercible(value, optMessage) { /***/ }), -/* 348 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); -var getPolyfill = __webpack_require__(222); +var define = __webpack_require__(103); +var getPolyfill = __webpack_require__(235); module.exports = function shimFlat() { var polyfill = getPolyfill(); @@ -49673,14 +49795,14 @@ module.exports = function shimFlat() { /***/ }), -/* 349 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { -var define = __webpack_require__(101); -var isSymbol = __webpack_require__(186); +var define = __webpack_require__(103); +var isSymbol = __webpack_require__(191); var globalKey = '__ global cache key __'; /* istanbul ignore else */ @@ -49769,10 +49891,10 @@ var globalCache = { module.exports = globalCache; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(127))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) /***/ }), -/* 350 */ +/* 363 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49785,7 +49907,7 @@ exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY; exports.MAX_SPECIFICITY = MAX_SPECIFICITY; /***/ }), -/* 351 */ +/* 364 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49806,7 +49928,7 @@ function getClassName(namespace, styleName) { } /***/ }), -/* 352 */ +/* 365 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -49854,7 +49976,7 @@ function separateStyles(stylesArray) { exports['default'] = separateStyles; /***/ }), -/* 353 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49865,11 +49987,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerInterfaceWithDefaultTheme; -var _ThemedStyleSheet = __webpack_require__(223); +var _ThemedStyleSheet = __webpack_require__(236); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); -var _DefaultTheme = __webpack_require__(224); +var _DefaultTheme = __webpack_require__(237); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -49881,14 +50003,14 @@ function registerInterfaceWithDefaultTheme(reactWithStylesInterface) { } /***/ }), -/* 354 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); -var getPolyfill = __webpack_require__(226); +var define = __webpack_require__(103); +var getPolyfill = __webpack_require__(239); module.exports = function shimAssign() { var polyfill = getPolyfill(); @@ -49902,10 +50024,10 @@ module.exports = function shimAssign() { /***/ }), -/* 355 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { -var moment = __webpack_require__(43); +var moment = __webpack_require__(44); function isValidMoment(testMoment) { if (typeof moment.isMoment === 'function' && !moment.isMoment(testMoment)) { @@ -49928,7 +50050,7 @@ module.exports = { /***/ }), -/* 356 */ +/* 369 */ /***/ (function(module, exports) { var messages = { @@ -50053,7 +50175,7 @@ module.exports = { /***/ }), -/* 357 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50110,24 +50232,24 @@ module.exports = { /***/ }), -/* 358 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(359); +module.exports = __webpack_require__(372); /***/ }), -/* 359 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2015 = __webpack_require__(360); -var assign = __webpack_require__(233); +var ES2015 = __webpack_require__(373); +var assign = __webpack_require__(246); var ES2016 = assign(assign({}, ES2015), { // https://github.com/tc39/ecma262/pull/60 @@ -50143,17 +50265,17 @@ module.exports = ES2016; /***/ }), -/* 360 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(91); -var toPrimitive = __webpack_require__(361); -var keys = __webpack_require__(180); +var has = __webpack_require__(93); +var toPrimitive = __webpack_require__(374); +var keys = __webpack_require__(185); -var GetIntrinsic = __webpack_require__(188); +var GetIntrinsic = __webpack_require__(193); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); @@ -50166,17 +50288,17 @@ var $RegExp = GetIntrinsic('%RegExp%'); var hasSymbols = !!$Symbol; -var assertRecord = __webpack_require__(230); -var $isNaN = __webpack_require__(231); -var $isFinite = __webpack_require__(232); +var assertRecord = __webpack_require__(243); +var $isNaN = __webpack_require__(244); +var $isFinite = __webpack_require__(245); var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; -var assign = __webpack_require__(233); -var sign = __webpack_require__(234); -var mod = __webpack_require__(235); -var isPrimitive = __webpack_require__(363); +var assign = __webpack_require__(246); +var sign = __webpack_require__(247); +var mod = __webpack_require__(248); +var isPrimitive = __webpack_require__(376); var parseInteger = parseInt; -var bind = __webpack_require__(118); +var bind = __webpack_require__(121); 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); @@ -50219,9 +50341,9 @@ var trim = function (value) { return replace(value, trimRegex, ''); }; -var ES5 = __webpack_require__(364); +var ES5 = __webpack_require__(377); -var hasRegExpMatcher = __webpack_require__(366); +var hasRegExpMatcher = __webpack_require__(379); // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations var ES6 = assign(assign({}, ES5), { @@ -50940,17 +51062,17 @@ module.exports = ES6; /***/ }), -/* 361 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(362); +module.exports = __webpack_require__(375); /***/ }), -/* 362 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50958,10 +51080,10 @@ module.exports = __webpack_require__(362); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(229); -var isCallable = __webpack_require__(187); -var isDate = __webpack_require__(220); -var isSymbol = __webpack_require__(186); +var isPrimitive = __webpack_require__(242); +var isCallable = __webpack_require__(192); +var isDate = __webpack_require__(233); +var isSymbol = __webpack_require__(191); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -51032,7 +51154,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 363 */ +/* 376 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -51041,29 +51163,29 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 364 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(188); +var GetIntrinsic = __webpack_require__(193); var $Object = GetIntrinsic('%Object%'); var $TypeError = GetIntrinsic('%TypeError%'); var $String = GetIntrinsic('%String%'); -var assertRecord = __webpack_require__(230); -var $isNaN = __webpack_require__(231); -var $isFinite = __webpack_require__(232); +var assertRecord = __webpack_require__(243); +var $isNaN = __webpack_require__(244); +var $isFinite = __webpack_require__(245); -var sign = __webpack_require__(234); -var mod = __webpack_require__(235); +var sign = __webpack_require__(247); +var mod = __webpack_require__(248); -var IsCallable = __webpack_require__(187); -var toPrimitive = __webpack_require__(365); +var IsCallable = __webpack_require__(192); +var toPrimitive = __webpack_require__(378); -var has = __webpack_require__(91); +var has = __webpack_require__(93); // https://es5.github.io/#x9 var ES5 = { @@ -51283,7 +51405,7 @@ module.exports = ES5; /***/ }), -/* 365 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51291,9 +51413,9 @@ module.exports = ES5; var toStr = Object.prototype.toString; -var isPrimitive = __webpack_require__(229); +var isPrimitive = __webpack_require__(242); -var isCallable = __webpack_require__(187); +var isCallable = __webpack_require__(192); // http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 var ES5internalSlots = { @@ -51335,13 +51457,13 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 366 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(91); +var has = __webpack_require__(93); var regexExec = RegExp.prototype.exec; var gOPD = Object.getOwnPropertyDescriptor; @@ -51381,14 +51503,14 @@ module.exports = function isRegex(value) { /***/ }), -/* 367 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var getPolyfill = __webpack_require__(236); -var define = __webpack_require__(101); +var getPolyfill = __webpack_require__(249); +var define = __webpack_require__(103); module.exports = function shimValues() { var polyfill = getPolyfill(); @@ -51402,7 +51524,7 @@ module.exports = function shimValues() { /***/ }), -/* 368 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51413,11 +51535,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getVisibleDays; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toISOMonthString = __webpack_require__(190); +var _toISOMonthString = __webpack_require__(195); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -51471,7 +51593,7 @@ function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransit } /***/ }), -/* 369 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51486,7 +51608,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -51498,85 +51620,85 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(143); +var _reactAddonsShallowCompare = __webpack_require__(148); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _throttle = __webpack_require__(376); +var _throttle = __webpack_require__(389); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(237); +var _isTouchDevice = __webpack_require__(250); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(386); +var _reactOutsideClickHandler = __webpack_require__(399); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonthGrid = __webpack_require__(390); +var _CalendarMonthGrid = __webpack_require__(403); var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); -var _DayPickerNavigation = __webpack_require__(400); +var _DayPickerNavigation = __webpack_require__(413); var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); -var _DayPickerKeyboardShortcuts = __webpack_require__(405); +var _DayPickerKeyboardShortcuts = __webpack_require__(418); var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); -var _getNumberOfCalendarMonthWeeks = __webpack_require__(408); +var _getNumberOfCalendarMonthWeeks = __webpack_require__(421); var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); -var _getCalendarMonthWidth = __webpack_require__(252); +var _getCalendarMonthWidth = __webpack_require__(265); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _calculateDimension = __webpack_require__(251); +var _calculateDimension = __webpack_require__(264); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getActiveElement = __webpack_require__(409); +var _getActiveElement = __webpack_require__(422); var _getActiveElement2 = _interopRequireDefault(_getActiveElement); -var _isDayVisible = __webpack_require__(241); +var _isDayVisible = __webpack_require__(254); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _ModifiersShape = __webpack_require__(156); +var _ModifiersShape = __webpack_require__(160); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(142); +var _ScrollableOrientationShape = __webpack_require__(147); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(155); +var _DayOfWeekShape = __webpack_require__(159); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(243); +var _CalendarInfoPositionShape = __webpack_require__(256); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -53053,7 +53175,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPicker); /***/ }), -/* 370 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53124,13 +53246,13 @@ function shallowEqual(objA, objB) { module.exports = shallowEqual; /***/ }), -/* 371 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var reactIs = __webpack_require__(372); +var reactIs = __webpack_require__(385); /** * Copyright 2015, Yahoo! Inc. @@ -53234,19 +53356,19 @@ module.exports = hoistNonReactStatics; /***/ }), -/* 372 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(373); + module.exports = __webpack_require__(386); } else {} /***/ }), -/* 373 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53268,7 +53390,7 @@ exports.isSuspense=function(a){return t(a)===p}; /***/ }), -/* 374 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53285,7 +53407,7 @@ var DIRECTIONS = exports.DIRECTIONS = { }; /***/ }), -/* 375 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53308,11 +53430,11 @@ exports['default'] = _propTypes2['default'].shape({ }); /***/ }), -/* 376 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { -var debounce = __webpack_require__(377), - isObject = __webpack_require__(191); +var debounce = __webpack_require__(390), + isObject = __webpack_require__(196); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -53383,12 +53505,12 @@ module.exports = throttle; /***/ }), -/* 377 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(191), - now = __webpack_require__(378), - toNumber = __webpack_require__(380); +var isObject = __webpack_require__(196), + now = __webpack_require__(391), + toNumber = __webpack_require__(393); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -53580,10 +53702,10 @@ module.exports = debounce; /***/ }), -/* 378 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(244); +var root = __webpack_require__(257); /** * Gets the timestamp of the number of milliseconds that have elapsed since @@ -53609,7 +53731,7 @@ module.exports = now; /***/ }), -/* 379 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -53617,14 +53739,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(127))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(130))) /***/ }), -/* 380 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(191), - isSymbol = __webpack_require__(381); +var isObject = __webpack_require__(196), + isSymbol = __webpack_require__(394); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -53692,11 +53814,11 @@ module.exports = toNumber; /***/ }), -/* 381 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(382), - isObjectLike = __webpack_require__(385); +var baseGetTag = __webpack_require__(395), + isObjectLike = __webpack_require__(398); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -53727,12 +53849,12 @@ module.exports = isSymbol; /***/ }), -/* 382 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(245), - getRawTag = __webpack_require__(383), - objectToString = __webpack_require__(384); +var Symbol = __webpack_require__(258), + getRawTag = __webpack_require__(396), + objectToString = __webpack_require__(397); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -53761,10 +53883,10 @@ module.exports = baseGetTag; /***/ }), -/* 383 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(245); +var Symbol = __webpack_require__(258); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -53813,7 +53935,7 @@ module.exports = getRawTag; /***/ }), -/* 384 */ +/* 397 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -53841,7 +53963,7 @@ module.exports = objectToString; /***/ }), -/* 385 */ +/* 398 */ /***/ (function(module, exports) { /** @@ -53876,15 +53998,15 @@ module.exports = isObjectLike; /***/ }), -/* 386 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(387); +module.exports = __webpack_require__(400); /***/ }), -/* 387 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53904,15 +54026,15 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _consolidatedEvents = __webpack_require__(246); +var _consolidatedEvents = __webpack_require__(259); -var _object = __webpack_require__(227); +var _object = __webpack_require__(240); var _object2 = _interopRequireDefault(_object); -var _document = __webpack_require__(388); +var _document = __webpack_require__(401); var _document2 = _interopRequireDefault(_document); @@ -54122,18 +54244,18 @@ OutsideClickHandler.propTypes = propTypes; OutsideClickHandler.defaultProps = defaultProps; /***/ }), -/* 388 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); +var define = __webpack_require__(103); -var implementation = __webpack_require__(247); -var getPolyfill = __webpack_require__(248); +var implementation = __webpack_require__(260); +var getPolyfill = __webpack_require__(261); var polyfill = getPolyfill(); -var shim = __webpack_require__(389); +var shim = __webpack_require__(402); var boundContains = function contains(node, other) { return polyfill.apply(node, [other]); @@ -54149,14 +54271,14 @@ module.exports = boundContains; /***/ }), -/* 389 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(101); -var getPolyfill = __webpack_require__(248); +var define = __webpack_require__(103); +var getPolyfill = __webpack_require__(261); module.exports = function shimContains() { var polyfill = getPolyfill(); @@ -54179,7 +54301,7 @@ module.exports = function shimContains() { /***/ }), -/* 390 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54193,7 +54315,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -54205,71 +54327,71 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(143); +var _reactAddonsShallowCompare = __webpack_require__(148); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(141); +var _reactMomentProptypes = __webpack_require__(146); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _consolidatedEvents = __webpack_require__(246); +var _consolidatedEvents = __webpack_require__(259); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonth = __webpack_require__(391); +var _CalendarMonth = __webpack_require__(404); var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); -var _isTransitionEndSupported = __webpack_require__(396); +var _isTransitionEndSupported = __webpack_require__(409); var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); -var _getTransformStyles = __webpack_require__(397); +var _getTransformStyles = __webpack_require__(410); var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); -var _getCalendarMonthWidth = __webpack_require__(252); +var _getCalendarMonthWidth = __webpack_require__(265); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _toISOMonthString = __webpack_require__(190); +var _toISOMonthString = __webpack_require__(195); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _isPrevMonth = __webpack_require__(398); +var _isPrevMonth = __webpack_require__(411); var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); -var _isNextMonth = __webpack_require__(399); +var _isNextMonth = __webpack_require__(412); var _isNextMonth2 = _interopRequireDefault(_isNextMonth); -var _ModifiersShape = __webpack_require__(156); +var _ModifiersShape = __webpack_require__(160); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(142); +var _ScrollableOrientationShape = __webpack_require__(147); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(155); +var _DayOfWeekShape = __webpack_require__(159); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -54745,7 +54867,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonthGrid); /***/ }), -/* 391 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54759,7 +54881,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -54771,65 +54893,65 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(143); +var _reactAddonsShallowCompare = __webpack_require__(148); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(141); +var _reactMomentProptypes = __webpack_require__(146); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarWeek = __webpack_require__(392); +var _CalendarWeek = __webpack_require__(405); var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); -var _CalendarDay = __webpack_require__(249); +var _CalendarDay = __webpack_require__(262); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _calculateDimension = __webpack_require__(251); +var _calculateDimension = __webpack_require__(264); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getCalendarMonthWeeks = __webpack_require__(395); +var _getCalendarMonthWeeks = __webpack_require__(408); var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); -var _isSameDay = __webpack_require__(189); +var _isSameDay = __webpack_require__(194); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _toISODateString = __webpack_require__(242); +var _toISODateString = __webpack_require__(255); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _ModifiersShape = __webpack_require__(156); +var _ModifiersShape = __webpack_require__(160); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(142); +var _ScrollableOrientationShape = __webpack_require__(147); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(155); +var _DayOfWeekShape = __webpack_require__(159); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -55150,7 +55272,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonth); /***/ }), -/* 392 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55165,13 +55287,13 @@ var _react = __webpack_require__(13); var _react2 = _interopRequireDefault(_react); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _CalendarDay = __webpack_require__(249); +var _CalendarDay = __webpack_require__(262); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _CustomizableCalendarDay = __webpack_require__(394); +var _CustomizableCalendarDay = __webpack_require__(407); var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay); @@ -55194,7 +55316,7 @@ function CalendarWeek(_ref) { CalendarWeek.propTypes = propTypes; /***/ }), -/* 393 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55215,7 +55337,7 @@ function getPhrase(phrase, args) { } /***/ }), -/* 394 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55230,7 +55352,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -55242,35 +55364,35 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(143); +var _reactAddonsShallowCompare = __webpack_require__(148); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(141); +var _reactMomentProptypes = __webpack_require__(146); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(250); +var _getCalendarDaySettings = __webpack_require__(263); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); -var _DefaultTheme = __webpack_require__(224); +var _DefaultTheme = __webpack_require__(237); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -55725,7 +55847,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CustomizableCalendarDay); /***/ }), -/* 395 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55736,11 +55858,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarMonthWeeks; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -55789,7 +55911,7 @@ function getCalendarMonthWeeks(month, enableOutsideDays) { } /***/ }), -/* 396 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55804,7 +55926,7 @@ function isTransitionEndSupported() { } /***/ }), -/* 397 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55824,7 +55946,7 @@ function getTransformStyles(transformValue) { } /***/ }), -/* 398 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55835,11 +55957,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isPrevMonth; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(253); +var _isSameMonth = __webpack_require__(266); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -55851,7 +55973,7 @@ function isPrevMonth(a, b) { } /***/ }), -/* 399 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55862,11 +55984,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isNextMonth; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(253); +var _isSameMonth = __webpack_require__(266); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -55878,7 +56000,7 @@ function isNextMonth(a, b) { } /***/ }), -/* 400 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55890,7 +56012,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -55902,37 +56024,37 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _LeftArrow = __webpack_require__(401); +var _LeftArrow = __webpack_require__(414); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _RightArrow = __webpack_require__(402); +var _RightArrow = __webpack_require__(415); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _ChevronUp = __webpack_require__(403); +var _ChevronUp = __webpack_require__(416); var _ChevronUp2 = _interopRequireDefault(_ChevronUp); -var _ChevronDown = __webpack_require__(404); +var _ChevronDown = __webpack_require__(417); var _ChevronDown2 = _interopRequireDefault(_ChevronDown); -var _ScrollableOrientationShape = __webpack_require__(142); +var _ScrollableOrientationShape = __webpack_require__(147); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _constants = __webpack_require__(77); +var _constants = __webpack_require__(78); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -56187,7 +56309,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPickerNavigation); /***/ }), -/* 401 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56223,7 +56345,7 @@ LeftArrow.defaultProps = { exports['default'] = LeftArrow; /***/ }), -/* 402 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56259,7 +56381,7 @@ RightArrow.defaultProps = { exports['default'] = RightArrow; /***/ }), -/* 403 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56295,7 +56417,7 @@ ChevronUp.defaultProps = { exports['default'] = ChevronUp; /***/ }), -/* 404 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56331,7 +56453,7 @@ ChevronDown.defaultProps = { exports['default'] = ChevronDown; /***/ }), -/* 405 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56346,7 +56468,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -56358,21 +56480,21 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); -var _defaultPhrases = __webpack_require__(107); +var _defaultPhrases = __webpack_require__(110); -var _getPhrasePropTypes = __webpack_require__(108); +var _getPhrasePropTypes = __webpack_require__(111); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _KeyboardShortcutRow = __webpack_require__(406); +var _KeyboardShortcutRow = __webpack_require__(419); var _KeyboardShortcutRow2 = _interopRequireDefault(_KeyboardShortcutRow); -var _CloseButton = __webpack_require__(407); +var _CloseButton = __webpack_require__(420); var _CloseButton2 = _interopRequireDefault(_CloseButton); @@ -56840,7 +56962,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref3) { })(DayPickerKeyboardShortcuts); /***/ }), -/* 406 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56852,7 +56974,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(92); +var _object = __webpack_require__(94); var _object2 = _interopRequireDefault(_object); @@ -56864,9 +56986,9 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(85); +var _airbnbPropTypes = __webpack_require__(88); -var _reactWithStyles = __webpack_require__(109); +var _reactWithStyles = __webpack_require__(112); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -56955,7 +57077,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(KeyboardShortcutRow); /***/ }), -/* 407 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56992,7 +57114,7 @@ CloseButton.defaultProps = { exports['default'] = CloseButton; /***/ }), -/* 408 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57003,7 +57125,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getNumberOfCalendarMonthWeeks; -var _moment = __webpack_require__(43); +var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); @@ -57023,7 +57145,7 @@ function getNumberOfCalendarMonthWeeks(month) { } /***/ }), -/* 409 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57038,13 +57160,13 @@ function getActiveElement() { } /***/ }), -/* 410 */ +/* 423 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -57062,13 +57184,13 @@ var external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle /***/ }), -/* 411 */ +/* 424 */ /***/ (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__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -57086,19 +57208,6 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 412 */, -/* 413 */, -/* 414 */, -/* 415 */, -/* 416 */, -/* 417 */, -/* 418 */, -/* 419 */, -/* 420 */, -/* 421 */, -/* 422 */, -/* 423 */, -/* 424 */, /* 425 */, /* 426 */, /* 427 */, @@ -57144,19 +57253,33 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /* 467 */, /* 468 */, /* 469 */, -/* 470 */ +/* 470 */, +/* 471 */, +/* 472 */, +/* 473 */, +/* 474 */, +/* 475 */, +/* 476 */, +/* 477 */, +/* 478 */, +/* 479 */, +/* 480 */, +/* 481 */, +/* 482 */, +/* 483 */, +/* 484 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ToolbarItem; }); /* unused harmony export useToolbarItem */ -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); /* 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__(80); -/* harmony import */ var _Composite_CompositeItem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(120); -/* harmony import */ var _ToolbarState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(166); +/* 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__(170); diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 63ca8d9481..fc478955a4 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -1,10 +1,10 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.components=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=259)}([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,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)&&(a[n]=e[n])}return a}},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,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";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),a=n(29);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,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[t++]}},e:function(e){throw e},f:n}}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 r,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 p(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";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(74);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]:[]),l=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},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=l(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,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var h in f)void 0!==f[h]&&(d[h]=f[h]);return d};u.__useOptions=l;var d=s.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=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),a=n(78);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,l=e.memo,u=e.propsAreEqual,d=void 0===u?null==s?void 0:s.unstable_propsAreEqual:u,f=e.keys,h=void 0===f?(null==s?void 0:s.__keys)||[]:f,p=e.useCreateElement,b=void 0===p?a.a:p,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var l,u=i(c,h),d=u[0],f=u[1],p=s(d,Object(o.a)({ref:t},f)),v=p.wrapElement,m=Object(o.b)(p,["wrapElement"]),y=(null===(l=a.render)||void 0===l?void 0:l.__keys)||a.__keys,g=y&&i(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=b(a,O);return v?v(j):j}return b(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),l&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=h,v.unstable_propsAreEqual=d||c.a,v}},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,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return C}));var r=n(17),o=n(13),a=n(59),i=n(62),c=n(61),s=n(65);function l(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 f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function h(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])},a=Object(r.c)(e);!(t=a()).done;)o();return n}function b(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=p(e),n=b(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 TypeError('"allowMissing" argument must be a boolean');for(var n=b(e),a=v("%"+(n.length>0?n[0]:"")+"%",t),i=1;i=n.length){var c=o(a,n[i]);if(!t&&!(n[i]in a))throw new r("base intrinsic for "+e+" exists, but the property is not available.");a=c?c.get||c.value:a[n[i]]}else a=a[n[i]];return a}},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,l=o.min,u=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=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:R(t[1]),g:R(t[2]),b:R(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(h=e.r,p=e.g,b=e.b,t={r:255*T(h,255),g:255*T(p,255),b:255*T(b,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=A(e.s),c=A(e.v),t=function(e,t,n){e=6*T(e,360),t=T(t,100),n=T(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),l=r%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=A(e.s),s=A(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=T(e,360),t=T(t,100),n=T(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 h,p,b;return n=z(n),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(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=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 h(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var r,o,a=u(e,t,n),i=l(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 x(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=z(e),this._roundA=s(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=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=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(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 b(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=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(H(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*T(this._r,255))+"%",g:s(100*T(this._g,255))+"%",b:s(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%)":"rgba("+s(100*T(this._r,255))+"%, "+s(100*T(this._g,255))+"%, "+s(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[b(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(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(C,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]:A(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 l=0;ls&&(s=r,c=f(t[l]));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"},P=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(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=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return l(1,u(0,e))}function R(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var V,F,B,K=(F="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",B="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+B),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(17),o=n(49),a=n(48),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 u})),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 l(e){return Object(a.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?l: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(17),o=n(49),a=n(48),i=n(67),c=n(13),s=n(63),l=n(70),u=(n(80),n(46)),d=n(59),f=n(69),h=n(72),p=n(57),b=n(71);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(u.a)(a),j=Object(u.a)(i),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,C=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,M=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(h.a)(e)&&Object(l.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,a=Object(b.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 x=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==M||M(t)}),[e.disabled,M]);return Object(r.b)({ref:Object(s.a)(g,n),style:C,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:x,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},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(74),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(106),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,l=void 0===s||s;return function(e){if(n){var t,i="function"==typeof n?n(e):n,s="function"==typeof l?l(e):l,u="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(),u&&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";n.d(t,"a",(function(){return d}));var r=n(17),o=n(49),a=n(48),i=n(13),c=n(70),s=(n(80),n(46)),l=n(53),u=n(73);var d=Object(a.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,a=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:a},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,a=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],f=u[1],h=Object(s.a)(n),p=Object(s.a)(o),b=Object(i.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(l.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(c.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&f(!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&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:b,onKeyUp:v},a)}});Object(o.a)({as:"button",memo:!0,useHook:d})},function(e,t,n){e.exports=n(357)},function(e,t,n){"use strict";var r=n(20),o=n(19),a=n(23),i=n(16),c=n(22),s=n(0),l=n(2),u=n(112),d=n(165);function f(){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}}var h=function(e){Object(c.a)(h,e);var t,n=(t=h,function(){var e,n=Object(i.a)(t);if(f()){var r=Object(i.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(a.a)(this,e)});function h(){var e;return Object(r.a)(this,h),(e=n.apply(this,arguments)).delayedSetIsOver=Object(l.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)(h,[{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(l.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)(u.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})))})}}]),h}(s.Component);t.a=h},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)();t.a=o},function(e,t,n){"use strict";var r=n(5),o=n(8),a=n(15),i=n(0),c=n(6),s=n(148);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 u(e){for(var t=1;t2?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,u=t.themePropName,f=void 0===u?"theme":u,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,C=void 0,M=void 0,x=void 0,D=void 0,P=g(E);function z(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function T(e){return e===l.DIRECTIONS.LTR?x:D}function I(t,n){var r=T(t),o=t===l.DIRECTIONS.LTR?C:M,a=d.default.get();return o&&r===a||(t===l.DIRECTIONS.RTL?(M=e?d.default.createRTL(e):y,D=a,o=M):(C=e?d.default.createLTR(e):y,x=a,o=C)),o}function R(e,t){return{resolveMethod:z(e),styleDef:I(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){h(this,n);var r=p(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():j;return r.state=R(o),r}return b(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(R(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}(P);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(92)),i=f(n(13)),c=f(n(28)),s=f(n(371)),l=n(374),u=f(n(375)),d=f(n(223));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 b(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({},l.CHANNEL,u.default),j=l.DIRECTIONS.LTR},,function(e,t,n){"use strict";var r=n(8),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2),f=n(9);function h(){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}}var p=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(l.a)(b,t);var n,f=(n=b,function(){var e,t=Object(s.a)(n);if(h()){var r=Object(s.a)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Object(c.a)(this,e)});function b(){var e;return Object(o.a)(this,b),(e=f.apply(this,arguments)).bindNode=e.bindNode.bind(Object(i.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(i.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(i.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(i.a)(e)),e}return Object(a.a)(b,[{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)(p,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(u.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(u.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),b}(u.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(14),a=n(15),i=n(0),c=n(11),s=n.n(c),l=n(30),u=n(21),d=n(37),f=n.n(d),h=n(9),p=n(153),b=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:l)+(l+c/2>window.innerWidth?window.innerWidth-l:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=l);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=l);var h,p={popoverLeft:d,contentWidth:d-c>0?c:d},b={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&u.contentWidth===c)v="center";else if("left"===n&&p.contentWidth===c)v="left";else if("right"===n&&b.contentWidth===c)v="right";else{var y="left"===(v=p.contentWidth>b.contentWidth?"left":"right")?p.contentWidth:b.contentWidth;m=y!==c?y:null}if(h="center"===v?u.popoverLeft:"left"===v?p.popoverLeft:b.popoverLeft,i){var g=i.getBoundingClientRect();h=Math.min(h,g.right-c)}return{xAxis:v,popoverLeft:h,contentWidth:m}}function g(e,t,n,r,o,a,i){var c=t.height;if(o){var s=(Object(l.getScrollContainer)(a)||document.body).getBoundingClientRect().top+c-i;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);var d={popoverTop:u,contentHeight:(u-c/2>0?c/2:u)+(u+c/2>window.innerHeight?window.innerHeight-u:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},h={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},p=n,b=null;if(!o)if("middle"===n&&d.contentHeight===c)p="middle";else if("top"===n&&f.contentHeight===c)p="top";else if("bottom"===n&&h.contentHeight===c)p="bottom";else{var v="top"===(p=f.contentHeight>h.contentHeight?"top":"bottom")?f.contentHeight:h.contentHeight;b=v!==c?v:null}return{yAxis:p,popoverTop:"middle"===p?d.popoverTop:"top"===p?f.popoverTop:h.popoverTop,contentHeight:b}}var O=n(130),j=n(129),w=n(20),k=n(19),_=n(23),S=n(16),E=n(22),C=n(111);function M(){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}}var x=function(e){Object(E.a)(r,e);var t,n=(t=r,function(){var e,n=Object(S.a)(t);if(M()){var r=Object(S.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(_.a)(this,e)});function r(){return Object(w.a)(this,r),n.apply(this,arguments)}return Object(k.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(i.Component),D=Object(C.a)(x),P=n(34),z=n(160),T=n(131),I=n(158),R=n(121),N=n(159),A=Object(j.a)(Object(O.a)((function(e){return e.children})));function H(e,t){var n=window.getComputedStyle(t),r=n.paddingTop,o=n.paddingBottom,a=n.paddingLeft,i=n.paddingRight,c=r?parseInt(r,10):0,s=o?parseInt(o,10):0,l=a?parseInt(a,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function L(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function F(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var B=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,b=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,C=e.shouldAnchorIncludePadding,M=e.anchorRect,x=e.getAnchorRect,B=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(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(h.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(I.a)(Y),se=B&&ne,le=Object(h.useResizeObserver)(),ue=Object(o.a)(le,2),de=ue[0],fe=ue[1];O=se||O,Object(i.useLayoutEffect)((function(){if(se)return F(te.current,"is-without-arrow",O),F(te.current,"is-alternate",j),L(te.current,"data-x-axis"),L(te.current,"data-y-axis"),V(te.current,"top"),V(te.current,"left"),V(ee.current,"maxHeight"),void V(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(l.getRectangleFromRange)(r);if(r instanceof window.Element){var a=r.getBoundingClientRect();return o?a:H(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),u=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,u.bottom-s.top);return o?d:H(d,r)}if(e.current){var f=e.current.parentNode,h=f.getBoundingClientRect();return o?h:H(h,f)}}(Q,M,x,E,C);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 u=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(" "),l=Object(o.a)(s,3),u=l[0],d=l[1],f=void 0===d?"center":d,h=l[2],p=g(e,t,u,h,r,a,i),b=y(e,t,f,h,r,p.yAxis,c);return m({},b,{},p)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=u.popoverTop,f=u.popoverLeft,h=u.xAxis,p=u.yAxis,b=u.contentHeight,v=u.contentWidth;"number"==typeof d&&"number"==typeof f&&(V(te.current,"top",d+"px"),V(te.current,"left",f+"px")),F(te.current,"is-without-arrow",O||"center"===h&&"middle"===p),F(te.current,"is-alternate",j),L(te.current,"data-x-axis",h),L(te.current,"data-y-axis",p),V(ee.current,"maxHeight","number"==typeof b?b+"px":""),V(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[p]||"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,M,x,E,C,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=l.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var he=function(e){e.keyCode===u.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var pe=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)(N.a,{type:W&&ae?"appear":null,options:{origin:ae}},(function(e){var o=e.className;return Object(i.createElement)(T.a,Object(r.a)({className:s()("components-popover",b,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:he,ref:te}),se&&Object(i.createElement)(z.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(P.a,{className:"components-popover__close",icon:p.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&&(pe=Object(i.createElement)(A,null,pe)),ce.ref&&(pe=Object(i.createElement)(R.a,{name:Y},pe)),E||M?pe:Object(i.createElement)("span",{ref:Q},pe)};B.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(R.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=B},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(169)),a=r(n(170)),i=n(13),c=r(i),s=r(n(145)),l=r(n(171)),u={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(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.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!u.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 u.und(e)||u.nul(e)?t:e}function h(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(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=h.startTime+l.duration;else if(l.decay)v=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-h.startTime))),(u=Math.abs(h.lastPosition-v)<.1)&&(b=v);else{d=void 0!==h.lastTime?h.lastTime:t,g=void 0!==h.lastVelocity?h.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jb:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var l=s?s(e):e;if(ln){if("identity"===c)return l;"clamp"===c&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var V=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=L(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=L(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var F=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 V(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new F(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 V(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=b(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(u.arr(i)||u.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:p(r,n)},c),l=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},l,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;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 c=t.delay,s=a(t,["delay"]),l=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(s.to)||u.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,l):n.diff(s).start(l))}),c):d?n.runAsync(s,l):n.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),N||(N=!0,_(P||H));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,A.has(t)&&A.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(u.arr(r.to))for(var s=function(e){var t=e,a=o({},r,b(r.to[t]));u.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)}))}))},l=0;l=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};(u.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 le(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 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 fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function he(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:X.hasOwnProperty(t)?X[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|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|le(de(n[1]),he(n[2]),he(n[3])))>>>0:(n=re.exec(t))?(le(de(n[1]),he(n[2]),he(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 be=/[+\-]?(?: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={};T((function(e){return new Z(e)})),x("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(me,pe)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return L(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(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 l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=Oe(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var f in c){var h=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(h)&&e.setAttribute(h,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),l=i.useRef(null),f=i.useRef(null),h=i.useCallback((function(e){var t=l.current;l.current=new R(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,l.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return z(f,s,r)})),h(t);var p,b=l.current.getValue(),m=(b.scrollTop,b.scrollLeft,a(b,["scrollTop","scrollLeft"])),y=(p=e,!u.fun(p)||p.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.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(u.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=H,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=I,t.useSpring=function(e){var t=u.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=u.fun(t),a=p(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),l=s[0],d=s[1],f=s[2],h=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:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&h(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,h,f]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,l=void 0!==s&&s,u=(c.unique,c.reset),f=void 0!==u&&u,h=(c.enter,c.leave,c.update,c.onDestroyed),b=(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,l=c.keys,u=c.initial,d=c.from,f=c.enter,h=c.leave,b=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),C=Object.keys(S),M=new Set(C),x=new Set(l),D=l.filter((function(e){return!M.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),z=l.filter((function(e){return M.has(e)})),T=-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=l.indexOf(e),o=s[r],a=n&&void 0!==u?"initial":"enter";S[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:T+=m,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(f,o)}}));break;case"leave":P.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:T+=m,config:p(g,n,"leave"),to:p(h,n)})),delete S[e]}));break;case"update":z.forEach((function(e){var t=l.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:T+=m,config:p(g,n,"update"),to:p(b,n)})}))}}var I=l.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=I.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),I=[].concat(I.slice(0,t),[r],I.slice(t))})),o({},i,{changed:D.length||P.length||z.length,first:n&&0===D.length,transitions:I,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 W);var u=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||l||Y(w,c),h&&h(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:b&&function(e){return b(s,t,e)},delay:i,reset:f&&"enter"===t});u.update(d),w.current.paused||u.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(){u.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,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d1)for(var n=1;n2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,i=void 0===a?"lockscroll":a,u=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](i),n.documentElement.classList[r](i),e||(t.scrollTop=d)}function h(){0===u&&f(!0),++u}function p(){1===u&&f(!1),--u}return function(e){Object(c.a)(n,e);var t=l(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){h()}},{key:"componentWillUnmount",value:function(){p()}},{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(11),i=n.n(a),c=n(54),s=n(1),l=(n(104),n(34));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,u=t.children,d=t.spokenMessage,f=void 0===d?u:d,h=t.politeness,p=void 0===h?"polite":h,b=t.actions,v=void 0===b?[]:b,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,p),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"},u,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(l.a,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(117))},,,,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(17),o=(n(13),n(62)),a=n(51);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(178);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,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),h=r.offset(e),p=r.outerHeight(e),b=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:h.left-k.left-l,top:h.top-k.top-s},j={left:h.left+b-(k.left+_)+d,top:h.top+p-(k.top+S)+u},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:h.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:h.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:h.left+b-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:h.top+p-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),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(43),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(43)),o=i(n(240)),a=n(77);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 b}));var r=n(18),o=n(20),a=n(19),i=n(12),c=n(23),s=n(16),l=n(22),u=n(0),d=n(2);function f(){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}}var h=Object(u.createContext)({focusHistory:[]}),p=h.Provider,b=h.Consumer;p.displayName="FocusReturnProvider",b.displayName="FocusReturnConsumer";var v=function(e){Object(l.a)(h,e);var t,n=(t=h,function(){var e,n=Object(s.a)(t);if(f()){var r=Object(s.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(c.a)(this,e)});function h(){var e;return Object(o.a)(this,h),(e=n.apply(this,arguments)).onFocus=e.onFocus.bind(Object(i.a)(e)),e.state={focusHistory:[]},e}return Object(a.a)(h,[{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(u.createElement)(p,{value:this.state},Object(u.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),h}(u.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(305)},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]+\.?)))\%/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,h=/^,/,p=/^\#([0-9a-fA-F]+)/,b=/^([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&&(N(h)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(P)}}))}function _(e,t){var n=N(e);if(n)return N(d)||O("Missing ("),result=t(n),N(f)||O("Missing )"),result}function S(){return R("directional",o,1)||R("angular",u,1)}function E(){var e,t,n=C();return n&&((e=[]).push(n),t=g,N(h)&&((n=C())?e.push(n):g=t)),e}function C(){var e=function(){var e=R("shape",/^(circle)/i,0);e&&(e.style=I()||M());return e}()||function(){var e=R("shape",/^(ellipse)/i,0);e&&(e.style=T()||M());return e}();if(e)e.at=function(){if(R("position",/^at/,0)){var e=x();return e||O("Missing positioning value"),e}}();else{var t=x();t&&(e={type:"default-radial",at:t})}return e}function M(){return R("extent-keyword",a,1)}function x(){var e={x:T(),y:T()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);N(h);)(t=e())?n.push(t):O("One extra comma");return n}function P(){var e=R("hex",p,1)||_(m,(function(){return{type:"rgba",value:D(z)}}))||_(v,(function(){return{type:"rgb",value:D(z)}}))||R("literal",b,0);return e||O("Expected color definition"),e.length=T(),e}function z(){return N(y)[1]}function T(){return R("%",s,1)||R("position-keyword",i,1)||I()}function I(){return R("px",c,1)||R("em",l,1)}function R(e,t,n){var r=N(t);if(r)return{type:e,value:r[n]}}function N(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&A(n[0].length),(t=e.exec(g))&&A(t[0].length),t}function A(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(6),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(6),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";(function(t){var r=t.Symbol,o=n(314);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(127))},function(e,t,n){"use strict";var r=n(315),o=n(325),a=n(182),i=n(219),c=n(218),s=n(345);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 l=r(e,0);return o(l,e,t,0,n),l}},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(140)("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(184),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(91),o=n(184),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(185);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(91),o=n(58)("%TypeError%"),a=n(90),i=n(213),c=n(323);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 TypeError("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={}}catch(e){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}},l=Object.prototype.toString,u="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(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.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(216),o=n(219);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(335),o=n(338);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,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(207);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(228);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(43)),o=i(n(239)),a=i(n(189));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,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},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(43),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 it})),n.d(t,"Animate",(function(){return ct.a})),n.d(t,"AnglePickerControl",(function(){return dt})),n.d(t,"Autocomplete",(function(){return xt})),n.d(t,"BaseControl",(function(){return lt})),n.d(t,"__experimentalBoxControl",(function(){return ra})),n.d(t,"Button",(function(){return jt.a})),n.d(t,"ButtonGroup",(function(){return oa})),n.d(t,"Card",(function(){return wa})),n.d(t,"CardBody",(function(){return Sa})),n.d(t,"CardDivider",(function(){return Ea})),n.d(t,"CardFooter",(function(){return xa})),n.d(t,"CardHeader",(function(){return za})),n.d(t,"CardMedia",(function(){return Ta})),n.d(t,"CheckboxControl",(function(){return Na})),n.d(t,"ClipboardButton",(function(){return Aa})),n.d(t,"ColorIndicator",(function(){return Ha})),n.d(t,"ColorPalette",(function(){return bi})),n.d(t,"ColorPicker",(function(){return fi})),n.d(t,"CustomSelectControl",(function(){return uc})),n.d(t,"Dashicon",(function(){return dc.a})),n.d(t,"DateTimePicker",(function(){return jc})),n.d(t,"DatePicker",(function(){return mc})),n.d(t,"TimePicker",(function(){return gc})),n.d(t,"__experimentalDimensionControl",(function(){return Sc})),n.d(t,"Disabled",(function(){return Tc})),n.d(t,"Draggable",(function(){return Nc})),n.d(t,"DropZone",(function(){return Yc})),n.d(t,"__unstableUseDropZone",(function(){return $c})),n.d(t,"DropZoneProvider",(function(){return Gc})),n.d(t,"Dropdown",(function(){return hi})),n.d(t,"DropdownMenu",(function(){return cs})),n.d(t,"ExternalLink",(function(){return ls})),n.d(t,"Flex",(function(){return Sn})),n.d(t,"FlexBlock",(function(){return Rt})),n.d(t,"FlexItem",(function(){return It})),n.d(t,"FocalPointPicker",(function(){return hs})),n.d(t,"FocusableIframe",(function(){return ms})),n.d(t,"FontSizePicker",(function(){return Ys})),n.d(t,"FormFileUpload",(function(){return Zs})),n.d(t,"FormToggle",(function(){return Xs})),n.d(t,"FormTokenField",(function(){return fl})),n.d(t,"__experimentalGradientPicker",(function(){return ou})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ru})),n.d(t,"Guide",(function(){return Su})),n.d(t,"GuidePage",(function(){return Eu})),n.d(t,"Icon",(function(){return wc.a})),n.d(t,"IconButton",(function(){return Cu})),n.d(t,"__experimentalInputControl",(function(){return Mr})),n.d(t,"KeyboardShortcuts",(function(){return Ka})),n.d(t,"MenuGroup",(function(){return Mu})),n.d(t,"MenuItem",(function(){return Du})),n.d(t,"MenuItemsChoice",(function(){return Pu})),n.d(t,"Modal",(function(){return ju})),n.d(t,"ScrollLock",(function(){return zu.a})),n.d(t,"NavigableMenu",(function(){return rs})),n.d(t,"TabbableContainer",(function(){return Tu})),n.d(t,"Notice",(function(){return Iu})),n.d(t,"__experimentalNumberControl",(function(){return Ar})),n.d(t,"NoticeList",(function(){return Ru})),n.d(t,"Panel",(function(){return Au})),n.d(t,"PanelBody",(function(){return Bu})),n.d(t,"PanelHeader",(function(){return Nu})),n.d(t,"PanelRow",(function(){return Ku})),n.d(t,"Placeholder",(function(){return Wu})),n.d(t,"Popover",(function(){return wt.a})),n.d(t,"QueryControls",(function(){return Xu})),n.d(t,"__experimentalRadio",(function(){return sd})),n.d(t,"__experimentalRadioGroup",(function(){return hd})),n.d(t,"RadioControl",(function(){return pd})),n.d(t,"RangeControl",(function(){return $s})),n.d(t,"ResizableBox",(function(){return Xd})),n.d(t,"ResponsiveWrapper",(function(){return Jd})),n.d(t,"SandBox",(function(){return tf})),n.d(t,"SelectControl",(function(){return kc})),n.d(t,"Snackbar",(function(){return nf.a})),n.d(t,"SnackbarList",(function(){return sf})),n.d(t,"Spinner",(function(){return lf})),n.d(t,"TabPanel",(function(){return df})),n.d(t,"__experimentalText",(function(){return or})),n.d(t,"TextControl",(function(){return Xa})),n.d(t,"TextareaControl",(function(){return ff})),n.d(t,"TextHighlight",(function(){return hf})),n.d(t,"Tip",(function(){return pf})),n.d(t,"ToggleControl",(function(){return bf})),n.d(t,"Toolbar",(function(){return Of})),n.d(t,"ToolbarButton",(function(){return $l})),n.d(t,"__experimentalToolbarContext",(function(){return Ul.a})),n.d(t,"ToolbarGroup",(function(){return Jl})),n.d(t,"__experimentalToolbarItem",(function(){return Wl.a})),n.d(t,"Tooltip",(function(){return M.a})),n.d(t,"__experimentalTreeGrid",(function(){return Sf})),n.d(t,"__experimentalTreeGridRow",(function(){return Ef})),n.d(t,"__experimentalTreeGridCell",(function(){return Df})),n.d(t,"__experimentalTreeGridItem",(function(){return xf})),n.d(t,"TreeSelect",(function(){return qu})),n.d(t,"__experimentalUnitControl",(function(){return to})),n.d(t,"VisuallyHidden",(function(){return P})),n.d(t,"IsolatedEventContainer",(function(){return au.a})),n.d(t,"createSlotFill",(function(){return Pf.c})),n.d(t,"Slot",(function(){return Pf.b})),n.d(t,"Fill",(function(){return Pf.a})),n.d(t,"SlotFillProvider",(function(){return zf.b})),n.d(t,"__experimentalUseSlot",(function(){return Tf.a})),n.d(t,"navigateRegions",(function(){return Rf})),n.d(t,"withConstrainedTabbing",(function(){return cu.a})),n.d(t,"withFallbackStyles",(function(){return Af})),n.d(t,"withFilters",(function(){return Vf})),n.d(t,"withFocusOutside",(function(){return us.a})),n.d(t,"withFocusReturn",(function(){return iu.a})),n.d(t,"FocusReturnProvider",(function(){return Ff.b})),n.d(t,"withNotices",(function(){return Xf})),n.d(t,"withSpokenMessages",(function(){return St}));var r=n(6),o=n(8),a=n(14),i=n(15),c=n(0),s=n(2),l=n(11),u=n.n(l),d=n(51),f=n(119),h=n(17),p=n(49),b=n(48),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(b.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(h.b)({role:"group"},t)}}),w=(Object(p.a)({as:"div",useHook:j}),n(93)),k=Object(b.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(h.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object(h.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,l=null==c?void 0:c.groupId;if(t.id===l||t.id===s)return!1}return j.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object(h.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(h.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(p.a)({as:"div",useHook:k}),S=n(1),E=n(9),C=n(120),M=n(86),x=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 P=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(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$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],0h)&&(L=(B=B.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)},Q={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},ee=/[A-Z]|^ms/g,te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ne=function(e){return 45===e.charCodeAt(1)},re=function(e){return null!=e&&"boolean"!=typeof e},oe=L((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ae=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(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 ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?ve:me};function ge(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 Oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ke()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function Ae(e){return Object(s.get)(Re,e,"#000")}function He(){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 Le={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},Ve=function(){return Le},Fe=je("div",{target:"e1od1u4s0",label:"Root"})(Ve,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return ue("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Be=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),Ke=function(e){return ue("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",He("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Ae("black")):null,r=Ae(t?"black":"lightGray.800"),o=Ae(t?"black":"blue.medium.focus"),ue("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},We=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",Ke,""),Ue=je("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=T[r];return Object(c.createElement)(M.a,{text:s},Object(c.createElement)(C.a,Object(o.a)({as:Ue,role:"gridcell"},a),Object(c.createElement)(P,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 ue(t?n?t:e:n?et(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var nt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",Ve,";",(function(){return ue({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return ue({pointerEvents:t?"none":null},"")}),";"),rt=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",Ke,";",(function(e){var t=e.isActive;return ue("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){var t=e.className,n=e.id,r=e.label,l=void 0===r?Object(S.__)("Alignment Matrix Control"):r,h=e.defaultValue,p=void 0===h?"center center":h,b=e.value,v=e.onChange,m=void 0===v?s.noop:v,y=e.width,g=void 0===y?92:y,O=Object(i.a)(e,["className","id","label","defaultValue","value","onChange","width"]),j=Object(c.useState)(null!=b?b:p),w=Object(a.a)(j,1)[0],k=Je(),C=function(e){var t=Object(E.useInstanceId)(it,"alignment-matrix-control");return e||t}(n),M=N(C,w),x=Object(d.g)({baseId:C,currentId:M,rtl:k});Object(c.useEffect)((function(){void 0!==b&&x.setCurrentId(N(C,b))}),[b,x.setCurrentId]);var D=u()("component-alignment-matrix-control",t);return Object(c.createElement)(f.a,Object(o.a)({},O,x,{"aria-label":l,as:Fe,className:D,role:"grid",width:g}),z.map((function(e,t){return Object(c.createElement)(_,Object(o.a)({},x,{as:Be,role:"row",key:t}),e.map((function(e){var t=N(C,e),n=x.currentId===t;return Object(c.createElement)(Ge,Object(o.a)({},x,{id:t,isActive:n,key:e,value:e,onFocus:function(){m(e)}}))})))})))}it.Icon=function(e){var t=e.className,n=e.disablePointerEvents,r=void 0===n||n,a=e.size,s=void 0===a?24:a,l=e.style,d=void 0===l?{}:l,f=e.value,h=void 0===f?"center":f,p=Object(i.a)(e,["className","disablePointerEvents","size","style","value"]),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center",t=R(e).replace("-"," "),n=I.indexOf(t);return n>-1?n:void 0}(h),v=(s/24).toFixed(2),m=u()("component-alignment-matrix-control-icon",t),y=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"polite";Object(kt.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(c.createElement)(e,Object(o.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),a}(c.Component)}),"withSpokenMessages");function Et(){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}}var Ct=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(a.a)(n,2),o=r[0],i=r[1];return Object(c.useLayoutEffect)((function(){var n=e.options,r=e.isDebounced,o=Object(s.debounce)((function(){var r=Promise.resolve("function"==typeof n?n(t):n).then((function(n){if(!r.canceled){var o=n.map((function(t,n){return{key:"".concat(e.name,"-").concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}})),a=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");i(function(e){for(var t=arguments.length>1&&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)(wt.a,{focusOnMount:!1,onClose:p,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)(jt.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:u()("components-autocomplete__result",l,{"is-selected":t===d}),onClick:function(){return h(e)}},e.label)}))))}},Mt=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Et()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).select=e.select.bind(Object(ht.a)(e)),e.reset=e.reset.bind(Object(ht.a)(e)),e.onChangeOptions=e.onChangeOptions.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e.state=e.constructor.getInitialState(),e}return Object(pt.a)(r,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null,AutocompleterUI:null}}}]),Object(pt.a)(r,[{key:"insertCompletion",value:function(e){var t=this.state,n=t.autocompleter,r=t.filterValue,o=this.props,a=o.record,i=o.onChange,s=a.start,l=s-n.triggerPrefix.length-r.length,u=Object(Ot.create)({html:Object(c.renderToString)(e)});i(Object(Ot.insert)(a,u,l,s))}},{key:"select",value:function(e){var t=this.props.onReplace,n=this.state,r=n.autocompleter,o=n.filterValue,a=(r||{}).getOptionCompletion;if(!e.isDisabled){if(a){var i=a(e.value,o),c=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i,s=c.action,l=c.value;"replace"===s?t([l]):"insert-at-caret"===s&&this.insertCompletion(l)}this.reset()}}},{key:"reset",value:function(){this.setState(this.constructor.getInitialState())}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(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"):t(Object(S.__)("No results."),"assertive"))}},{key:"onChangeOptions",value:function(e){var t=e.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({filteredOptions:e,selectedIndex:t}),this.announce(e)}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.autocompleter,r=t.selectedIndex,o=t.filteredOptions;if(n&&0!==o.length){var a;switch(e.keyCode){case gt.UP:a=(0===r?o.length:r)-1,this.setState({selectedIndex:a});break;case gt.DOWN:a=(r+1)%o.length,this.setState({selectedIndex:a});break;case gt.ESCAPE:this.setState({autocompleter:null,AutocompleterUI:null});break;case gt.ENTER:this.select(o[r]);break;case gt.LEFT:case gt.RIGHT:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.record,r=t.completers,o=e.record;if(Object(Ot.isCollapsed)(n)){var a=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(n,0))),i=Object(s.deburr)(Object(Ot.getTextContent)(Object(Ot.slice)(o,0)));if(a!==i){var c=Object(Ot.getTextContent)(Object(Ot.slice)(n,void 0,Object(Ot.getTextContent)(n).length)),l=Object(s.find)(r,(function(e){var t=e.triggerPrefix,n=e.allowContext,r=a.lastIndexOf(t);return-1!==r&&(!(n&&!n(a.slice(0,r),c))&&/^\S*$/.test(a.slice(r+t.length)))}));if(!l)return void this.reset();var u=Object(s.escapeRegExp)(l.triggerPrefix),d=a.match(new RegExp("".concat(u,"(\\S*)$"))),f=d&&d[1];this.setState({autocompleter:l,AutocompleterUI:l!==this.state.autocompleter?Ct(l):this.state.AutocompleterUI,filterValue:f})}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.instanceId,r=e.isSelected,o=this.state,a=o.autocompleter,i=o.selectedIndex,s=o.filteredOptions,l=o.AutocompleterUI,u=o.filterValue,d=(s[i]||{}).key,f=void 0===d?"":d,h=(a||{}).className,p=!!a&&s.length>0,b=p?"components-autocomplete-listbox-".concat(n):null,v=p?"components-autocomplete-item-".concat(n,"-").concat(f):null;return Object(c.createElement)(c.Fragment,null,t({isExpanded:p,listBoxId:b,activeId:v,onKeyDown:this.handleKeyDown}),r&&l&&Object(c.createElement)(l,{className:h,filterValue:u,instanceId:n,listBoxId:b,selectedIndex:i,onChangeOptions:this.onChangeOptions,onSelect:this.select,onReset:this.onReset}))}}]),r}(c.Component),xt=Object(E.compose)([St,E.withInstanceId])(Mt);var Dt={name:"8kj89b",styles:"flex-direction:row-reverse;"},Pt=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;",(function(e){var t=e.align;return ue({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),ue({justifyContent:o},"")}),";",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="padding-".concat(n?"left":"right");return ue("> *{",o,":",r,"px;&:last-child{",o,":0;}}")}),";",(function(e){return e.isReversed?Dt:""}),";"),zt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),Tt=je(zt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var It=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__item",n);return Object(c.createElement)(zt,Object(o.a)({},r,{className:a,ref:t}))}));var Rt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-flex__block",n);return Object(c.createElement)(Tt,Object(o.a)({},r,{className:a,ref:t}))}));function Nt(e,t){return e.map((function(e,n){return e+t[n]}))}function At(e,t){return e.map((function(e,n){return e-t[n]}))}function Ht(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function Lt(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Vt(e){return Math.hypot.apply(Math,e)}function Ft(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Bt(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:Lt(t,n),velocity:Ht(t,n,r),distance:Vt(e),direction:Ft(t,r)}}function Kt(e,t){return Math.abs(e)>=t&&Math.sign(e)*t}function Wt(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 Ut(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?Wt(e-n,n-t,r)+n:e}function Gt(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Zt(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 Jt(){}var Qt=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function un(e){var t="buttons"in e?e.buttons:0,n=ln(e),r=n&&n.length||0;return $t({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 dn(e){var t=ln(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var fn=function(){var e=this;this.state=on(),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&&(sn(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,cn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(sn(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(),Qt.apply(void 0,r)])})),cn(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]=Qt.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 hn(e,t,n,r){var o=m.a.useMemo((function(){var e=new fn;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":u0?(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=un(e);if(t.down){r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e),a=r.state._isTap;a&&Vt(o._movement)>=3&&(a=!1),r.updateGestureState($t({},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,l=s[0],u=s[1],d=t._intentional,f=d[0],h=d[1],p=$t({},r.getGenericPayload(e),{},r.getMovement(o)),b=p.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];b<220&&(!1!==f&&Math.abs(i)>y&&Math.abs(l)>j&&(k[0]=Math.sign(i)),!1!==h&&Math.abs(c)>g&&Math.abs(u)>w&&(k[1]=Math.sign(c))),r.updateGestureState($t({event:e},p,{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:Jt}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}qt(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=dn(e).values;this.updateSharedState(un(e));var r=$t({},this.getStartGestureState(n,e),{},this.getGenericPayload(e,!0));this.updateGestureState($t({},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}(bn),mn="undefined"!=typeof window?window:void 0,yn={lockDirection:!1,axis:void 0,bounds:void 0};function gn(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,l=t.window,u=void 0===l?mn:l,d=t.domTarget,f=void 0===d?void 0:d,h=t.enabled,p=void 0===h||h;return $t({},Yt(t,["eventOptions","window","domTarget","enabled"]),{enabled:p,domTarget:f,window:u,eventOptions:{passive:!f||!!o,capture:!!i},captureString:i?"Capture":"",pointer:!!s})}function On(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:en(n),rubberband:en(o)}}function jn(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,a=void 0===o?{}:o,i=Yt(t,["axis","lockDirection","bounds"]),c=[[tn(a.left,-1/0),tn(a.right,1/0)],[tn(a.top,-1/0),tn(a.bottom,1/0)]];return $t({},On(i),{},yn,{},nn({axis:n,lockDirection:r},e),{bounds:c})}function wn(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,a=t.rubberband,i=t.initial,c=Yt(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,l=void 0===s?.5:s,u=c.swipeDistance,d=void 0===u?60:u,f=c.delay,h=void 0!==f&&f,p=c.filterTaps,b=void 0!==p&&p,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,b?3:0,m||v?1:0):b=!0;var y=jn(nn({enabled:n,threshold:r,bounds:o,rubberband:a,axis:v,lockDirection:m,initial:i},e));return $t({},y,{filterTaps:b||y.threshold[0]+y.threshold[1]>0,swipeVelocity:en(l),swipeDistance:en(d),delay:"number"==typeof h?h:h?180:0})}var kn=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=dn(e).values;r.updateSharedState(un(e));var n=$t({},r.getStartGestureState(t,e),{},r.getGenericPayload(e,!0));r.updateGestureState($t({},n,{},r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=un(e);r.updateSharedState(t);var n=dn(e).values,o=r.getKinematics(n,e);r.updateGestureState($t({},r.getGenericPayload(e),{},o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e,!0),{values:t,active:!0,hovering:!0});r.controller.handlers.hover($t({},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=dn(e).values,n=$t({},r.controller.state.shared,{},r.state,{},r.getGenericPayload(e),{values:t,active:!1});r.controller.handlers.hover($t({},n,{},r.mapStateValues(n)))}},r}return qt(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}(bn);var _n=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,l=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,h=e.isReversed,p=void 0!==h&&h,b=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=u()("components-flex",a);return Object(c.createElement)(Pt,Object(o.a)({},b,{align:r,className:v,ref:t,gap:l,justify:f,isReversed:p}))})),Sn=_n;function En(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 Cn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:xn,t=e.value;return Cn({},xn,{},e,{initialValue:t})}var Tn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return Nn(Un(),Gn,$n);case"title.medium":return Nn(Wn(),Gn,qn);case"title.small":return Nn(Kn(),Gn,Yn);case"subtitle":return Nn(Bn(),Zn,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return Nn(Fn(),Zn,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return Nn(Vn(),Xn);case"body.large":return Nn(Ln(),Xn,Jn);case"body.small":return Nn(Hn(),Xn,Qn);case"button":return er;case"caption":return tr;case"label":return nr}}(e.variant))},or=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",rr,"");var ar={name:"r6z5ec",styles:"z-index:1;"},ir=je("div",{target:"e1cr7zh10",label:"Root"})("box-sizing:border-box;position:relative;border-radius:2px;",(function(e){var t=e.isFloatingLabel;return ue({paddingTop:t?5:0},"")}),";",(function(e){return e.isFocused?ar:""}),";"),cr=je("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;position:relative;",(function(e){var t=Ae(e.disabled?"ui.backgroundDisabled":"ui.background");return ue({backgroundColor:t},"")}),";"),sr=je("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Ae("black"),";display:block;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=ue("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=ue("&:active{cursor:",n,";}")),ue(r,";",o,";")}),";",(function(e){return e.disabled?ue({color:Ae("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?ue("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 ue(n[t]||n.default,"")}),";",(function(e){var t=e.isFilled,n=e.isFloating,r=1;return e.isFloatingLabel&&(t||n||(r=0)),ue("&::placeholder{opacity:",r,";}&::-webkit-input-placeholder{line-height:normal;}")}),";}"),lr=function(e){var t=e.isFloatingLabel,n=e.isFilled,r=e.isFloating,o=t&&!n||r?Ae("ui.textDisabled"):"currentColor";return ue({color:o},"")},ur=function(e){var t=e.isFloatingLabel,n=e.size;return ue({fontSize:{default:"13px",small:"11px"}[n],lineHeight:t?1.2:null},"")},dr=function(e){var t=e.isFloatingLabel,n=e.isFloating,r=t?0:4,o=t?"absolute":null,a=n?null:"none",i="small"===e.size,c=n?0:i?1:2,s=t?8:0,l=n?"translate( 0, calc(-100% + ".concat(i?"-1px":"-3px",") ) scale( 0.75 )"):"translate( 0, -50%) scale(1)";t||(l=null);var u=t?"transform ".concat("60ms"," linear"):null;return ue({marginTop:c,paddingBottom:r,position:o,pointerEvents:a,transition:u,transform:l},tt({marginLeft:s})(),tt({transformOrigin:"top left"},{transformOrigin:"top right"})(),"")},fr={name:"fjfd5j",styles:"max-width:calc( 100% - 10px );overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},hr=function(e){return e.isFloating?"":fr},pr=je(or,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;display:block;margin:0;max-width:100%;padding:0;pointer-events:none;top:50%;transition:transform ","60ms"," linear,max-width ","60ms"," linear;z-index:1;",lr,";",ur,";",dr,";",hr,";",He("transition"),";",tt({left:0}),"}"),br=function(e){return Object(c.createElement)(pr,Object(o.a)({},e,{as:"label"}))},vr=je("fieldset",{target:"e1cr7zh14",label:"Fieldset"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Ae(n?"ui.borderFocus":"ui.border");t&&(r="ui.borderDisabled");return ue({borderColor:r,borderStyle:"solid",borderWidth:n?2:1},"")}),";",(function(e){var t=e.isFloatingLabel;return ue({top:t?-5:0},"")}),";",tt({paddingLeft:2}),"}"),mr=je("legend",{target:"e1cr7zh15",label:"Legend"})("&&&{box-sizing:border-box;display:block;height:11px;line-height:11px;margin:0;padding:0;transition:max-width ","60ms"," linear;visibility:hidden;width:auto;",(function(e){var t=e.isFloating,n=e.size;return ue({fontSize:{default:9.75,small:8.25}[n],maxWidth:t?1e3:.01},"")}),";",He("transition"),";}"),yr=je(or,{target:"e1cr7zh16",label:"BaseLegendText"})("box-sizing:border-box;display:inline-block;",tt({paddingLeft:4,paddingRight:5}),""),gr=function(e){return Object(c.createElement)(yr,Object(o.a)({},e,{as:"span"}))},Or=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var jr=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFloating,o=void 0!==r&&r,a=e.isFloatingLabel,i=void 0!==a&&a,s=e.isFocused,l=void 0!==s&&s,u=e.label,d=e.size,f=void 0===d?"default":d;return Object(c.createElement)(vr,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFloatingLabel:i,isFocused:l},i&&Object(c.createElement)(mr,{"aria-hidden":"true",className:"components-input-control__backdrop-label",isFloating:o,size:f},Object(c.createElement)(gr,{className:"components-input-control__backdrop-text"},u)))}));function wr(e){return null!=e}function kr(e){var t=""===e;return!wr(e)||t}function _r(){var e,t=arguments.length>0&&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=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,l=e.dragDirection,u=void 0===l?"n":l,d=e.dragThreshold,f=void 0===d?10:d,h=e.id,p=e.isDragEnabled,b=void 0!==p&&p,v=e.isFloating,m=void 0!==v&&v,y=e.isFloatingLabelSet,g=void 0!==y&&y,O=e.isPressEnterToChange,j=void 0!==O&&O,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,E=e.onDrag,C=void 0===E?s.noop:E,M=e.onDragEnd,x=void 0===M?s.noop:M,D=e.onDragStart,P=void 0===D?s.noop:D,z=e.onFocus,T=void 0===z?s.noop:z,I=e.onKeyDown,R=void 0===I?s.noop:I,N=e.onUpdateValue,A=e.onValidate,H=void 0===A?s.noop:A,L=e.size,V=void 0===L?"default":L,F=e.stateReducer,B=void 0===F?function(e){return e}:F,K=e.value,W=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFloating","isFloatingLabelSet","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onUpdateValue","onValidate","size","stateReducer","value"]),U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn,n=Object(c.useReducer)(In(e),zn(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}})}},l=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},u=function(e){return function(t){i({type:e,payload:t})}},d=s(Dn.CHANGE),f=s(Dn.INVALIDATE),h=s(Dn.RESET),p=s(Dn.COMMIT),b=s(Dn.UPDATE),v=u(Dn.DRAG_START),m=u(Dn.DRAG),y=u(Dn.DRAG_END),g=l(Dn.PRESS_UP),O=l(Dn.PRESS_DOWN),j=l(Dn.PRESS_ENTER);return{change:d,commit:p,dispatch:i,drag:m,dragEnd:y,dragStart:v,inValidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:h,state:o,update:b}}(B,{isDragEnabled:b,value:K,isPressEnterToChange:j}),G=U.state,$=U.change,q=U.commit,Y=U.drag,Z=U.dragEnd,X=U.dragStart,J=U.invalidate,Q=U.pressDown,ee=U.pressEnter,te=U.pressUp,ne=U.reset,re=U.update,oe=G._event,ae=G.value,ie=G.isDragging,ce=G.isDirty,se=Object(c.useRef)(ae),le=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}(ie,u);Object(c.useEffect)((function(){if(K!==se.current)return re(K),void(se.current=K);ae===se.current||ce||(S(ae,{event:oe}),N(!kr(ae)),se.current=ae)}),[ae,ce,K]);var ue=function(e){var t=e.target.value;try{H(t,{event:e}),q(t,e)}catch(t){J(t,{event:e})}},de=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{drag:wn(i)});return hn({drag:e},[vn],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(b&&t){if(r.stopPropagation(),!n)return x(e),void Z(e);C(e),Y(e),ie||(P(e),X(e))}}),{threshold:f,enabled:b});return Object(c.createElement)(sr,Object(o.a)({},W,de(),{className:"components-input-control__input",disabled:r,dragCursor:le,isDragging:ie,id:h,isFloating:m,isFloatingLabel:g,onBlur:function(e){k(e),j&&ce&&(kr(ae)?ne(K):ue({target:{value:ae}},e))},onChange:function(e){var t=e.target.value;$(t,e)},onFocus:function(e){T(e)},onKeyDown:function(e){var t=e.keyCode;switch(R(e),t){case gt.UP:te(e);break;case gt.DOWN:Q(e);break;case gt.ENTER:ee(e),j&&(e.preventDefault(),ue(e))}},ref:t,size:V,value:ae}))}));function Er(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)(P,{as:"label",htmlFor:r},t):Object(c.createElement)(br,Object(o.a)({htmlFor:r},a),t):null}function Cr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.children,d=e.className,f=e.disabled,h=void 0!==f&&f,p=e.hideLabelFromVision,b=void 0!==p&&p,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isFloatingLabel,O=void 0!==g&&g,j=e.label,w=e.onBlur,k=void 0===w?s.noop:w,_=e.onChange,S=void 0===_?s.noop:_,C=e.onFocus,M=void 0===C?s.noop:C,x=e.onValidate,D=void 0===x?s.noop:x,P=e.onKeyDown,z=void 0===P?s.noop:P,T=e.size,I=void 0===T?"default":T,R=e.suffix,N=e.value,A=Object(i.a)(e,["__unstableStateReducer","children","className","disabled","hideLabelFromVision","id","isPressEnterToChange","isFloatingLabel","label","onBlur","onChange","onFocus","onValidate","onKeyDown","size","suffix","value"]),H=Object(c.useState)(!1),L=Object(a.a)(H,2),V=L[0],F=L[1],B=Object(c.useState)(!kr(N)),K=Object(a.a)(B,2),W=K[0],U=K[1],G=function(e){var t=Object(E.useInstanceId)(Cr),n="inspector-input-control-".concat(t);return e||n}(v),$=u()("components-input-control",d),q=W||!kr(N),Y=!!O&&(q||V),Z=!b&&O&&j;return Object(c.createElement)(ir,{className:$,isFloatingLabel:Z,isFocused:V},Object(c.createElement)(Er,{className:"components-input-control__label",hideLabelFromVision:b,htmlFor:G,isFilled:W,isFloating:Y,isFloatingLabel:O,size:I},j),Object(c.createElement)(cr,{className:"components-input-control__container",disabled:h,isFocused:V},Object(c.createElement)(Sr,Object(o.a)({},A,{className:"components-input-control__input",disabled:h,id:G,isFloating:Y,isFloatingLabelSet:Z,isPressEnterToChange:y,onBlur:function(e){k(e),F(!1)},onChange:S,onFocus:function(e){M(e),F(!0)},onKeyDown:z,onUpdateValue:U,onValidate:D,ref:t,setIsFocused:F,size:I,stateReducer:r,value:N})),R&&Object(c.createElement)(Or,{className:"components-input-control__suffix"},R),Object(c.createElement)(jr,{"aria-hidden":"true",disabled:h,isFloating:Y,isFloatingLabel:Z,isFocused:V,label:j,size:I}),l))}var Mr=Object(c.forwardRef)(Cr);var xr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Dr=function(e){return e.hideHTMLArrows?xr:""},Pr=je(Mr,{target:"ep48uk90",label:"Input"})(Dr,";");function zr(e){var t=Number(e);return isNaN(t)?0:t}function Tr(){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=zr(e),a=zr(r),i=Ir(r),c=Math.round(o/a)*a,l=Object(s.clamp)(c,t,n);return i?zr(l.toFixed(i)):l}var Nr=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,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[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 Ar=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,l=e.dragDirection,d=void 0===l?"n":l,f=e.hideHTMLArrows,h=void 0!==f&&f,p=e.isDragEnabled,b=void 0===p||p,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,C=e.type,M=void 0===C?"number":C,x=e.value,D=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),P=Je(),z=Rr(0,w,O,E),T=Nr({step:E,shiftStep:_,isShiftStepEnabled:m}),I="number"===M?"off":null,R=u()("components-number-control",s);return Object(c.createElement)(Pr,Object(o.a)({autoComplete:I,inputMode:"numeric"},D,{className:R,dragDirection:d,hideHTMLArrows:h,isDragEnabled:b,label:y,max:O,min:w,ref:t,step:T,type:M,value:x,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===Pn.PRESS_UP||n===Pn.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=kr(i)?z:i;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===Pn.PRESS_UP&&(s=Tr(s,c)),n===Pn.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&!1!==e}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gr,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(),$r(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}return[r,a]}function Yr(e,t,n,r){var o,i,c=qr(e,t),s=Object(a.a)(c,2),l=s[0],u=s[1],d=l;((isNaN(l)||""===l)&&(d=n),o=u||r,$r(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function Zr(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,l=void 0===a?Gr:a,d=e.onChange,f=void 0===d?s.noop:d,h=e.size,p=void 0===h?"default":h,b=e.value,v=void 0===b?"px":b,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!$r(l))return Object(c.createElement)(Wr,{className:"components-unit-control__unit-label",size:p},v);var y=u()("components-unit-control__select",t);return Object(c.createElement)(Ur,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=l.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:p,tabIndex:r?null:"-1",value:v},m),l.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function Xr(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 Jr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Qr,n=Jr({},Qr,{},t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),l=s[0],u=s[1],d=wr(e),f=_r([e,l,r],o),h=function(e){d||u(e)};return[f,h]};var to=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,l=e.autoComplete,d=void 0===l?"off":l,f=e.className,h=e.disabled,p=void 0!==h&&h,b=e.disableUnits,v=void 0!==b&&b,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,C=void 0===E?s.noop:E,M=e.size,x=void 0===M?"default":M,D=e.style,P=e.unit,z=e.units,T=void 0===z?Gr:z,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),N=function(e,t,n){return qr(t?"".concat(e).concat(t):e,n)}(I,P,T),A=Object(a.a)(N,2),H=A[0],L=A[1],V=eo(P,{initial:L}),F=Object(a.a)(V,2),B=F[0],K=F[1],W=u()("components-unit-control",f),U=function(e,t){var n=t.data,r="".concat(H).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),C(e,t),K(e)},G=v?null:Object(c.createElement)(Zr,{disabled:p,isTabbable:w,options:T,onChange:U,size:x,value:B});return Object(c.createElement)(Hr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(Br,Object(o.a)({"aria-label":k,type:y?"text":"number"},R,{autoComplete:d,className:W,disabled:p,disableUnits:v,isPressEnterToChange:y,label:k,onChange:function(e,t){var n=Yr(e,T,H,B),r=Object(a.a)(n,2),o=r[0],i=r[1],c="".concat(o).concat(i);S(c,t)},ref:t,size:x,suffix:G,value:H,__unstableStateReducer:Tn((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event;if(n===Pn.COMMIT){var i,c=Yr(null==o||null===(i=o.target)||void 0===i?void 0:i.value,T,H,B),s=Object(a.a)(c,2),l=s[0],u=s[1];e.value=l,B!==u&&U(u,{event:o})}return e}),r)})))}));var no=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),ro=je(_n,{target:"e7pk0lh1",label:"Header"})("color:",Ae("ui.label"),";padding-bottom:8px;"),oo=je(_n,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),ao=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),io=je(_n,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),co=je(_n,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),so={name:"icip60",styles:"border-radius:2px;"},lo={name:"1k07npk",styles:"border-radius:0;"},uo=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:lo},fo=function(e){return tt({marginLeft:e.isFirst?0:-1})()},ho=je(to,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",uo,";",fo,";");function po(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,l=void 0===a?s.noop:a,u=e.onHoverOff,d=void 0===u?s.noop:u,f=e.label,h=e.value,p=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),b=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Yt(n,["domTarget","eventOptions","window"]),c=$t({},gn({domTarget:r,eventOptions:o,window:a}),{hover:$t({enabled:!0},i)});return hn({hover:e},[kn],c)}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?l(t,n):d(t,n)}));return Object(c.createElement)(ao,Object(o.a)({"aria-label":f},b()),Object(c.createElement)(bo,{text:f},Object(c.createElement)(ho,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isFloatingLabel:!0,isResetValueOnUnitChange:!1,value:h},p))))}function bo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(M.a,{text:n,position:"top"},t):t}var vo={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},mo={top:null,right:null,bottom:null,left:null},yo={top:!1,right:!1,bottom:!1,left:!1};function go(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 Oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(qr),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=go(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Oo(e),n=isNaN(parseFloat(t));return n}function wo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function ko(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 _o(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,l=e.onHoverOn,u=void 0===l?s.noop:l,d=e.onHoverOff,f=void 0===d?s.noop:d,h=e.values,p=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),b=Oo(h),v=wo(h)&&jo(h),m=v?vo.mixed:null;return Object(c.createElement)(po,Object(o.a)({},p,{disableUnits:v,isOnly:!0,value:b,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(ta({},yo,{},e))},isLinked:x,units:p,values:g});return Object(c.createElement)(no,{id:R,role:"region","aria-labelledby":N},Object(c.createElement)(ro,{className:"component-box-control__header"},Object(c.createElement)(It,null,Object(c.createElement)(or,{id:N,className:"component-box-control__label"},f)),Object(c.createElement)(It,null,Object(c.createElement)(jt.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=mo;i(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(oo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(It,null,Object(c.createElement)(No,{side:T})),x&&Object(c.createElement)(Rt,null,Object(c.createElement)(_o,A)),Object(c.createElement)(It,null,Object(c.createElement)(Vo,{onClick:function(){D(!x),I(x?"top":"all")},isLinked:x}))),!x&&Object(c.createElement)(Eo,A))}ra.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?yo:n,a=e.values,s=void 0===a?mo:a,l=Object(i.a)(e,["children","showValues","values"]),u=!t;return Object(c.createElement)(Bo,Object(o.a)({},l,{isPositionAbsolute:u,"aria-hidden":"true"}),Object(c.createElement)(qo,{showValues:r,values:s}),t)};var oa=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=u()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),aa=Object(c.createContext)({}),ia=function(){return Object(c.useContext)(aa)};function ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var sa={borderColor:Ae("lightGray.500"),borderRadius:"3px",backgroundShady:Ae("lightGray.200")},la=sa.borderColor,ua=sa.borderRadius,da=sa.backgroundShady,fa=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Ae("white"),";box-sizing:border-box;border-radius:",ua,";border:1px solid ",la,";",ga,";&.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 );}"),ha=je(Sn,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",la,";border-top-left-radius:",ua,";border-top-right-radius:",ua,";box-sizing:border-box;&:last-child{border-bottom:none;}",ya,";",ga,";",Oa,";"),pa=je("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:",ua,";border-top-right-radius:",ua,";}&:last-of-type{border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";}"),ba=je("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(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Oa,";"),va=je(Sn,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",la,";border-bottom-left-radius:",ua,";border-bottom-right-radius:",ua,";box-sizing:border-box;&:first-of-type{border-top:none;}",ya,";",ga,";",Oa,";"),ma=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",la,";box-sizing:border-box;display:block;height:0;width:100%;");function ya(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ca(3)," ").concat(ca(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ca(2)," ").concat(ca(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ca(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ca(1),";\n\t\t\t}\n\t\t}\n\t")}function ga(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Oa(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(da,";\n\t\t}\n\t")}function ja(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),l=aa.Provider,d={isBorderless:n,isElevated:r,size:a},f=u()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(l,{value:d},Object(c.createElement)(fa,Object(o.a)({},s,{className:f})))}ja.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var wa=ja;function ka(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 _a={isShady:!1,size:"medium"};var Sa=function(e){var t=e.className,n=e.isShady,r=Object(i.a)(e,["className","isShady"]),a=function(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?ke()(e.hex):ke()(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 Va(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,l=c-(r+window.pageXOffset),u=s-(o+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}function Fa(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function Ba(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 Ka=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)(Ba,{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 Wa(){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}}var Ua=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Wa()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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=Va(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!==gt.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)(Ka,{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}))))}}]),r}(c.Component),Ga=Object(E.pure)(Ua);function $a(){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}}var qa=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if($a()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(ht.a)(e)),e.decrease=e.decrease.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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=Va(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!==gt.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)(Ka,{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)(P,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),r}(c.Component),Ya=Object(E.compose)(E.pure,E.withInstanceId)(qa),Za=n(296);function Xa(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.className,l=e.onChange,u=e.type,d=void 0===u?"text":u,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),h=Object(E.useInstanceId)(Xa),p="inspector-text-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:p,value:r,onChange:function(e){return l(e.target.value)},"aria-describedby":a?p+"__help":void 0},f)))}function Ja(e){return function(){var t,n=Object(vt.a)(e);if(Qa()){var r=Object(vt.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(bt.a)(this,t)}}function Qa(){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}}var ei=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(){var e;return Object(ft.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(ht.a)(e)),e.handleChange=e.handleChange.bind(Object(ht.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(ht.a)(e)),e}return Object(pt.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&&Fa(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===gt.ENTER||t===gt.UP||t===gt.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)(Xa,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),ti=Object(E.pure)(jt.a),ni=function(e){Object(mt.a)(n,e);var t=Ja(n);function n(e){var r,o=e.hsl;Object(ft.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(ht.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(ht.a)(r)),r.handleChange=r.handleChange.bind(Object(ht.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(ht.a)(r)),r}return Object(pt.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(kt.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(kt.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)(ei,{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)(P,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(P,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(ei,{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)(ei,{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)(ei,{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)(ei,{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)(ti,{className:"components-color-picker__inputs-toggle",icon:Za.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 ri(){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}}var oi=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ri()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),t.container=Object(c.createRef)(),t.saturate=t.saturate.bind(Object(ht.a)(t)),t.brighten=t.brighten.bind(Object(ht.a)(t)),t.handleChange=t.handleChange.bind(Object(ht.a)(t)),t.handleMouseDown=t.handleMouseDown.bind(Object(ht.a)(t)),t.handleMouseUp=t.handleMouseUp.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{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=Va(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,l=o>=c?0:-100*o/c+100;return l<1&&(l=0),{h:t.hsl.h,s:s,v:l,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!==gt.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)(Ka,{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)(jt.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)(P,{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."))))}}]),r}(c.Component),ai=Object(E.compose)(E.pure,E.withInstanceId)(oi);function ii(){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}}function ci(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 si(e){for(var t=1;tt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var ki=0;function _i(e,t){e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,a=t.boundary,i=t.skipOverflowHiddenElements,c="function"==typeof a?a:function(e){return e!==a};if(!gi(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,l=[],u=e;gi(u)&&c(u);){if((u=u.parentNode)===s){l.push(u);break}u===document.body&&ji(u)&&!ji(document.documentElement)||ji(u,i)&&l.push(u)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),v=b.height,m=b.width,y=b.top,g=b.right,O=b.bottom,j=b.left,w="start"===r||"nearest"===r?y:"end"===r?O:y+v/2,k="center"===o?j+m/2:"end"===o?g:j,_=[],S=0;S=0&&j>=0&&O<=f&&g<=d&&y>=D&&O<=z&&j>=T&&g<=P)return _;var I=getComputedStyle(E),R=parseInt(I.borderLeftWidth,10),N=parseInt(I.borderTopWidth,10),A=parseInt(I.borderRightWidth,10),H=parseInt(I.borderBottomWidth,10),L=0,V=0,F="offsetWidth"in E?E.offsetWidth-E.clientWidth-R-A:0,B="offsetHeight"in E?E.offsetHeight-E.clientHeight-N-H:0;if(s===E)L="start"===r?w:"end"===r?w-f:"nearest"===r?wi(p,p+f,f,N,H,p+w,p+w+v,v):w-f/2,V="start"===o?k:"center"===o?k-d/2:"end"===o?k-d:wi(h,h+d,d,R,A,h+k,h+k+m,m),L=Math.max(0,L+p),V=Math.max(0,V+h);else{L="start"===r?w-D-N:"end"===r?w-z+H+B:"nearest"===r?wi(D,z,M,N,H+B,w,w+v,v):w-(D+M/2)+B/2,V="start"===o?k-T-R:"center"===o?k-(T+x/2)+F/2:"end"===o?k-P+A+F:wi(T,P,x,R,A+F,k,k+m,m);var K=E.scrollLeft,W=E.scrollTop;w+=W-(L=Math.max(0,Math.min(W+L,E.scrollHeight-M+B))),k+=K-(V=Math.max(0,Math.min(K+V,E.scrollWidth-x+F)))}_.push({el:E,top:L,left:V})}return _}(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 Si(e,t){return e===t||e.contains&&e.contains(t)}function Ei(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 Ii(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=Ri(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function Ri(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?Ri(1,0,n,r,!1):Ri(-1,n-1,n,r,!1):-1}function Ni(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Si(t,e)||r&&Si(t,n.activeElement))}))}var Ai=Ei((function(){Li().textContent=""}),500);function Hi(e,t){var n=Li(t);e&&(n.textContent=e,Ai())}function Li(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 Vi={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Fi(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"+Gi(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 Bi=Ei((function(e,t){Hi(e(),t)}),200);function Ki(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=void 0===t?"downshift-"+xi():t;return{labelId:n||i+"-label",menuId:r||i+"-menu",getItemId:o||function(e){return i+"-item-"+e},toggleButtonId:a||i+"-toggle-button"}}function Wi(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Ui(e){return/^\S{1}$/.test(e)}function Gi(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function $i(e){var t=Object(v.useRef)(e);return t.current=e,t}function qi(e,t,n){var r=Object(v.useRef)(),a=Object(v.useRef)(),i=Object(v.useCallback)((function(t,n){a.current=n,t=Pi(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],l=c[1],u=$i(n),d=Object(v.useCallback)((function(e){return l(Object(o.a)({props:u.current},e))}),[u]),f=a.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Fi(f,Pi(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Yi(e,t,n){var r=qi(e,t,n),o=r[0],a=r[1];return[Pi(o,n),a]}var Zi={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:_i,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Xi(e,t,n){void 0===n&&(n=Vi);var r="default"+Gi(t);return r in e?e[r]:n[t]}function Ji(e,t,n){if(void 0===n&&(n=Vi),t in e)return e[t];var r="initial"+Gi(t);return r in e?e[r]:Xi(e,t,n)}function Qi(e){var t=Ji(e,"selectedItem"),n=Ji(e,"isOpen"),r=Ji(e,"highlightedIndex"),o=Ji(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ec(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):Ii(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function tc(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&&!Ni(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},l=function(a){!e||o.current.isTouchMove||Ni(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",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",l)}}),[e,n]),o}function nc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:a.items[l]});break;case 13:n={highlightedIndex:ec(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ec(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Xi(a,"isOpen"),highlightedIndex:Xi(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:Ri(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:Ri(-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 u=t.key,d=""+e.inputValue+u,f=rc(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:Ii(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:Ii(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:ec(a,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:ec(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:Xi(a,"highlightedIndex"),isOpen:Xi(a,"isOpen"),selectedItem:Xi(a,"selectedItem"),inputValue:Xi(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function cc(e){void 0===e&&(e={});var t=Object(o.a)({},oc,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,l=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=Yi(ic,Qi(t),t),f=d[0],h=d[1],p=f.isOpen,b=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)(Ki(t)),E=Object(v.useRef)(),C=Object(v.useRef)(!0),M=Object(v.useRef)(t),x=$i({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return u({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[p,b,y,n]),Object(v.useEffect)((function(){if(!C.current){var e=E.current;Bi((function(){return l({isOpen:p,highlightedIndex:b,selectedItem:m,inputValue:y,highlightedItem:n[b],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[m]),Object(v.useEffect)((function(){C.current&&(_.current=Ei((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(h)}),[y]),Object(v.useEffect)((function(){C.current?(i||c||p)&&O.current&&O.current.focus():p?O.current&&O.current.focus():a.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[p]),Object(v.useEffect)((function(){b<0||!p||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(b),O.current))}),[b]),Object(v.useEffect)((function(){C.current||(E.current=n.length)})),Object(v.useEffect)((function(){C.current||(M.current,M.current=t)}),[f,t]);var P=tc(p,[O,g],a,(function(){h({type:8})})),z=nc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){C.current=!1}),[]);var T=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[h]),I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),h({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),h({type:4,getItemNodeFromIndex:D})},Escape:function(){h({type:2})},Enter:function(e){e.preventDefault(),h({type:5})}," ":function(e){e.preventDefault(),h({type:6})}}}),[h]),R=Object(v.useCallback)((function(){h({type:16})}),[h]),N=Object(v.useCallback)((function(){h({type:18})}),[h]),A=Object(v.useCallback)((function(){h({type:17})}),[h]),H=Object(v.useCallback)((function(e){h({type:19,highlightedIndex:e})}),[h]),L=Object(v.useCallback)((function(e){h({type:20,selectedItem:e})}),[h]),V=Object(v.useCallback)((function(){h({type:22})}),[h]),F=Object(v.useCallback)((function(e){h({type:21,inputValue:e})}),[h]),B=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,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,l=r.onBlur,u=r.ref,d=Object(vi.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,b=x.current.state;return z("getMenuProps",p,c,O),Object(o.a)(((n={})[c]=Mi(u,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),b.isOpen&&b.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(b.highlightedIndex)},{onMouseLeave:Ci(a,(function(){h({type:9})})),onKeyDown:Ci(s,(function(e){var t=Ti(e);t&&I[t]?I[t](e):Ui(t)&&h({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:Ci(l,(function(){!1!==k.current?!P.current.isMouseDown&&h({type:8}):k.current=!0}))},d)}),[h,x,I,P,z]);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,l=r.ref,u=Object(vi.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,p=Object(o.a)(((n={})[s]=Mi(l,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=x.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),u);return u.disabled||(p.onClick=Ci(a,(function(){h({type:12})})),p.onKeyDown=Ci(i,(function(e){var t=Ti(e);t&&T[t]?T[t](e):Ui(t)&&h({type:15,key:t,getItemNodeFromIndex:D})}))),z("getToggleButtonProps",f,s,g),p}),[h,x,T,z]),getLabelProps:B,getMenuProps:K,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,l=void 0===s?"ref":s,u=n.ref,d=Object(vi.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=x.current,p=f.state,b=f.props,v=Wi(a,r,b.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===p.highlightedIndex),id:S.current.getItemId(v)})[l]=Mi(u,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=Ci(i,(function(){a!==p.highlightedIndex&&(w.current=!1,h({type:10,index:a}))})),m.onClick=Ci(c,(function(){h({type:11,index:a})}))),m}),[h,x]),toggleMenu:R,openMenu:A,closeMenu:N,setHighlightedIndex:H,selectItem:L,reset:V,setInputValue:F,highlightedIndex:b,isOpen:p,selectedItem:m,inputValue:y}}cc.stateChangeTypes=ac;yi.a.array.isRequired,yi.a.func,yi.a.func,yi.a.func,yi.a.bool,yi.a.number,yi.a.number,yi.a.number,yi.a.bool,yi.a.bool,yi.a.bool,yi.a.any,yi.a.any,yi.a.any,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.string,yi.a.func,yi.a.string,yi.a.string,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.func,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});Object(o.a)({},Zi,{getA11yStatusMessage:Di,circularNavigation:!0});yi.a.array,yi.a.array,yi.a.array,yi.a.func,yi.a.func,yi.a.func,yi.a.number,yi.a.number,yi.a.number,yi.a.func,yi.a.func,yi.a.string,yi.a.string,yi.a.shape({addEventListener:yi.a.func,removeEventListener:yi.a.func,document:yi.a.shape({getElementById:yi.a.func,activeElement:yi.a.any,body:yi.a.any})});var sc=function(e){return e&&e.name},lc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case cc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case cc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function uc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,l=cc({initialSelectedItem:a[0],items:a,itemToString:sc,onSelectedItemChange:i,selectedItem:s,stateReducer:lc}),d=l.getLabelProps,f=l.getToggleButtonProps,h=l.getMenuProps,p=l.getItemProps,b=l.isOpen,v=l.highlightedIndex,m=l.selectedItem,y=h({className:"components-custom-select-control__menu","aria-hidden":!b});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:u()("components-custom-select-control",t)},n?Object(c.createElement)(P,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)(jt.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),sc(m),Object(c.createElement)(Ia.a,{icon:Za.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,b&&a.map((function(e,t){return Object(c.createElement)("li",p({item:e,index:t,key:e.key,className:u()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Ia.a,{icon:Ra.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var dc=n(148),fc=(n(306),n(43)),hc=n.n(fc),pc=n(270),bc=n.n(pc);function vc(){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}}var mc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(ht.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?hc()(n):hc()(),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?hc()(e):hc()()}},{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)(bc.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())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),r}(c.Component);function yc(){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}}var gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(yc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={day:"",month:"",year:"",hours:"",minutes:"",am:"",date:null},e.changeDate=e.changeDate.bind(Object(ht.a)(e)),e.updateMonth=e.updateMonth.bind(Object(ht.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(ht.a)(e)),e.updateDay=e.updateDay.bind(Object(ht.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(ht.a)(e)),e.updateYear=e.updateYear.bind(Object(ht.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(ht.a)(e)),e.updateHours=e.updateHours.bind(Object(ht.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(ht.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(ht.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(ht.a)(e)),e.renderMonth=e.renderMonth.bind(Object(ht.a)(e)),e.renderDay=e.renderDay.bind(Object(ht.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,r=t?hc()(t):hc()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),c=r.format("mm"),s=r.format("H")<=11?"AM":"PM",l=r.format(n?"hh":"HH"),u=t?hc()(t):hc()();this.setState({day:o,month:a,year:i,minutes:c,hours:l,am:s,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(a!==o.hour())if(!Object(s.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(r!==n.minute())if(!Object(s.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(r!==n.date())if(!Object(s.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(r!==n.month()+1)if(!Object(s.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(r!==n.year())if(!Object(s.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(c.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(c.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(c.createElement)("option",{value:"01"},Object(S.__)("January")),Object(c.createElement)("option",{value:"02"},Object(S.__)("February")),Object(c.createElement)("option",{value:"03"},Object(S.__)("March")),Object(c.createElement)("option",{value:"04"},Object(S.__)("April")),Object(c.createElement)("option",{value:"05"},Object(S.__)("May")),Object(c.createElement)("option",{value:"06"},Object(S.__)("June")),Object(c.createElement)("option",{value:"07"},Object(S.__)("July")),Object(c.createElement)("option",{value:"08"},Object(S.__)("August")),Object(c.createElement)("option",{value:"09"},Object(S.__)("September")),Object(c.createElement)("option",{value:"10"},Object(S.__)("October")),Object(c.createElement)("option",{value:"11"},Object(S.__)("November")),Object(c.createElement)("option",{value:"12"},Object(S.__)("December"))))}},{key:"renderDay",value:function(e){return Object(c.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,o=t.hours,a=t.am;return Object(c.createElement)("div",{className:u()("components-datetime__time")},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(c.createElement)("div",{className:"components-datetime__time-wrapper"},Object(c.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(c.createElement)("input",{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:o,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(c.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(c.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(c.createElement)(oa,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(c.createElement)(jt.a,{isPrimary:"AM"===a,isSecondary:"AM"!==a,onClick:this.updateAmPm("AM"),className:"components-datetime__time-am-button"},Object(S.__)("AM")),Object(c.createElement)(jt.a,{isPrimary:"PM"===a,isSecondary:"PM"!==a,onClick:this.updateAmPm("PM"),className:"components-datetime__time-pm-button"},Object(S.__)("PM"))))))}}]),r}(c.Component);function Oc(){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}}var jc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Oc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"onClickDescriptionToggle",value:function(){this.setState({calendarHelpIsVisible:!this.state.calendarHelpIsVisible})}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.is12Hour,r=e.isInvalidDate,o=e.onChange;return Object(c.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(gc,{currentTime:t,onChange:o,is12Hour:n}),Object(c.createElement)(mc,{currentDate:t,onChange:o,isInvalidDate:r})),this.state.calendarHelpIsVisible&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-datetime__calendar-help"},Object(c.createElement)("h4",null,Object(S.__)("Click to Select")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(c.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(c.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(c.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Page Up and Page Down")},Object(S.__)("PgUp/PgDn"))," ",Object(S.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(c.createElement)("li",null,Object(c.createElement)("abbr",{"aria-label":Object(S.__)("Home and End")},Object(S.__)("Home/End"))," ",Object(S.__)("Go to the first (home) or last (end) day of a week."))))),Object(c.createElement)("div",{className:"components-datetime__buttons"},!this.state.calendarHelpIsVisible&&t&&Object(c.createElement)(jt.a,{className:"components-datetime__date-reset-button",isLink:!0,onClick:function(){return o(null)}},Object(S.__)("Reset")),Object(c.createElement)(jt.a,{className:"components-datetime__date-help-toggle",isLink:!0,onClick:this.onClickDescriptionToggle},this.state.calendarHelpIsVisible?Object(S.__)("Close"):Object(S.__)("Calendar Help"))))}}]),r}(c.Component),wc=n(88);function kc(e){var t=e.help,n=e.label,r=e.multiple,a=void 0!==r&&r,l=e.onChange,u=e.options,d=void 0===u?[]:u,f=e.className,h=e.hideLabelFromVision,p=Object(i.a)(e,["help","label","multiple","onChange","options","className","hideLabelFromVision"]),b=Object(E.useInstanceId)(kc),v="inspector-select-control-".concat(b);return!Object(s.isEmpty)(d)&&Object(c.createElement)(lt,{label:n,hideLabelFromVision:h,id:v,help:t,className:f},Object(c.createElement)("select",Object(o.a)({id:v,className:"components-select-control__input",onChange:function(e){if(a){var t=Object(yt.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));l(t)}else l(e.target.value)},"aria-describedby":t?"".concat(v,"__help"):void 0,multiple:a},p),d.map((function(e,t){return Object(c.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}var _c=[{name:Object(S.__)("None"),slug:"none"},{name:Object(S.__)("Small"),slug:"small"},{name:Object(S.__)("Medium"),slug:"medium"},{name:Object(S.__)("Large"),slug:"large"},{name:Object(S.__)("Extra Large"),slug:"xlarge"}];var Sc=function(e){var t,n,r=e.label,o=e.value,a=e.sizes,i=void 0===a?_c:a,l=e.icon,d=e.onChange,f=e.className,h=void 0===f?"":f,p=Object(c.createElement)(c.Fragment,null,l&&Object(c.createElement)(wc.a,{icon:l}),r);return Object(c.createElement)(kc,{className:u()(h,"block-editor-dimension-control"),label:p,hideLabelFromVision:!1,value:o,onChange:function(e){var t=function(e,t){return e.find((function(e){return t===e.slug}))}(i,e);t&&o!==t.slug?Object(s.isFunction)(d)&&d(t.slug):d(void 0)},options:(t=i,n=t.map((function(e){return{label:e.name,value:e.slug}})),[{label:Object(S.__)("Default"),value:""}].concat(n))})},Ec=n(30);function Cc(){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}}var Mc=Object(c.createContext)(!1),xc=Mc.Consumer,Dc=Mc.Provider,Pc=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],zc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Cc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(ht.a)(e)),e.disable=e.disable.bind(Object(ht.a)(e)),e.debouncedDisable=Object(s.debounce)(e.disable,{leading:!0}),e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){Ec.focus.focusable.find(this.node).forEach((function(e){Object(s.includes)(Pc,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(i.a)(e,["className"]);return Object(c.createElement)(Dc,{value:!0},Object(c.createElement)("div",Object(o.a)({ref:this.bindNode,className:u()(t,"components-disabled")},n),this.props.children))}}]),r}(c.Component);zc.Consumer=xc;var Tc=zc;function Ic(){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}}var Rc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Ic()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragStart=e.onDragStart.bind(Object(ht.a)(e)),e.onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.dragComponentRef=Object(c.createRef)(),e}return Object(pt.a)(r,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?s.noop:t;e.preventDefault(),this.resetDragState(),e.persist(),this.props.setTimeout(n.bind(this,e))}},{key:"onDragOver",value:function(e){this.cloneWrapper.style.top="".concat(parseInt(this.cloneWrapper.style.top,10)+e.clientY-this.cursorTop,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left,10)+e.clientX-this.cursorLeft,"px"),this.cursorLeft=e.clientX,this.cursorTop=e.clientY;var t=this.props.onDragOver,n=void 0===t?s.noop:t;this.props.setTimeout(n.bind(this,e))}},{key:"onDragStart",value:function(e){var t=this.props,n=t.cloneClassname,r=t.elementId,o=t.transferData,a=t.onDragStart,i=void 0===a?s.noop:a,c=document.getElementById(r);if(c){if("function"==typeof e.dataTransfer.setDragImage){var l=document.createElement("div");l.id="drag-image-".concat(r),l.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(l),e.dataTransfer.setDragImage(l,0,0),this.props.setTimeout((function(){document.body.removeChild(l)}))}e.dataTransfer.setData("text",JSON.stringify(o));var u=c.getBoundingClientRect(),d=c.parentNode,f=parseInt(u.top,10),h=parseInt(u.left,10);if(this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),n&&this.cloneWrapper.classList.add(n),this.cloneWrapper.style.width="".concat(u.width+0,"px"),this.dragComponentRef.current){this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(h-0,"px");var p=document.createElement("div");p.innerHTML=this.dragComponentRef.current.innerHTML,this.cloneWrapper.appendChild(p)}else{var b=c.cloneNode(!0);b.id="clone-".concat(r),u.height>700?(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(h-0,"px")),Array.from(b.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(b)}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))}}]),r}(c.Component),Nc=Object(E.withSafeTimeout)(Rc),Ac=n(203),Hc=n(64),Lc=n.n(Hc);function Vc(){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}}var Fc=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Bc=Fc.Provider,Kc=Fc.Consumer,Wc=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"},Uc=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Gc=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Vc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(ht.a)(e)),e.onDrop=e.onDrop.bind(Object(ht.a)(e)),e.addDropZone=e.addDropZone.bind(Object(ht.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(ht.a)(e)),e.resetDragState=e.resetDragState.bind(Object(ht.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(ht.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(pt.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",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 Uc(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 l=[];this.state.isDraggingOverDocument?i!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&l.push(this.dropZones[this.state.hoveredDropZone]),a&&l.push(a)):a&&i===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&l.push(a):l=this.dropZones,l.forEach((function(e){var r=n.dropZones.indexOf(e)===i;e.setState({isDraggingOverDocument:Uc(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var u={isDraggingOverDocument:!0,hoveredDropZone:i,position:c};Lc()(u,this.state)||this.setState(u)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Wc(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=Wc(e),a=this.dropZones[r];if(this.resetDragState(),a)switch(o){case"file":a.onFilesDrop(Object(yt.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",{onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Bc,{value:this.dropZoneCallbacks},this.props.children))}}]),r}(c.Component);function $c(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(Fc),f=d.addDropZone,h=d.removeDropZone,p=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),b=Object(a.a)(p,2),v=b[0],m=b[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:u};return f(e),function(){h(e)}}}),[i,o,n,r,s]),v}function qc(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,a=e.onHTMLDrop,i=e.onDrop,s=Object(c.useRef)(),l=$c({element:s,onFilesDrop:o,onHTMLDrop:a,onDrop:i,__unstableIsRelative:!0}),d=l.isDraggingOverDocument,f=l.isDraggingOverElement,h=l.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Ia.a,{icon:Ac.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 p=u()("components-drop-zone",n,Object(x.a)({"is-active":(d||f)&&("file"===h&&o||"html"===h&&a||"default"===h&&i),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(h),!!h));return Object(c.createElement)("div",{ref:s,className:p},t)}var Yc=function(e){return Object(c.createElement)(Kc,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(qc,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Zc=n(37),Xc=n.n(Zc);function Jc(){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}}var Qc=["menuitem","menuitemradio","menuitemcheckbox"];var es=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Jc()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ht.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(ht.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{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?Ec.focus.tabbable:Ec.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,l=n.stopNavigationEvents,u=a(e);if(void 0!==u&&l){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Qc.includes(d)&&e.preventDefault()}if(u){var f=t(document.activeElement);if(f){var h=f.index,p=f.focusables,b=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(h,p.length,u):h+u;b>=0&&b0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=as({},e,{},t);return t.className&&e.className&&(n.className=u()(t.className,e.className)),n}var cs=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,l=void 0===i?"menu":i,d=e.label,f=e.popoverProps,h=e.toggleProps,p=e.menuProps,b=e.disableOpenOnArrowDown,v=void 0!==b&&b,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Xc()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Xc()("`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=is({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(hi,{className:u()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=is({className:u()("components-dropdown-menu__toggle",{"is-opened":t})},h);return Object(c.createElement)(jt.a,Object(o.a)({},r,{icon:l,onClick:function(e){n(e),r.onClick&&r.onClick(e)},onKeyDown:function(e){!function(e){v||t||e.keyCode!==gt.DOWN||(e.preventDefault(),e.stopPropagation(),n())}(e),r.onKeyDown&&r.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":t,label:d,showTooltip:!0}),r.children)},renderContent:function(e){var r=is({"aria-label":m||d,className:u()("components-dropdown-menu__menu",{"no-icons":g})},p);return Object(c.createElement)(rs,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)(jt.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:u()("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)}))})))}})},ss=n(410);var ls=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,l=e.rel,d=void 0===l?"":l,f=Object(i.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(yt.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var h=u()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},f,{className:h,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(P,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(Ia.a,{icon:ss.a,className:"components-external-link__icon"}))})),us=n(111);function ds(){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}}var fs=function(e){Object(mt.a)(o,e);var t,n=(t=o,function(){var e,n=Object(vt.a)(t);if(ds()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function o(e){var t;return Object(ft.a)(this,o),(t=n.call(this,e)).onMouseMove=t.onMouseMove.bind(Object(ht.a)(t)),t.state={isDragging:!1,bounds:{},percentages:e.value},t.containerRef=Object(c.createRef)(),t.imageRef=Object(c.createRef)(),t.horizontalPositionChanged=t.horizontalPositionChanged.bind(Object(ht.a)(t)),t.verticalPositionChanged=t.verticalPositionChanged.bind(Object(ht.a)(t)),t.onLoad=t.onLoad.bind(Object(ht.a)(t)),t}return Object(pt.a)(o,[{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.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:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds,o=this.props.onChange;if(n){var 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)),l={x:((c-r.left)/(a.width-2*r.left)).toFixed(2),y:((s-r.top)/(a.height-2*r.top)).toFixed(2)};this.setState({percentages:l},(function(){o({x:this.state.percentages.x,y:this.state.percentages.y})}))}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=(o?o/100:0).toFixed(2),this.setState({percentages:r},(function(){n({x:this.state.percentages.x,y:this.state.percentages.y})}))}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.url,a=t.value,i=t.label,s=t.help,l=t.className,d=this.state,f=d.bounds,h=d.isDragging,p=d.percentages,b=this.pickerDimensions(),v={left:a.x*(b.width-2*f.left)+f.left,top:a.y*(b.height-2*f.top)+f.top},m={left:"".concat(v.left,"px"),top:"".concat(v.top,"px")},y=u()("components-focal-point-picker__icon_container",h?"is-dragging":null),g="inspector-focal-point-picker-control-".concat(n),O="inspector-focal-point-picker-control-horizontal-position-".concat(n),j="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(c.createElement)(lt,{label:i,id:g,help:s,className:l},Object(c.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(c.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:o,draggable:"false"}),Object(c.createElement)("div",{className:y,style:m},Object(c.createElement)(r.SVG,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(c.createElement)(r.Path,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(c.createElement)(r.Path,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(c.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(c.createElement)(lt,{label:Object(S.__)("Horizontal pos."),id:O},Object(c.createElement)("input",{className:"components-text-control__input",id:O,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(p.x)}),Object(c.createElement)("span",null,"%")),Object(c.createElement)(lt,{label:Object(S.__)("Vertical pos."),id:j},Object(c.createElement)("input",{className:"components-text-control__input",id:j,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(p.y)}),Object(c.createElement)("span",null,"%"))))}}]),o}(c.Component);fs.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var hs=Object(E.compose)([E.withInstanceId,us.a])(fs);function ps(){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}}var bs=window.FocusEvent,vs=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ps()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).checkFocus=t.checkFocus.bind(Object(ht.a)(t)),t.node=e.iframeRef||Object(c.createRef)(),t}return Object(pt.a)(r,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new bs("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"])))}}]),r}(c.Component),ms=Object(E.withGlobalEvents)({blur:"checkFocus"})(vs),ys=n(411);function gs(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Os={name:"tdik1c",styles:"height:30px;min-height:30px;"},js=function(){return Os},ws=je("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%;"}),ks=je("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Ae("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Ae("ui.borderFocus"):t;return ue({color:n},"")}),";",js,";",(function(e){var t=e.marks;return ue({marginBottom:t?16:null},"")}),";",tt({marginLeft:10}),""),_s=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",tt({marginRight:6}),""),Ss=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",tt({marginLeft:16}),""),Es=je("span",{target:"exqw8y24",label:"Rail"})("background-color:",Ae("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=Ae("lightGray.400")),ue({background:n},"")}),";"),Cs=je("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=Ae("lightGray.800")),ue({background:n},"")}),";"),Ms=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),xs=je("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":Ae("lightGray.600");return t&&(n=Ae("lightGray.800")),ue({backgroundColor:n},"")}),";"),Ds=je("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Ae("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return ue({color:Ae(t?"darkGray.300":"lightGray.600")},"")}),";"),Ps=je("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}),""),zs=je("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Ae("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 ue({borderColor:Ae(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Ae("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Ts=je("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%;"}),Is={name:"5qqmyx",styles:"top:-80%;"},Rs={name:"eda4eg",styles:"bottom:-80%;"},Ns=je("span",{target:"exqw8y212",label:"Tooltip"})("background:",Ae("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 ue({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?Is:Rs}),";",He("transition"),";",tt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),As=je(Ar,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ca(8),";input[type='number']&{",js,";}",tt({marginLeft:ca(2)}),""),Hs=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",js,";}",tt({marginLeft:8}),"");var Ls=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,l=void 0===r||r,u=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,h=e.onMouseLeave,p=void 0===h?s.noop:h,b=e.step,v=void 0===b?1:b,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,C=e.shiftStep,M=void 0===C?10:C,x=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),P=Nr({step:v,shiftStep:M,isShiftStepEnabled:l}),z=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,l=void 0===i?s.noop:i,u=e.onShow,d=void 0===u?s.noop:u,f=e.timeout,h=void 0===f?300:f,p=Object(c.useState)(!1),b=Object(a.a)(p,2),v=b[0],m=b[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,h)}),[h]),O=Object(c.useCallback)((function(e){l(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:p,onMouseMove:_,onShow:E});return Object(c.createElement)(Ts,Object(o.a)({},D,z,{"aria-describedby":n,"aria-label":u,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:P,tabIndex:0,type:"range",value:x}))}));function Vs(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,l=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=u()("components-range-control__mark",r&&"is-filled",t),h=u()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(xs,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:l})),a&&Object(c.createElement)(Ds,{"aria-hidden":"true",className:h,isFilled:r,style:l},a))}function Fs(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 Bs(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,s=e.min,l=void 0===s?0:s,u=e.max,d=void 0===u?100:u,f=e.step,h=void 0===f?1:f,p=e.value,b=void 0===p?0:p,v=Object(i.a)(e,["disabled","marks","min","max","step","value"]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Es,Object(o.a)({disabled:n},v)),a&&Object(c.createElement)(Ks,{disabled:n,marks:a,min:l,max:d,step:h,value:b}))}function Ks(e){var t=e.disabled,n=void 0!==t&&t,r=e.marks,a=void 0!==r&&r,i=e.min,s=void 0===i?0:i,l=e.max,u=void 0===l?100:l,d=e.step,f=void 0===d?1:d,h=e.value,p=function(e){var t=e.marks,n=e.min,r=void 0===n?0:n,o=e.max,a=void 0===o?100:o,i=e.step,c=void 0===i?1:i,s=e.value,l=void 0===s?0:s,u="rtl"===document.documentElement.dir;if(!t)return[];var d=Array.isArray(t),f=Math.round((a-r)/c);return(d?t:Object(yt.a)(Array(f+1)).map((function(e,t){return{value:t}}))).map((function(e,t){var n=void 0!==e.value?e.value:l,o="mark-".concat(t),a=n*c+r<=l,i="".concat(n/f*100,"%");return function(e){for(var t=1;t0&&Object(c.createElement)(uc,{className:"components-font-size-picker__select",label:Object(S.__)("Preset size"),options:f,value:f.find((function(e){return e.key===h})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;i(Number(n))}}),!u&&!a&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:p},Object(S.__)("Custom")),Object(c.createElement)("input",{id:p,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)(jt.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){i(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),u&&Object(c.createElement)($s,{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:ys.a,afterIcon:ys.a}))}var Zs=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,l=e.render,u=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},h=l?l({openFileDialog:f}):Object(c.createElement)(jt.a,Object(o.a)({onClick:f},u),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},h,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var Xs=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,l=void 0===a?s.noop:a,d=Object(i.a)(e,["className","checked","id","onChange"]),f=u()("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:l},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},Js=n(40),Qs=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 el(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,l=e.disabled,d=void 0!==l&&l,f=e.onClickRemove,h=void 0===f?s.noop:f,p=e.onMouseEnter,b=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(el),O=u()("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:p,onMouseLeave:b,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)(P,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)(jt.a,{className:"components-form-token-field__remove-token",icon:Qs,onClick:!d&&function(){return h({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function tl(){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}}var nl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(tl()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).onChange=e.onChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,r=e.instanceId,a=e.selectedSuggestionIndex,s=Object(i.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),l=t.length+1;return Object(c.createElement)("input",Object(o.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},s,{value:t,onChange:this.onChange,size:l,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),r}(c.Component),rl=n(123),ol=n.n(rl);function al(){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}}var il=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(al()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).handleMouseDown=e.handleMouseDown.bind(Object(ht.a)(e)),e.bindList=e.bindList.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,ol()(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=u()("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: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))})))}}]),r}(c.Component);il.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var cl=Object(E.withSafeTimeout)(il);function sl(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(){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}}var ul={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},dl=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(ll()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(){var e;return Object(ft.a)(this,r),(e=n.apply(this,arguments)).state=ul,e.onKeyDown=e.onKeyDown.bind(Object(ht.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(ht.a)(e)),e.onFocus=e.onFocus.bind(Object(ht.a)(e)),e.onBlur=e.onBlur.bind(Object(ht.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(ht.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(ht.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(ht.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(ht.a)(e)),e.renderToken=e.renderToken.bind(Object(ht.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(ht.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(ht.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(ht.a)(e)),e.onInputChange=e.onInputChange.bind(Object(ht.a)(e)),e.bindInput=e.bindInput.bind(Object(ht.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(ht.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(ht.a)(e)),e}return Object(pt.a)(r,[{key:"componentDidUpdate",value:function(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();var t=this.props,n=t.suggestions,r=t.value,o=!Lc()(n,e.suggestions);(o||r!==e.value)&&this.updateSuggestions(o)}},{key:"bindInput",value:function(e){this.input=e}},{key:"bindTokensAndInput",value:function(e){this.tokensAndInput=e}},{key:"onFocus",value:function(e){this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}},{key:"onBlur",value:function(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(ul)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case gt.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case gt.ENTER:t=this.addCurrentToken();break;case gt.LEFT:t=this.handleLeftArrowKey();break;case gt.UP:t=this.handleUpArrowKey();break;case gt.RIGHT:t=this.handleRightArrowKey();break;case gt.DOWN:t=this.handleDownArrowKey();break;case gt.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case gt.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case gt.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}},{key:"onKeyPress",value:function(e){var t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}},{key:"onContainerTouched",value:function(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}},{key:"onTokenClickRemove",value:function(e){this.deleteToken(e.value),this.input.focus()}},{key:"onSuggestionHovered",value:function(e){var t=this.getMatchingSuggestions().indexOf(e);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(Js.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)(el,{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=function(e){for(var t=1;t=5&&(l.current.significantMoveHappened=!0)}xl(a,n,i)||o(Ml(a,i,n))},d=function e(){window&&window.removeEventListener&&l.current&&l.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e),s(),l.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(hi,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Hl,{key:t,onClick:function(){l.current&&l.current.significantMoveHappened||(r?s():i(),f())},onMouseDown:function(){window&&window.addEventListener&&(l.current={gradientAST:a,position:t,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",u),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)(fi,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Pl(a,t,n))}}),Object(c.createElement)(jt.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return El({},e,{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(a,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:gl})}))}function Vl(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,l=Object(c.useState)(!1),u=Object(a.a)(l,2),d=u[0],f=u[1];return Object(c.createElement)(hi,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(jt.a,{"aria-expanded":t,onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:bl,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(fi,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Pl(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=Cl(n);return r.length={type:"%",value:t},El({},e,{colorStops:[].concat(Object(yt.a)(e.colorStops),[r])})}(n,i,o),f(!0)),t(r)}})},popoverProps:gl})}function Fl(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 Bl={id:"IDLE"};function Kl(e){var t=e.value,n=e.onChange,r=Rl(t),o=r.gradientAST,i=r.gradientValue,l=r.hasGradient,d=function(e){n(_l(e))},f=Object(c.useRef)(),h=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:jl(e),position:wl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),p=Object(c.useReducer)(Fl,Bl),b=Object(a.a)(p,2),v=b[0],m=b[1],y=function(e){var t=zl(e.clientX,f.current,23);Object(s.some)(h,(function(e){var n=e.positionValue;return Math.abs(t-n)<9}))?"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:u()("components-custom-gradient-picker__gradient-bar",{"has-gradient":l}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?Tl(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)(Vl,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Ll,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:h,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var Wl=n(132),Ul=n(87),Gl=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var $l=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,l=e.title,d=e.isActive,f=e.isDisabled,h=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(Ul.a)?Object(c.createElement)(Wl.a,Object(o.a)({className:u()("components-toolbar-button",r)},a,h,{ref:t}),(function(e){return Object(c.createElement)(jt.a,Object(o.a)({label:l,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(Gl,{className:n},Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:h.icon,label:l,shortcut:h.shortcut,"data-subscript":h.subscript,onClick:function(e){e.stopPropagation(),h.onClick&&h.onClick(e)},className:u()("components-toolbar__control",r),isPressed:d,disabled:f,"data-experimental-toolbar-item":!0},a,h),s))})),ql=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 Yl(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;t0&&0===n?"has-left-divider":null},e))}))})),r)};function Ql(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 eu(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(l=c.Children.map(t,(function(e){return{content:e}})));var b=h>0,v=h",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Cu=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,l=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Xc()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(jt.a,Object(o.a)({},l,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Mu=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),l=u()(o,"components-menu-group");return Object(c.createElement)("div",{className:l},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))},xu=n(165);var Du=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,l=e.icon,d=e.shortcut,f=e.isSelected,h=e.role,p=void 0===h?"menuitem":h,b=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=u()("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))),l&&!Object(s.isString)(l)&&(l=Object(c.cloneElement)(l,{className:"components-menu-items__item-icon"})),Object(c.createElement)(jt.a,Object(o.a)({ref:t,icon:l,"aria-checked":"menuitemcheckbox"===p||"menuitemradio"===p?f:void 0,role:p,className:a},b),n,Object(c.createElement)(xu.a,{className:"components-menu-item__shortcut",shortcut:d}))}));function Pu(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)(Du,{key:e.value,role:"menuitemradio",icon:t&&Ra.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 zu=n(160);var Tu=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(ns,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return gt.TAB===t?r?-1:1:n?n(e):void 0}},r))}));var Iu=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,a=e.spokenMessage,i=void 0===a?o:a,l=e.onRemove,d=void 0===l?s.noop:l,f=e.isDismissible,h=void 0===f||f,p=e.actions,b=void 0===p?[]:p,v=e.politeness,m=void 0===v?function(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}(r):v,y=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:Object(c.renderToString)(e);Object(c.useEffect)((function(){n&&Object(kt.speak)(n,t)}),[n,t])}(i,m);var g=u()(t,"components-notice","is-"+r,{"is-dismissible":h});return y&&(o=Object(c.createElement)(c.RawHTML,null,o)),Object(c.createElement)("div",{className:g},Object(c.createElement)("div",{className:"components-notice__content"},o,b.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,l=e.url;return Object(c.createElement)(jt.a,{key:t,href:l,isPrimary:o,isSecondary:!i&&!l,isLink:!i&&!!l,onClick:l?void 0:s,className:u()("components-notice__action",n)},r)}))),h&&Object(c.createElement)(jt.a,{className:"components-notice__dismiss",icon:du.a,label:Object(S.__)("Dismiss this notice"),onClick:d,showTooltip:!1}))};var Ru=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?s.noop:n,a=e.className,i=e.children;return a=u()("components-notice-list",a),Object(c.createElement)("div",{className:a},i,Object(yt.a)(t).reverse().map((function(e){return Object(c.createElement)(Iu,Object(o.a)({},Object(s.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var Nu=function(e){var t=e.label,n=e.children;return Object(c.createElement)("div",{className:"components-panel__header"},t&&Object(c.createElement)("h2",null,t),n)};var Au=function(e){var t=e.header,n=e.className,r=e.children,o=u()(n,"components-panel");return Object(c.createElement)("div",{className:o},t&&Object(c.createElement)(Nu,{label:t}),r)},Hu=n(295);function Lu(){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}}var Vu=function(e){Object(mt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(vt.a)(t);if(Lu()){var r=Object(vt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(bt.a)(this,e)});function r(e){var t;return Object(ft.a)(this,r),(t=n.apply(this,arguments)).state={opened:void 0===e.initialOpen||e.initialOpen},t.toggle=t.toggle.bind(Object(ht.a)(t)),t}return Object(pt.a)(r,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState((function(e){return{opened:!e.opened}})),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.opened,o=e.className,a=e.icon,i=e.forwardedRef,s=void 0===r?this.state.opened:r,l=u()("components-panel__body",o,{"is-opened":s});return Object(c.createElement)("div",{className:l,ref:i},!!t&&Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(jt.a,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":s},Object(c.createElement)("span",{"aria-hidden":"true"},Object(c.createElement)(wc.a,{className:"components-panel__arrow",icon:s?Hu.a:Za.a})),t,a&&Object(c.createElement)(wc.a,{icon:a,className:"components-panel__icon",size:20}))),s&&n)}}]),r}(c.Component),Fu=function(e,t){return Object(c.createElement)(Vu,Object(o.a)({},e,{forwardedRef:t}))};Fu.displayName="PanelBody";var Bu=Object(c.forwardRef)(Fu);var Ku=function(e){var t=e.className,n=e.children,r=u()("components-panel__row",t);return Object(c.createElement)("div",{className:r},n)};var Wu=function(e){var t,n=e.icon,r=e.children,s=e.label,l=e.instructions,d=e.className,f=e.notices,h=e.preview,p=e.isColumnLayout,b=Object(i.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),v=Object(E.useResizeObserver)(),m=Object(a.a)(v,2),y=m[0],g=m[1].width;"number"==typeof g&&(t={"is-large":g>=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=u()("components-placeholder",d,t),j=u()("components-placeholder__fieldset",{"is-column-layout":p});return Object(c.createElement)("div",Object(o.a)({},b,{className:O}),y,f,h&&Object(c.createElement)("div",{className:"components-placeholder__preview"},h),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(wc.a,{icon:n}),s),!!l&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},l),Object(c.createElement)("div",{className:j},r))};function Uu(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;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(yt.a)(e(t.children||[],n+1)))}))}(l))));return Object(c.createElement)(kc,Object(o.a)({label:t,options:d,onChange:r},{value:a},u))}function Yu(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,l=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),u=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:u,selectedId:a},l))}function Zu(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange,s=$u(r);return Object(c.createElement)(qu,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Xu(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,l=e.numberOfItems,u=e.order,d=e.orderBy,f=e.maxItems,h=void 0===f?100:f,p=e.minItems,b=void 0===p?1:p,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(kc,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(u),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!==u&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Yu,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),i&&v&&Object(c.createElement)(fl,{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)(Zu,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)($s,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:l,onChange:y,min:b,max:h,required:!0})]}n(80);var Ju=n(46),Qu=n(122),ed=(n(106),n(62));function td(e){void 0===e&&(e={});var t=Object(ed.a)(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object(h.a)(t,["state","loop"]),i=Object(v.useState)(n),c=i[0],s=i[1],l=Object(d.g)(Object(h.b)(Object(h.b)({},a),{},{loop:o}));return Object(h.b)(Object(h.b)({},l),{},{state:c,setState:s})}var nd=[].concat(d.g.__keys,["state","setState"]);function rd(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function od(e,t){var n=Object(Qu.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}td.__keys=nd;var ad=Object(b.a)({name:"Radio",compose:C.b,useState:td,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,l=Object(h.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(h.b)(Object(h.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},l),{},{value:null!=(n=l.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(h.a)(t,["ref","onChange","onClick"]),i=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],l=c[1],u=rd(e),d=Object(Ju.a)(e.currentId===e.id),f=Object(Ju.a)(r),p=Object(Ju.a)(o);!function(e){var t=Object(v.useState)((function(){return rd(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||l(!1))}),[]);var b=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=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||od(e.currentTarget,b)}),[b]);return Object(v.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&od(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object(h.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":u,checked:u,onChange:b,onClick:m},a)}}),id=Object(p.a)({as:"input",memo:!0,useHook:ad}),cd=Object(c.createContext)({state:null,setState:function(){}});var sd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(cd),l=s.state===r;return Object(c.createElement)(id,Object(o.a)({ref:t,as:jt.a,isPrimary:l,isSecondary:!l,value:r},s,a),n||r)})),ld=n(78),ud=Object(b.a)({name:"RadioGroup",compose:f.b,useState:td,useProps:function(e,t){return Object(h.b)({role:"radiogroup"},t)}}),dd=Object(p.a)({as:"div",useHook:ud,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});function fd(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 hd=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=e.checked,a=e.defaultChecked,s=e.disabled,l=e.onChange,u=Object(i.a)(e,["accessibilityLabel","checked","defaultChecked","disabled","onChange"]),d=td({state:a,baseId:u.id}),f=function(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)(ms,{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:""}}}]),r}(c.Component),tf=ef=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(ef),nf=n(161),rf=n(24),of=n.n(rf),af=n(50),cf=n(113);var sf=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,l=void 0===i?s.noop:i,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),h=Object(a.a)(f,1)[0],p=Object(cf.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(af.a)(of.a.mark((function t(n){return of.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:h.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(af.a)(of.a.mark((function e(t){return of.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=u()("components-snackbar-list",n);var b=function(e){return function(){return l(e.id)}};return Object(c.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(cf.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&h.set(t,e)}},Object(c.createElement)(nf.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:b(t)}),t.content)))})))};function lf(){return Object(c.createElement)("span",{className:"components-spinner"})}var uf=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)(jt.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function df(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,l=e.orientation,d=void 0===l?"horizontal":l,f=e.activeClass,h=void 0===f?"is-active":f,p=e.onSelect,b=void 0===p?s.noop:p,v=Object(E.useInstanceId)(df,"tab-panel"),m=Object(c.useState)(null),y=Object(a.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),b(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)(rs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(uf,{className:u()("components-tab-panel__tabs-item",e.className,Object(x.a)({},h,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)))}function ff(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,l=e.rows,u=void 0===l?4:l,d=e.className,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),h=Object(E.useInstanceId)(ff),p="inspector-textarea-control-".concat(h);return Object(c.createElement)(lt,{label:t,hideLabelFromVision:n,id:p,help:a,className:d},Object(c.createElement)("textarea",Object(o.a)({className:"components-textarea-control__input",id:p,rows:u,onChange:function(e){return s(e.target.value)},"aria-describedby":a?p+"__help":void 0,value:r},f)))}var hf=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 pf=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 bf(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange;var i,l,d=Object(E.useInstanceId)(bf),f="inspector-toggle-control-".concat(d);return r&&(i=f+"__help",l=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(lt,{id:f,help:l,className:u()("components-toggle-control",o)},Object(c.createElement)(Xs,{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 vf=n(166),mf=Object(b.a)({name:"Toolbar",compose:f.b,useState:vf.a,useProps:function(e,t){return Object(h.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),yf=Object(p.a)({as:"div",useHook:mf,useCreateElement:function(e,t,n){return Object(ld.a)(e,t,n)}});var gf=Object(c.forwardRef)((function(e,t){var n=e.accessibilityLabel,r=Object(i.a)(e,["accessibilityLabel"]),a=Object(vf.a)({loop:!0,baseId:r.id,rtl:Xe()});return Object(c.createElement)(Ul.a.Provider,{value:a},Object(c.createElement)(yf,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var Of=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.__experimentalAccessibilityLabel,a=Object(i.a)(e,["className","__experimentalAccessibilityLabel"]);return r?Object(c.createElement)(gf,Object(o.a)({className:u()("components-accessible-toolbar",n),accessibilityLabel:r,ref:t},a)):Object(c.createElement)(Jl,Object(o.a)({},a,{className:n}))})),jf=Object(c.createContext)(),wf=jf.Provider;function kf(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)(wf,{value:s},t)}function _f(e){var t=Ec.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}function Sf(e){var t=e.children,n=Object(i.a)(e,["children"]),r=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)([gt.UP,gt.DOWN,gt.LEFT,gt.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var l=i.closest('[role="row"]'),u=_f(l),d=u.indexOf(i);if(Object(s.includes)([gt.LEFT,gt.RIGHT],t)){var f;if((f=t===gt.LEFT?Math.max(0,d-1):Math.min(d+1,u.length-1))===d)return void e.preventDefault();u[f].focus(),e.preventDefault()}else if(Object(s.includes)([gt.UP,gt.DOWN],t)){var h,p=Array.from(c.querySelectorAll('[role="row"]')),b=p.indexOf(l);if((h=t===gt.UP?Math.max(0,b-1):Math.min(b+1,p.length-1))===b)return void e.preventDefault();var v=_f(p[h]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(kf,null,Object(c.createElement)("table",Object(o.a)({},n,{role:"treegrid",onKeyDown:r}),Object(c.createElement)("tbody",null,t)))}var Ef=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,l=e.isExpanded,u=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},u,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":l}),n)}));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}var Mf=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)(),l=t||s,u=Object(c.useContext)(jf),d=u.lastFocusedElement,f=u.setLastFocusedElement;d&&(n=d===l.current?0:-1);var h=function(e){for(var t=1;t0&&Object(c.createElement)(Ru,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),a}(c.Component)}))},,,,,,,,,,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,P)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.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 l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(l.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 l=i.clone().add(n,"month"),u=(0,m.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(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"),l=i.clone();!(0,v.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(u.length>0){var d=r(u,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,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.add(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.add(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var h=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(h)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[h]);return i.delete(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},h,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[h]);m.delete(n),p=(0,a.default)({},p,C({},b,(0,a.default)({},v,C({},h,m))))}return p}},{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,b.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,b.default)(e,t)}},{key:"isToday",value:function(e){return(0,b.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.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,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,h=e.daySize,p=e.firstDayOfWeek,b=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,C=e.weekDayFormat,M=e.verticalHeight,x=e.noBorder,D=e.transitionDuration,P=e.verticalBorderSpacing,z=e.horizontalMonthPadding,T=this.state,I=T.currentMonth,R=T.visibleDays;return i.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:R,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:l,hidden:!u,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return I},firstDayOfWeek:p,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:h,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:C,dayAriaLabelFormat:k,verticalHeight:M,noBorder:x,transitionDuration:D,verticalBorderSpacing:P,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=D,D.propTypes=M,D.defaultProps=x},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(6),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(6),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 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=a},,,,,,,,,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)&&(i[n]=e[n])}return i}},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";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){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,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,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";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,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,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(16),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(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]: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(16),o=n(50),i=n(49),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(16),o=n(50),i=n(49),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(46)),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,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,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||!_)||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(20),i=n(22),a=n(23),c=n(17),s=n(0),u=n(2),l=n(115),d=n(169);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(151);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,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,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;_&&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(94)),a=f(n(13)),c=f(n(28)),s=f(n(384)),u=n(387),l=f(n(388)),d=f(n(236));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(20),a=n(15),c=n(22),s=n(23),u=n(17),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(19),d=n(35),f=n.n(d),p=n(10),b=n(157),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(134),j=n(133),w=n(21),k=n(20),_=n(22),S=n(23),E=n(17),x=n(114);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}(a.Component),D=Object(x.a)(P),M=n(36),T=n(163),I=n(136),R=n(162),N=n(124),A=n(135),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,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,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(),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":"");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,k,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(174)),i=r(n(175)),a=n(13),c=r(a),s=r(n(149)),u=r(n(176)),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,_(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,ke,_e=(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===(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=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),k=w.keys,_=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=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,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(326);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(16),o=n(50),i=n(49),a=n(67),c=n(13),s=n(63),u=(n(81),n(46)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(48),v=n(96),m=n(104),y=n(51),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 k=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),k=Object(y.d)(e.items,e.currentId),_=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&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,a),P=j(e.unstable_virtual,k,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==k||null===(o=k.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,k,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=_.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),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==k?void 0:k.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})}}),_=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(16),o=n(50),i=n(49),a=n(13),c=n(63),s=(n(81),n(46)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(87),b=n(82),h=n(48),v=n(51),m=n(95),y=n(97),g=n(98);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,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=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:_,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=_.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)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,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 E})),n.d(t,"a",(function(){return x})),n.d(t,"c",(function(){return C}));var r=n(8),o=n(14),i=n(0),a=n(21),c=n(20),s=n(15),u=n(17);function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(u.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var d=n(22),f=n(23),p=n(2),b=n(128);function h(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(f.a)(this,n)}}var v=function(e){Object(d.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(s.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||l(Object(u.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),m=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(v,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},y=0;function g(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(b.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++y),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(b.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(g,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},j=n(138);function w(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,s=void 0===c?"div":c,u=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(j.a),d=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,d,a),function(){l.unregisterSlot(t,d)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(s,Object(r.a)({ref:d},u))}var k=n(12),_=n(162);function S(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function E(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(w,n):Object(i.createElement)(m,n)}function x(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(S,e))}function C(e){var t=function(t){return Object(i.createElement)(x,Object(r.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(i.createElement)(E,Object(r.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function o(e,t,n){var o,i;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var a=Object(r.a)(e).createEvent("Event");return a.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(i=n)||void 0===i?void 0:i.cancelable),a}},function(e,t,n){"use strict";e.exports=n(182)},,function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return E}));var r=n(12),o=n(18),i=n(21),a=n(20),c=n(15),s=n(22),u=n(23),l=n(17),d=n(0),f=n(2),p=n(40),b=n(14),h=n(5),v=n(64),m=n.n(v),y=n(138);function g(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}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 j(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(52),s=n(1),u=(n(90),n(36));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(16),o=(n(13),n(62)),i=n(51);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(183);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,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===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(253)),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(18),o=n(21),i=n(20),a=n(15),c=n(22),s=n(23),u=n(17),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(318)},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 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",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)||_(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",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(327);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(130))},function(e,t,n){"use strict";var r=n(328),o=n(338),i=n(187),a=n(232),c=n(231),s=n(358);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(145)("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(189),o=n(92);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(93),o=n(189),i=n(92);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(190);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(93),o=n(58)("%TypeError%"),i=n(92),a=n(226),c=n(336);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(229),o=n(232);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(348),o=n(351);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(220);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(241);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(252)),i=a(n(194));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 st})),n.d(t,"Animate",(function(){return ut.a})),n.d(t,"AnglePickerControl",(function(){return Nr})),n.d(t,"Autocomplete",(function(){return Jr})),n.d(t,"BaseControl",(function(){return dt})),n.d(t,"__experimentalBoxControl",(function(){return gi})),n.d(t,"Button",(function(){return Wr.a})),n.d(t,"ButtonGroup",(function(){return Oi})),n.d(t,"Card",(function(){return Fi})),n.d(t,"CardBody",(function(){return Vi})),n.d(t,"CardDivider",(function(){return Ki})),n.d(t,"CardFooter",(function(){return $i})),n.d(t,"CardHeader",(function(){return Xi})),n.d(t,"CardMedia",(function(){return Ji})),n.d(t,"CheckboxControl",(function(){return ta})),n.d(t,"ClipboardButton",(function(){return na})),n.d(t,"ColorIndicator",(function(){return ra})),n.d(t,"ColorPalette",(function(){return Ia})),n.d(t,"ColorPicker",(function(){return Da})),n.d(t,"ComboboxControl",(function(){return Ha})),n.d(t,"CustomSelectControl",(function(){return Ac})),n.d(t,"Dashicon",(function(){return Lc.a})),n.d(t,"DateTimePicker",(function(){return Zc})),n.d(t,"DatePicker",(function(){return Kc})),n.d(t,"TimePicker",(function(){return qc})),n.d(t,"__experimentalDimensionControl",(function(){return rs})),n.d(t,"Disabled",(function(){return ls})),n.d(t,"Draggable",(function(){return ps})),n.d(t,"DropZone",(function(){return Es})),n.d(t,"__unstableUseDropZone",(function(){return _s})),n.d(t,"DropZoneProvider",(function(){return ks})),n.d(t,"Dropdown",(function(){return Ma})),n.d(t,"DropdownMenu",(function(){return Fs})),n.d(t,"ExternalLink",(function(){return Bs})),n.d(t,"Flex",(function(){return yt})),n.d(t,"FlexBlock",(function(){return vt})),n.d(t,"FlexItem",(function(){return gt})),n.d(t,"FocalPointPicker",(function(){return yu})),n.d(t,"FocusableIframe",(function(){return wu})),n.d(t,"FontSizePicker",(function(){return tl})),n.d(t,"FormFileUpload",(function(){return nl})),n.d(t,"FormToggle",(function(){return rl})),n.d(t,"FormTokenField",(function(){return fl})),n.d(t,"__experimentalGradientPicker",(function(){return Yl})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ql})),n.d(t,"Guide",(function(){return vd})),n.d(t,"GuidePage",(function(){return md})),n.d(t,"Icon",(function(){return Xc.a})),n.d(t,"IconButton",(function(){return yd})),n.d(t,"__experimentalInputControl",(function(){return gr})),n.d(t,"KeyboardShortcuts",(function(){return sa})),n.d(t,"MenuGroup",(function(){return gd})),n.d(t,"MenuItem",(function(){return jd})),n.d(t,"MenuItemsChoice",(function(){return wd})),n.d(t,"Modal",(function(){return fd})),n.d(t,"ScrollLock",(function(){return kd.a})),n.d(t,"NavigableMenu",(function(){return Rs})),n.d(t,"TabbableContainer",(function(){return _d})),n.d(t,"__experimentalNavigation",(function(){return Fd})),n.d(t,"__experimentalNavigationBackButton",(function(){return Bd})),n.d(t,"__experimentalNavigationGroup",(function(){return Kd})),n.d(t,"__experimentalNavigationItem",(function(){return $d})),n.d(t,"__experimentalNavigationMenu",(function(){return Zd})),n.d(t,"Notice",(function(){return Xd})),n.d(t,"__experimentalNumberControl",(function(){return Cr})),n.d(t,"NoticeList",(function(){return Jd})),n.d(t,"Panel",(function(){return ef})),n.d(t,"PanelBody",(function(){return af})),n.d(t,"PanelHeader",(function(){return Qd})),n.d(t,"PanelRow",(function(){return cf})),n.d(t,"Placeholder",(function(){return sf})),n.d(t,"Popover",(function(){return Ur.a})),n.d(t,"QueryControls",(function(){return hf})),n.d(t,"__experimentalRadio",(function(){return Ef})),n.d(t,"__experimentalRadioGroup",(function(){return Tf})),n.d(t,"RadioControl",(function(){return If})),n.d(t,"RangeControl",(function(){return Qu})),n.d(t,"ResizableBox",(function(){return mp})),n.d(t,"ResponsiveWrapper",(function(){return yp})),n.d(t,"SandBox",(function(){return jp})),n.d(t,"SelectControl",(function(){return ts})),n.d(t,"Snackbar",(function(){return wp.a})),n.d(t,"SnackbarList",(function(){return xp})),n.d(t,"Spinner",(function(){return Cp})),n.d(t,"TabPanel",(function(){return Dp})),n.d(t,"__experimentalText",(function(){return Kt})),n.d(t,"TextControl",(function(){return va})),n.d(t,"TextareaControl",(function(){return Mp})),n.d(t,"TextHighlight",(function(){return Tp})),n.d(t,"Tip",(function(){return Ip})),n.d(t,"ToggleControl",(function(){return Rp})),n.d(t,"Toolbar",(function(){return qp})),n.d(t,"ToolbarButton",(function(){return Fp})),n.d(t,"__experimentalToolbarContext",(function(){return Ap.a})),n.d(t,"ToolbarGroup",(function(){return Kp})),n.d(t,"ToolbarItem",(function(){return Np.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return Qp})),n.d(t,"__experimentalTreeGridRow",(function(){return eb})),n.d(t,"__experimentalTreeGridCell",(function(){return ob})),n.d(t,"__experimentalTreeGridItem",(function(){return rb})),n.d(t,"TreeSelect",(function(){return ff})),n.d(t,"__experimentalUnitControl",(function(){return yo})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return Zl.a})),n.d(t,"createSlotFill",(function(){return ib.c})),n.d(t,"Slot",(function(){return ib.b})),n.d(t,"Fill",(function(){return ib.a})),n.d(t,"SlotFillProvider",(function(){return ab.b})),n.d(t,"__experimentalUseSlot",(function(){return cb.a})),n.d(t,"navigateRegions",(function(){return ub})),n.d(t,"withConstrainedTabbing",(function(){return Jl.a})),n.d(t,"withFallbackStyles",(function(){return db})),n.d(t,"withFilters",(function(){return bb})),n.d(t,"withFocusOutside",(function(){return Hs.a})),n.d(t,"withFocusReturn",(function(){return Xl.a})),n.d(t,"FocusReturnProvider",(function(){return hb.b})),n.d(t,"withNotices",(function(){return Eb})),n.d(t,"withSpokenMessages",(function(){return qr}));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(51),f=n(122),p=n(16),b=n(50),h=n(49),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(95)),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,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)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(123),C=n(83),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)},Q={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},ee=/[A-Z]|^ms/g,te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ne=function(e){return 45===e.charCodeAt(1)},re=function(e){return null!=e&&"boolean"!=typeof e},oe=z((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return ce={name:t,styles:n,next:ce},t}))}return 1===Q[e]||ne(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 ce={name:n.name,styles:n.styles,next:ce},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ce={name:o.name,styles:o.styles,next:ce},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?ve:me};function ge(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 Oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ke()(e).toRgb(),r=n.r,o=n.g,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ae,e,"#000")}function ze(){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 Be={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},He=function(){return Be},Ve=je("div",{target:"e1od1u4s0",label:"Root"})(He,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return le("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ke=je("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return le("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ze("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"),le("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ue=je("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ge=je("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 $e(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:Ge,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(Ue,{isActive:n,role:"presentation"})))}var qe=new RegExp(/-left/g),Ye=new RegExp(/-right/g),Ze=new RegExp(/Left/g),Xe=new RegExp(/Right/g);function Je(){return!(!document||"rtl"!==document.documentElement.dir)}function Qe(){return Je()}function et(e){return"left"===e?"right":"right"===e?"left":qe.test(e)?e.replace(qe,"-right"):Ye.test(e)?e.replace(Ye,"-left"):Ze.test(e)?e.replace(Ze,"Right"):Xe.test(e)?e.replace(Xe,"Left"):e}var tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return et(t)}))};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Je();return le(t?n?t:e:n?tt(e):e,"")}}je("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var rt=je("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",He,";",(function(){return le({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return le({pointerEvents:t?"none":null},"")}),";"),ot=je("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return le("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),it=Ge;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 ct(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=ct(ct({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(rt,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)(it,{key:e},Object(c.createElement)(ot,{isActive:n}))})))};var ut=n(135);function lt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)("div",{className:l()("components-base-control",i)},Object(c.createElement)("div",{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(lt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)("p",{id:t+"__help",className:"components-base-control__help"},o))}lt.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 dt=lt;var ft={name:"8kj89b",styles:"flex-direction:row-reverse;"},pt=je("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;",(function(e){var t=e.align;return le({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),le({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 le("> *{",o,":",r,"px;&:last-child{",o,":0;}}")}),";",(function(e){return e.isReversed?ft:""}),";"),bt=je("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),ht=je(bt,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var vt=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)(ht,Object(o.a)({},r,{className:i,ref:t}))}));var mt=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)(pt,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),yt=mt;var gt=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)(bt,Object(o.a)({},r,{className:i,ref:t}))}));function Ot(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var jt=le;function wt(){var e=Ot(["\n\t","\n\t","\n"]);return wt=function(){return e},e}function kt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return kt=function(){return e},e}function _t(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return _t=function(){return e},e}function St(){var e=Ot(["\n\t\t\t\t","\n\t\t\t"]);return St=function(){return e},e}function Et(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Et=function(){return e},e}function xt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return xt=function(){return e},e}function Ct(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ct=function(){return e},e}function Pt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Pt=function(){return e},e}function Dt(){var e=Ot(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}var Mt="\n ".concat("font-weight: 400;","\n"),Tt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",It="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Rt="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Nt="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),At="\n\t".concat("font-weight: 400;","\n"),Lt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Ft="\n\tfont-size: 14px;\n\tline-height: 20px;\n",zt="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Bt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Ht="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),Vt=function(e){return jt(wt(),'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 jt(Dt(),Mt,Tt);case"title.medium":return jt(Pt(),Mt,It);case"title.small":return jt(Ct(),Mt,Rt);case"subtitle":return jt(xt(),Nt,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return jt(Et(),Nt,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return jt(St(),At);case"body.large":return jt(_t(),At,Lt);case"body.small":return jt(kt(),At,Ft);case"button":return zt;case"caption":return Bt;case"label":return Ht}}(e.variant))},Kt=je("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Vt,"");var Wt={name:"1dacand",styles:"padding-top:0;"},Ut=function(){return Wt},Gt={name:"r6z5ec",styles:"z-index:1;"},$t=function(e){return e.isFocused?Gt:""},qt={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},Yt={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},Zt=function(e){switch(e.labelPosition){case"top":return qt;case"bottom":return Yt;default:return""}},Xt=je(yt,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Ut,";",$t,";",Zt,";"),Jt={name:"8atqhb",styles:"width:100%;"},Qt=je("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 le({backgroundColor:t},"")}),";",(function(e){return"side"===e.labelPosition?"":Jt}),";"),en={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},tn=je("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=le("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=le("&:active{cursor:",n,";}")),le(r,";",o,";")}),";",(function(e){return e.disabled?le({color:Fe("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?le("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 le(n[t]||n.default,"")}),";",(function(){return en}),";}"),nn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},rn=function(){return nn},on=je(Kt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;padding-bottom:4px;padding-top:0;z-index:1;",rn,";}"),an=function(e){return Object(c.createElement)(on,Object(o.a)({},e,{as:"label"}))},cn=je(gt,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),sn=je("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")),le({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")}),";",nt({paddingLeft:2}),"}"),un=je("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),ln=je("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var dn=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)(sn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function fn(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)(an,Object(o.a)({htmlFor:r},i),t):null}function pn(e,t){var n=e.children,r=e.className,i=e.disabled,s=void 0!==i&&i,u=e.hideLabelFromVision,l=void 0!==u&&u,d=e.id,f=e.isFocused,p=void 0!==f&&f,b=e.label,h=e.prefix,v=e.size,m=void 0===v?"default":v,y=e.suffix,g=Object(a.a)(e,["children","className","disabled","hideLabelFromVision","id","isFocused","label","prefix","size","suffix"]),O=function(e){var t=Object(E.useInstanceId)(pn),n="input-base-control-".concat(t);return e||n}(d);return Object(c.createElement)(Xt,Object(o.a)({},g,{className:r,isFocused:p,ref:t}),Object(c.createElement)(cn,null,Object(c.createElement)(fn,{className:"components-input-control__label",hideLabelFromVision:l,htmlFor:O,size:m},b)),Object(c.createElement)(Qt,{className:"components-input-control__container",disabled:s,isFocused:p},h&&Object(c.createElement)(un,{className:"components-input-control__prefix"},h),n,y&&Object(c.createElement)(ln,{className:"components-input-control__suffix"},y),Object(c.createElement)(dn,{"aria-hidden":"true",disabled:s,isFocused:p,label:b,size:m})))}var bn=Object(c.forwardRef)(pn);function hn(e,t){return e.map((function(e,n){return e+t[n]}))}function vn(e,t){return e.map((function(e,n){return e-t[n]}))}function mn(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function yn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function gn(e){return Math.hypot.apply(Math,e)}function On(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function jn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:yn(t,n),velocity:mn(t,n,r),distance:gn(e),direction:On(t,r)}}function wn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function kn(e,t){return Math.abs(e)>=t&&wn(e)*t}function _n(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 Sn(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?_n(e-n,n-t,r)+n:e}function En(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function Dn(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 Tn(){}var In=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function Kn(e){var t="buttons"in e?e.buttons:0,n=Vn(e),r=n&&n.length||0;return xn({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 Wn(e){var t=Vn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var Un=function(){var e=this;this.state=Fn(),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&&(Hn(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,Bn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Hn(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(),In.apply(void 0,r)])})),Bn(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]=In.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 Gn(e,t,n,r){var o=m.a.useMemo((function(){var e=new Un;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=Kn(e);if(t.down){r.updateSharedState(t);var n=Wn(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&gn(o._movement)>=3&&(i=!1),r.updateGestureState(xn(xn(xn({},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=xn(xn({},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(a)>y&&Math.abs(u)>j&&(k[0]=wn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=wn(c))),r.updateGestureState(xn(xn({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:Tn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Cn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=Wn(e).values;this.updateSharedState(Kn(e));var r=xn(xn({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(xn(xn(xn({},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}(qn),Zn="undefined"!=typeof window?window:void 0,Xn={lockDirection:!1,axis:void 0,bounds:void 0};function Jn(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?Zn:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return xn(xn({},Pn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function Qn(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:Rn(n),rubberband:Rn(o)}}function er(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=Pn(t,["axis","lockDirection","bounds"]),c=[[Nn(i.left,-1/0),Nn(i.right,1/0)],[Nn(i.top,-1/0),Nn(i.bottom,1/0)]];return xn(xn(xn(xn({},Qn(a)),Xn),An({axis:n,lockDirection:r},e)),{},{bounds:c})}function tr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=Pn(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=er(An({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return xn(xn({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Rn(u),swipeDistance:Rn(d),delay:"number"==typeof p?p:p?180:0})}var nr=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=Wn(e).values;r.updateSharedState(Kn(e));var n=xn(xn({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(xn(xn({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Kn(e);r.updateSharedState(t);var n=Wn(e).values,o=r.getKinematics(n,e);r.updateGestureState(xn(xn({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(xn(xn({},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=Wn(e).values,n=xn(xn(xn(xn({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(xn(xn({},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=Wn(e).values,n=xn(xn(xn(xn({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(xn(xn({},n),r.mapStateValues(n)))}},r}return Cn(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}(qn);var rr=n(19);function or(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 ir(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:cr,t=e.value;return ir(ir(ir({},cr),e),{},{initialValue:t})}var dr=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(pr))&&void 0!==e?e:n}var vr=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var mr=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,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value"]),V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cr,n=Object(c.useReducer)(fr(e),lr(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(sr.CHANGE),f=s(sr.INVALIDATE),p=s(sr.RESET),b=s(sr.COMMIT),h=s(sr.UPDATE),v=l(sr.DRAG_START),m=l(sr.DRAG),y=l(sr.DRAG_END),g=u(sr.PRESS_UP),O=u(sr.PRESS_DOWN),j=u(sr.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}),K=V.state,W=V.change,U=V.commit,G=V.drag,$=V.dragEnd,q=V.dragStart,Y=V.invalidate,Z=V.pressDown,X=V.pressEnter,J=V.pressUp,Q=V.reset,ee=V.update,te=K._event,ne=K.value,re=K.isDragging,oe=K.isDirty,ie=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}(re,l);vr((function(){B!==ne&&(v?oe||w(ne,{event:te}):ee(B))}),[ne,oe,v,B]);var ae=function(e){var t=e.target.value;try{R(t,{event:e}),U(t,e)}catch(t){Y(t,{event:e})}},ce=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=Pn(n,["domTarget","eventOptions","window"]),c=xn(xn({},Jn({domTarget:r,eventOptions:o,window:i})),{},{drag:tr(a)});return Gn({drag:e},[Yn],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(h&&t){if(r.stopPropagation(),!n)return E(e),void $(e);_(e),G(e),re||(C(e),q(e))}}),{threshold:f,enabled:h});return Object(c.createElement)(tn,Object(o.a)({},H,ce(),{className:"components-input-control__input",disabled:r,dragCursor:ie,isDragging:re,id:p,onBlur:function(e){O(e),L(!1),y&&oe&&(br(ne)?Q(B):ae({target:{value:ne}},e))},onChange:function(e){var t=e.target.value;W(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case rr.UP:J(e);break;case rr.DOWN:Z(e);break;case rr.ENTER:X(e),y&&(e.preventDefault(),ae(e))}},ref:t,size:A,value:ne}))}));function yr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.className,d=e.disabled,f=void 0!==d&&d,p=e.hideLabelFromVision,b=void 0!==p&&p,h=e.id,v=e.isPressEnterToChange,m=void 0!==v&&v,y=e.label,g=e.labelPosition,O=void 0===g?"top":g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onValidate,_=void 0===k?s.noop:k,S=e.onKeyDown,x=void 0===S?s.noop:S,C=e.prefix,P=e.size,D=void 0===P?"default":P,M=e.suffix,T=e.value,I=Object(a.a)(e,["__unstableStateReducer","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),R=Object(c.useState)(!1),N=Object(i.a)(R,2),A=N[0],L=N[1],F=function(e){var t=Object(E.useInstanceId)(yr),n="inspector-input-control-".concat(t);return e||n}(h),z=l()("components-input-control",u);return Object(c.createElement)(bn,{className:z,disabled:f,gap:3,hideLabelFromVision:b,id:F,isFocused:A,justify:"left",label:y,labelPosition:O,prefix:C,size:D,suffix:M},Object(c.createElement)(mr,Object(o.a)({},I,{className:"components-input-control__input",disabled:f,id:F,isFocused:A,isPressEnterToChange:m,onChange:w,onKeyDown:x,onValidate:_,ref:t,setIsFocused:L,size:D,stateReducer:r,value:T})))}var gr=Object(c.forwardRef)(yr);var Or={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},jr=function(e){return e.hideHTMLArrows?Or:""},wr=je(gr,{target:"ep48uk90",label:"Input"})(jr,";");function kr(e){var t=Number(e);return isNaN(t)?0:t}function _r(){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=kr(e),i=kr(r),a=Sr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?kr(u.toFixed(a)):u}var xr=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 Cr=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(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Qe(),T=Er(0,w,O,E),I=xr({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(wr,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:dr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===ur.PRESS_UP||n===ur.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=br(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===ur.PRESS_UP&&(s=_r(s,c)),n===ur.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"polite";Object(Gr.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(c.createElement)(e,Object(o.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),r}(c.Component)}),"withSpokenMessages");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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Zr=function(e){var t=e.useItems?e.useItems:function(t){var n=Object(c.useState)([]),r=Object(i.a)(n,2),o=r[0],a=r[1];return Object(c.useLayoutEffect)((function(){var n=e.options,r=e.isDebounced,o=Object(s.debounce)((function(){var r=Promise.resolve("function"==typeof n?n(t):n).then((function(n){if(!r.canceled){var o=n.map((function(t,n){return{key:"".concat(e.name,"-").concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}})),i=new RegExp("(?:\\b|\\s|^)"+Object(s.escapeRegExp)(t),"i");a(function(e){for(var t=arguments.length>1&&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)(Ur.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)(Wr.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)}))))}},Xr=function(e){Object(zr.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).select=e.select.bind(Object(Lr.a)(e)),e.reset=e.reset.bind(Object(Lr.a)(e)),e.onChangeOptions=e.onChangeOptions.bind(Object(Lr.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Lr.a)(e)),e.state=e.constructor.getInitialState(),e}return Object(Fr.a)(n,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,filteredOptions:[],filterValue:"",autocompleter:null,AutocompleterUI:null}}}]),Object(Fr.a)(n,[{key:"insertCompletion",value:function(e){var t=this.state,n=t.autocompleter,r=t.filterValue,o=this.props,i=o.record,a=o.onChange,s=i.start,u=s-n.triggerPrefix.length-r.length,l=Object(Kr.create)({html:Object(c.renderToString)(e)});a(Object(Kr.insert)(i,l,u,s))}},{key:"select",value:function(e){var t=this.props.onReplace,n=this.state,r=n.autocompleter,o=n.filterValue,i=(r||{}).getOptionCompletion;if(!e.isDisabled){if(i){var a=i(e.value,o),c=void 0===a.action||void 0===a.value?{action:"insert-at-caret",value:a}:a,s=c.action,u=c.value;"replace"===s?t([u]):"insert-at-caret"===s&&this.insertCompletion(u)}this.reset()}}},{key:"reset",value:function(){this.setState(this.constructor.getInitialState())}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(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"):t(Object(S.__)("No results."),"assertive"))}},{key:"onChangeOptions",value:function(e){var t=e.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({filteredOptions:e,selectedIndex:t}),this.announce(e)}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.autocompleter,r=t.selectedIndex,o=t.filteredOptions;if(n&&0!==o.length){var i;switch(e.keyCode){case rr.UP:i=(0===r?o.length:r)-1,this.setState({selectedIndex:i});break;case rr.DOWN:i=(r+1)%o.length,this.setState({selectedIndex:i});break;case rr.ESCAPE:this.setState({autocompleter:null,AutocompleterUI:null});break;case rr.ENTER:this.select(o[r]);break;case rr.LEFT:case rr.RIGHT:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.record,r=t.completers,o=e.record;if(Object(Kr.isCollapsed)(n)){var i=Object(s.deburr)(Object(Kr.getTextContent)(Object(Kr.slice)(n,0))),a=Object(s.deburr)(Object(Kr.getTextContent)(Object(Kr.slice)(o,0)));if(i!==a){var c=Object(Kr.getTextContent)(Object(Kr.slice)(n,void 0,Object(Kr.getTextContent)(n).length)),u=Object(s.find)(r,(function(e){var t=e.triggerPrefix,n=e.allowContext,r=i.lastIndexOf(t);return-1!==r&&(!(n&&!n(i.slice(0,r),c))&&/^\S*$/.test(i.slice(r+t.length)))}));if(!u)return void this.reset();var l=Object(s.escapeRegExp)(u.triggerPrefix),d=i.match(new RegExp("".concat(l,"(\\S*)$"))),f=d&&d[1];this.setState({autocompleter:u,AutocompleterUI:u!==this.state.autocompleter?Zr(u):this.state.AutocompleterUI,filterValue:f})}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.instanceId,r=e.isSelected,o=this.state,i=o.autocompleter,a=o.selectedIndex,s=o.filteredOptions,u=o.AutocompleterUI,l=o.filterValue,d=(s[a]||{}).key,f=void 0===d?"":d,p=(i||{}).className,b=!!i&&s.length>0,h=b?"components-autocomplete-listbox-".concat(n):null,v=b?"components-autocomplete-item-".concat(n,"-").concat(f):null;return Object(c.createElement)(c.Fragment,null,t({isExpanded:b,listBoxId:h,activeId:v,onKeyDown:this.handleKeyDown}),r&&u&&Object(c.createElement)(u,{className:p,filterValue:l,instanceId:n,listBoxId:h,selectedIndex:a,onChangeOptions:this.onChangeOptions,onSelect:this.select,onReset:this.onReset}))}}]),n}(c.Component),Jr=Object(E.compose)([qr,E.withInstanceId])(Xr);var Qr=je("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),eo=function(e){var t=e.disableUnits;return le(nt({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=je(Cr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",no,";",eo,";}}"),oo=function(e){return le("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;",nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",nt({right:0})()," ",(t=e.size,le({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},io=je("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",oo,";}"),ao=je("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],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=pr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=hr([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(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)(),U=l()("components-unit-control",f),G=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":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onChange:function(e,t){if(""!==e){var n=fo(e,I,F,V),r=Object(i.a)(n,2),o=r[0],a=r[1],c=W.current;c&&(x(c,t),K(c),W.current=null);var s=c||a,u="".concat(o).concat(s);S(u,t)}else S("",t)},ref:t,size:P,suffix:G,value:F,__unstableStateReducer:dr((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event;if(n===ur.COMMIT){var a,c=fo(null==o||null===(a=o.target)||void 0===a?void 0:a.value,I,F,V),s=Object(i.a)(c,2),u=s[0],l=s[1];e.value=u,V!==l&&(W.current=l)}return e}),r)})))}));var go=je("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),Oo=je(mt,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),jo=je(mt,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),wo=je("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),ko=je(mt,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),_o=je(mt,{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?nt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?nt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?So:Eo},Co=function(e){return nt({marginLeft:e.isFirst?0:-1})()},Po=je(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=Pn(n,["domTarget","eventOptions","window"]),c=xn(xn({},Jn({domTarget:r,eventOptions:o,window:i})),{},{hover:xn({enabled:!0},a)});return Gn({hover:e},[nr],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)(gt,null,Object(c.createElement)(Kt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(gt,null,Object(c.createElement)(Wr.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Io;a(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(jo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(gt,null,Object(c.createElement)(Jo,{side:I})),P&&Object(c.createElement)(vt,null,Object(c.createElement)(Bo,L)),Object(c.createElement)(gt,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)};function ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var _i={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},Si=_i.borderColor,Ei=_i.borderRadius,xi=_i.backgroundShady,Ci=je("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Ei,";border:1px solid ",Si,";",Ni,";&.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 );}"),Pi=je(yt,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Si,";border-top-left-radius:",Ei,";border-top-right-radius:",Ei,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ri,";",Ni,";",Ai,";"),Di=je("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:",Ei,";border-top-right-radius:",Ei,";}&:last-of-type{border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";}"),Mi=je("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(ki(3)," ").concat(ki(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ki(2)," ").concat(ki(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ki(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ki(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ai,";"),Ti=je(yt,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",Si,";border-bottom-left-radius:",Ei,";border-bottom-right-radius:",Ei,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ri,";",Ni,";",Ai,";"),Ii=je(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Si,";box-sizing:border-box;display:block;height:0;width:100%;");function Ri(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(ki(3)," ").concat(ki(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(ki(2)," ").concat(ki(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(ki(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(ki(1),";\n\t\t\t}\n\t\t}\n\t")}function Ni(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ai(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(xi,";\n\t\t}\n\t")}function Li(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)(Ci,Object(o.a)({},s,{className:f})))}Li.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fi=Li;function zi(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]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?ke()(e.hex):ke()(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 ia(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 aa(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke()(e).isValid()}function ca(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 sa=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)(ca,{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 ua(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var la=function(e){Object(zr.a)(n,e);var t=ua(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Lr.a)(e)),e.decrease=e.decrease.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Lr.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Lr.a)(e)),e}return Object(Fr.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=ia(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!==rr.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)(sa,{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),da=Object(E.pure)(la);function fa(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var pa=function(e){Object(zr.a)(n,e);var t=fa(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(Lr.a)(e)),e.decrease=e.decrease.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(Lr.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(Lr.a)(e)),e}return Object(Fr.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=ia(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!==rr.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)(sa,{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),ba=Object(E.compose)(E.pure,E.withInstanceId)(pa),ha=n(312);function va(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)(va),b="inspector-text-control-".concat(p);return Object(c.createElement)(dt,{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 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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var ya=function(e){Object(zr.a)(n,e);var t=ma(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(Lr.a)(e)),e.handleChange=e.handleChange.bind(Object(Lr.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(Lr.a)(e)),e}return Object(Fr.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&&aa(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===rr.ENTER||t===rr.UP||t===rr.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)(va,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),ga=Object(E.pure)(Wr.a),Oa=function(e){Object(zr.a)(n,e);var t=ma(n);function n(e){var r,o=e.hsl;Object(Ar.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(Lr.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(Lr.a)(r)),r.handleChange=r.handleChange.bind(Object(Lr.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(Lr.a)(r)),r}return Object(Fr.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Gr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Gr.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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ya,{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)(ga,{className:"components-color-picker__inputs-toggle",icon:ha.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 ja(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var wa=function(e){Object(zr.a)(n,e);var t=ja(n);function n(e){var r;return Object(Ar.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(Lr.a)(r)),r.brighten=r.brighten.bind(Object(Lr.a)(r)),r.handleChange=r.handleChange.bind(Object(Lr.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(Lr.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(Lr.a)(r)),r}return Object(Fr.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=ia(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!==rr.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)(sa,{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)(Wr.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),ka=Object(E.compose)(E.pure,E.withInstanceId)(wa);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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}function Sa(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 Ea(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,La()(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);za.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Ba=Object(E.withSafeTimeout)(za);var Ha=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,l=t.hideLabelFromVision,d=t.help,f=t.messages,p=void 0===f?{selected:Object(S.__)("Item selected.")}:f,b=Object(E.useInstanceId)(e),h=Object(c.useState)(null),v=Object(i.a)(h,2),m=v[0],y=v[1],g=Object(c.useState)(!1),O=Object(i.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(""),_=Object(i.a)(k,2),x=_[0],C=_[1],P=Object(c.useRef)(),D=a.find((function(e){return e.value===r})),M=null!==(n=null==D?void 0:D.label)&&void 0!==n?n:"",T=Object(c.useMemo)((function(){var e=[],t=[],n=x.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)}),[x,a,r]),I=function(e){s(e.value),Object(Gr.speak)(p.selected,"assertive"),y(e),C(""),w(!1)},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=T.indexOf(m),n=t+e;n<0?n=T.length-1:n>=T.length&&(n=0),y(T[n]),w(!0)};return Object(c.useEffect)((function(){var e=T.length>0;if(j){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.",T.length),T.length):Object(S.__)("No results.");Object(Gr.speak)(t,"assertive")}}),[T,j]),Object(c.createElement)(dt,{className:"components-combobox-control",tabIndex:"-1",label:o,id:"components-form-token-input-".concat(b),hideLabelFromVision:l,help:d},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onFocus:function(){P.current.input.focus(),w(!0),u("")},onKeyDown:function(e){var t=!1;switch(e.keyCode){case rr.ENTER:m&&(I(m),t=!0);break;case rr.UP:R(-1),t=!0;break;case rr.DOWN:R(1),t=!0;break;case rr.ESCAPE:w(!1),y(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(Na,{className:"components-combobox-control__input",instanceId:b,ref:P,value:j?x:M,onBlur:function(){w(!1)},isExpanded:j,selectedSuggestionIndex:T.indexOf(m),onChange:function(e){var t=e.value;C(t),u(t),w(!0)}}),j&&Object(c.createElement)(Ba,{instanceId:b,match:{label:x},displayTransform:function(e){return e.label},suggestions:T,selectedIndex:T.indexOf(m),onHover:y,onSelect:I,scrollIntoView:!0})))},Va=n(42);var Ka=n(28),Wa=n.n(Ka);n(198);function Ua(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function Ga(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function $a(e,t){if(e.clientHeightt||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0}var Ya=0;function Za(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(!Ua(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;Ua(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&$a(d)&&!$a(document.documentElement)||$a(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"===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?k:"end"===o?k-p:"nearest"===o?qa(h,h+p,p,L,z,h+k,h+k+m,m):k-p/2,H="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:qa(b,b+f,f,A,F,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-L:"end"===o?k-I+z+K:"nearest"===o?qa(M,I,P,L,z+K,k,k+m,m):k-(M+P/2)+K/2,H="start"===i?_-R-A:"center"===i?_-(R+D/2)+V/2:"end"===i?_-T+F+V:qa(R,T,D,A,F+V,_,_+y,y);var W=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+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 Xa(e,t){return e===t||e.contains&&e.contains(t)}function Ja(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 ac(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=cc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function cc(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?cc(1,0,n,r,!1):cc(-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&&(Xa(t,e)||r&&Xa(t,n.activeElement))}))}var uc=Ja((function(){dc().textContent=""}),500);function lc(e,t){var n=dc(t);e&&(n.textContent=e,uc())}function dc(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 fc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function pc(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"+yc(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 bc=Ja((function(e,t){lc(e(),t)}),200);function hc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+tc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function vc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function mc(e){return/^\S{1}$/.test(e)}function yc(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function gc(e){var t=Object(v.useRef)(e);return t.current=e,t}function Oc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=rc(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=gc(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&&pc(f,rc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function jc(e,t,n){var r=Oc(e,t,n),o=r[0],i=r[1];return[rc(o,n),i]}var wc={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:Za,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function kc(e,t,n){void 0===n&&(n=fc);var r="default"+yc(t);return r in e?e[r]:n[t]}function _c(e,t,n){if(void 0===n&&(n=fc),t in e)return e[t];var r="initial"+yc(t);return r in e?e[r]:kc(e,t,n)}function Sc(e){var t=_c(e,"selectedItem"),n=_c(e,"isOpen"),r=_c(e,"highlightedIndex"),o=_c(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Ec(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):ac(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function xc(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&&!sc(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||sc(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 Cc(){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:Ec(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Ec(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:kc(i,"isOpen"),highlightedIndex:kc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:cc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:cc(-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=Pc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:ac(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:ac(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:Ec(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Ec(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:kc(i,"highlightedIndex"),isOpen:kc(i,"isOpen"),selectedItem:kc(i,"selectedItem"),inputValue:kc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function Ic(e){void 0===e&&(e={});var t=Object(o.a)({},Dc,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=jc(Tc,Sc(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)(hc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=gc({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;bc((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;bc((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&&(_.current=Ja((function(e){e({type:21,inputValue:""})}),500)),y&&_.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&&(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=xc(b,[O,g],i,(function(){p({type:8})})),T=Cc("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(Va.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]=ec(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:Qa(i,(function(){p({type:9})})),onKeyDown:Qa(s,(function(e){var t=ic(e);t&&R[t]?R[t](e):mc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:Qa(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,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(Va.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=ec(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=Qa(i,(function(){p({type:12})})),b.onKeyDown=Qa(a,(function(e){var t=ic(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(Va.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=vc(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]=ec(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=Qa(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=Qa(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}}Ic.stateChangeTypes=Mc;Wa.a.array.isRequired,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.bool,Wa.a.number,Wa.a.number,Wa.a.number,Wa.a.bool,Wa.a.bool,Wa.a.bool,Wa.a.any,Wa.a.any,Wa.a.any,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.string,Wa.a.func,Wa.a.string,Wa.a.string,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.shape({addEventListener:Wa.a.func,removeEventListener:Wa.a.func,document:Wa.a.shape({getElementById:Wa.a.func,activeElement:Wa.a.any,body:Wa.a.any})});Object(o.a)({},wc,{getA11yStatusMessage:nc,circularNavigation:!0});Wa.a.array,Wa.a.array,Wa.a.array,Wa.a.func,Wa.a.func,Wa.a.func,Wa.a.number,Wa.a.number,Wa.a.number,Wa.a.func,Wa.a.func,Wa.a.string,Wa.a.string,Wa.a.shape({addEventListener:Wa.a.func,removeEventListener:Wa.a.func,document:Wa.a.shape({getElementById:Wa.a.func,activeElement:Wa.a.any,body:Wa.a.any})});var Rc=function(e){return e&&e.name},Nc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case Ic.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case Ic.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Ac(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=Ic({initialSelectedItem:i[0],items:i,itemToString:Rc,onSelectedItemChange:a,selectedItem:s,stateReducer:Nc}),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)(Wr.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Rc(m),Object(c.createElement)(Qi.a,{icon:ha.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)(Qi.a,{icon:ea.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Lc=n(151),Fc=(n(319),n(44)),zc=n.n(Fc),Bc=n(284),Hc=n.n(Bc);function Vc(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Kc=function(e){Object(zr.a)(n,e);var t=Vc(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(Lr.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(Lr.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(Lr.a)(e)),e}return Object(Fr.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?zc()(n):zc()(),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?zc()(e):zc()()}},{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)(Hc.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),Wc=n(75),Uc=function(){var e=Object(Wc.__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 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 $c(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),ps=Object(E.withSafeTimeout)(fs),bs=n(216),hs=n(64),vs=n.n(hs);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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var ys=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),gs=ys.Provider,Os=ys.Consumer,js=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"},ws=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},ks=function(e){Object(zr.a)(n,e);var t=ms(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(Lr.a)(e)),e.onDrop=e.onDrop.bind(Object(Lr.a)(e)),e.addDropZone=e.addDropZone.bind(Object(Lr.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(Lr.a)(e)),e.resetDragState=e.resetDragState.bind(Object(Lr.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(Lr.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(Fr.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",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 ws(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:ws(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};vs()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,js(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=js(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Vr.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)(gs,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function _s(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)(ys),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 Ss(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=_s({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)(Qi.a,{icon:bs.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 Es=function(e){return Object(c.createElement)(Os,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Ss,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},xs=n(35),Cs=n.n(xs);function Ps(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Ds=["menuitem","menuitemradio","menuitemcheckbox"];var Ms=function(e){Object(zr.a)(n,e);var t=Ps(n);function n(){var e;return Object(Ar.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(Lr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Lr.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(Lr.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(Lr.a)(e)),e}return Object(Fr.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?os.focus.tabbable:os.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");Ds.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=As(As({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Fs=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&&Cs()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Cs()("`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=Ls({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(Ma,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Ls({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)(Wr.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!==rr.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=Ls({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(Rs,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)(Wr.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)}))})))}})},zs=n(423);var Bs=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(Vr.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)(Qi.a,{icon:zs.a,className:"components-external-link__icon"}))})),Hs=n(114);var Vs=je("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),Ks=je("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;}"}),Ws=je("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),Us=je(yo,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),Gs=je(yt,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),$s=je("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"}),""),qs=je("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 );"}),Ys=je(qs,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),Zs=je(qs,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),Xs={top:0,left:0,bottom:0,right:0,width:0,height:0},Js=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function Qs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function eu(e){return Math.round(100*e)}function tu(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 nu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&Js.includes(Qs(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)(hu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function hu(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)(Ws,Object(o.a)({ref:t},i))}function vu(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var mu=function(e){Object(zr.a)(n,e);var t=vu(n);function n(e){var r;return Object(Ar.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:Xs,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(Lr.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(Lr.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(Lr.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(Lr.a)(r)),r.updateBounds=r.updateBounds.bind(Object(Lr.a)(r)),r.updateValue=r.updateValue.bind(Object(Lr.a)(r)),r}return Object(Fr.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=Xs;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([rr.UP,rr.DOWN,rr.LEFT,rr.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 rr.UP:c-=s;break;case rr.DOWN:c+=s;break;case rr.LEFT:a-=s;break;case rr.RIGHT:a+=s}var u={x:a=Er(a,0,1,s),y:c=Er(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=Er(u,0,1,d),y:l=Er(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)(dt,{label:a,id:y,help:o,className:m},Object(c.createElement)(Vs,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(Ks,{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)(pu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(bu,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(uu,{coordinates:v,isDragging:b}))),Object(c.createElement)(ru,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);mu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var yu=Object(E.compose)([E.withInstanceId,Hs.a])(mu);function gu(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(Hr.a)(e);if(t){var o=Object(Hr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Br.a)(this,n)}}var Ou=window.FocusEvent,ju=function(e){Object(zr.a)(n,e);var t=gu(n);function n(e){var r;return Object(Ar.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(Lr.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(Fr.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Ou("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),wu=Object(E.withGlobalEvents)({blur:"checkFocus"})(ju),ku=n(424);function _u(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Su={name:"tdik1c",styles:"height:30px;min-height:30px;"},Eu=function(){return Su},xu=je("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%;"}),Cu=je("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 le({color:n},"")}),";",Eu,";",(function(e){var t=e.marks;return le({marginBottom:t?16:null},"")}),";",nt({marginLeft:10}),""),Pu=je("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",nt({marginRight:6}),""),Du=je("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",nt({marginLeft:16}),""),Mu=je("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")),le({background:n},"")}),";"),Tu=je("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")),le({background:n},"")}),";"),Iu=je("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Ru=je("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")),le({backgroundColor:n},"")}),";"),Nu=je("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 le({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Au=je("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;",nt({marginLeft:-10}),""),Lu=je("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 le({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"},"")}),";"),Fu=je("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%;"}),zu={name:"5qqmyx",styles:"top:-80%;"},Bu={name:"eda4eg",styles:"bottom:-80%;"},Hu=je("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 le({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?zu:Bu}),";",ze("transition"),";",nt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),Vu=je(Cr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ki(8),";input[type='number']&{",Eu,";}",nt({marginLeft:ki(2)}),""),Ku=je("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Eu,";}",nt({marginLeft:8}),"");var Wu=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(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=xr({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:_,onShow:E});return Object(c.createElement)(Fu,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 Uu(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)(Ru,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Nu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function Gu(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 $u(e){for(var t=1;tM)&&(e=_u(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(Ku,null,Object(c.createElement)(Wr.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),el="default";function tl(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)(tl),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:el,name:Object(S.__)("Default")}].concat(Object(Vr.a)(e),Object(Vr.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 el}(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)(Ac,{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)(Wr.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)(Qu,{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:ku.a,afterIcon:ku.a}))}var nl=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)(Wr.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 rl=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"}))},ol=n(40),il=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 al(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)(al),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)(Wr.a,{className:"components-form-token-field__remove-token",icon:il,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}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;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(ol.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)(al,{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=sl(sl({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Na,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)(Ba,{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);dl.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 fl=qr(Object(E.withInstanceId)(dl)),pl=n(208),bl=n(199),hl=n.n(bl),vl="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"},yl={type:"angular",value:90},gl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Ol(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function jl(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function wl(e){var t=e.type,n=e.value,r=e.length;return"".concat(Ol({type:t,value:n})," ").concat(jl(r))}function kl(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(wl);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Vr.a)(i))).join(","),")")}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=5&&(u.current.significantMoveHappened=!0)}Cl(i,n,a)||o(xl(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)(Ma,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Ll,{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)(Da,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Dl(i,t,n))}}),Object(c.createElement)(Wr.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Sl(Sl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:ml})}))}function zl(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)(Ma,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(Wr.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:pl.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Da,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Dl(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=El(n);return r.length={type:"%",value:t},Sl(Sl({},e),{},{colorStops:[].concat(Object(Vr.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:ml})}function Bl(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 Hl={id:"IDLE"};function Vl(e){var t=e.value,n=e.onChange,r=Rl(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(kl(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:Ol(e),position:jl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(Bl,Hl),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Ml(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?Tl(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)(zl,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Fl,{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 Kl=je(gt,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});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 Ul(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 yd=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 Cs()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)(Wr.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var gd=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))},Od=n(169);var jd=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)(Wr.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Od.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(Xc.a,{icon:u}))}));function wd(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)(jd,{key:e.value,role:"menuitemradio",icon:t&&ea.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 kd=n(163);var _d=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)(Is,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return rr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Sd=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}}),Ed=function(){return Object(c.useContext)(Sd)};var xd=je("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",xe.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Cd=je("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;}"}),Pd=je(Wr.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",xe.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Dd=je(Kt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",xe.gray[100],";"),Md=je(Kt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",xe.gray[100],";"),Td=je("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",xe.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",xe.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Ne.theme,";color:",Ne.textDark,";button,a{color:",Ne.textDark,";}}svg path{color:",xe.lightGray.ui,";}"),Id=je("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;}}",ze("animation"),";"),Rd=je(Kt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Nd(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 Ad(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)(xd,{className:M},Object(c.createElement)(ut.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)(Sd.Provider,{value:D},b))})))}var zd=n(214);function Bd(e){var t,n=e.backButtonLabel,r=e.className,o=e.href,i=e.onClick,a=e.parentMenu,s=Ed(),u=s.setActiveMenu,d=s.navigationTree,f=l()("components-navigation__back-button",r),p=null===(t=d.getMenu(a))||void 0===t?void 0:t.title;return Object(c.createElement)(Pd,{className:f,isTertiary:!0,href:o,onClick:function(){return a?u(a,"right"):i}},Object(c.createElement)(Qi.a,{icon:zd.a}),n||p||Object(S.__)("Back"))}var Hd=Object(c.createContext)({menu:void 0,isActive:!1}),Vd=function(){return Object(c.useContext)(Hd)};function Kd(e){var t=e.children,n=e.className,r=e.title;if(!Vd().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Md,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var Wd=n(213);function Ud(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 Gd(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)(Xc.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function uf(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 lf(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(Vr.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(ts,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function pf(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=df(r);return Object(c.createElement)(ff,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function bf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=df(r);return Object(c.createElement)(ff,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function hf(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)(ts,{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)(pf,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&v&&Object(c.createElement)(fl,{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)(bf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(Qu,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var vf=n(46),mf=n(125),yf=(n(108),n(62));function gf(e){void 0===e&&(e={});var t=Object(yf.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 Of=[].concat(d.g.__keys,["state","setState"]);function jf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function wf(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)}gf.__keys=Of;var kf=Object(h.a)({name:"Radio",compose:x.b,useState:gf,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=jf(e),d=Object(vf.a)(e.currentId===e.id),f=Object(vf.a)(r),b=Object(vf.a)(o);!function(e){var t=Object(v.useState)((function(){return jf(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||wf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&wf(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)}}),_f=Object(b.a)({as:"input",memo:!0,useHook:kf}),Sf=Object(c.createContext)({state:null,setState:function(){}});var Ef=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Sf),u=s.state===r;return Object(c.createElement)(_f,Object(o.a)({ref:t,as:Wr.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),xf=n(79),Cf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:gf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Pf=Object(b.a)({as:"div",useHook:Cf,useCreateElement:function(e,t,n){return Object(xf.a)(e,t,n)}});function Df(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 Mf(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)(wu,{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),jp=Op=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Op),wp=n(164),kp=n(24),_p=n.n(kp),Sp=n(47),Ep=n(116);var xp=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(Ep.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Sp.a)(_p.a.mark((function t(n){return _p.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(Sp.a)(_p.a.mark((function e(t){return _p.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)(Ep.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)(wp.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Cp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Pp=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)(Wr.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Dp(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)(Dp,"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}),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(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Rs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Pp,{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)))}function Mp(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)(Mp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(dt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)("textarea",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 Tp=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 Ip=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 Rp(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(Rp),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(dt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(rl,{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 Np=n(137),Ap=n(91),Lp=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var Fp=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)(Ap.a)?Object(c.createElement)(Np.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)(Wr.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(Lp,{className:n},Object(c.createElement)(Wr.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))})),zp=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 Bp(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 Hp(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)},Wp=n(170),Up=Object(h.a)({name:"Toolbar",compose:f.b,useState:Wp.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),Gp=Object(b.a)({as:"div",useHook:Up,useCreateElement:function(e,t,n){return Object(xf.a)(e,t,n)}});var $p=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(Wp.a)({loop:!0,baseId:r.id,rtl:Je()});return Object(c.createElement)(Ap.a.Provider,{value:i},Object(c.createElement)(Gp,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var qp=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Cs()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(Kp,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)($p,Object(o.a)({className:s,label:r,ref:t},i))})),Yp=Object(c.createContext)(),Zp=Yp.Provider;function Xp(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)(Zp,{value:s},t)}function Jp(e){var t=os.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var Qp=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)([rr.UP,rr.DOWN,rr.LEFT,rr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=Jp(u),d=l.indexOf(a);if(Object(s.includes)([rr.LEFT,rr.RIGHT],t)){var f;if((f=t===rr.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)([rr.UP,rr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===rr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=Jp(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(Xp,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var eb=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 tb(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 nb=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)(Yp),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)(Jd,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},,,,,,,,,,,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)({},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,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===_.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===_.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===_.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===_.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,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 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:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,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"; /** @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,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,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=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 i:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case v:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=h,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===c||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===O||e.$$typeof===j||e.$$typeof===y)},t.typeOf=w},function(e,t,n){n(307)},function(e,t,n){"use strict";var r,o=n(308);(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=a(n(309)),o=a(n(353));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(310).default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(311)),o=s(n(349)),a=n(350),i=s(n(351)),c=s(n(352));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(a.GLOBAL_CACHE_KEY)||{}).namespace,c=void 0===r?"":r;return n.forEach((function(e){var n=(0,i.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,a=n.hasInlineStyles,i=n.inlineStyles,s={className:o.map((function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)})).join(" ")};return a&&(s.style=i),s}}},function(e,t,n){"use strict";var r=n(101),o=n(181),a=n(207),i=n(222),c=i(),s=n(348),l=o(c);r(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=n(205),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),l=c.call((function(){}),"prototype"),u=["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},h=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]"===a.call(e),r=i(e),c=t&&"[object String]"===a.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(c&&e.length>0&&!o.call(e,0))for(var b=0;b0)for(var v=0;v= 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(!l(n))throw new i("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,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,l=c&&s&&"function"==typeof s.get?s.get:null,u=c&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h=Boolean.prototype.valueOf,p=Object.prototype.toString,b=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,m=n(317).custom,y=m&&w(m)?m:null;function g(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function O(e){return String(e).replace(/"/g,""")}function j(e){return"[object Array]"===S(e)}function w(e){return"[object Symbol]"===S(e)}e.exports=function e(t,n,r,o){var c=n||{};if(_(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');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){return g(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,E),"single",t)}(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 s=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=s&&s>0&&"object"==typeof t)return"[Object]";if(void 0===o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0)return"[Circular]";function p(t,n){return n&&(o=o.slice()).push(n),e(t,c,r+1,o)}if("function"==typeof t){var m=function(e){if(e.name)return e.name;var t=b.call(e,/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(m?": "+m:"")+"]"}if(w(t)){var k=Symbol.prototype.toString.call(t);return"object"==typeof t?C(k):k}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 P="<"+String(t.nodeName).toLowerCase(),z=t.attributes||[],T=0;T"}if(j(t))return 0===t.length?"[]":"[ "+D(t,p).join(", ")+" ]";if(function(e){return"[object Error]"===S(e)}(t)){var I=D(t,p);return 0===I.length?"["+String(t)+"]":"{ ["+String(t)+"] "+I.join(", ")+" }"}if("object"==typeof t){if(y&&"function"==typeof t[y])return t[y]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var R=[];return i.call(t,(function(e,n){R.push(p(n,t)+" => "+p(e,t))})),x("Map",a.call(t),R)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var N=[];return u.call(t,(function(e){N.push(p(e,t))})),x("Set",l.call(t),N)}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 M("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 M("WeakSet");if(function(e){return"[object Number]"===S(e)}(t))return C(p(Number(t)));if(function(e){return"[object BigInt]"===S(e)}(t))return C(p(v.call(t)));if(function(e){return"[object Boolean]"===S(e)}(t))return C(h.call(t));if(function(e){return"[object String]"===S(e)}(t))return C(p(String(t)));if(!function(e){return"[object Date]"===S(e)}(t)&&!function(e){return"[object RegExp]"===S(e)}(t)){var A=D(t,p);return 0===A.length?"{}":"{ "+A.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function _(e,t){return k.call(e,t)}function S(e){return p.call(e)}function E(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16)}function C(e){return"Object("+e+")"}function M(e){return e+" { ? }"}function x(e,t,n){return e+" ("+t+") {"+n.join(", ")+"}"}function D(e,t){var n=j(e),r=[];if(n){r.length=e.length;for(var o=0;o5&&(b=arguments[5]);for(var v=h,m=0;m0&&(j=l(O)),j){var w=u(c(O,"length"));v=e(t,O,w,v,p-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(140),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(328),a=n(128),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(208),a=n(209),i=n(329),c=n(210),s=n(333),l=n(128),u=n(211),d=n(90);e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=i(e,t),h=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!h)&&o(c,u,a,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(58),o=n(330),a=r("%TypeError%"),i=n(140)("Object.prototype.propertyIsEnumerable"),c=n(91),s=n(183),l=n(128),u=n(331),d=n(212),f=n(90);e.exports=function(e,t){if("Object"!==f(e))throw new a("Assertion failed: O must be an Object");if(!l(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=u(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(332),a=n(213);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=n(206)()&&"symbol"==typeof Symbol.toStringTag;if(i){r=Function.call.bind(RegExp.prototype.exec),o={};var c=function(){throw o};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var s=Object.prototype.toString;e.exports=i?function(e){if(!e||"object"!=typeof e)return!1;try{r(e,a)}catch(e){return e===o}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===s.call(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(217),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(128),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)("%Math%"),o=n(336),a=n(185),i=n(215),c=n(337),s=r.floor,l=r.abs;e.exports=function(e){var t=o(e);return a(t)?0:0!==t&&i(t)?c(t)*s(l(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%"),a=r("%Number%"),i=r("%RegExp%"),c=r("%parseInt%"),s=n(140),l=n(339),u=n(217),d=s("String.prototype.slice"),f=l(/^0b[01]+$/i),h=l(/^0o[0-7]+$/i),p=l(/^[-+]0x[0-9a-f]+$/i),b=l(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(340);e.exports=function e(t){var n=u(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(h(n))return e(c(d(n,2),8));if(b(n)||p(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(181);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(341);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(342),a=n(214),i=n(220),c=n(186),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=l(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(221);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(127))},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(346);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(347)},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(101),o=n(222);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(101),o=n(186),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(),l=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=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 u(e),delete s[l(e)],!d.has(e)},get:function(e){return u(e),s[l(e)]},has:function(e){return u(e),l(e)in s},set:function(e,t){u(e);var n=l(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(127))},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,l,u,d,f){var h=s[l],p=typeof h,b=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,u=u||n.anonymousMessage,f=f||l,h);if(-1!==b)return b;if(t&&!t(h))return new Error(n.invalidTypeCore+": `"+l+"` of type `"+p+"` supplied to `"+u+"`, expected `"+e+"`.");if(!a(h))return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+p+"` supplied to `"+u+"`, expected `"+i+"`.");if(c&&!c(h)){var v=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+p+"` supplied to `"+u+"`. "+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(359)},function(e,t,n){"use strict";var r=n(360),o=n(233),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(91),o=n(361),a=n(180),i=n(188),c=i("%TypeError%"),s=i("%SyntaxError%"),l=i("%Array%"),u=i("%String%"),d=i("%Object%"),f=i("%Number%"),h=i("%Symbol%",!0),p=i("%RegExp%"),b=!!h,v=n(230),m=n(231),y=n(232),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(233),j=n(234),w=n(235),k=n(363),_=parseInt,S=n(118),E=S.call(Function.call,l.prototype.slice),C=S.call(Function.call,u.prototype.slice),M=S.call(Function.call,p.prototype.test,/^0b[01]+$/i),x=S.call(Function.call,p.prototype.test,/^0o[0-7]+$/i),D=S.call(Function.call,p.prototype.exec),P=new p("["+["…","​","￾"].join("")+"]","g"),z=S.call(Function.call,p.prototype.test,P),T=S.call(Function.call,p.prototype.test,/^[-+]0x[0-9a-f]+$/i),I=S.call(Function.call,u.prototype.charCodeAt),R=S.call(Function.call,Object.prototype.toString),N=S.call(Function.call,i("%NumberPrototype%").valueOf),A=S.call(Function.call,i("%BooleanPrototype%").valueOf),H=S.call(Function.call,i("%StringPrototype%").valueOf),L=S.call(Function.call,i("%DatePrototype%").valueOf),V=Math.floor,F=Math.abs,B=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,u.prototype.replace),Y=n(364),Z=n(366),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(M(t))return this.ToNumber(_(C(t,2),2));if(x(t))return this.ToNumber(_(C(t,2),8));if(z(t)||T(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)*V(F(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=V(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==R(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:l.isArray||function(e){return"[object Array]"===R(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=F(e);return V(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(b){var t=e[h.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=b&&h.species?n[h.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(b&&"symbol"==typeof h.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(!b)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.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)&&b&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return l(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&&!B)throw new s("native Object.create support is required to create null objects");return B(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=I(e,t);if(r<55296||r>56319)return t+1;var o=I(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:N(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:A(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:H(e)},thisTimeValue:function(e){return L(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(362)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(229),a=n(187),i=n(220),c=n(186),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=l(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(188),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),c=n(230),s=n(231),l=n(232),u=n(234),d=n(235),f=n(187),h=n(365),p=n(91),b={ToPrimitive:h,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&l(t)?u(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||!l(t))return 0;var n=u(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(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(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),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(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(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(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(p(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((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=b},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(229),a=n(187),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(91),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(236),o=n(101);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 l=[],u=c.clone(),d=u.clone().startOf("month").hour(12),f=u.clone().endOf("month").hour(12),h=d.clone();if(n)for(var p=0;p0&&!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(330).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,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(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(),L=t.attributes||[],F=0;F"}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(!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(_(n,t,!0)+" => "+_(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(_(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 K=I(t,_);return 0===K.length?"{}":y?"{"+T(K,y)+"}":"{ "+K.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(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(145),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(341),i=n(131),a=n(92);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(221),i=n(222),a=n(342),c=n(223),s=n(346),u=n(131),l=n(224),d=n(92);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(343),i=r("%TypeError%"),a=n(145)("Object.prototype.propertyIsEnumerable"),c=n(93),s=n(188),u=n(131),l=n(344),d=n(225),f=n(92);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(345),i=n(226);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(219)()&&"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(230),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(131),i=n(92);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(349),i=n(190),a=n(228),c=n(350),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(145),u=n(352),l=n(230),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(353);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(186);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(354);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(355),i=n(227),a=n(233),c=n(191),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(234);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(130))},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(359);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(360)},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(235);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(191),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(130))},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(372)},function(e,t,n){"use strict";var r=n(373),o=n(246),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(93),o=n(374),i=n(185),a=n(193),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(243),m=n(244),y=n(245),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(246),j=n(247),w=n(248),k=n(376),_=parseInt,S=n(121),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(377),Z=n(379),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)&&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(375)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(242),i=n(192),a=n(233),c=n(191),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(193),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),c=n(243),s=n(244),u=n(245),l=n(247),d=n(248),f=n(192),p=n(378),b=n(93),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(242),i=n(192),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(93),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(249),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;b=t||n<0||v&&e-p>=u}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-h);return v?c(n,u-(e-p)):n}(e))}function w(e){return f=void 0,m&&s?y(e):(s=l=void 0,d)}function k(){var e=o(),n=O(e);if(s=arguments,l=this,h=e,n){if(void 0===f)return g(h);if(v)return clearTimeout(f),f=setTimeout(j,t),y(h)}return void 0===f&&(f=setTimeout(j,t)),d}return t=a(t)||0,r(n)&&(b=!!n.leading,u=(v="maxWait"in n)?i(a(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==f&&clearTimeout(f),p=0,s=h=l=f=void 0},k.flush=function(){return void 0===f?d:w(o())},k}},function(e,t,n){var r=n(244);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(127))},function(e,t,n){var r=n(191),o=n(381),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=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)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(382),o=n(385);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(245),o=n(383),a=n(384),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(245),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(387)},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,l=r.clone().subtract(c,"day"),u=o.clone().add(s,"day"),d=u.diff(l,"days")+1,f=l.clone(),h=[],p=0;p=c&&p1&&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(43),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(6),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(6),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(49),o=n(48),a=(n(13),n(80),n(120)),i=n(166),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 + */Object.defineProperty(t,"__esModule",{value:!0});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.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 a: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 i: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=a,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||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)===a},t.isLazy=function(e){return m(e)===v},t.isMemo=function(e){return m(e)===h},t.isPortal=function(e){return m(e)===i},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),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default.shape({getState:i.default.func,setState:i.default.func,subscribe:i.default.func})},function(e,t,n){var r=n(390),o=n(196);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){var r=n(196),o=n(391),i=n(393),a=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=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),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(257);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(130))},function(e,t,n){var r=n(196),o=n(394),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(395),o=n(398);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(258),o=n(396),i=n(397),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(258),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(400)},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(50),o=n(49),i=(n(13),n(81),n(123)),a=n(170),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 diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index be7103bb43..326cbdd1f6 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 = 446); +/******/ return __webpack_require__(__webpack_require__.s = 459); /******/ }) /************************************************************************/ /******/ ({ @@ -97,28 +97,6 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - -/***/ 13: -/***/ (function(module, exports) { - -(function() { module.exports = this["React"]; }()); - -/***/ }), - -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; // EXPORTS @@ -155,7 +133,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -171,7 +149,29 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 149: +/***/ 13: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 15: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 152: /***/ (function(module, exports, __webpack_require__) { var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),o=u[0],i=u[1],c=e.useCallback((function(e){return i(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),o]}; @@ -179,14 +179,14 @@ var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",t /***/ }), -/***/ 150: +/***/ 153: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["priorityQueue"]; }()); /***/ }), -/***/ 16: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -209,7 +209,7 @@ function _getPrototypeOf(o) { __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(26); +var arrayLikeToArray = __webpack_require__(27); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -217,10 +217,10 @@ 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__(35); +var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(29); +var unsupportedIterableToArray = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -237,7 +237,14 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 19: +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 20: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -260,14 +267,7 @@ function _createClass(Constructor, protoProps, staticProps) { /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -322,7 +322,7 @@ function _inherits(subClass, superClass) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); function _possibleConstructorReturn(self, call) { @@ -335,7 +335,7 @@ function _possibleConstructorReturn(self, call) { /***/ }), -/***/ 26: +/***/ 27: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -352,7 +352,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 271: +/***/ 285: /***/ (function(module, exports, __webpack_require__) { /*! @@ -1326,7 +1326,7 @@ function getAttributeValue(suffix, element) { /***/ }), -/***/ 272: +/***/ 286: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ @@ -2392,12 +2392,12 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ /***/ }), -/***/ 29: +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); function _unsupportedIterableToArray(o, minLen) { if (!o) return; @@ -2410,7 +2410,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 35: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2466,7 +2466,7 @@ function _typeof(obj) { /***/ }), -/***/ 412: +/***/ 425: /***/ (function(module, exports) { /** @@ -2519,7 +2519,7 @@ function _typeof(obj) { /***/ }), -/***/ 446: +/***/ 459: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2629,19 +2629,19 @@ var if_condition_ifCondition = function ifCondition(predicate) { /* harmony default export */ var if_condition = (if_condition_ifCondition); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(20); +var classCallCheck = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(19); +var createClass = __webpack_require__(20); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(22); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js var possibleConstructorReturn = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(22); +var getPrototypeOf = __webpack_require__(17); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} var external_this_wp_isShallowEqual_ = __webpack_require__(64); @@ -2655,7 +2655,7 @@ var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n -function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { 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 _createSuper(Derived) { var hasNativeReflectConstruct = _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 _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; } } @@ -2737,7 +2737,7 @@ var pure = create_higher_order_component(function (Wrapped) { var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(12); +var assertThisInitialized = __webpack_require__(15); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/listener.js @@ -2807,7 +2807,7 @@ var listener_Listener = /*#__PURE__*/function () { -function with_global_events_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_global_events_isNativeReflectConstruct()) { 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 with_global_events_createSuper(Derived) { var hasNativeReflectConstruct = with_global_events_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 with_global_events_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; } } @@ -2999,7 +2999,7 @@ function useInstanceId(object, prefix) { -function with_safe_timeout_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_safe_timeout_isNativeReflectConstruct()) { 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 with_safe_timeout_createSuper(Derived) { var hasNativeReflectConstruct = with_safe_timeout_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 with_safe_timeout_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; } } @@ -3113,7 +3113,7 @@ var withSafeTimeout = create_higher_order_component(function (OriginalComponent) -function with_state_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_state_isNativeReflectConstruct()) { 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 with_state_createSuper(Derived) { var hasNativeReflectConstruct = with_state_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 with_state_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; } } @@ -3169,10 +3169,10 @@ function withState() { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(14); +var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var dist_clipboard = __webpack_require__(271); +var dist_clipboard = __webpack_require__(285); var clipboard_default = /*#__PURE__*/__webpack_require__.n(dist_clipboard); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-copy-on-click/index.js @@ -3316,11 +3316,11 @@ function useDragging(_ref) { } // EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js -var mousetrap_mousetrap = __webpack_require__(272); +var mousetrap_mousetrap = __webpack_require__(286); 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__(412); +var mousetrap_global_bind = __webpack_require__(425); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-keyboard-shortcut/index.js /** @@ -3608,7 +3608,7 @@ use_viewport_match_useViewportMatch.__experimentalWidthProvider = ViewportMatchW /* harmony default export */ var use_viewport_match = (use_viewport_match_useViewportMatch); // EXTERNAL MODULE: ./node_modules/react-resize-aware/dist/index.js -var dist = __webpack_require__(149); +var dist = __webpack_require__(152); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/index.js @@ -3645,7 +3645,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist); var toConsumableArray = __webpack_require__(18); // EXTERNAL MODULE: external {"this":["wp","priorityQueue"]} -var external_this_wp_priorityQueue_ = __webpack_require__(150); +var external_this_wp_priorityQueue_ = __webpack_require__(153); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-async-list/index.js diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index f9937073b6..9d5e514de4 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=446)}({0:function(t,e){!function(){t.exports=this.wp.element}()},12: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}))},13:function(t,e){!function(){t.exports=this.React}()},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(38);var o=n(29),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)()}},149: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]}},150:function(t,e){!function(){t.exports=this.wp.priorityQueue}()},16: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}))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(26);var o=n(35),i=n(29);function u(t){return function(t){if(Array.isArray(t))return Object(r.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.")}()}},19:function(t,e,n){"use strict";function r(t,e){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()},272: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(d.a)(o,n);var r=_(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(g.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(m.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var A=n(14),M=n(271),P=n.n(M);function L(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(A.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new P.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 D="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function I(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(A.a)(o,2),c=i[0],a=i[1],f=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});D((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 N=n(272),q=n.n(N);n(412);function H(){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 K=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 q.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(H()&&(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 z(t){var e=Object(u.useState)(t&&window.matchMedia(t).matches),n=Object(A.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 F(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var U="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return z("(prefers-reduced-motion: reduce)")},W={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},G={">=":"min-width","<":"max-width"},Q={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(V),r=!n&&"(".concat(G[e],": ").concat(W[t],"px)"),o=z(r);return n?Q[e](W[t],n):o};B.__experimentalWidthProvider=V.Provider;var X=B,Y=n(149),$=n.n(Y).a,J=n(18),Z=n(150);function tt(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(J.a)(t),[e.item]):t}var et=function(t){var e=Object(u.useReducer)(tt,[]),n=Object(A.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=F(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(A.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))}},64:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0&&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()},286: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(285),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(286),I=n.n(D);n(425);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};Q.__experimentalWidthProvider=G.Provider;var V=Q,B=n(152),X=n.n(B).a,Y=n(18),$=n(153);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])}))}},64:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e 3 && arguments[3] !== undefined ? arguments[3] : false; + return { + type: 'REMOVE_ITEMS', + itemIds: Object(external_this_lodash_["castArray"])(records), + kind: kind, + name: name, + invalidateCache: invalidateCache + }; +} /** * Returns an action object used in signalling that queried data has been * received. @@ -1182,113 +1222,22 @@ function receiveItems(items) { function receiveQueriedItems(items) { var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return actions_objectSpread({}, receiveItems(items), { + return actions_objectSpread(actions_objectSpread({}, receiveItems(items)), {}, { query: query }); } -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(45); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/controls.js - - -/** - * WordPress dependencies - */ - - -/** - * Trigger an API Fetch request. - * - * @param {Object} request API Fetch Request Object. - * @return {Object} control descriptor. - */ - -function apiFetch(request) { - return { - type: 'API_FETCH', - request: request - }; -} -/** - * Calls a selector using the current state. - * - * @param {string} selectorName Selector name. - * @param {Array} args Selector arguments. - * - * @return {Object} control descriptor. - */ - -function controls_select(selectorName) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return { - type: 'SELECT', - selectorName: selectorName, - args: args - }; -} -/** - * Dispatches a control action for triggering a registry select that has a - * resolver. - * - * @param {string} selectorName - * @param {Array} args Arguments for the select. - * - * @return {Object} control descriptor. - */ - -function resolveSelect(selectorName) { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - return { - type: 'RESOLVE_SELECT', - selectorName: selectorName, - args: args - }; -} -var controls = { - API_FETCH: function API_FETCH(_ref) { - var request = _ref.request; - return external_this_wp_apiFetch_default()(request); - }, - SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref2) { - var _registry$select; - - var selectorName = _ref2.selectorName, - args = _ref2.args; - return (_registry$select = registry.select('core'))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); - }; - }), - RESOLVE_SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref3) { - var _registry$__experimen; - - var selectorName = _ref3.selectorName, - args = _ref3.args; - return (_registry$__experimen = registry.__experimentalResolveSelect('core'))[selectorName].apply(_registry$__experimen, Object(toConsumableArray["a" /* default */])(args)); - }; - }) -}; -/* harmony default export */ var build_module_controls = (controls); - // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/actions.js -var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_editEntityRecord), - _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(undo), - _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(redo), - _marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(saveEntityRecord), - _marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(saveEditedEntityRecord); +var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(deleteEntityRecord), + _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_editEntityRecord), + _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(undo), + _marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(redo), + _marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(saveEntityRecord), + _marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(saveEditedEntityRecord); function build_module_actions_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; } @@ -1299,11 +1248,16 @@ function build_module_actions_objectSpread(target) { for (var i = 1; i < argumen */ /** - * Internal dependencies + * WordPress dependencies */ +/** + * Internal dependencies + */ + + /** * Returns an action object used in signalling that authors have been received. @@ -1368,7 +1322,7 @@ function receiveEntityRecords(kind, name, records, query) { // on the server. if (kind === 'postType') { records = Object(external_this_lodash_["castArray"])(records).map(function (record) { - return record.status === 'auto-draft' ? build_module_actions_objectSpread({}, record, { + return record.status === 'auto-draft' ? build_module_actions_objectSpread(build_module_actions_objectSpread({}, record), {}, { title: '' }) : record; }); @@ -1382,7 +1336,7 @@ function receiveEntityRecords(kind, name, records, query) { action = receiveItems(records); } - return build_module_actions_objectSpread({}, action, { + return build_module_actions_objectSpread(build_module_actions_objectSpread({}, action), {}, { kind: kind, name: name, invalidateCache: invalidateCache @@ -1433,6 +1387,96 @@ function receiveEmbedPreview(url, preview) { preview: preview }; } +/** + * Action triggered to delete an entity record. + * + * @param {string} kind Kind of the deleted entity. + * @param {string} name Name of the deleted entity. + * @param {string} recordId Record ID of the deleted entity. + * @param {?Object} query Special query parameters for the DELETE API call. + */ + +function deleteEntityRecord(kind, name, recordId, query) { + var entities, entity, error, deletedRecord, path; + return external_this_regeneratorRuntime_default.a.wrap(function deleteEntityRecord$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return getKindEntities(kind); + + case 2: + entities = _context.sent; + entity = Object(external_this_lodash_["find"])(entities, { + kind: kind, + name: name + }); + deletedRecord = false; + + if (entity) { + _context.next = 7; + break; + } + + return _context.abrupt("return"); + + case 7: + _context.next = 9; + return { + type: 'DELETE_ENTITY_RECORD_START', + kind: kind, + name: name, + recordId: recordId + }; + + case 9: + _context.prev = 9; + path = "".concat(entity.baseURL, "/").concat(recordId); + + if (query) { + path = Object(external_this_wp_url_["addQueryArgs"])(path, query); + } + + _context.next = 14; + return Object(external_this_wp_dataControls_["apiFetch"])({ + path: path, + method: 'DELETE' + }); + + case 14: + deletedRecord = _context.sent; + _context.next = 17; + return removeItems(kind, name, recordId, true); + + case 17: + _context.next = 22; + break; + + case 19: + _context.prev = 19; + _context.t0 = _context["catch"](9); + error = _context.t0; + + case 22: + _context.next = 24; + return { + type: 'DELETE_ENTITY_RECORD_FINISH', + kind: kind, + name: name, + recordId: recordId, + error: error + }; + + case 24: + return _context.abrupt("return", deletedRecord); + + case 25: + case "end": + return _context.stop(); + } + } + }, _marked, null, [[9, 19]]); +} /** * Returns an action object that triggers an * edit to an entity record. @@ -1457,21 +1501,21 @@ function actions_editEntityRecord(kind, name, recordId, edits) { record, editedRecord, edit, - _args = arguments; + _args2 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function editEntityRecord$(_context) { + return external_this_regeneratorRuntime_default.a.wrap(function editEntityRecord$(_context2) { while (1) { - switch (_context.prev = _context.next) { + switch (_context2.prev = _context2.next) { case 0: - options = _args.length > 4 && _args[4] !== undefined ? _args[4] : {}; - _context.next = 3; - return controls_select('getEntity', kind, name); + options = _args2.length > 4 && _args2[4] !== undefined ? _args2[4] : {}; + _context2.next = 3; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEntity', kind, name); case 3: - entity = _context.sent; + entity = _context2.sent; if (entity) { - _context.next = 6; + _context2.next = 6; break; } @@ -1479,16 +1523,16 @@ function actions_editEntityRecord(kind, name, recordId, edits) { case 6: _entity$transientEdit = entity.transientEdits, transientEdits = _entity$transientEdit === void 0 ? {} : _entity$transientEdit, _entity$mergedEdits = entity.mergedEdits, mergedEdits = _entity$mergedEdits === void 0 ? {} : _entity$mergedEdits; - _context.next = 9; - return controls_select('getRawEntityRecord', kind, name, recordId); + _context2.next = 9; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getRawEntityRecord', kind, name, recordId); case 9: - record = _context.sent; - _context.next = 12; - return controls_select('getEditedEntityRecord', kind, name, recordId); + record = _context2.sent; + _context2.next = 12; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEditedEntityRecord', kind, name, recordId); case 12: - editedRecord = _context.sent; + editedRecord = _context2.sent; edit = { kind: kind, name: name, @@ -1498,17 +1542,17 @@ function actions_editEntityRecord(kind, name, recordId, edits) { edits: Object.keys(edits).reduce(function (acc, key) { var recordValue = record[key]; var editedRecordValue = editedRecord[key]; - var value = mergedEdits[key] ? build_module_actions_objectSpread({}, editedRecordValue, {}, edits[key]) : edits[key]; + var value = mergedEdits[key] ? build_module_actions_objectSpread(build_module_actions_objectSpread({}, editedRecordValue), edits[key]) : edits[key]; acc[key] = Object(external_this_lodash_["isEqual"])(recordValue, value) ? undefined : value; return acc; }, {}), transientEdits: transientEdits }; - return _context.abrupt("return", build_module_actions_objectSpread({ + return _context2.abrupt("return", build_module_actions_objectSpread(build_module_actions_objectSpread({ type: 'EDIT_ENTITY_RECORD' - }, edit, { + }, edit), {}, { meta: { - undo: !options.undoIgnore && build_module_actions_objectSpread({}, edit, { + undo: !options.undoIgnore && build_module_actions_objectSpread(build_module_actions_objectSpread({}, edit), {}, { // Send the current values for things like the first undo stack entry. edits: Object.keys(edits).reduce(function (acc, key) { acc[key] = editedRecord[key]; @@ -1520,10 +1564,10 @@ function actions_editEntityRecord(kind, name, recordId, edits) { case 15: case "end": - return _context.stop(); + return _context2.stop(); } } - }, _marked); + }, _marked2); } /** * Action triggered to undo the last edit to @@ -1532,58 +1576,17 @@ function actions_editEntityRecord(kind, name, recordId, edits) { function undo() { var undoEdit; - return external_this_regeneratorRuntime_default.a.wrap(function undo$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return controls_select('getUndoEdit'); - - case 2: - undoEdit = _context2.sent; - - if (undoEdit) { - _context2.next = 5; - break; - } - - return _context2.abrupt("return"); - - case 5: - _context2.next = 7; - return build_module_actions_objectSpread({ - type: 'EDIT_ENTITY_RECORD' - }, undoEdit, { - meta: { - isUndo: true - } - }); - - case 7: - case "end": - return _context2.stop(); - } - } - }, _marked2); -} -/** - * Action triggered to redo the last undoed - * edit to an entity record, if any. - */ - -function redo() { - var redoEdit; - return external_this_regeneratorRuntime_default.a.wrap(function redo$(_context3) { + return external_this_regeneratorRuntime_default.a.wrap(function undo$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; - return controls_select('getRedoEdit'); + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getUndoEdit'); case 2: - redoEdit = _context3.sent; + undoEdit = _context3.sent; - if (redoEdit) { + if (undoEdit) { _context3.next = 5; break; } @@ -1592,11 +1595,11 @@ function redo() { case 5: _context3.next = 7; - return build_module_actions_objectSpread({ + return build_module_actions_objectSpread(build_module_actions_objectSpread({ type: 'EDIT_ENTITY_RECORD' - }, redoEdit, { + }, undoEdit), {}, { meta: { - isRedo: true + isUndo: true } }); @@ -1607,6 +1610,47 @@ function redo() { } }, _marked3); } +/** + * Action triggered to redo the last undoed + * edit to an entity record, if any. + */ + +function redo() { + var redoEdit; + return external_this_regeneratorRuntime_default.a.wrap(function redo$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + _context4.next = 2; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getRedoEdit'); + + case 2: + redoEdit = _context4.sent; + + if (redoEdit) { + _context4.next = 5; + break; + } + + return _context4.abrupt("return"); + + case 5: + _context4.next = 7; + return build_module_actions_objectSpread(build_module_actions_objectSpread({ + type: 'EDIT_ENTITY_RECORD' + }, redoEdit), {}, { + meta: { + isRedo: true + } + }); + + case 7: + case "end": + return _context4.stop(); + } + } + }, _marked4); +} /** * Forces the creation of a new undo level. * @@ -1654,31 +1698,31 @@ function saveEntityRecord(kind, name, record) { data, newRecord, _data, - _args4 = arguments; + _args5 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function saveEntityRecord$(_context4) { + return external_this_regeneratorRuntime_default.a.wrap(function saveEntityRecord$(_context5) { while (1) { - switch (_context4.prev = _context4.next) { + switch (_context5.prev = _context5.next) { case 0: - _ref = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : { + _ref = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : { isAutosave: false }, _ref$isAutosave = _ref.isAutosave, isAutosave = _ref$isAutosave === void 0 ? false : _ref$isAutosave; - _context4.next = 3; + _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: entityIdKey = entity.key || DEFAULT_ENTITY_KEY; @@ -1689,25 +1733,25 @@ function saveEntityRecord(kind, name, record) { case 10: if (!(_i < _Object$entries.length)) { - _context4.next = 24; + _context5.next = 24; break; } _Object$entries$_i = Object(slicedToArray["a" /* default */])(_Object$entries[_i], 2), key = _Object$entries$_i[0], value = _Object$entries$_i[1]; if (!(typeof value === 'function')) { - _context4.next = 21; + _context5.next = 21; break; } - _context4.t0 = value; - _context4.next = 16; - return controls_select('getEditedEntityRecord', kind, name, recordId); + _context5.t0 = value; + _context5.next = 16; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEditedEntityRecord', kind, name, recordId); case 16: - _context4.t1 = _context4.sent; - evaluatedValue = (0, _context4.t0)(_context4.t1); - _context4.next = 20; + _context5.t1 = _context5.sent; + evaluatedValue = (0, _context5.t0)(_context5.t1); + _context5.next = 20; return actions_editEntityRecord(kind, name, recordId, Object(defineProperty["a" /* default */])({}, key, evaluatedValue), { undoIgnore: true }); @@ -1717,11 +1761,11 @@ function saveEntityRecord(kind, name, record) { case 21: _i++; - _context4.next = 10; + _context5.next = 10; break; case 24: - _context4.next = 26; + _context5.next = 26; return { type: 'SAVE_ENTITY_RECORD_START', kind: kind, @@ -1731,35 +1775,35 @@ function saveEntityRecord(kind, name, record) { }; case 26: - _context4.prev = 26; + _context5.prev = 26; path = "".concat(entity.baseURL).concat(recordId ? '/' + recordId : ''); - _context4.next = 30; - return controls_select('getRawEntityRecord', kind, name, recordId); + _context5.next = 30; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getRawEntityRecord', kind, name, recordId); case 30: - persistedRecord = _context4.sent; + persistedRecord = _context5.sent; if (!isAutosave) { - _context4.next = 55; + _context5.next = 55; break; } - _context4.next = 34; - return controls_select('getCurrentUser'); + _context5.next = 34; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getCurrentUser'); case 34: - currentUser = _context4.sent; + currentUser = _context5.sent; currentUserId = currentUser ? currentUser.id : undefined; - _context4.next = 38; - return controls_select('getAutosave', persistedRecord.type, persistedRecord.id, currentUserId); + _context5.next = 38; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getAutosave', persistedRecord.type, persistedRecord.id, currentUserId); case 38: - autosavePost = _context4.sent; + autosavePost = _context5.sent; // Autosaves need all expected fields to be present. // So we fallback to the previous autosave and then // to the actual persisted entity if the edits don't // have a value. - data = build_module_actions_objectSpread({}, persistedRecord, {}, autosavePost, {}, record); + data = build_module_actions_objectSpread(build_module_actions_objectSpread(build_module_actions_objectSpread({}, persistedRecord), autosavePost), record); data = Object.keys(data).reduce(function (acc, key) { if (['title', 'excerpt', 'content'].includes(key)) { // Edits should be the "raw" attribute values. @@ -1770,22 +1814,22 @@ function saveEntityRecord(kind, name, record) { }, { status: data.status === 'auto-draft' ? 'draft' : data.status }); - _context4.next = 43; - return apiFetch({ + _context5.next = 43; + return Object(external_this_wp_dataControls_["apiFetch"])({ path: "".concat(path, "/autosaves"), method: 'POST', data: data }); case 43: - updatedRecord = _context4.sent; + updatedRecord = _context5.sent; if (!(persistedRecord.id === updatedRecord.id)) { - _context4.next = 51; + _context5.next = 51; break; } - newRecord = build_module_actions_objectSpread({}, persistedRecord, {}, data, {}, updatedRecord); + newRecord = build_module_actions_objectSpread(build_module_actions_objectSpread(build_module_actions_objectSpread({}, persistedRecord), data), updatedRecord); newRecord = Object.keys(newRecord).reduce(function (acc, key) { // These properties are persisted in autosaves. if (['title', 'excerpt', 'content'].includes(key)) { @@ -1802,19 +1846,19 @@ function saveEntityRecord(kind, name, record) { return acc; }, {}); - _context4.next = 49; + _context5.next = 49; return receiveEntityRecords(kind, name, newRecord, undefined, true); case 49: - _context4.next = 53; + _context5.next = 53; break; case 51: - _context4.next = 53; + _context5.next = 53; return receiveAutosaves(persistedRecord.id, updatedRecord); case 53: - _context4.next = 70; + _context5.next = 70; break; case 55: @@ -1824,13 +1868,13 @@ function saveEntityRecord(kind, name, record) { if (kind === 'postType' && persistedRecord && persistedRecord.status === 'auto-draft') { if (!_data.status) { - _data = build_module_actions_objectSpread({}, _data, { + _data = build_module_actions_objectSpread(build_module_actions_objectSpread({}, _data), {}, { status: 'draft' }); } if (!_data.title || _data.title === 'Auto Draft') { - _data = build_module_actions_objectSpread({}, _data, { + _data = build_module_actions_objectSpread(build_module_actions_objectSpread({}, _data), {}, { title: '' }); } @@ -1838,73 +1882,71 @@ function saveEntityRecord(kind, name, record) { // to merge it with the edits and then propagate it to subscribers - _context4.next = 59; - return controls_select('__experimentalGetEntityRecordNoResolver', kind, name, recordId); + _context5.next = 59; + return Object(external_this_wp_dataControls_["syncSelect"])('core', '__experimentalGetEntityRecordNoResolver', kind, name, recordId); case 59: - persistedEntity = _context4.sent; - _context4.next = 62; - return controls_select('getEntityRecordEdits', kind, name, recordId); + persistedEntity = _context5.sent; + _context5.next = 62; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEntityRecordEdits', kind, name, recordId); case 62: - currentEdits = _context4.sent; - _context4.next = 65; - return receiveEntityRecords(kind, name, build_module_actions_objectSpread({}, persistedEntity, {}, _data), undefined, true); + currentEdits = _context5.sent; + _context5.next = 65; + return receiveEntityRecords(kind, name, build_module_actions_objectSpread(build_module_actions_objectSpread({}, persistedEntity), _data), undefined, true); case 65: - _context4.next = 67; - return apiFetch({ + _context5.next = 67; + return Object(external_this_wp_dataControls_["apiFetch"])({ path: path, method: recordId ? 'PUT' : 'POST', data: _data }); case 67: - updatedRecord = _context4.sent; - _context4.next = 70; + updatedRecord = _context5.sent; + _context5.next = 70; return receiveEntityRecords(kind, name, updatedRecord, undefined, true); case 70: - _context4.next = 93; + _context5.next = 91; break; case 72: - _context4.prev = 72; - _context4.t2 = _context4["catch"](26); - error = _context4.t2; // If we got to the point in the try block where we made an optimistic update, + _context5.prev = 72; + _context5.t2 = _context5["catch"](26); + error = _context5.t2; // If we got to the point in the try block where we made an optimistic update, // we need to roll it back here. if (!(persistedEntity && currentEdits)) { - _context4.next = 93; + _context5.next = 91; break; } - _context4.next = 78; + _context5.next = 78; return receiveEntityRecords(kind, name, persistedEntity, undefined, true); case 78: - _context4.t3 = actions_editEntityRecord; - _context4.t4 = kind; - _context4.t5 = name; - _context4.t6 = recordId; - _context4.t7 = build_module_actions_objectSpread; - _context4.t8 = {}; - _context4.t9 = currentEdits; - _context4.t10 = {}; - _context4.next = 88; - return controls_select('getEntityRecordEdits', kind, name, recordId); + _context5.t3 = actions_editEntityRecord; + _context5.t4 = kind; + _context5.t5 = name; + _context5.t6 = recordId; + _context5.t7 = build_module_actions_objectSpread; + _context5.t8 = build_module_actions_objectSpread({}, currentEdits); + _context5.next = 86; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEntityRecordEdits', kind, name, recordId); - case 88: - _context4.t11 = _context4.sent; - _context4.t12 = (0, _context4.t7)(_context4.t8, _context4.t9, _context4.t10, _context4.t11); - _context4.t13 = { + case 86: + _context5.t9 = _context5.sent; + _context5.t10 = (0, _context5.t7)(_context5.t8, _context5.t9); + _context5.t11 = { undoIgnore: true }; - _context4.next = 93; - return (0, _context4.t3)(_context4.t4, _context4.t5, _context4.t6, _context4.t12, _context4.t13); + _context5.next = 91; + return (0, _context5.t3)(_context5.t4, _context5.t5, _context5.t6, _context5.t10, _context5.t11); - case 93: - _context4.next = 95; + case 91: + _context5.next = 93; return { type: 'SAVE_ENTITY_RECORD_FINISH', kind: kind, @@ -1914,15 +1956,15 @@ function saveEntityRecord(kind, name, record) { isAutosave: isAutosave }; - case 95: - return _context4.abrupt("return", updatedRecord); + case 93: + return _context5.abrupt("return", updatedRecord); - case 96: + case 94: case "end": - return _context4.stop(); + return _context5.stop(); } } - }, _marked4, null, [[26, 72]]); + }, _marked5, null, [[26, 72]]); } /** * Action triggered to save an entity record's edits. @@ -1935,38 +1977,38 @@ function saveEntityRecord(kind, name, record) { function saveEditedEntityRecord(kind, name, recordId, options) { var edits, record; - return external_this_regeneratorRuntime_default.a.wrap(function saveEditedEntityRecord$(_context5) { + return external_this_regeneratorRuntime_default.a.wrap(function saveEditedEntityRecord$(_context6) { while (1) { - switch (_context5.prev = _context5.next) { + switch (_context6.prev = _context6.next) { case 0: - _context5.next = 2; - return controls_select('hasEditsForEntityRecord', kind, name, recordId); + _context6.next = 2; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'hasEditsForEntityRecord', kind, name, recordId); case 2: - if (_context5.sent) { - _context5.next = 4; + if (_context6.sent) { + _context6.next = 4; break; } - return _context5.abrupt("return"); + return _context6.abrupt("return"); case 4: - _context5.next = 6; - return controls_select('getEntityRecordNonTransientEdits', kind, name, recordId); + _context6.next = 6; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEntityRecordNonTransientEdits', kind, name, recordId); case 6: - edits = _context5.sent; + edits = _context6.sent; record = build_module_actions_objectSpread({ id: recordId }, edits); - return _context5.delegateYield(saveEntityRecord(kind, name, record, options), "t0", 9); + return _context6.delegateYield(saveEntityRecord(kind, name, record, options), "t0", 9); case 9: case "end": - return _context5.stop(); + return _context6.stop(); } } - }, _marked5); + }, _marked6); } /** * Returns an action object used in signalling that Upload permissions have been received. @@ -2034,14 +2076,19 @@ var entities_marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.ma */ + /** * Internal dependencies */ - var DEFAULT_ENTITY_KEY = 'id'; var defaultEntities = [{ + label: Object(external_this_wp_i18n_["__"])('Base'), + name: '__unstableBase', + kind: 'root', + baseURL: '' +}, { label: Object(external_this_wp_i18n_["__"])('Site'), name: 'site', kind: 'root', @@ -2069,14 +2116,14 @@ var defaultEntities = [{ plural: 'taxonomies', label: Object(external_this_wp_i18n_["__"])('Taxonomy') }, { - name: 'widgetArea', + name: 'sidebar', kind: 'root', - baseURL: '/__experimental/widget-areas', - plural: 'widgetAreas', + baseURL: '/__experimental/sidebars', + plural: 'sidebars', transientEdits: { blocks: true }, - label: Object(external_this_wp_i18n_["__"])('Widget area') + label: Object(external_this_wp_i18n_["__"])('Widget areas') }, { label: Object(external_this_wp_i18n_["__"])('User'), name: 'user', @@ -2129,7 +2176,7 @@ function loadPostTypeEntities() { switch (_context.prev = _context.next) { case 0: _context.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/types?context=edit' }); @@ -2180,7 +2227,7 @@ function loadTaxonomyEntities() { switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/taxonomies?context=edit' }); @@ -2241,7 +2288,7 @@ function getKindEntities(kind) { switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; - return controls_select('getEntitiesByKind', kind); + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'getEntitiesByKind', kind); case 2: entities = _context3.sent; @@ -2285,8 +2332,27 @@ function getKindEntities(kind) { }, entities_marked3); } -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/get-normalized-comma-separable.js +/** + * Given a value which can be specified as one or the other of a comma-separated + * string or an array, returns a value normalized to an array of strings, or + * null if the value cannot be interpreted as either. + * + * @param {string|string[]|*} value + * + * @return {?(string[])} Normalized field value. + */ +function getNormalizedCommaSeparable(value) { + if (typeof value === 'string') { + return value.split(','); + } else if (Array.isArray(value)) { + return value; + } + + return null; +} + +/* harmony default export */ var get_normalized_comma_separable = (getNormalizedCommaSeparable); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/with-weak-map-cache.js /** @@ -2343,10 +2409,13 @@ function withWeakMapCache(fn) { * * @typedef {Object} WPQueriedDataQueryParts * - * @property {number} page The query page (1-based index, default 1). - * @property {number} perPage Items per page for query (default 10). - * @property {string} stableKey An encoded stable string of all non-pagination - * query parameters. + * @property {number} page The query page (1-based index, default 1). + * @property {number} perPage Items per page for query (default 10). + * @property {string} stableKey An encoded stable string of all non- + * pagination, non-fields query parameters. + * @property {?(string[])} fields Target subset of fields to derive from + * item objects. + * @property {?(number[])} include Specific item IDs to include. */ /** @@ -2366,7 +2435,9 @@ function getQueryParts(query) { var parts = { stableKey: '', page: 1, - perPage: 10 + perPage: 10, + fields: null, + include: null }; // Ensure stable key by sorting keys. Also more efficient for iterating. var keys = Object.keys(query).sort(); @@ -2384,6 +2455,14 @@ function getQueryParts(query) { parts.perPage = Number(value); break; + case 'include': + parts.include = get_normalized_comma_separable(value).map(Number); + break; + + case '_fields': + parts.fields = get_normalized_comma_separable(value); + break; + default: // While it could be any deterministic string, for simplicity's // sake mimic querystring encoding for stable key. @@ -2474,15 +2553,60 @@ function reducer_items() { switch (action.type) { case 'RECEIVE_ITEMS': var key = action.key || DEFAULT_ENTITY_KEY; - return reducer_objectSpread({}, state, {}, action.items.reduce(function (accumulator, value) { + return reducer_objectSpread(reducer_objectSpread({}, state), action.items.reduce(function (accumulator, value) { var itemId = value[key]; accumulator[itemId] = conservativeMapItem(state[itemId], value); return accumulator; }, {})); + + case 'REMOVE_ITEMS': + var newState = Object(external_this_lodash_["omit"])(state, action.itemIds); + return newState; } return state; } +/** + * Reducer tracking item completeness, keyed by ID. A complete item is one for + * which all fields are known. This is used in supporting `_fields` queries, + * where not all properties associated with an entity are necessarily returned. + * In such cases, completeness is used as an indication of whether it would be + * safe to use queried data for a non-`_fields`-limited request. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Next state. + */ + + +function itemIsComplete() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + var type = action.type, + query = action.query, + _action$key = action.key, + key = _action$key === void 0 ? DEFAULT_ENTITY_KEY : _action$key; + + if (type !== 'RECEIVE_ITEMS') { + return state; + } // An item is considered complete if it is received without an associated + // fields query. Ideally, this would be implemented in such a way where the + // complete aggregate of all fields would satisfy completeness. Since the + // fields are not consistent across all entity types, this would require + // introspection on the REST schema for each entity to know which fields + // compose a complete item for that entity. + + + var isCompleteQuery = !query || !Array.isArray(get_query_parts(query).fields); + return reducer_objectSpread(reducer_objectSpread({}, state), action.items.reduce(function (result, item) { + var itemId = item[key]; // Defer to completeness if already assigned. Technically the + // data may be outdated if receiving items for a field subset. + + result[itemId] = state[itemId] || isCompleteQuery; + return result; + }, {})); +} /** * Reducer tracking queries state, keyed by stable query key. Each reducer * query object includes `itemIds` and `requestingPageByPerPage`. @@ -2493,8 +2617,7 @@ function reducer_items() { * @return {Object} Next state. */ - -var queries = Object(external_this_lodash_["flowRight"])([// Limit to matching action type so we don't attempt to replace action on +var receiveQueries = Object(external_this_lodash_["flowRight"])([// Limit to matching action type so we don't attempt to replace action on // an unhandled action. if_matching_action(function (action) { return 'query' in action; @@ -2504,7 +2627,7 @@ replace_action(function (action) { // undefined and a query is not assigned. Avoid attempting to parse // parts. `onSubKey` will omit by lack of `stableKey`. if (action.query) { - return reducer_objectSpread({}, action, {}, get_query_parts(action.query)); + return reducer_objectSpread(reducer_objectSpread({}, action), get_query_parts(action.query)); } return action; @@ -2516,8 +2639,8 @@ on_sub_key('stableKey')])(function () { var type = action.type, page = action.page, perPage = action.perPage, - _action$key = action.key, - key = _action$key === void 0 ? DEFAULT_ENTITY_KEY : _action$key; + _action$key2 = action.key, + key = _action$key2 === void 0 ? DEFAULT_ENTITY_KEY : _action$key2; if (type !== 'RECEIVE_ITEMS') { return state; @@ -2525,9 +2648,46 @@ on_sub_key('stableKey')])(function () { return getMergedItemIds(state || [], Object(external_this_lodash_["map"])(action.items, key), page, perPage); }); +/** + * Reducer tracking queries state. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Next state. + */ + +var reducer_queries = function queries() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'RECEIVE_ITEMS': + return receiveQueries(state, action); + + case 'REMOVE_ITEMS': + var newState = reducer_objectSpread({}, state); + + var removedItems = action.itemIds.reduce(function (result, itemId) { + result[itemId] = true; + return result; + }, {}); + Object(external_this_lodash_["forEach"])(newState, function (queryItems, key) { + newState[key] = Object(external_this_lodash_["filter"])(queryItems, function (queryId) { + return !removedItems[queryId]; + }); + }); + return newState; + + default: + return state; + } +}; + /* harmony default export */ var queried_data_reducer = (Object(external_this_wp_data_["combineReducers"])({ items: reducer_items, - queries: queries + itemIsComplete: itemIsComplete, + queries: reducer_queries })); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/reducer.js @@ -2535,9 +2695,9 @@ on_sub_key('stableKey')])(function () { -function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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 _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } @@ -2580,7 +2740,7 @@ function terms() { switch (action.type) { case 'RECEIVE_TERMS': - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.taxonomy, action.terms)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.taxonomy, action.terms)); } return state; @@ -2604,8 +2764,8 @@ function reducer_users() { switch (action.type) { case 'RECEIVE_USER_QUERY': return { - byId: build_module_reducer_objectSpread({}, state.byId, {}, Object(external_this_lodash_["keyBy"])(action.users, 'id')), - queries: build_module_reducer_objectSpread({}, state.queries, Object(defineProperty["a" /* default */])({}, action.queryID, Object(external_this_lodash_["map"])(action.users, function (user) { + byId: build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state.byId), Object(external_this_lodash_["keyBy"])(action.users, 'id')), + queries: build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state.queries), {}, Object(defineProperty["a" /* default */])({}, action.queryID, Object(external_this_lodash_["map"])(action.users, function (user) { return user.id; }))) }; @@ -2688,7 +2848,7 @@ function themes() { switch (action.type) { case 'RECEIVE_CURRENT_THEME': - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.currentTheme.stylesheet, action.currentTheme)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.currentTheme.stylesheet, action.currentTheme)); } return state; @@ -2708,7 +2868,7 @@ function themeSupports() { switch (action.type) { case 'RECEIVE_THEME_SUPPORTS': - return build_module_reducer_objectSpread({}, state, {}, action.themeSupports); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), action.themeSupports); } return state; @@ -2732,7 +2892,7 @@ function reducer_entity(entityConfig) { return action.name && action.kind && action.name === entityConfig.name && action.kind === entityConfig.kind; }), // Inject the entity config into the action. replace_action(function (action) { - return build_module_reducer_objectSpread({}, action, { + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, action), {}, { key: entityConfig.key || DEFAULT_ENTITY_KEY }); })])(Object(external_this_wp_data_["combineReducers"])({ @@ -2792,7 +2952,7 @@ function reducer_entity(entityConfig) { return nextState; case 'EDIT_ENTITY_RECORD': - var nextEdits = build_module_reducer_objectSpread({}, state[action.recordId], {}, action.edits); + var nextEdits = build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state[action.recordId]), action.edits); Object.keys(nextEdits).forEach(function (key) { // Delete cleared edits so that the properties @@ -2801,7 +2961,7 @@ function reducer_entity(entityConfig) { delete nextEdits[key]; } }); - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.recordId, nextEdits)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.recordId, nextEdits)); } return state; @@ -2813,13 +2973,28 @@ function reducer_entity(entityConfig) { switch (action.type) { case 'SAVE_ENTITY_RECORD_START': case 'SAVE_ENTITY_RECORD_FINISH': - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.recordId, { + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.recordId, { pending: action.type === 'SAVE_ENTITY_RECORD_START', error: action.error, isAutosave: action.isAutosave })); } + return state; + }, + deleting: function deleting() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'DELETE_ENTITY_RECORD_START': + case 'DELETE_ENTITY_RECORD_FINISH': + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.recordId, { + pending: action.type === 'DELETE_ENTITY_RECORD_START', + error: action.error + })); + } + return state; } })); @@ -2869,7 +3044,7 @@ var reducer_entities = function entities() { subEntities = _ref2[1]; var kindReducer = Object(external_this_wp_data_["combineReducers"])(subEntities.reduce(function (kindMemo, entityConfig) { - return build_module_reducer_objectSpread({}, kindMemo, Object(defineProperty["a" /* default */])({}, entityConfig.name, reducer_entity(entityConfig))); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, kindMemo), {}, Object(defineProperty["a" /* default */])({}, entityConfig.name, reducer_entity(entityConfig))); }, {})); memo[kind] = kindReducer; return memo; @@ -2921,8 +3096,8 @@ function reducer_undo() { })) { lastEditAction = action; } else { - lastEditAction = build_module_reducer_objectSpread({}, action, { - edits: build_module_reducer_objectSpread({}, lastEditAction && lastEditAction.edits, {}, action.edits) + lastEditAction = build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, action), {}, { + edits: build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, lastEditAction && lastEditAction.edits), action.edits) }); } } @@ -2957,7 +3132,7 @@ function reducer_undo() { return !action.transientEdits[key]; })) { nextState = Object(toConsumableArray["a" /* default */])(state); - nextState.flattenedUndo = build_module_reducer_objectSpread({}, state.flattenedUndo, {}, action.edits); + nextState.flattenedUndo = build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state.flattenedUndo), action.edits); nextState.offset = state.offset; return nextState; } // Clear potential redos, because this only supports linear history. @@ -2972,7 +3147,7 @@ function reducer_undo() { kind: action.meta.undo.kind, name: action.meta.undo.name, recordId: action.meta.undo.recordId, - edits: build_module_reducer_objectSpread({}, state.flattenedUndo, {}, action.meta.undo.edits) + edits: build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state.flattenedUndo), action.meta.undo.edits) }); } // When an edit is a function it's an optimization to avoid running some expensive operation. // We can't rely on the function references being the same so we opt out of comparing them here. @@ -2990,7 +3165,7 @@ function reducer_undo() { kind: action.kind, name: action.name, recordId: action.recordId, - edits: isCreateUndoLevel ? build_module_reducer_objectSpread({}, state.flattenedUndo, {}, action.edits) : action.edits + edits: isCreateUndoLevel ? build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state.flattenedUndo), action.edits) : action.edits }); } @@ -3016,7 +3191,7 @@ function embedPreviews() { case 'RECEIVE_EMBED_PREVIEW': var url = action.url, preview = action.preview; - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, url, preview)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, url, preview)); } return state; @@ -3037,7 +3212,7 @@ function userPermissions() { switch (action.type) { case 'RECEIVE_USER_PERMISSION': - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.key, action.isAllowed)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.key, action.isAllowed)); } return state; @@ -3059,7 +3234,7 @@ function reducer_autosaves() { case 'RECEIVE_AUTOSAVES': var postId = action.postId, autosavesData = action.autosaves; - return build_module_reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, postId, autosavesData)); + return build_module_reducer_objectSpread(build_module_reducer_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, postId, autosavesData)); } return state; @@ -3080,10 +3255,10 @@ function reducer_autosaves() { })); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(42); +var rememo = __webpack_require__(41); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_ = __webpack_require__(35); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/name.js @@ -3096,7 +3271,7 @@ var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(ext var REDUCER_KEY = 'core'; // EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js -var equivalent_key_map = __webpack_require__(126); +var equivalent_key_map = __webpack_require__(106); var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/queried-data/selectors.js @@ -3105,6 +3280,7 @@ var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_k */ + /** * Internal dependencies */ @@ -3132,14 +3308,23 @@ function getQueriedItemsUncached(state, query) { var _getQueryParts = get_query_parts(query), stableKey = _getQueryParts.stableKey, page = _getQueryParts.page, - perPage = _getQueryParts.perPage; + perPage = _getQueryParts.perPage, + include = _getQueryParts.include, + fields = _getQueryParts.fields; - if (!state.queries[stableKey]) { - return null; + var itemIds; + + if (Array.isArray(include) && !stableKey) { + // If the parsed query yields a set of IDs, but otherwise no filtering, + // it's safe to consider targeted item IDs as the include set. This + // doesn't guarantee that those objects have been queried, which is + // accounted for below in the loop `null` return. + itemIds = include; // TODO: Avoid storing the empty stable string in reducer, since it + // can be computed dynamically here always. + } else if (state.queries[stableKey]) { + itemIds = state.queries[stableKey]; } - var itemIds = state.queries[stableKey]; - if (!itemIds) { return null; } @@ -3150,7 +3335,46 @@ function getQueriedItemsUncached(state, query) { for (var i = startOffset; i < endOffset; i++) { var itemId = itemIds[i]; - items.push(state.items[itemId]); + + if (Array.isArray(include) && !include.includes(itemId)) { + continue; + } + + if (!state.items.hasOwnProperty(itemId)) { + return null; + } + + var item = state.items[itemId]; + var filteredItem = void 0; + + if (Array.isArray(fields)) { + filteredItem = {}; + + for (var f = 0; f < fields.length; f++) { + // Abort the entire request if a field is missing from the item. + // This accounts for the fact that queried items are stored by + // stable key without an associated fields query. Other requests + // may have included fewer fields properties. + var field = fields[f].split('.'); + + if (!Object(external_this_lodash_["has"])(item, field)) { + return null; + } + + var value = Object(external_this_lodash_["get"])(item, field); + Object(external_this_lodash_["set"])(filteredItem, field, value); + } + } else { + // If expecting a complete item, validate that completeness, or + // otherwise abort. + if (!state.itemIsComplete[itemId]) { + return null; + } + + filteredItem = item; + } + + items.push(filteredItem); } return items; @@ -3239,6 +3463,9 @@ var isRequestingEmbedPreview = Object(external_this_wp_data_["createRegistrySele */ function getAuthors(state) { + external_this_wp_deprecated_default()("select( 'core' ).getAuthors()", { + alternative: "select( 'core' ).getUsers({ who: 'authors' })" + }); return getUserQueryResults(state, 'authors'); } /** @@ -3300,18 +3527,39 @@ function selectors_getEntity(state, kind, name) { }); } /** - * Returns the Entity's record object by key. + * Returns the Entity's record object by key. Returns `null` if the value is not + * yet received, undefined if the value entity is known to not exist, or the + * entity object if it exists and is received. * - * @param {Object} state State tree - * @param {string} kind Entity kind. - * @param {string} name Entity name. - * @param {number} key Record's key + * @param {Object} state State tree + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {number} key Record's key + * @param {?Object} query Optional query. * * @return {Object?} Record. */ -function getEntityRecord(state, kind, name, key) { - return Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'queriedData', 'items', key]); +function getEntityRecord(state, kind, name, key, query) { + var queriedState = Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'queriedData']); + + if (!queriedState) { + return undefined; + } + + if (query === undefined) { + // If expecting a complete item, validate that completeness. + if (!queriedState.itemIsComplete[key]) { + return undefined; + } + + return queriedState.items[key]; + } + + query = selectors_objectSpread(selectors_objectSpread({}, query), {}, { + include: [key] + }); + return Object(external_this_lodash_["first"])(getQueriedItems(queriedState, query)); } /** * Returns the Entity's record object by key. Doesn't trigger a resolver nor requests the entity from the API if the entity record isn't available in the local state. @@ -3321,7 +3569,7 @@ function getEntityRecord(state, kind, name, key) { * @param {string} name Entity name. * @param {number} key Record's key * - * @return {Object?} Record. + * @return {Object|null} Record. */ function __experimentalGetEntityRecordNoResolver(state, kind, name, key) { @@ -3351,18 +3599,37 @@ var getRawEntityRecord = Object(rememo["a" /* default */])(function (state, kind }, function (state) { return [state.entities.data]; }); +/** + * Returns true if records have been received for the given set of parameters, + * or false otherwise. + * + * @param {Object} state State tree + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {?Object} query Optional terms query. + * + * @return {boolean} Whether entity records have been received. + */ + +function hasEntityRecords(state, kind, name, query) { + return Array.isArray(getEntityRecords(state, kind, name, query)); +} /** * Returns the Entity's records. * - * @param {Object} state State tree - * @param {string} kind Entity kind. - * @param {string} name Entity name. - * @param {?Object} query Optional terms query. + * @param {Object} state State tree + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {?Object} query Optional terms query. * * @return {?Array} Records. */ function getEntityRecords(state, kind, name, query) { + // Queried data state is prepopulated for all known entities. If this is not + // assigned for the given parameters, then it is known to not exist. Thus, a + // return value of an empty array is used instead of `null` (where `null` is + // otherwise used to represent an unknown state). var queriedState = Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'queriedData']); if (!queriedState) { @@ -3391,7 +3658,7 @@ var __experimentalGetDirtyEntityRecords = Object(rememo["a" /* default */])(func if (primaryKeys.length) { var entity = selectors_getEntity(state, kind, name); primaryKeys.forEach(function (primaryKey) { - var entityRecord = getEntityRecord(state, kind, name, primaryKey); + var entityRecord = getEditedEntityRecord(state, kind, name, primaryKey); dirtyRecords.push({ // We avoid using primaryKey because it's transformed into a string // when it's used as an object key. @@ -3484,7 +3751,7 @@ function hasEditsForEntityRecord(state, kind, name, recordId) { */ var getEditedEntityRecord = Object(rememo["a" /* default */])(function (state, kind, name, recordId) { - return selectors_objectSpread({}, getRawEntityRecord(state, kind, name, recordId), {}, getEntityRecordEdits(state, kind, name, recordId)); + return selectors_objectSpread(selectors_objectSpread({}, getRawEntityRecord(state, kind, name, recordId)), getEntityRecordEdits(state, kind, name, recordId)); }, function (state) { return [state.entities.data]; }); @@ -3520,6 +3787,20 @@ function isAutosavingEntityRecord(state, kind, name, recordId) { function isSavingEntityRecord(state, kind, name, recordId) { return Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'saving', recordId, 'pending'], false); } +/** + * Returns true if the specified entity record is deleting, and false otherwise. + * + * @param {Object} state State tree. + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {number} recordId Record ID. + * + * @return {boolean} Whether the entity record is deleting or not. + */ + +function isDeletingEntityRecord(state, kind, name, recordId) { + return Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'deleting', recordId, 'pending'], false); +} /** * Returns the specified entity record's last save error. * @@ -3534,6 +3815,20 @@ function isSavingEntityRecord(state, kind, name, recordId) { function getLastEntitySaveError(state, kind, name, recordId) { return Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'saving', recordId, 'error']); } +/** + * Returns the specified entity record's last delete error. + * + * @param {Object} state State tree. + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {number} recordId Record ID. + * + * @return {Object?} The entity record's save error. + */ + +function getLastEntityDeleteError(state, kind, name, recordId) { + return Object(external_this_lodash_["get"])(state.entities.data, [kind, name, 'deleting', recordId, 'error']); +} /** * Returns the current undo offset for the * entity records edits history. The offset @@ -3774,12 +4069,9 @@ var hasFetchedAutosaves = Object(external_this_wp_data_["createRegistrySelector" var getReferenceByDistinctEdits = Object(rememo["a" /* default */])(function () { return []; }, function (state) { - return [state.undo.length, state.undo.offset]; + return [state.undo.length, state.undo.offset, state.undo.flattenedUndo]; }); -// EXTERNAL MODULE: external {"this":["wp","dataControls"]} -var external_this_wp_dataControls_ = __webpack_require__(36); - // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/if-not-resolved.js @@ -3851,6 +4143,7 @@ var if_not_resolved_ifNotResolved = function ifNotResolved(resolver, selectorNam + function resolvers_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 resolvers_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { resolvers_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 { resolvers_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -3860,7 +4153,7 @@ var resolvers_marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.m resolvers_marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getEntityRecord), resolvers_marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getEntityRecords), resolvers_marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getCurrentTheme), - _marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getThemeSupports), + resolvers_marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getThemeSupports), _marked7 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_getEmbedPreview), _marked8 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_hasUploadPermissions), _marked9 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(resolvers_canUser), @@ -3877,6 +4170,7 @@ var resolvers_marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.m + /** * Internal dependencies */ @@ -3884,7 +4178,6 @@ var resolvers_marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.m - /** * Requests authors from the REST API. */ @@ -3896,7 +4189,7 @@ function resolvers_getAuthors() { switch (_context.prev = _context.next) { case 0: _context.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/users/?who=authors&per_page=-1' }); @@ -3923,7 +4216,7 @@ function resolvers_getCurrentUser() { switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/users/me' }); @@ -3942,15 +4235,20 @@ function resolvers_getCurrentUser() { /** * Requests an entity's record from the REST API. * - * @param {string} kind Entity kind. - * @param {string} name Entity name. - * @param {number} key Record's key + * @param {string} kind Entity kind. + * @param {string} name Entity name. + * @param {number|string} key Record's key + * @param {Object|undefined} query Optional object of query parameters to + * include with request. */ function resolvers_getEntityRecord(kind, name) { var key, + query, entities, entity, + path, + hasRecords, record, _args3 = arguments; return external_this_regeneratorRuntime_default.a.wrap(function getEntityRecord$(_context3) { @@ -3958,10 +4256,11 @@ function resolvers_getEntityRecord(kind, name) { switch (_context3.prev = _context3.next) { case 0: key = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : ''; - _context3.next = 3; + query = _args3.length > 3 ? _args3[3] : undefined; + _context3.next = 4; return getKindEntities(kind); - case 3: + case 4: entities = _context3.sent; entity = Object(external_this_lodash_["find"])(entities, { kind: kind, @@ -3969,24 +4268,68 @@ function resolvers_getEntityRecord(kind, name) { }); if (entity) { - _context3.next = 7; + _context3.next = 8; break; } return _context3.abrupt("return"); - case 7: - _context3.next = 9; - return apiFetch({ - path: "".concat(entity.baseURL, "/").concat(key, "?context=edit") + case 8: + if (query !== undefined && query._fields) { + // If requesting specific fields, items and query assocation to said + // records are stored by ID reference. Thus, fields must always include + // the ID. + query = resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { + _fields: Object(external_this_lodash_["uniq"])([].concat(Object(toConsumableArray["a" /* default */])(get_normalized_comma_separable(query._fields) || []), [entity.key || DEFAULT_ENTITY_KEY])).join() + }); + } // Disable reason: While true that an early return could leave `path` + // unused, it's important that path is derived using the query prior to + // additional query modifications in the condition below, since those + // modifications are relevant to how the data is tracked in state, and not + // for how the request is made to the REST API. + // eslint-disable-next-line @wordpress/no-unused-vars-before-return + + + path = Object(external_this_wp_url_["addQueryArgs"])(entity.baseURL + '/' + key, resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { + context: 'edit' + })); + + if (!(query !== undefined)) { + _context3.next = 17; + break; + } + + query = resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { + include: [key] + }); // The resolution cache won't consider query as reusable based on the + // fields, so it's tested here, prior to initiating the REST request, + // and without causing `getEntityRecords` resolution to occur. + + _context3.next = 14; + return Object(external_this_wp_dataControls_["syncSelect"])('core', 'hasEntityRecords', kind, name, query); + + case 14: + hasRecords = _context3.sent; + + if (!hasRecords) { + _context3.next = 17; + break; + } + + return _context3.abrupt("return"); + + case 17: + _context3.next = 19; + return Object(external_this_wp_dataControls_["apiFetch"])({ + path: path }); - case 9: + case 19: record = _context3.sent; - _context3.next = 12; - return receiveEntityRecords(kind, name, record); + _context3.next = 22; + return receiveEntityRecords(kind, name, record, query); - case 12: + case 22: case "end": return _context3.stop(); } @@ -4041,20 +4384,47 @@ function resolvers_getEntityRecords(kind, name) { return _context4.abrupt("return"); case 7: - path = Object(external_this_wp_url_["addQueryArgs"])(entity.baseURL, resolvers_objectSpread({}, query, { + if (query._fields) { + // If requesting specific fields, items and query assocation to said + // records are stored by ID reference. Thus, fields must always include + // the ID. + query = resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { + _fields: Object(external_this_lodash_["uniq"])([].concat(Object(toConsumableArray["a" /* default */])(get_normalized_comma_separable(query._fields) || []), [entity.key || DEFAULT_ENTITY_KEY])).join() + }); + } + + path = Object(external_this_wp_url_["addQueryArgs"])(entity.baseURL, resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { context: 'edit' })); - _context4.next = 10; - return apiFetch({ + _context4.t0 = Object; + _context4.next = 12; + return Object(external_this_wp_dataControls_["apiFetch"])({ path: path }); - case 10: - records = _context4.sent; - _context4.next = 13; - return receiveEntityRecords(kind, name, Object.values(records), query); + case 12: + _context4.t1 = _context4.sent; + records = _context4.t0.values.call(_context4.t0, _context4.t1); - case 13: + // If we request fields but the result doesn't contain the fields, + // explicitely set these fields as "undefined" + // that way we consider the query "fullfilled". + if (query._fields) { + records = records.map(function (record) { + query._fields.split(',').forEach(function (field) { + if (!record.hasOwnProperty(field)) { + record[field] = undefined; + } + }); + + return record; + }); + } + + _context4.next = 17; + return receiveEntityRecords(kind, name, records, query); + + case 17: case "end": return _context4.stop(); } @@ -4063,7 +4433,7 @@ function resolvers_getEntityRecords(kind, name) { } resolvers_getEntityRecords.shouldInvalidate = function (action, kind, name) { - return action.type === 'RECEIVE_ITEMS' && action.invalidateCache && kind === action.kind && name === action.name; + return (action.type === 'RECEIVE_ITEMS' || action.type === 'REMOVE_ITEMS') && action.invalidateCache && kind === action.kind && name === action.name; }; /** * Requests the current theme. @@ -4077,7 +4447,7 @@ function resolvers_getCurrentTheme() { switch (_context5.prev = _context5.next) { case 0: _context5.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/themes?status=active' }); @@ -4104,7 +4474,7 @@ function resolvers_getThemeSupports() { switch (_context6.prev = _context6.next) { case 0: _context6.next = 2; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/themes?status=active' }); @@ -4118,7 +4488,7 @@ function resolvers_getThemeSupports() { return _context6.stop(); } } - }, _marked6); + }, resolvers_marked6); } /** * Requests a preview from the from the Embed API. @@ -4134,7 +4504,7 @@ function resolvers_getEmbedPreview(url) { case 0: _context7.prev = 0; _context7.next = 3; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: Object(external_this_wp_url_["addQueryArgs"])('/oembed/1.0/proxy', { url: url }) @@ -4221,7 +4591,7 @@ function resolvers_canUser(action, resource, id) { path = id ? "/wp/v2/".concat(resource, "/").concat(id) : "/wp/v2/".concat(resource); _context9.prev = 5; _context9.next = 8; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: path, // Ideally this would always be an OPTIONS request, but unfortunately there's // a bug in the REST API which causes the Allow header to not be sent on @@ -4272,20 +4642,20 @@ function resolvers_canUser(action, resource, id) { */ function resolvers_getAutosaves(postType, postId) { - var _yield$resolveSelect, restBase, autosaves; + var _yield$select, restBase, autosaves; return external_this_regeneratorRuntime_default.a.wrap(function getAutosaves$(_context10) { while (1) { switch (_context10.prev = _context10.next) { case 0: _context10.next = 2; - return resolveSelect('getPostType', postType); + return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postType); case 2: - _yield$resolveSelect = _context10.sent; - restBase = _yield$resolveSelect.rest_base; + _yield$select = _context10.sent; + restBase = _yield$select.rest_base; _context10.next = 6; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: "/wp/v2/".concat(restBase, "/").concat(postId, "/autosaves?context=edit") }); @@ -4323,7 +4693,7 @@ function resolvers_getAutosave(postType, postId) { switch (_context11.prev = _context11.next) { case 0: _context11.next = 2; - return resolveSelect('getAutosaves', postType, postId); + return Object(external_this_wp_dataControls_["select"])('core', 'getAutosaves', postType, postId); case 2: case "end": @@ -4337,7 +4707,7 @@ function resolvers_getAutosave(postType, postId) { var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); +var external_this_wp_blocks_ = __webpack_require__(11); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/entity-provider.js @@ -4360,7 +4730,7 @@ function entity_provider_objectSpread(target) { for (var i = 1; i < arguments.le -var entity_provider_entities = entity_provider_objectSpread({}, defaultEntities.reduce(function (acc, entity) { +var entity_provider_entities = entity_provider_objectSpread(entity_provider_objectSpread({}, defaultEntities.reduce(function (acc, entity) { if (!acc[entity.kind]) { acc[entity.kind] = {}; } @@ -4369,7 +4739,7 @@ var entity_provider_entities = entity_provider_objectSpread({}, defaultEntities. context: Object(external_this_wp_element_["createContext"])() }; return acc; -}, {}), {}, kinds.reduce(function (acc, kind) { +}, {})), kinds.reduce(function (acc, kind) { acc[kind.name] = {}; return acc; }, {})); @@ -4554,6 +4924,7 @@ function build_module_objectSpread(target) { for (var i = 1; i < arguments.lengt * WordPress dependencies */ + /** * Internal dependencies */ @@ -4563,7 +4934,6 @@ function build_module_objectSpread(target) { for (var i = 1; i < arguments.lengt - // The entity selectors/resolvers and actions are shortcuts to their generic equivalents // (getEntityRecord, getEntityRecords, updateEntityRecord, updateEntityRecordss) // Instead of getEntityRecord, the consumer could use more user-frieldly named selector: getPostType, getTaxonomy... @@ -4625,26 +4995,23 @@ var entityActions = defaultEntities.reduce(function (result, entity) { return saveEntityRecord(kind, name, key); }; + result[entities_getMethodName(kind, name, 'delete')] = function (key, query) { + return deleteEntityRecord(kind, name, key, query); + }; + return result; }, {}); Object(external_this_wp_data_["registerStore"])(REDUCER_KEY, { reducer: build_module_reducer, - controls: build_module_controls, - actions: build_module_objectSpread({}, build_module_actions_namespaceObject, {}, entityActions), - selectors: build_module_objectSpread({}, build_module_selectors_namespaceObject, {}, entitySelectors), - resolvers: build_module_objectSpread({}, resolvers_namespaceObject, {}, entityResolvers) + controls: external_this_wp_dataControls_["controls"], + actions: build_module_objectSpread(build_module_objectSpread({}, build_module_actions_namespaceObject), entityActions), + selectors: build_module_objectSpread(build_module_objectSpread({}, build_module_selectors_namespaceObject), entitySelectors), + resolvers: build_module_objectSpread(build_module_objectSpread({}, resolvers_namespaceObject), entityResolvers) }); -/***/ }), - -/***/ 45: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - /***/ }), /***/ 5: diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js index a7643ccf22..44b2eec267 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 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=448)}({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.blocks}()},126: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 a(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,o){null!==o&&"object"===n(o)&&(a=a[1]),e.call(r,a,o,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}}])&&a(t.prototype,r),c&&a(t,c),e}();e.exports=c},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(38);var a=r(29),o=r(39);function c(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 c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(26);var a=r(35),o=r(29);function c(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}()},24:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},26: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,a=n[e];if(void 0===a)return r;var o=t(r[a],n);return o===r[a]?r:O({},r,Object(c.a)({},a,o))}}},g=r(24),E=r.n(g),m=r(1);function j(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(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return w({},x(e),{query:t})}var k=r(45),_=r.n(k);function P(e){return{type:"API_FETCH",request:e}}function T(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(f.castArray)(r).map((function(e){return"auto-draft"===e.status?N({},e,{title:""}):e}))),N({},n?R(r,n):x(r),{kind:e,name:t,invalidateCache:a})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function H(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function W(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function K(e,t,r,n){var a,o,c,u,i,s,d,l,p,b=arguments;return E.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return a=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,T("getEntity",e,t);case 3:if(o=v.sent){v.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return c=o.transientEdits,u=void 0===c?{}:c,i=o.mergedEdits,s=void 0===i?{}:i,v.next=9,T("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,T("getEditedEntityRecord",e,t,r);case 12:return l=v.sent,p={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],a=l[t],o=s[t]?N({},a,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:u},v.abrupt("return",N({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&N({},p,{edits:Object.keys(n).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return v.stop()}}),A)}function Q(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,N({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),D)}function G(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,N({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),U)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function $(e,t,r){var n,a,o,u,s,d,l,p,b,v,y,O,h,g,m,j,w,x,R,k,_,S,I,A,D,U=arguments;return E.a.wrap((function(E){for(;;)switch(E.prev=E.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},a=n.isAutosave,o=void 0!==a&&a,E.next=3,fe(e);case 3:if(u=E.sent,s=Object(f.find)(u,{kind:e,name:t})){E.next=7;break}return E.abrupt("return");case 7:d=s.key||ae,l=r[d],p=0,b=Object.entries(r);case 10:if(!(p2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(f.find)(oe,{kind:e,name:t}),o="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),c=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),u=n&&a.plural?Object(f.upperFirst)(Object(f.camelCase)(a.plural)):c;return"".concat(r).concat(o).concat(u)};function fe(e){var t,r;return E.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,T("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(f.find)(ce,{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,Y(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),ne)}var de=r(31);var le=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(f.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n=a&&u0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,a=t.perPage,o=t.key,c=void 0===o?ae:o;return"RECEIVE_ITEMS"!==r?e:ve(e||[],Object(f.map)(t.items,c),n,a)})),Oe=Object(u.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||ae;return be({},e,{},t.items.reduce((function(t,n){var a=n[r];return t[a]=v(e[a],n),t}),{}))}return e},queries:ye});function he(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return ge(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f: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.")}var n,a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function ge(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=me({},e),a=he(t.items);try{var o=function(){var e=r.value,a=e[t.key],o=n[a];if(!o)return"continue";var c=Object.keys(o).reduce((function(t,r){return Object(f.isEqual)(o[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=o[r]),t}),{});Object.keys(c).length?n[a]=c:delete n[a]};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return n;case"EDIT_ENTITY_RECORD":var u=me({},e[t.recordId],{},t.edits);return Object.keys(u).forEach((function(e){void 0===u[e]&&delete u[e]})),me({},e,Object(c.a)({},t.recordId,u))}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 me({},e,Object(c.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e}}))}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}var xe,Re=[];Re.offset=0;var ke=Object(u.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 me({},e,Object(c.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:me({},e.byId,{},Object(f.keyBy)(t.users,"id")),queries:me({},e.queries,Object(c.a)({},t.queryID,Object(f.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 me({},e,Object(c.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 me({},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=we(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(f.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(i.a)(t,2),n=r[0],a=r[1],o=Object(u.combineReducers)(a.reduce((function(e,t){return me({},e,Object(c.a)({},t.name,je(t)))}),{}));return e[n]=o,e}),{}))}var o=n(e.data,t);return o===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:o,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,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,a=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=xe:a||(xe=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:me({},t,{edits:me({},xe&&xe.edits,{},t.edits)})),a){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=xe}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(s.a)(e)).flattenedUndo=me({},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:me({},e.flattenedUndo,{},t.meta.undo.edits)});var o=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),c=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return l()(o,c)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?me({},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 me({},e,Object(c.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 me({},e,Object(c.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 me({},e,Object(c.a)({},r,n))}return e}}),_e=r(42),Pe=r(37),Te=r.n(Pe),Se=r(126),Ie=r.n(Se),Ae=new WeakMap;function De(e,t){var r=le(t),n=r.stableKey,a=r.page,o=r.perPage;if(!e.queries[n])return null;var c=e.queries[n];if(!c)return null;for(var u=-1===o?0:(a-1)*o,i=-1===o?c.length:Math.min(u+o,c.length),s=[],f=u;f1&&void 0!==arguments[1]?arguments[1]:{},r=Ae.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Ae.set(e,r);var a=De(e,t);return r.set(t,a),a}));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}var Me=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function Ve(e){return Le(e,"authors")}function Ne(e){return e.currentUser}var Le=Object(_e.a)((function(e,t){var r=e.users.queries[t];return Object(f.map)(r,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function qe(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function Ye(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Be(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"queriedData","items",n])}function Fe(e,t,r,n){return Be(e,t,r,n)}var He=Object(_e.a)((function(e,t,r,n){var a=Be(e,t,r,n);return a&&Object.keys(a).reduce((function(e,t){return e[t]=Object(f.get)(a[t],"raw",a[t]),e}),{})}),(function(e){return[e.entities.data]}));function We(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return a?Ue(a,n):[]}var Ke=Object(_e.a)((function(e){var t=e.entities.data,r=[];return Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(a){var o=Object.keys(t[n][a].edits).filter((function(t){return ze(e,n,a,t)}));if(o.length){var c=Ye(e,n,a);o.forEach((function(t){var o=Be(e,n,a,t);r.push({key:o[c.key||ae],title:c.getTitle?c.getTitle(o):"",name:a,kind:n})}))}}))})),r}),(function(e){return[e.entities.data]}));function Qe(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var Ge=Object(_e.a)((function(e,t,r,n){var a=(Ye(e,t,r)||{}).transientEdits,o=Qe(e,t,r,n)||{};return a?Object.keys(o).reduce((function(e,t){return a[t]||(e[t]=o[t]),e}),{}):o}),(function(e){return[e.entities.config,e.entities.data]}));function ze(e,t,r,n){return Je(e,t,r,n)||Object.keys(Ge(e,t,r,n)).length>0}var $e=Object(_e.a)((function(e,t,r,n){return function(e){for(var t=1;t'+t+"";return!!r&&r.html===n}function st(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(ft(e,"create","media"),!0)}function ft(e,t,r,n){var a=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",a])}function dt(e,t,r){return e.autosaves[r]}function lt(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(f.find)(a,{author:n})}}var pt=Object(u.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),bt=Object(_e.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset]})),vt=r(36),yt=function(e,t){return E.a.mark((function r(){var n,a,o,c=arguments;return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=c.length,a=new Array(n),o=0;o2&&void 0!==c[2]?c[2]:"",u.next=3,fe(e);case 3:if(n=u.sent,a=Object(f.find)(n,{kind:e,name:t})){u.next=7;break}return u.abrupt("return");case 7:return u.next=9,P({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 9:return o=u.sent,u.next=12,B(e,t,o);case 12:case"end":return u.stop()}}),mt)}var Dt=yt(At,"getEntityRecord"),Ut=yt(Dt,"getRawEntityRecord");function Ct(e,t){var r,n,a,o,c,u=arguments;return E.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},i.next=3,fe(e);case 3:if(n=i.sent,a=Object(f.find)(n,{kind:e,name:t})){i.next=7;break}return i.abrupt("return");case 7:return o=Object(de.addQueryArgs)(a.baseURL,ht({},r,{context:"edit"})),i.next=10,P({path:o});case 10:return c=i.sent,i.next=13,B(e,t,Object.values(c),r);case 13:case"end":return i.stop()}}),jt)}function Mt(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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()}}),wt)}function Vt(){var e;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,H(e[0].theme_supports);case 5:case"end":return t.stop()}}),xt)}function Nt(e){var t;return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({path:Object(de.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,W(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,W(e,!1);case 12:case"end":return r.stop()}}),Rt,null,[[0,8]])}function Lt(){return E.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(qt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),kt)}function qt(e,t,r){var n,a,o,c,u,i;return E.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,P({path:a,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return c=Object(f.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(f.get)(o,["headers","Allow"],""),u=Object(f.compact)([e,t,r]).join("/"),i=Object(f.includes)(c,n),s.next=19,Z(u,i);case 19:case"end":return s.stop()}}),_t,null,[[5,11]])}function Yt(e,t){var r,n,a;return E.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,S("getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,P({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=o.sent)||!a.length){o.next=10;break}return o.next=10,ee(t,a);case 10:case"end":return o.stop()}}),Pt)}function Bt(e,t){return E.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,S("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Tt)}Ct.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Ft=r(0),Ht=r(10);function Wt(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 Kt=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,a=r.blocksProp,o=void 0===a?"blocks":a,c=r.contentProp,s=void 0===c?"content":c,f=r.id,d=zt(e,t),l=null!=f?f:d,p=$t(e,t,s,l),b=Object(i.a)(p,2),v=b[0],y=b[1],O=Object(u.useDispatch)("core"),h=O.editEntityRecord;Object(Ft.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var g=Object(Ft.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Ht.parse)(v);return e.length?e:[]}return[]}),[v]),E=$t(e,t,o,l),m=Object(i.a)(E,2),j=m[0],w=void 0===j?g:j,x=m[1],R=Object(Ft.useCallback)((function(e){x(e),y((function(e){var t=e.blocks;return Object(Ht.serialize)(t)}))}),[x,y]);return[w,x,R]}function Jt(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 Zt(e){for(var t=1;t1?t-1:0),c=1;c1?a-1:0),c=1;c1&&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(30),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)()}},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var c=r(37),a=r(30);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}()},24: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))}}},j=r(24),g=r.n(j),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=g.a.mark(H),I=g.a.mark(Q),P=g.a.mark(W),A=g.a.mark(K),D=g.a.mark(z),U=g.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,a,i,o,s;return g.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 Q(e,t,r,n){var c,a,i,o,s,f,l,p,b,v=arguments;return g.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 g.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 g.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,a,o,f,l,p,b,v,y,O,h,E,j,m,w,_,R,k,x,T,S,I,P,A,U=arguments;return g.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},c=n.isAutosave,a=void 0!==c&&c,g.next=3,se(e);case 3:if(o=g.sent,f=Object(d.find)(o,{kind:e,name:t})){g.next=7;break}return g.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 g.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=je({},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=je(je({},e[t.recordId]),t.edits);return Object.keys(o).forEach((function(e){void 0===o[e]&&delete o[e]})),je(je({},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 je(je({},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 je(je({},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 je(je({},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:je(je({},e.byId),Object(d.keyBy)(t.users,"id")),queries:je(je({},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 je(je({},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 je(je({},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 je(je({},e),{},Object(i.a)({},t.name,ge(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:je(je({},t),{},{edits:je(je({},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=je(je({},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:je(je({},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?je(je({},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 je(je({},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 je(je({},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 je(je({},e),{},Object(i.a)({},r,n))}return e}}),ke=r(41),xe=r(35),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,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 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],{}),a=c.pending,i=c.isAutosave;return Boolean(a&&i)}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 at(e){return e.undo[e.undo.length+nt(e)]}function it(e){return Boolean(ct(e))}function ot(e){return Boolean(at(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 g.a.mark((function r(){var n,c,a,i=arguments;return g.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()}}),wt)}var Ct=ht(Ut,"getEntityRecord"),Mt=ht(Ct,"getRawEntityRecord");function Vt(e,t){var r,n,c,a,i,o=arguments;return g.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()}}),_t)}function Nt(){var e;return g.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 g.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 g.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 g.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,a,i,o,s;return g.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()}}),St,null,[[5,11]])}function Bt(e,t){var r,n,c;return g.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()}}),It)}function Ht(e,t){return g.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,a=void 0===c?"blocks":c,i=r.contentProp,u=void 0===i?"content":i,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]),j=Zt(e,t,a,l),g=Object(s.a)(j,2),m=g[0],w=void 0===m?E:m,_=g[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),i=1;i1?c-1:0),i=1;i 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { args[_key2 - 2] = arguments[_key2]; } diff --git a/wp-includes/js/dist/data-controls.min.js b/wp-includes/js/dist/data-controls.min.js index 98916bc378..250c9d7013 100644 --- a/wp-includes/js/dist/data-controls.min.js +++ b/wp-includes/js/dist/data-controls.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.dataControls=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=414)}({18:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(26);var o=r(35),u=r(29);function c(t){return function(t){if(Array.isArray(t))return Object(n.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.")}()}},26: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);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o 0 && arguments[0] !== undefined ? arguments[0] : new equivalent_key_map_default.a(); var action = arguments.length > 1 ? arguments[1] : undefined; @@ -1929,6 +1935,7 @@ function namespace_store_objectSpread(target) { for (var i = 1; i < arguments.le + /** * WordPress dependencies */ @@ -1943,6 +1950,32 @@ function namespace_store_objectSpread(target) { for (var i = 1; i < arguments.le +/** + * Create a cache to track whether resolvers started running or not. + * + * @return {Object} Resolvers Cache. + */ + +function createResolversCache() { + var cache = {}; + return { + isRunning: function isRunning(selectorName, args) { + return cache[selectorName] && cache[selectorName].get(args); + }, + clear: function clear(selectorName, args) { + if (cache[selectorName]) { + cache[selectorName].delete(args); + } + }, + markAsRunning: function markAsRunning(selectorName, args) { + if (!cache[selectorName]) { + cache[selectorName] = new equivalent_key_map_default.a(); + } + + cache[selectorName].set(args, true); + } + }; +} /** * @typedef {WPDataRegistry} WPDataRegistry */ @@ -1959,12 +1992,14 @@ function namespace_store_objectSpread(target) { for (var i = 1; i < arguments.le * @return {Object} Store Object. */ + function createNamespace(key, options, registry) { var reducer = options.reducer; var store = createReduxStore(key, options, registry); + var resolversCache = createResolversCache(); var resolvers; - var actions = mapActions(namespace_store_objectSpread({}, actions_namespaceObject, {}, options.actions), store); - var selectors = mapSelectors(namespace_store_objectSpread({}, Object(external_this_lodash_["mapValues"])(selectors_namespaceObject, function (selector) { + var actions = mapActions(namespace_store_objectSpread(namespace_store_objectSpread({}, actions_namespaceObject), options.actions), store); + var selectors = mapSelectors(namespace_store_objectSpread(namespace_store_objectSpread({}, Object(external_this_lodash_["mapValues"])(selectors_namespaceObject, function (selector) { return function (state) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; @@ -1972,7 +2007,7 @@ function createNamespace(key, options, registry) { return selector.apply(void 0, [state.metadata].concat(args)); }; - }), {}, Object(external_this_lodash_["mapValues"])(options.selectors, function (selector) { + })), Object(external_this_lodash_["mapValues"])(options.selectors, function (selector) { if (selector.isRegistrySelector) { selector.registry = registry; } @@ -1987,7 +2022,7 @@ function createNamespace(key, options, registry) { })), store); if (options.resolvers) { - var result = mapResolvers(options.resolvers, selectors, store); + var result = mapResolvers(options.resolvers, selectors, store, resolversCache); resolvers = result.resolvers; selectors = result.selectors; } @@ -2087,7 +2122,6 @@ function createReduxStore(key, options, registry) { * public facing API. Selectors will get passed the * state as first argument. * @param {Object} store The store to which the selectors should be mapped. - * * @return {Object} Selectors mapped to the provided store. */ @@ -2142,19 +2176,26 @@ function mapActions(actions, store) { * Resolvers are side effects invoked once per argument set of a given selector call, * used in ensuring that the data needs for the selector are satisfied. * - * @param {Object} resolvers Resolvers to register. - * @param {Object} selectors The current selectors to be modified. - * @param {Object} store The redux store to which the resolvers should be mapped. - * @return {Object} An object containing updated selectors and resolvers. + * @param {Object} resolvers Resolvers to register. + * @param {Object} selectors The current selectors to be modified. + * @param {Object} store The redux store to which the resolvers should be mapped. + * @param {Object} resolversCache Resolvers Cache. */ -function mapResolvers(resolvers, selectors, store) { +function mapResolvers(resolvers, selectors, store, resolversCache) { + // The `resolver` can be either a function that does the resolution, or, in more advanced + // cases, an object with a `fullfill` method and other optional methods like `isFulfilled`. + // Here we normalize the `resolver` function to an object with `fulfill` method. var mappedResolvers = Object(external_this_lodash_["mapValues"])(resolvers, function (resolver) { - var _resolver$fulfill = resolver.fulfill, - resolverFulfill = _resolver$fulfill === void 0 ? resolver : _resolver$fulfill; - return namespace_store_objectSpread({}, resolver, { - fulfill: resolverFulfill + if (resolver.fulfill) { + return resolver; + } + + return namespace_store_objectSpread(namespace_store_objectSpread({}, resolver), {}, { + // copy the enumerable properties of the resolver function + fulfill: resolver // add the fulfill method + }); }); @@ -2176,46 +2217,61 @@ function mapResolvers(resolvers, selectors, store) { } function _fulfillSelector() { - _fulfillSelector = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + _fulfillSelector = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2() { var state, _store$__unstableOrig, metadata; - return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { while (1) { - switch (_context.prev = _context.next) { + switch (_context2.prev = _context2.next) { case 0: state = store.getState(); - if (!(typeof resolver.isFulfilled === 'function' && resolver.isFulfilled.apply(resolver, [state].concat(args)))) { - _context.next = 3; + if (!(resolversCache.isRunning(selectorName, args) || typeof resolver.isFulfilled === 'function' && resolver.isFulfilled.apply(resolver, [state].concat(args)))) { + _context2.next = 3; break; } - return _context.abrupt("return"); + return _context2.abrupt("return"); case 3: _store$__unstableOrig = store.__unstableOriginalGetState(), metadata = _store$__unstableOrig.metadata; if (!hasStartedResolution(metadata, selectorName, args)) { - _context.next = 6; + _context2.next = 6; break; } - return _context.abrupt("return"); + return _context2.abrupt("return"); case 6: - store.dispatch(startResolution(selectorName, args)); - _context.next = 9; - return fulfillResolver.apply(void 0, [store, mappedResolvers, selectorName].concat(args)); + resolversCache.markAsRunning(selectorName, args); + setTimeout( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + resolversCache.clear(selectorName, args); + store.dispatch(startResolution(selectorName, args)); + _context.next = 4; + return fulfillResolver.apply(void 0, [store, mappedResolvers, selectorName].concat(args)); - case 9: - store.dispatch(finishResolution(selectorName, args)); + case 4: + store.dispatch(finishResolution(selectorName, args)); - case 10: + case 5: + case "end": + return _context.stop(); + } + } + }, _callee); + }))); + + case 8: case "end": - return _context.stop(); + return _context2.stop(); } } - }, _callee); + }, _callee2); })); return _fulfillSelector.apply(this, arguments); } @@ -2248,48 +2304,48 @@ function fulfillResolver(_x, _x2, _x3) { } function _fulfillResolver() { - _fulfillResolver = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2(store, resolvers, selectorName) { + _fulfillResolver = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee3(store, resolvers, selectorName) { var resolver, _len4, args, _key4, action, - _args2 = arguments; + _args3 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { + return external_this_regeneratorRuntime_default.a.wrap(function _callee3$(_context3) { while (1) { - switch (_context2.prev = _context2.next) { + switch (_context3.prev = _context3.next) { case 0: resolver = Object(external_this_lodash_["get"])(resolvers, [selectorName]); if (resolver) { - _context2.next = 3; + _context3.next = 3; break; } - return _context2.abrupt("return"); + return _context3.abrupt("return"); case 3: - for (_len4 = _args2.length, args = new Array(_len4 > 3 ? _len4 - 3 : 0), _key4 = 3; _key4 < _len4; _key4++) { - args[_key4 - 3] = _args2[_key4]; + for (_len4 = _args3.length, args = new Array(_len4 > 3 ? _len4 - 3 : 0), _key4 = 3; _key4 < _len4; _key4++) { + args[_key4 - 3] = _args3[_key4]; } action = resolver.fulfill.apply(resolver, args); if (!action) { - _context2.next = 8; + _context3.next = 8; break; } - _context2.next = 8; + _context3.next = 8; return store.dispatch(action); case 8: case "end": - return _context2.stop(); + return _context3.stop(); } } - }, _callee2); + }, _callee3); })); return _fulfillResolver.apply(this, arguments); } @@ -2329,12 +2385,12 @@ function createCoreDataStore(registry) { return { getSelectors: function getSelectors() { return ['getIsResolving', 'hasStartedResolution', 'hasFinishedResolution', 'isResolving', 'getCachedResolvers'].reduce(function (memo, selectorName) { - return store_objectSpread({}, memo, Object(defineProperty["a" /* default */])({}, selectorName, getCoreDataSelector(selectorName))); + return store_objectSpread(store_objectSpread({}, memo), {}, Object(defineProperty["a" /* default */])({}, selectorName, getCoreDataSelector(selectorName))); }, {}); }, getActions: function getActions() { return ['startResolution', 'finishResolution', 'invalidateResolution', 'invalidateResolutionForStore', 'invalidateResolutionForStoreSelector'].reduce(function (memo, actionName) { - return store_objectSpread({}, memo, Object(defineProperty["a" /* default */])({}, actionName, getCoreDataAction(actionName))); + return store_objectSpread(store_objectSpread({}, memo), {}, Object(defineProperty["a" /* default */])({}, actionName, getCoreDataAction(actionName))); }, {}); }, subscribe: function subscribe() { @@ -2598,7 +2654,7 @@ function createRegistry() { function use(plugin, options) { - registry = registry_objectSpread({}, registry, {}, plugin(registry, options)); + registry = registry_objectSpread(registry_objectSpread({}, registry), plugin(registry, options)); return registry; } @@ -2626,7 +2682,7 @@ function createRegistry() { /* harmony default export */ var default_registry = (createRegistry()); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_ = __webpack_require__(35); var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/plugins/controls/index.js @@ -2799,7 +2855,7 @@ function createPersistenceInterface(options) { function setData(key, value) { - data = persistence_objectSpread({}, data, Object(defineProperty["a" /* default */])({}, key, value)); + data = persistence_objectSpread(persistence_objectSpread({}, data), {}, Object(defineProperty["a" /* default */])({}, key, value)); storage.setItem(storageKey, JSON.stringify(data)); } @@ -2893,7 +2949,7 @@ function persistencePlugin(registry, pluginOptions) { initialState = persistedState; } - options = persistence_objectSpread({}, options, { + options = persistence_objectSpread(persistence_objectSpread({}, options), {}, { initialState: initialState }); } @@ -2975,7 +3031,7 @@ var esm_extends = __webpack_require__(8); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(9); +var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -3026,7 +3082,7 @@ var useCallback = useCallbackOne; // EXTERNAL MODULE: external {"this":["wp","priorityQueue"]} -var external_this_wp_priorityQueue_ = __webpack_require__(150); +var external_this_wp_priorityQueue_ = __webpack_require__(153); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} var external_this_wp_isShallowEqual_ = __webpack_require__(64); @@ -3723,19 +3779,53 @@ var use_dispatch_useDispatch = function useDispatch(storeName) { /** @typedef {import('./registry').WPDataRegistry} WPDataRegistry */ /** - * Mark a selector as a registry selector. + * Creates a selector function that takes additional curried argument with the + * registry `select` function. While a regular selector has signature + * ```js + * ( state, ...selectorArgs ) => ( result ) + * ``` + * that allows to select data from the store's `state`, a registry selector + * has signature: + * ```js + * ( select ) => ( state, ...selectorArgs ) => ( result ) + * ``` + * that supports also selecting from other registered stores. * - * @param {Function} registrySelector Function receiving a registry object and returning a state selector. + * @example + * ```js + * const getCurrentPostId = createRegistrySelector( ( select ) => ( state ) => { + * return select( 'core/editor' ).getCurrentPostId(); + * } ); * - * @return {Function} marked registry selector. + * const getPostEdits = createRegistrySelector( ( select ) => ( state ) => { + * // calling another registry selector just like any other function + * const postType = getCurrentPostType( state ); + * const postId = getCurrentPostId( state ); + * return select( 'core' ).getEntityRecordEdits( 'postType', postType, postId ); + * } ); + * ``` + * + * Note how the `getCurrentPostId` selector can be called just like any other function, + * (it works even inside a regular non-registry selector) and we don't need to pass the + * registry as argument. The registry binding happens automatically when registering the selector + * with a store. + * + * @param {Function} registrySelector Function receiving a registry `select` + * function and returning a state selector. + * + * @return {Function} Registry selector that can be registered with a store. */ function createRegistrySelector(registrySelector) { + // create a selector function that is bound to the registry referenced by `selector.registry` + // and that has the same API as a regular selector. Binding it in such a way makes it + // possible to call the selector directly from another selector. var selector = function selector() { return registrySelector(selector.registry.select).apply(void 0, arguments); }; /** - * Flag indicating to selector registration mapping that the selector should + * Flag indicating that the selector is a registry selector that needs the correct registry + * reference to be assigned to `selecto.registry` to make it work correctly. * be mapped as a registry selector. * * @type {boolean} @@ -3744,8 +3834,9 @@ function createRegistrySelector(registrySelector) { selector.isRegistrySelector = true; /** - * Registry on which to call `select`, stubbed for non-standard usage to - * use the default registry. + * Registry on which to call `select`. The `defaultRegistry` value is overwritten with + * the actual registry when the selector is registered with a store. Therefore, it's never + * used and is assigned here only to satisfy the type constraint of the `registry` field. * * @type {WPDataRegistry} */ @@ -3754,11 +3845,24 @@ function createRegistrySelector(registrySelector) { return selector; } /** - * Mark a control as a registry control. + * Creates a control function that takes additional curried argument with the `registry` object. + * While a regular control has signature + * ```js + * ( action ) => ( iteratorOrPromise ) + * ``` + * where the control works with the `action` that it's bound to, a registry control has signature: + * ```js + * ( registry ) => ( action ) => ( iteratorOrPromise ) + * ``` + * A registry control is typically used to select data or dispatch an action to a registered + * store. + * + * When registering a control created with `createRegistryControl` with a store, the store + * knows which calling convention to use when executing the control. * * @param {Function} registryControl Function receiving a registry object and returning a control. * - * @return {Function} marked registry control. + * @return {Function} Registry control that can be registered with a store. */ function createRegistryControl(registryControl) { @@ -3943,29 +4047,7 @@ var build_module_use = default_registry.use; /***/ }), -/***/ 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; -} - -/***/ }), - -/***/ 50: +/***/ 47: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4008,6 +4090,28 @@ function _asyncToGenerator(fn) { /***/ }), +/***/ 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; +} + +/***/ }), + /***/ 60: /***/ (function(module, exports, __webpack_require__) { @@ -4206,13 +4310,6 @@ function _extends() { return _extends.apply(this, arguments); } -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/data.min.js b/wp-includes/js/dist/data.min.js index aeb13153e0..cf9a5e1f01 100644 --- a/wp-includes/js/dist/data.min.js +++ b/wp-includes/js/dist/data.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.data=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=443)}({0:function(e,t){!function(){e.exports=this.wp.element}()},126: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 o(e,t){for(var r=0;r1&&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},127: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}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38);var o=r(29),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)()}},150:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},162:function(e,t){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[M];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:C({},t,Object(s.a)({},n,o))}})])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new k.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 k.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new k.a(e);return o.delete(t.args),o}return e})),F=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 U(e,t)}return e};function V(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function G(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==V(e,t,r)}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===V(e,t,r)}function W(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===V(e,t,r)}function z(e){return e}function X(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function B(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function J(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function K(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Y(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}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 Q(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 je=ge,we=r(8),me=r(0),Se=r(9),Ee=r(13);function Re(e,t){var r=Object(Ee.useState)((function(){return{inputs:t,result:e()}}))[0],n=Object(Ee.useRef)(r),o=Boolean(t&&n.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r1&&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}()},130: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},153:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},154:function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=r,e.exports.default=r},165:function(e,t){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[M];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:C(C({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new P.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 P.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new P.a(e);return o.delete(t.args),o}return e})),F=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 U(e,t)}return e};function V(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function G(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==V(e,t,r)}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===V(e,t,r)}function W(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===V(e,t,r)}function z(e){return e}function X(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function B(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function J(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function K(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Y(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}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 Q(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 je=ge,we=r(8),me=r(0),Se=r(10),Ee=r(13);function Re(e,t){var r=Object(Ee.useState)((function(){return{inputs:t,result:e()}}))[0],n=Object(Ee.useRef)(r),o=Boolean(t&&n.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r96?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 f(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new f(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new f(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new f(new Date(A+o,0,1))),z.push(new f(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}))},415: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 d})),o.d(M,"getDate",(function(){return f}));var A=o(43),a=o.n(A),z=(o(254),o(416),/^[+-][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:""}};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 d(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function f(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()},416: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 f(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new f(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new f(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new f(new Date(A+o,0,1))),z.push(new f(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}))},428: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 d})),o.d(M,"getDate",(function(){return f}));var A=o(44),a=o.n(A),z=(o(267),o(429),/^[+-][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 d(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function f(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()},429:function(c,M,o){var A,a,z;//! moment-timezone-utils.js //! version : 0.5.31 //! 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(417)):(a=[o(43)],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=432)}({33:function(e,t){!function(){e.exports=this.wp.hooks}()},432: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 c5ae3fa7b4..463805bd90 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 = 420); +/******/ return __webpack_require__(__webpack_require__.s = 433); /******/ }) /************************************************************************/ /******/ ({ -/***/ 420: +/***/ 433: /***/ (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 5c764d5358..d0db50a308 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=420)}({420: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=433)}({433: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 8078be55be..3d08285f7c 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 = 463); +/******/ return __webpack_require__(__webpack_require__.s = 474); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /***/ }), -/***/ 463: +/***/ 474: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -124,6 +124,11 @@ __webpack_require__.d(__webpack_exports__, "unwrap", function() { return /* reex __webpack_require__.d(__webpack_exports__, "replaceTag", function() { return /* reexport */ replaceTag; }); __webpack_require__.d(__webpack_exports__, "wrap", function() { return /* reexport */ wrap; }); __webpack_require__.d(__webpack_exports__, "__unstableStripHTML", function() { return /* reexport */ __unstableStripHTML; }); +__webpack_require__.d(__webpack_exports__, "isEmpty", function() { return /* reexport */ isEmpty; }); +__webpack_require__.d(__webpack_exports__, "removeInvalidHTML", function() { return /* reexport */ removeInvalidHTML; }); +__webpack_require__.d(__webpack_exports__, "getPhrasingContentSchema", function() { return /* reexport */ getPhrasingContentSchema; }); +__webpack_require__.d(__webpack_exports__, "isPhrasingContent", function() { return /* reexport */ isPhrasingContent; }); +__webpack_require__.d(__webpack_exports__, "isTextContent", function() { return /* reexport */ isTextContent; }); // NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js var focusable_namespaceObject = {}; @@ -201,7 +206,7 @@ function isValidFocusableArea(element) { return false; } - var img = document.querySelector('img[usemap="#' + map.name + '"]'); + var img = element.ownerDocument.querySelector('img[usemap="#' + map.name + '"]'); return !!img && isVisible(img); } /** @@ -390,9 +395,8 @@ function tabbable_find(context) { * to the active element. */ -function findPrevious() { - var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.activeElement; - var focusables = find(document.body); +function findPrevious(element) { + var focusables = find(element.ownerDocument.body); var index = focusables.indexOf(element); // Remove all focusables after and including `element`. focusables.length = index; @@ -405,9 +409,8 @@ function findPrevious() { * to the active element. */ -function findNext() { - var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.activeElement; - var focusables = find(document.body); +function findNext(element) { + var focusables = find(element.ownerDocument.body); var index = focusables.indexOf(element); // Remove all focusables before and inside `element`. var remaining = focusables.slice(index + 1).filter(function (node) { @@ -416,23 +419,189 @@ function findNext() { return Object(external_this_lodash_["first"])(filterTabbable(remaining)); } +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/phrasing-content.js + + +function 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 _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { 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 { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * All phrasing content elements. + * + * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0 + */ + +/** + * All text-level semantic elements. + * + * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html + */ + +var textContentSchema = { + strong: {}, + em: {}, + s: {}, + del: {}, + ins: {}, + a: { + attributes: ['href', 'target', 'rel'] + }, + code: {}, + abbr: { + attributes: ['title'] + }, + sub: {}, + sup: {}, + br: {}, + small: {}, + // To do: fix blockquote. + // cite: {}, + q: { + attributes: ['cite'] + }, + dfn: { + attributes: ['title'] + }, + data: { + attributes: ['value'] + }, + time: { + attributes: ['datetime'] + }, + var: {}, + samp: {}, + kbd: {}, + i: {}, + b: {}, + u: {}, + mark: {}, + ruby: {}, + rt: {}, + rp: {}, + bdi: { + attributes: ['dir'] + }, + bdo: { + attributes: ['dir'] + }, + wbr: {}, + '#text': {} +}; // Recursion is needed. +// Possible: strong > em > strong. +// Impossible: strong > strong. + +Object(external_this_lodash_["without"])(Object.keys(textContentSchema), '#text', 'br').forEach(function (tag) { + textContentSchema[tag].children = Object(external_this_lodash_["omit"])(textContentSchema, tag); +}); +/** + * Embedded content elements. + * + * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#embedded-content-0 + */ + +var embeddedContentSchema = { + audio: { + attributes: ['src', 'preload', 'autoplay', 'mediagroup', 'loop', 'muted'] + }, + canvas: { + attributes: ['width', 'height'] + }, + embed: { + attributes: ['src', 'type', 'width', 'height'] + }, + img: { + attributes: ['alt', 'src', 'srcset', 'usemap', 'ismap', 'width', 'height'] + }, + object: { + attributes: ['data', 'type', 'name', 'usemap', 'form', 'width', 'height'] + }, + video: { + attributes: ['src', 'poster', 'preload', 'autoplay', 'mediagroup', 'loop', 'muted', 'controls', 'width', 'height'] + } +}; +/** + * Phrasing content elements. + * + * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0 + */ + +var phrasingContentSchema = _objectSpread(_objectSpread({}, textContentSchema), embeddedContentSchema); +/** + * Get schema of possible paths for phrasing content. + * + * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content + * + * @param {string} context Set to "paste" to exclude invisible elements and + * sensitive data. + * + * @return {Object} Schema. + */ + + +function getPhrasingContentSchema(context) { + if (context !== 'paste') { + return phrasingContentSchema; + } + + return Object(external_this_lodash_["omit"])(_objectSpread(_objectSpread({}, phrasingContentSchema), {}, { + // We shouldn't paste potentially sensitive information which is not + // visible to the user when pasted, so strip the attributes. + ins: { + children: phrasingContentSchema.ins.children + }, + del: { + children: phrasingContentSchema.del.children + } + }), ['u', // Used to mark misspelling. Shouldn't be pasted. + 'abbr', // Invisible. + 'data', // Invisible. + 'time', // Invisible. + 'wbr', // Invisible. + 'bdi', // Invisible. + 'bdo' // Invisible. + ]); +} +/** + * Find out whether or not the given node is phrasing content. + * + * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content + * + * @param {Element} node The node to test. + * + * @return {boolean} True if phrasing content, false if not. + */ + +function isPhrasingContent(node) { + var tag = node.nodeName.toLowerCase(); + return getPhrasingContentSchema().hasOwnProperty(tag) || tag === 'span'; +} +function isTextContent(node) { + var tag = node.nodeName.toLowerCase(); + return textContentSchema.hasOwnProperty(tag) || tag === 'span'; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom.js /** * External dependencies */ /** - * Browser dependencies + * Internal dependencies */ -var _window = window, - DOMParser = _window.DOMParser, - getComputedStyle = _window.getComputedStyle; -var _window$Node = window.Node, - TEXT_NODE = _window$Node.TEXT_NODE, - ELEMENT_NODE = _window$Node.ELEMENT_NODE, - DOCUMENT_POSITION_PRECEDING = _window$Node.DOCUMENT_POSITION_PRECEDING, - DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING; + + +function getComputedStyle(node) { + return node.ownerDocument.defaultView.getComputedStyle(node); +} /** * Returns true if the given selection object is in the forward direction, or * false otherwise. @@ -444,6 +613,7 @@ var _window$Node = window.Node, * @return {boolean} Whether the selection is forward. */ + function isSelectionForward(selection) { var anchorNode = selection.anchorNode, focusNode = selection.focusNode, @@ -456,11 +626,11 @@ function isSelectionForward(selection) { // Compare whether anchor node precedes focus node. If focus node (where // end of selection occurs) is after the anchor node, it is forward. - if (position & DOCUMENT_POSITION_PRECEDING) { + if (position & anchorNode.DOCUMENT_POSITION_PRECEDING) { return false; } - if (position & DOCUMENT_POSITION_FOLLOWING) { + if (position & anchorNode.DOCUMENT_POSITION_FOLLOWING) { return true; } /* eslint-enable no-bitwise */ @@ -505,7 +675,9 @@ function isEdge(container, isReverse, onlyVertical) { return true; } - var selection = window.getSelection(); + var ownerDocument = container.ownerDocument; + var defaultView = ownerDocument.defaultView; + var selection = defaultView.getSelection(); if (!selection.rangeCount) { return false; @@ -526,7 +698,7 @@ function isEdge(container, isReverse, onlyVertical) { return false; } - var computedStyle = window.getComputedStyle(container); + var computedStyle = getComputedStyle(container); var lineHeight = parseInt(computedStyle.lineHeight, 10) || 0; // Only consider the multiline selection at the edge if the direction is // towards the edge. @@ -562,7 +734,7 @@ function isEdge(container, isReverse, onlyVertical) { var x = isReverseDir ? containerRect.left + 1 : containerRect.right - 1; var y = isReverse ? containerRect.top + buffer : containerRect.bottom - buffer; - var testRange = hiddenCaretRangeFromPoint(document, x, y, container); + var testRange = hiddenCaretRangeFromPoint(ownerDocument, x, y, container); if (!testRange) { return false; @@ -615,12 +787,13 @@ function getRectangleFromRange(range) { } var _range = range, - startContainer = _range.startContainer; // Correct invalid "BR" ranges. The cannot contain any children. + startContainer = _range.startContainer; + var ownerDocument = startContainer.ownerDocument; // Correct invalid "BR" ranges. The cannot contain any children. if (startContainer.nodeName === 'BR') { var parentNode = startContainer.parentNode; var index = Array.from(parentNode.childNodes).indexOf(startContainer); - range = document.createRange(); + range = ownerDocument.createRange(); range.setStart(parentNode, index); range.setEnd(parentNode, index); } @@ -632,7 +805,7 @@ function getRectangleFromRange(range) { // See: https://stackoverflow.com/a/6847328/995445 if (!rect) { - var padNode = document.createTextNode("\u200B"); // Do not modify the live range. + var padNode = ownerDocument.createTextNode("\u200B"); // Do not modify the live range. range = range.cloneRange(); range.insertNode(padNode); @@ -645,11 +818,13 @@ function getRectangleFromRange(range) { /** * Get the rectangle for the selection in a container. * + * @param {Window} win The window of the selection. + * * @return {?DOMRect} The rectangle. */ -function computeCaretRect() { - var selection = window.getSelection(); +function computeCaretRect(win) { + var selection = win.getSelection(); var range = selection.rangeCount ? selection.getRangeAt(0) : null; if (!range) { @@ -700,8 +875,10 @@ function placeCaretAtHorizontalEdge(container, isReverse) { return; } - var selection = window.getSelection(); - var range = document.createRange(); + var ownerDocument = container.ownerDocument; + var defaultView = ownerDocument.defaultView; + var selection = defaultView.getSelection(); + var range = ownerDocument.createRange(); range.selectNodeContents(rangeTarget); range.collapse(!isReverse); selection.removeAllRanges(); @@ -713,9 +890,9 @@ function placeCaretAtHorizontalEdge(container, isReverse) { * * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/caretRangeFromPoint * - * @param {Document} doc The document of the range. - * @param {number} x Horizontal position within the current viewport. - * @param {number} y Vertical position within the current viewport. + * @param {Document} doc The document of the range. + * @param {number} x Horizontal position within the current viewport. + * @param {number} y Vertical position within the current viewport. * * @return {?Range} The best range for the given point. */ @@ -798,7 +975,9 @@ function placeCaretAtVerticalEdge(container, isReverse, rect) { var editableRect = container.getBoundingClientRect(); var x = rect.left; var y = isReverse ? editableRect.bottom - buffer : editableRect.top + buffer; - var range = hiddenCaretRangeFromPoint(document, x, y, container); + var ownerDocument = container.ownerDocument; + var defaultView = ownerDocument.defaultView; + var range = hiddenCaretRangeFromPoint(ownerDocument, x, y, container); if (!range || !container.contains(range.startContainer)) { if (mayUseScroll && (!range || !range.startContainer || !range.startContainer.contains(container))) { @@ -813,7 +992,7 @@ function placeCaretAtVerticalEdge(container, isReverse, rect) { return; } - var selection = window.getSelection(); + var selection = defaultView.getSelection(); selection.removeAllRanges(); selection.addRange(range); container.focus(); // Editable was already focussed, it goes back to old range... @@ -861,11 +1040,13 @@ function isNumberInput(element) { * * See: https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection#Related_objects. * + * @param {Document} doc The document to check. + * * @return {boolean} True if there is selection, false if not. */ -function documentHasTextSelection() { - var selection = window.getSelection(); +function documentHasTextSelection(doc) { + var selection = doc.defaultView.getSelection(); var range = selection.rangeCount ? selection.getRangeAt(0) : null; return range && !range.collapsed; } @@ -909,22 +1090,26 @@ function inputFieldHasUncollapsedSelection(element) { * ranges of text across elements and any selection inside and *