From d0bb87c6a4e05a1ca7f2631cfaf55e231b848121 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 24 Jul 2023 21:02:22 +0000 Subject: [PATCH] Editor: fix popover positioning. Pins the floating-ui package versions to avoid breaking changes when they update. Props isabel_brison, ramonopoly, spacedmonkey, bhrugesh12, huzaifaalmesbah, audrasjb, azaozz. Reviewed by audrasjb. Merges [56284] to the 6.3 branch. Fixes #58847. Built from https://develop.svn.wordpress.org/branches/6.3@56289 git-svn-id: http://core.svn.wordpress.org/branches/6.3@55801 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../assets/script-loader-packages.min.php | 2 +- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/js/dist/components.js | 78 +++++++++---------- wp-includes/js/dist/components.min.js | 6 +- wp-includes/version.php | 2 +- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/wp-includes/assets/script-loader-packages.min.php b/wp-includes/assets/script-loader-packages.min.php index 4145bce16b..1c1bfbf145 100644 --- a/wp-includes/assets/script-loader-packages.min.php +++ b/wp-includes/assets/script-loader-packages.min.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b2ea813120975bf6fbb5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '980d1de588f2a046da62'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '81551ce46288ab9b0abc'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => '4094baa84c10f06edb2c'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '568bcf601f2c3e3e716c'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'ff0cd4c3ce6bab92805f'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '3a1637d4f24009f93c96'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'd8bc341b90aeada50cd0'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'ff7eb3945f963be850ff'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '00d8bee59cacacf11247'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'a62a88806bfb22fa6fea'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '5918b1b980a573e5873a'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'b1c3e7ec75b007204757'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '60c5df78125c6651865d'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b2ea813120975bf6fbb5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '980d1de588f2a046da62'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '81551ce46288ab9b0abc'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => '4094baa84c10f06edb2c'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '568bcf601f2c3e3e716c'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '164e055a4df31b6778ea'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '3a1637d4f24009f93c96'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'd8bc341b90aeada50cd0'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'ff7eb3945f963be850ff'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '00d8bee59cacacf11247'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'a62a88806bfb22fa6fea'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '5918b1b980a573e5873a'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'b1c3e7ec75b007204757'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '60c5df78125c6651865d'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34')); diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index 21c1fdf31d..b781a259e7 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '7d26765fdbe7c278ee38'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'bc5c340ccb51473e167c'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'f1299fcd84549583a0ba'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => 'dc70988a3416a2239884'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b9d878b43863564fb0f4'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '6aa205c0289b9ec4b7a1'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '2896c0b9ae0fba350fa5'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '3a735c54930e47657bf7'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '16121b61f8bc66f02ac6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => 'ed10c9e8dc39f35e8b07'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '9410ee7f59a6a9b2aa87'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '443abf25c290c85d36b3'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '629f1e1354c4d2e340f6'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '69129c1901989cb26303'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '7d26765fdbe7c278ee38'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'bc5c340ccb51473e167c'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'f1299fcd84549583a0ba'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('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-private-apis', 'wp-shortcode'), 'version' => 'dc70988a3416a2239884'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b9d878b43863564fb0f4'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'c333577a5708c1d140d5'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '2896c0b9ae0fba350fa5'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '3a735c54930e47657bf7'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '16121b61f8bc66f02ac6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => 'ed10c9e8dc39f35e8b07'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '9410ee7f59a6a9b2aa87'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '443abf25c290c85d36b3'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '629f1e1354c4d2e340f6'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '69129c1901989cb26303'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index efc7f8f0a2..867078277f 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -5108,10 +5108,10 @@ var CompositeItem = createComponent({ ;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs -function t(t){return t.split("-")[1]}function floating_ui_core_browser_min_e(t){return"y"===t?"height":"width"}function floating_ui_core_browser_min_n(t){return t.split("-")[0]}function floating_ui_core_browser_min_o(t){return["top","bottom"].includes(floating_ui_core_browser_min_n(t))?"x":"y"}function i(i,r,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,m=floating_ui_core_browser_min_o(r),u=floating_ui_core_browser_min_e(m),g=l[u]/2-s[u]/2,d="x"===m;let p;switch(floating_ui_core_browser_min_n(r)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(t(r)){case"start":p[m]-=g*(a&&d?-1:1);break;case"end":p[m]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_r=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:m,y:u}=i(f,o,c),g=o,d={},p=0;for(let n=0;n({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:c,rects:m,platform:g,elements:d}=i,{element:p,padding:h=0}=floating_ui_core_browser_min_a(n,i)||{};if(null==p)return{};const y=l(h),x={x:r,y:s},w=floating_ui_core_browser_min_o(c),v=floating_ui_core_browser_min_e(w),b=await g.getDimensions(p),A="y"===w,R=A?"top":"left",P=A?"bottom":"right",E=A?"clientHeight":"clientWidth",T=m.reference[v]+m.reference[w]-x[w]-m.floating[v],D=x[w]-m.reference[w],L=await(null==g.getOffsetParent?void 0:g.getOffsetParent(p));let k=L?L[E]:0;k&&await(null==g.isElement?void 0:g.isElement(L))||(k=d.floating[E]||m.floating[v]);const O=T/2-D/2,B=k/2-b[v]/2-1,C=f(y[R],B),H=f(y[P],B),S=C,F=k-b[v]-H,M=k/2-b[v]/2+O,V=u(S,M,F),W=null!=t(c)&&M!=V&&m.reference[v]/2-(Mt.concat(e,e+"-start",e+"-end")),[]),h={left:"right",right:"left",bottom:"top",top:"bottom"};function y(t){return t.replace(/left|right|bottom|top/g,(t=>h[t]))}function x(n,i,r){void 0===r&&(r=!1);const a=t(n),l=floating_ui_core_browser_min_o(n),s=floating_ui_core_browser_min_e(l);let c="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=y(c)),{main:c,cross:y(c)}}const w={start:"end",end:"start"};function v(t){return t.replace(/start|end/g,(t=>w[t]))}const b=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(o){var i,r,l;const{rects:s,middlewareData:f,placement:m,platform:u,elements:g}=o,{crossAxis:d=!1,alignment:h,allowedPlacements:y=p,autoAlignment:w=!0,...b}=floating_ui_core_browser_min_a(e,o),A=void 0!==h||y===p?function(e,o,i){return(e?[...i.filter((n=>t(n)===e)),...i.filter((n=>t(n)!==e))]:i.filter((t=>floating_ui_core_browser_min_n(t)===t))).filter((n=>!e||t(n)===e||!!o&&v(n)!==n))}(h||null,w,y):y,R=await c(o,b),P=(null==(i=f.autoPlacement)?void 0:i.index)||0,E=A[P];if(null==E)return{};const{main:T,cross:D}=x(E,s,await(null==u.isRTL?void 0:u.isRTL(g.floating)));if(m!==E)return{reset:{placement:A[0]}};const L=[R[floating_ui_core_browser_min_n(E)],R[T],R[D]],k=[...(null==(r=f.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:L}],O=A[P+1];if(O)return{data:{index:P+1,overflows:k},reset:{placement:O}};const B=k.map((e=>{const n=t(e.placement);return[e.placement,n&&d?e.overflows.slice(0,2).reduce(((t,e)=>t+e),0):e.overflows[0],e.overflows]})).sort(((t,e)=>t[1]-e[1])),C=(null==(l=B.filter((e=>e[2].slice(0,t(e[0])?2:3).every((t=>t<=0))))[0])?void 0:l[0])||B[0][0];return C!==m?{data:{index:P+1,overflows:k},reset:{placement:C}}:{}}}};const A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(o){var i;const{placement:r,middlewareData:l,rects:s,initialPlacement:f,platform:m,elements:u}=o,{mainAxis:g=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...A}=floating_ui_core_browser_min_a(e,o),R=floating_ui_core_browser_min_n(r),P=floating_ui_core_browser_min_n(f)===f,E=await(null==m.isRTL?void 0:m.isRTL(u.floating)),T=p||(P||!b?[y(f)]:function(t){const e=y(t);return[v(t),e,v(e)]}(f));p||"none"===w||T.push(...function(e,o,i,r){const a=t(e);let l=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:a;default:return[]}}(floating_ui_core_browser_min_n(e),"start"===i,r);return a&&(l=l.map((t=>t+"-"+a)),o&&(l=l.concat(l.map(v)))),l}(f,b,w,E));const D=[f,...T],L=await c(o,A),k=[];let O=(null==(i=l.flip)?void 0:i.overflows)||[];if(g&&k.push(L[R]),d){const{main:t,cross:e}=x(r,s,E);k.push(L[t],L[e])}if(O=[...O,{placement:r,overflows:k}],!k.every((t=>t<=0))){var B,C;const t=((null==(B=l.flip)?void 0:B.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:O},reset:{placement:e}};let n=null==(C=O.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var H;const t=null==(H=O.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=f}if(r!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function P(t){return d.some((e=>t[e]>=0))}const E=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=floating_ui_core_browser_min_a(t,e);switch(o){case"referenceHidden":{const t=R(await c(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:P(t)}}}case"escaped":{const t=R(await c(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:P(t)}}}default:return{}}}}};function T(t){const e=f(...t.map((t=>t.left))),n=f(...t.map((t=>t.top)));return{x:e,y:n,width:m(...t.map((t=>t.right)))-e,height:m(...t.map((t=>t.bottom)))-n}}const D=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:i,elements:r,rects:c,platform:u,strategy:g}=e,{padding:d=2,x:p,y:h}=floating_ui_core_browser_min_a(t,e),y=Array.from(await(null==u.getClientRects?void 0:u.getClientRects(r.reference))||[]),x=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;to.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>floating_ui_core_browser_min_s(T(t))))}(y),w=floating_ui_core_browser_min_s(T(y)),v=l(d);const b=await u.getElementRects({reference:{getBoundingClientRect:function(){if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return x.find((t=>p>t.left-v.left&&pt.top-v.top&&h=2){if("x"===floating_ui_core_browser_min_o(i)){const t=x[0],e=x[x.length-1],o="top"===floating_ui_core_browser_min_n(i),r=t.top,a=e.bottom,l=o?t.left:e.left,s=o?t.right:e.right;return{top:r,bottom:a,left:l,right:s,width:s-l,height:a-r,x:l,y:r}}const t="left"===floating_ui_core_browser_min_n(i),e=m(...x.map((t=>t.right))),r=f(...x.map((t=>t.left))),a=x.filter((n=>t?n.left===r:n.right===e)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:r,right:e,width:e-r,height:s-l,x:r,y:l}}return w}},floating:r.floating,strategy:g});return c.reference.x!==b.reference.x||c.reference.y!==b.reference.y||c.reference.width!==b.reference.width||c.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}};const L=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(i){const{x:r,y:l}=i,s=await async function(e,i){const{placement:r,platform:l,elements:s}=e,c=await(null==l.isRTL?void 0:l.isRTL(s.floating)),f=floating_ui_core_browser_min_n(r),m=t(r),u="x"===floating_ui_core_browser_min_o(r),g=["left","top"].includes(f)?-1:1,d=c&&u?-1:1,p=floating_ui_core_browser_min_a(i,e);let{mainAxis:h,crossAxis:y,alignmentAxis:x}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return m&&"number"==typeof x&&(y="end"===m?-1*x:x),u?{x:y*d,y:h*g}:{x:h*g,y:y*d}}(i,e);return{x:r+s.x,y:l+s.y,data:s}}}};function k(t){return"x"===t?"y":"x"}const O=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:r,placement:l}=e,{mainAxis:s=!0,crossAxis:f=!1,limiter:m={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...g}=floating_ui_core_browser_min_a(t,e),d={x:i,y:r},p=await c(e,g),h=floating_ui_core_browser_min_o(floating_ui_core_browser_min_n(l)),y=k(h);let x=d[h],w=d[y];if(s){const t="y"===h?"bottom":"right";x=u(x+p["y"===h?"top":"left"],x,x-p[t])}if(f){const t="y"===y?"bottom":"right";w=u(w+p["y"===y?"top":"left"],w,w-p[t])}const v=m.fn({...e,[h]:x,[y]:w});return{...v,data:{x:v.x-i,y:v.y-r}}}}},B=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:i,y:r,placement:l,rects:s,middlewareData:c}=e,{offset:f=0,mainAxis:m=!0,crossAxis:u=!0}=floating_ui_core_browser_min_a(t,e),g={x:i,y:r},d=floating_ui_core_browser_min_o(l),p=k(d);let h=g[d],y=g[p];const x=floating_ui_core_browser_min_a(f,e),w="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(m){const t="y"===d?"height":"width",e=s.reference[d]-s.floating[t]+w.mainAxis,n=s.reference[d]+s.reference[t]-w.mainAxis;hn&&(h=n)}if(u){var v,b;const t="y"===d?"width":"height",e=["top","left"].includes(floating_ui_core_browser_min_n(l)),o=s.reference[p]-s.floating[t]+(e&&(null==(v=c.offset)?void 0:v[p])||0)+(e?0:w.crossAxis),i=s.reference[p]+s.reference[t]+(e?0:(null==(b=c.offset)?void 0:b[p])||0)-(e?w.crossAxis:0);yi&&(y=i)}return{[d]:h,[p]:y}}}},C=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(i){const{placement:r,rects:l,platform:s,elements:u}=i,{apply:g=(()=>{}),...d}=floating_ui_core_browser_min_a(e,i),p=await c(i,d),h=floating_ui_core_browser_min_n(r),y=t(r),x="x"===floating_ui_core_browser_min_o(r),{width:w,height:v}=l.floating;let b,A;"top"===h||"bottom"===h?(b=h,A=y===(await(null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(A=h,b="end"===y?"top":"bottom");const R=v-p[b],P=w-p[A],E=!i.middlewareData.shift;let T=R,D=P;if(x){const t=w-p.left-p.right;D=y||E?f(P,t):t}else{const t=v-p.top-p.bottom;T=y||E?f(R,t):t}if(E&&!y){const t=m(p.left,0),e=m(p.right,0),n=m(p.top,0),o=m(p.bottom,0);x?D=w-2*(0!==t||0!==e?t+e:m(p.left,p.right)):T=v-2*(0!==n||0!==o?n+o:m(p.top,p.bottom))}await g({...i,availableWidth:D,availableHeight:T});const L=await s.getDimensions(u.floating);return w!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}}; +function t(t){return t.split("-")[0]}function floating_ui_core_browser_min_e(t){return t.split("-")[1]}function floating_ui_core_browser_min_n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=floating_ui_core_browser_min_n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={},d=0;for(let n=0;n({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=floating_ui_core_browser_min_a(l),p={x:s,y:c},h=floating_ui_core_browser_min_n(f),y=floating_ui_core_browser_min_e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,L=d[v],D=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(L,k,D),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?kg[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=floating_ui_core_browser_min_e(t),l=floating_ui_core_browser_min_n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function y(t){return t.replace(/start|end/g,(t=>h[t]))}const x=["top","right","bottom","left"],w=x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||floating_ui_core_browser_min_e(t)===n||!!r&&y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,L=P[O];if(null==L)return{};const{main:D,cross:k}=p(L,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==L)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(L)],T[D],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:L,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[y(t),e,y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,L;const t=(null!=(O=null==(L=o.flip)?void 0:L.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var D;const t=null==(D=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:D[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=floating_ui_core_browser_min_e(o),u="x"===floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const L=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=floating_ui_core_browser_min_n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},D=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=floating_ui_core_browser_min_n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c(r):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;pn&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);hi&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c=(()=>{}),...u}=n,m=await s(r,u),g=t(i),d=floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])};await c({...r,...b});const R=await a.getDimensions(l.floating);return o.floating.width!==R.width||o.floating.height!==R.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&pt.top-w.top&&h=2){if("x"===floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}; ;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs -function floating_ui_dom_browser_min_n(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function floating_ui_dom_browser_min_o(t){return floating_ui_dom_browser_min_n(t).getComputedStyle(t)}function floating_ui_dom_browser_min_i(t){return t instanceof floating_ui_dom_browser_min_n(t).Node}function r(t){return floating_ui_dom_browser_min_i(t)?(t.nodeName||"").toLowerCase():"#document"}function floating_ui_dom_browser_min_c(t){return t instanceof HTMLElement||t instanceof floating_ui_dom_browser_min_n(t).HTMLElement}function floating_ui_dom_browser_min_l(t){return"undefined"!=typeof ShadowRoot&&(t instanceof floating_ui_dom_browser_min_n(t).ShadowRoot||t instanceof ShadowRoot)}function s(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=floating_ui_dom_browser_min_o(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function floating_ui_dom_browser_min_f(t){return["table","td","th"].includes(r(t))}function floating_ui_dom_browser_min_u(t){const e=floating_ui_dom_browser_min_a(),n=floating_ui_dom_browser_min_o(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function floating_ui_dom_browser_min_a(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function floating_ui_dom_browser_min_d(t){return["html","body","#document"].includes(r(t))}const floating_ui_dom_browser_min_h=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round,floating_ui_dom_browser_min_g=Math.floor,floating_ui_dom_browser_min_y=t=>({x:t,y:t});function floating_ui_dom_browser_min_w(t){const e=floating_ui_dom_browser_min_o(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=floating_ui_dom_browser_min_c(t),l=r?t.offsetWidth:n,s=r?t.offsetHeight:i,f=floating_ui_dom_browser_min_m(n)!==l||floating_ui_dom_browser_min_m(i)!==s;return f&&(n=l,i=s),{width:n,height:i,$:f}}function floating_ui_dom_browser_min_x(t){return t instanceof Element||t instanceof floating_ui_dom_browser_min_n(t).Element}function floating_ui_dom_browser_min_v(t){return floating_ui_dom_browser_min_x(t)?t:t.contextElement}function floating_ui_dom_browser_min_b(t){const e=floating_ui_dom_browser_min_v(t);if(!floating_ui_dom_browser_min_c(e))return floating_ui_dom_browser_min_y(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=floating_ui_dom_browser_min_w(e);let l=(r?floating_ui_dom_browser_min_m(n.width):n.width)/o,s=(r?floating_ui_dom_browser_min_m(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const floating_ui_dom_browser_min_L=floating_ui_dom_browser_min_y(0);function floating_ui_dom_browser_min_T(t){const e=floating_ui_dom_browser_min_n(t);return floating_ui_dom_browser_min_a()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:floating_ui_dom_browser_min_L}function floating_ui_dom_browser_min_R(e,o,i,r){void 0===o&&(o=!1),void 0===i&&(i=!1);const c=e.getBoundingClientRect(),l=floating_ui_dom_browser_min_v(e);let s=floating_ui_dom_browser_min_y(1);o&&(r?floating_ui_dom_browser_min_x(r)&&(s=floating_ui_dom_browser_min_b(r)):s=floating_ui_dom_browser_min_b(e));const f=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==floating_ui_dom_browser_min_n(t))&&e}(l,i,r)?floating_ui_dom_browser_min_T(l):floating_ui_dom_browser_min_y(0);let u=(c.left+f.x)/s.x,a=(c.top+f.y)/s.y,d=c.width/s.x,h=c.height/s.y;if(l){const t=floating_ui_dom_browser_min_n(l),e=r&&floating_ui_dom_browser_min_x(r)?floating_ui_dom_browser_min_n(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=floating_ui_dom_browser_min_b(o),e=o.getBoundingClientRect(),i=getComputedStyle(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,c=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,a*=t.y,d*=t.x,h*=t.y,u+=r,a+=c,o=floating_ui_dom_browser_min_n(o).frameElement}}return floating_ui_core_browser_min_s({width:d,height:h,x:u,y:a})}function floating_ui_dom_browser_min_E(t){return floating_ui_dom_browser_min_x(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S(t){var e;return null==(e=(floating_ui_dom_browser_min_i(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function floating_ui_dom_browser_min_C(t){return floating_ui_dom_browser_min_R(S(t)).left+floating_ui_dom_browser_min_E(t).scrollLeft}function F(t){if("html"===r(t))return t;const e=t.assignedSlot||t.parentNode||floating_ui_dom_browser_min_l(t)&&t.host||S(t);return floating_ui_dom_browser_min_l(e)?e.host:e}function floating_ui_dom_browser_min_O(t){const e=F(t);return floating_ui_dom_browser_min_d(e)?t.ownerDocument?t.ownerDocument.body:t.body:floating_ui_dom_browser_min_c(e)&&s(e)?e:floating_ui_dom_browser_min_O(e)}function floating_ui_dom_browser_min_D(t,e){var o;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_O(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),c=floating_ui_dom_browser_min_n(i);return r?e.concat(c,c.visualViewport||[],s(i)?i:[]):e.concat(i,floating_ui_dom_browser_min_D(i))}function H(e,i,r){let l;if("viewport"===i)l=function(t,e){const o=floating_ui_dom_browser_min_n(t),i=S(t),r=o.visualViewport;let c=i.clientWidth,l=i.clientHeight,s=0,f=0;if(r){c=r.width,l=r.height;const t=floating_ui_dom_browser_min_a();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:c,height:l,x:s,y:f}}(e,r);else if("document"===i)l=function(t){const e=S(t),n=floating_ui_dom_browser_min_E(t),i=t.ownerDocument.body,r=floating_ui_dom_browser_min_p(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),c=floating_ui_dom_browser_min_p(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+floating_ui_dom_browser_min_C(t);const s=-n.scrollTop;return"rtl"===floating_ui_dom_browser_min_o(i).direction&&(l+=floating_ui_dom_browser_min_p(e.clientWidth,i.clientWidth)-r),{width:r,height:c,x:l,y:s}}(S(e));else if(floating_ui_dom_browser_min_x(i))l=function(t,e){const n=floating_ui_dom_browser_min_R(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_b(t):floating_ui_dom_browser_min_y(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(i,r);else{const t=floating_ui_dom_browser_min_T(e);l={...i,x:i.x-t.x,y:i.y-t.y}}return floating_ui_core_browser_min_s(l)}function W(t,e){const n=F(t);return!(n===e||!floating_ui_dom_browser_min_x(n)||floating_ui_dom_browser_min_d(n))&&("fixed"===floating_ui_dom_browser_min_o(n).position||W(n,e))}function M(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=S(e),l="fixed"===n,f=floating_ui_dom_browser_min_R(t,!0,l,e);let u={scrollLeft:0,scrollTop:0};const a=floating_ui_dom_browser_min_y(0);if(o||!o&&!l)if(("body"!==r(e)||s(i))&&(u=floating_ui_dom_browser_min_E(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_R(e,!0,l,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=floating_ui_dom_browser_min_C(i));return{x:f.left+u.scrollLeft-a.x,y:f.top+u.scrollTop-a.y,width:f.width,height:f.height}}function z(t,e){return floating_ui_dom_browser_min_c(t)&&"fixed"!==floating_ui_dom_browser_min_o(t).position?e?e(t):t.offsetParent:null}function floating_ui_dom_browser_min_P(t,e){const i=floating_ui_dom_browser_min_n(t);if(!floating_ui_dom_browser_min_c(t))return i;let l=z(t,e);for(;l&&floating_ui_dom_browser_min_f(l)&&"static"===floating_ui_dom_browser_min_o(l).position;)l=z(l,e);return l&&("html"===r(l)||"body"===r(l)&&"static"===floating_ui_dom_browser_min_o(l).position&&!floating_ui_dom_browser_min_u(l))?i:l||function(t){let e=F(t);for(;floating_ui_dom_browser_min_c(e)&&!floating_ui_dom_browser_min_d(e);){if(floating_ui_dom_browser_min_u(e))return e;e=F(e)}return null}(t)||i}const V={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=S(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0},u=floating_ui_dom_browser_min_y(1);const a=floating_ui_dom_browser_min_y(0);if((i||!i&&"fixed"!==o)&&(("body"!==r(n)||s(l))&&(f=floating_ui_dom_browser_min_E(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_R(n);u=floating_ui_dom_browser_min_b(n),a.x=t.x+n.clientLeft,a.y=t.y+n.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-f.scrollLeft*u.x+a.x,y:e.y*u.y-f.scrollTop*u.y+a.y}},getDocumentElement:S,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:c}=t;const l=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=floating_ui_dom_browser_min_D(t).filter((t=>floating_ui_dom_browser_min_x(t)&&"body"!==r(t))),c=null;const l="fixed"===floating_ui_dom_browser_min_o(t).position;let f=l?F(t):t;for(;floating_ui_dom_browser_min_x(f)&&!floating_ui_dom_browser_min_d(f);){const e=floating_ui_dom_browser_min_o(f),n=floating_ui_dom_browser_min_u(f);n||"fixed"!==e.position||(c=null),(l?!n&&!c:!n&&"static"===e.position&&c&&["absolute","fixed"].includes(c.position)||s(f)&&!n&&W(t,f))?i=i.filter((t=>t!==f)):c=e,f=F(f)}return e.set(t,i),i}(e,this._c):[].concat(n),i],f=l[0],a=l.reduce(((t,n)=>{const o=H(e,n,c);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_h(o.right,t.right),t.bottom=floating_ui_dom_browser_min_h(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),H(e,f,c));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:floating_ui_dom_browser_min_P,getElementRects:async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||floating_ui_dom_browser_min_P,r=this.getDimensions;return{reference:M(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return floating_ui_dom_browser_min_w(t)},getScale:floating_ui_dom_browser_min_b,isElement:floating_ui_dom_browser_min_x,isRTL:function(t){return"rtl"===getComputedStyle(t).direction}};function floating_ui_dom_browser_min_A(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,f=floating_ui_dom_browser_min_v(t),u=i||r?[...f?floating_ui_dom_browser_min_D(f):[],...floating_ui_dom_browser_min_D(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const a=f&&l?function(t,e){let n,o=null;const i=S(t);function r(){clearTimeout(n),o&&o.disconnect(),o=null}return function c(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),r();const{left:f,top:u,width:a,height:d}=t.getBoundingClientRect();if(l||e(),!a||!d)return;const m={rootMargin:-floating_ui_dom_browser_min_g(u)+"px "+-floating_ui_dom_browser_min_g(i.clientWidth-(f+a))+"px "+-floating_ui_dom_browser_min_g(i.clientHeight-(u+d))+"px "+-floating_ui_dom_browser_min_g(f)+"px",threshold:floating_ui_dom_browser_min_p(0,floating_ui_dom_browser_min_h(1,s))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==s){if(!y)return c();e?c(!1,e):n=setTimeout((()=>{c(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(w,{...m,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(w,m)}o.observe(t)}(!0),r}(f,n):null;let d,m=-1,y=null;c&&(y=new ResizeObserver((t=>{let[o]=t;o&&o.target===f&&y&&(y.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{y&&y.observe(e)}))),n()})),f&&!s&&y.observe(f),y.observe(e));let w=s?floating_ui_dom_browser_min_R(t):null;return s&&function e(){const o=floating_ui_dom_browser_min_R(t);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||n();w=o,d=requestAnimationFrame(e)}(),n(),()=>{u.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),a&&a(),y&&y.disconnect(),y=null,s&&cancelAnimationFrame(d)}}const floating_ui_dom_browser_min_B=(t,n,o)=>{const i=new Map,r={platform:V,...o},c={...r.platform,_c:i};return floating_ui_core_browser_min_r(t,n,{...r,platform:c})}; +function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof floating_ui_dom_browser_min_o(t).HTMLElement}function floating_ui_dom_browser_min_s(t){return t instanceof floating_ui_dom_browser_min_o(t).Element}function floating_ui_dom_browser_min_f(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_a(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_h(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,f;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,a=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,a=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_s(t)?floating_ui_dom_browser_min_o(t):window,p=!floating_ui_dom_browser_min_h()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,y=(u.top+(p&&null!=(l=null==(f=g.visualViewport)?void 0:f.offsetTop)?l:0))/a,v=u.width/d,x=u.height/a;return{width:v,height:x,top:y,right:w+v,bottom:y+x,left:w,x:w,y:y}}function floating_ui_dom_browser_min_y(t){return(e=t,(e instanceof floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_v(t){return floating_ui_dom_browser_min_s(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_y(t)).left+floating_ui_dom_browser_min_v(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_y(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(s=floating_ui_dom_browser_min_v(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else i&&(f.x=floating_ui_dom_browser_min_x(i));return{x:l.left+s.scrollLeft-f.x,y:l.top+s.scrollTop-f.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_f(t)?t.host:null)||floating_ui_dom_browser_min_y(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==floating_ui_dom_browser_min_i(t).position?function(t){let{offsetParent:e}=t,n=t,o=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let r=t.offsetParent;if("contents"===floating_ui_dom_browser_min_i(t).display){const e=t.hasAttribute("style"),o=t.style.display;t.style.display=floating_ui_dom_browser_min_i(n).display,r=t.offsetParent,t.style.display=o,e||t.removeAttribute("style")}n=t,e!==r&&(e=r,o=!0)}else if(floating_ui_dom_browser_min_f(n)&&n.host&&o)break;n=floating_ui_dom_browser_min_f(n)&&n.host||n.parentNode}return e}(t):null}function floating_ui_dom_browser_min_T(t){const e=floating_ui_dom_browser_min_o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===floating_ui_dom_browser_min_i(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===floating_ui_dom_browser_min_i(n).position&&!floating_ui_dom_browser_min_a(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_f(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_a(e))return e;{const t=e.parentNode;e=floating_ui_dom_browser_min_f(t)?t.host:t}}return null}(t)||e}function W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,s=e.concat(c);return r?s:s.concat(H(c))}function floating_ui_dom_browser_min_A(e,n,r){return"viewport"===n?l(function(t,e){const n=floating_ui_dom_browser_min_o(t),i=floating_ui_dom_browser_min_y(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,s=0,f=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_h();(t||!t&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:l,height:c,x:s,y:f}}(e,r)):floating_ui_dom_browser_min_s(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l(function(t){var e;const n=floating_ui_dom_browser_min_y(t),o=floating_ui_dom_browser_min_v(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let s=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const f=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(s+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:s,y:f}}(floating_ui_dom_browser_min_y(e)))}function C(t){const e=H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_s(n)?e.filter((t=>floating_ui_dom_browser_min_s(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_f(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?C(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=floating_ui_dom_browser_min_A(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),floating_ui_dom_browser_min_A(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_y(n);if(n===l)return e;let s={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(s=floating_ui_dom_browser_min_v(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);f.x=t.x+n.clientLeft,f.y=t.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+f.x,y:e.y-s.scrollTop+f.y}},isElement:floating_ui_dom_browser_min_s,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_y,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,f=i&&!c,u=r&&!c,d=f||u?[...floating_ui_dom_browser_min_s(t)?H(t):[],...H(e)]:[];d.forEach((t=>{f&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let a,h=null;if(l){let o=!0;h=new ResizeObserver((()=>{o||n(),o=!1})),floating_ui_dom_browser_min_s(t)&&!c&&h.observe(t),h.observe(e)}let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,a=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{f&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=h)||t.disconnect(),h=null,c&&cancelAnimationFrame(a)}}const floating_ui_dom_browser_min_P=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o}); ;// CONCATENATED MODULE: external "ReactDOM" var external_ReactDOM_namespaceObject = window["ReactDOM"]; @@ -5245,7 +5245,7 @@ function useFloating(_temp) { return; } - floating_ui_dom_browser_min_B(reference.current, floating.current, { + floating_ui_dom_browser_min_P(reference.current, floating.current, { middleware: latestMiddleware, placement, strategy @@ -5330,7 +5330,7 @@ const arrow = options => { fn(args) { if (isRef(element)) { if (element.current != null) { - return g({ + return m({ element: element.current, padding }).fn(args); @@ -5338,7 +5338,7 @@ const arrow = options => { return {}; } else if (element) { - return g({ + return m({ element, padding }).fn(args); @@ -21822,7 +21822,7 @@ function overlayMiddlewares() { return rects.reference; } - }, C({ + }, k({ apply({ rects, elements @@ -22046,7 +22046,7 @@ const UnforwardedPopover = (props, forwardedRef) => { }; } - }, L(offsetProp), computedFlipProp ? A() : undefined, computedResizeProp ? C({ + }, T(offsetProp), computedFlipProp ? b() : undefined, computedResizeProp ? k({ apply(sizeProps) { var _refs$floating$curren; @@ -22062,7 +22062,7 @@ const UnforwardedPopover = (props, forwardedRef) => { }); } - }) : undefined, shift ? O({ + }) : undefined, shift ? L({ crossAxis: true, limiter: limitShift(), padding: 1 // Necessary to avoid flickering at the edge of the viewport. @@ -22114,7 +22114,7 @@ const UnforwardedPopover = (props, forwardedRef) => { } = useFloating({ placement: normalizedPlacementFromProps === 'overlay' ? undefined : normalizedPlacementFromProps, middleware, - whileElementsMounted: (referenceParam, floatingParam, updateParam) => floating_ui_dom_browser_min_A(referenceParam, floatingParam, updateParam, { + whileElementsMounted: (referenceParam, floatingParam, updateParam) => N(referenceParam, floatingParam, updateParam, { animationFrame: true }) }); @@ -23071,7 +23071,7 @@ if (false) { var globalKey, globalContext, isTestEnv, emotion_react_browser_esm_ ;// CONCATENATED MODULE: ./node_modules/colord/index.mjs -var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},colord_t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},colord_u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},colord_i=/^#([0-9a-f]{3,8})$/i,colord_s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},colord_h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},colord_b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},colord_g=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},colord_d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},colord_f=function(r){return colord_b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},colord_c=function(r){return{h:(t=colord_h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},colord_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_y={string:[[function(r){var t=colord_i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=colord_v.exec(r)||colord_m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=colord_l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=colord_g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return colord_f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return colord_t(n)&&colord_t(e)&&colord_t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!colord_t(n)||!colord_t(e)||!colord_t(u))return null;var i=colord_g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return colord_f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!colord_t(n)||!colord_t(a)||!colord_t(o))return null;var h=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return colord_b(h)},"hsv"]]},N=function(r,t){for(var n=0;n=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?colord_s(colord_n(255*a)):"","#"+colord_s(t)+colord_s(e)+colord_s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return colord_d(colord_c(this.rgba))},r.prototype.toHslString=function(){return r=colord_d(colord_c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=colord_h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return colord_w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),colord_w(colord_M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),colord_w(colord_M(this.rgba,-r))},r.prototype.grayscale=function(){return colord_w(colord_M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?colord_w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=colord_c(this.rgba);return"number"==typeof r?colord_w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===colord_w(r).toHex()},r}(),colord_w=function(r){return r instanceof j?r:new j(r)},colord_S=[],colord_k=function(r){r.forEach(function(r){colord_S.indexOf(r)<0&&(r(j,colord_y),colord_S.push(r))})},colord_E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}; +var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},colord_t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},colord_u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},colord_i=/^#([0-9a-f]{3,8})$/i,colord_s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},colord_h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},colord_b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},colord_g=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},colord_d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},colord_f=function(r){return colord_b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},colord_c=function(r){return{h:(t=colord_h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},colord_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_y={string:[[function(r){var t=colord_i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=colord_v.exec(r)||colord_m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=colord_l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=colord_g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return colord_f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return colord_t(n)&&colord_t(e)&&colord_t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!colord_t(n)||!colord_t(e)||!colord_t(u))return null;var i=colord_g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return colord_f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!colord_t(n)||!colord_t(a)||!colord_t(o))return null;var h=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return colord_b(h)},"hsv"]]},colord_N=function(r,t){for(var n=0;n=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?colord_s(colord_n(255*a)):"","#"+colord_s(t)+colord_s(e)+colord_s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return colord_d(colord_c(this.rgba))},r.prototype.toHslString=function(){return r=colord_d(colord_c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=colord_h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return colord_w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,-r))},r.prototype.grayscale=function(){return colord_w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?colord_w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=colord_c(this.rgba);return"number"==typeof r?colord_w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===colord_w(r).toHex()},r}(),colord_w=function(r){return r instanceof j?r:new j(r)},S=[],colord_k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,colord_y),S.push(r))})},colord_E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}; ;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs /* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u BEFORE_LAST_KINEMATICS_DELAY)) { - state.delta = maths_0ab39ae9_esm_V.sub(state.offset, previousOffset); + state.delta = V.sub(state.offset, previousOffset); const absoluteDelta = state.delta.map(Math.abs); - maths_0ab39ae9_esm_V.addTo(state.distance, absoluteDelta); + V.addTo(state.distance, absoluteDelta); state.direction = state.delta.map(Math.sign); state._direction = state._delta.map(Math.sign); if (!state.first && dt > 0) { @@ -28008,10 +28008,10 @@ class CoordinatesEngine extends Engine { this.state.lastOffset = [0, 0]; } computeOffset() { - this.state.offset = maths_0ab39ae9_esm_V.add(this.state.lastOffset, this.state.movement); + this.state.offset = V.add(this.state.lastOffset, this.state.movement); } computeMovement() { - this.state.movement = maths_0ab39ae9_esm_V.sub(this.state.offset, this.state.lastOffset); + this.state.movement = V.sub(this.state.offset, this.state.lastOffset); } axisIntent(event) { const state = this.state; @@ -28058,12 +28058,12 @@ const commonConfigResolver = { case false: return [0, 0]; default: - return maths_0ab39ae9_esm_V.toVector(value); + return V.toVector(value); } }, from(value) { if (typeof value === 'function') return value; - if (value != null) return maths_0ab39ae9_esm_V.toVector(value); + if (value != null) return V.toVector(value); }, transform(value, _k, config) { const transform = value || config.shared.transform; @@ -28072,7 +28072,7 @@ const commonConfigResolver = { return transform || identity; }, threshold(value) { - return maths_0ab39ae9_esm_V.toVector(value, 0); + return V.toVector(value, 0); } }; if (false) {} @@ -28211,10 +28211,10 @@ class DragEngine extends CoordinatesEngine { if (document.pointerLockElement === event.target) { state._delta = [event.movementX, event.movementY]; } else { - state._delta = maths_0ab39ae9_esm_V.sub(_values, state._values); + state._delta = V.sub(_values, state._values); this.computeValues(_values); } - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + V.addTo(state._movement, state._delta); this.compute(event); if (state._delayed && state.intentional) { this.timeoutStore.remove('dragDelay'); @@ -28330,7 +28330,7 @@ class DragEngine extends CoordinatesEngine { this.start(event); state._delta = deltaFn(this.config.keyboardDisplacement, factor); state._keyboardActive = true; - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + V.addTo(state._movement, state._delta); this.compute(event); this.emit(); } @@ -28445,7 +28445,7 @@ const dragConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_e tapsThreshold = 3, axis = undefined }) { - const threshold = maths_0ab39ae9_esm_V.toVector(value, filterTaps ? tapsThreshold : axis ? 1 : 0); + const threshold = V.toVector(value, filterTaps ? tapsThreshold : axis ? 1 : 0); this.filterTaps = filterTaps; this.tapsThreshold = tapsThreshold; return threshold; @@ -28456,8 +28456,8 @@ const dragConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_e duration = DEFAULT_SWIPE_DURATION } = {}) { return { - velocity: this.transform(maths_0ab39ae9_esm_V.toVector(velocity)), - distance: this.transform(maths_0ab39ae9_esm_V.toVector(distance)), + velocity: this.transform(V.toVector(velocity)), + distance: this.transform(V.toVector(distance)), duration }; }, @@ -28521,7 +28521,7 @@ class PinchEngine extends Engine { lastOffset } = this.state; if (type === 'wheel') { - this.state.offset = maths_0ab39ae9_esm_V.add(movement, lastOffset); + this.state.offset = V.add(movement, lastOffset); } else { this.state.offset = [(1 + movement[0]) * lastOffset[0], movement[1] + lastOffset[1]]; } @@ -28669,7 +28669,7 @@ class PinchEngine extends Engine { state.origin = [event.clientX, event.clientY]; const _previousMovement = state._movement; state._movement = [event.scale - 1, event.rotation]; - state._delta = maths_0ab39ae9_esm_V.sub(state._movement, _previousMovement); + state._delta = V.sub(state._movement, _previousMovement); this.compute(event); this.emit(); } @@ -28699,7 +28699,7 @@ class PinchEngine extends Engine { } const state = this.state; state._delta = [-wheelValues(event)[1] / PINCH_WHEEL_RATIO * state.offset[0], 0]; - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + V.addTo(state._movement, state._delta); clampStateInternalMovementToBounds(state); this.state.origin = [event.clientX, event.clientY]; this.compute(event); @@ -28766,7 +28766,7 @@ const pinchConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_ }, threshold(value, _k, config) { this.lockDirection = config.axis === 'lock'; - const threshold = maths_0ab39ae9_esm_V.toVector(value, this.lockDirection ? [0.1, 3] : 0); + const threshold = V.toVector(value, this.lockDirection ? [0.1, 3] : 0); return threshold; }, modifierKey(value) { @@ -28799,8 +28799,8 @@ class MoveEngine extends CoordinatesEngine { if (!this.state._active) return; const values = pointerValues(event); const state = this.state; - state._delta = maths_0ab39ae9_esm_V.sub(values, state._values); - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + state._delta = V.sub(values, state._values); + V.addTo(state._movement, state._delta); this.computeValues(values); this.compute(event); this.emit(); @@ -28835,8 +28835,8 @@ class ScrollEngine extends CoordinatesEngine { if (event.cancelable) event.preventDefault(); const state = this.state; const values = scrollValues(event); - state._delta = maths_0ab39ae9_esm_V.sub(values, state._values); - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + state._delta = V.sub(values, state._values); + V.addTo(state._movement, state._delta); this.computeValues(values); this.compute(event); this.emit(); @@ -28867,7 +28867,7 @@ class WheelEngine extends CoordinatesEngine { wheelChange(event) { const state = this.state; state._delta = wheelValues(event); - maths_0ab39ae9_esm_V.addTo(state._movement, state._delta); + V.addTo(state._movement, state._delta); clampStateInternalMovementToBounds(state); this.compute(event); this.emit(); @@ -28903,7 +28903,7 @@ class HoverEngine extends CoordinatesEngine { if (!state._active) return; state._active = false; const values = pointerValues(event); - state._movement = state._delta = maths_0ab39ae9_esm_V.sub(values, state._values); + state._movement = state._delta = V.sub(values, state._values); this.computeValues(values); this.compute(event); state.delta = state.movement; @@ -37310,7 +37310,7 @@ const ColorInput = ({ }; ;// CONCATENATED MODULE: ./node_modules/react-colorful/dist/index.mjs -function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return dist_L(dist_C(e))},dist_C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},dist_O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=dist_O,dist_z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},dist_B=dist_z,dist_D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?dist_D(dist_b(255*o)):"";return"#"+dist_D(r)+dist_D(t)+dist_D(n)+a},dist_L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},dist_A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),dist_T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),dist_F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},dist_P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||dist_F(dist_C(e),dist_C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;dist_F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var dist_R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return dist_R||( true?__webpack_require__.nc:0)},G=function(e){dist_R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},dist_W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:dist_W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:dist_F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:dist_P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:dist_F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:dist_P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:dist_A,equal:dist_F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:dist_O,fromHsva:function(e){var r=dist_A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:dist_P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=dist_A(e);return{h:r.h,s:r.s,v:r.v}},equal:dist_F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=dist_A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:dist_P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:dist_L,fromHsva:dist_I,equal:dist_F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:dist_z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:dist_P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return dist_L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:dist_F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:dist_B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:dist_P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))}; +function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return dist_L(dist_C(e))},dist_C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},dist_O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=dist_O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,dist_D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?dist_D(dist_b(255*o)):"";return"#"+dist_D(r)+dist_D(t)+dist_D(n)+a},dist_L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},dist_A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),dist_T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},dist_P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(dist_C(e),dist_C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var dist_R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return dist_R||( true?__webpack_require__.nc:0)},G=function(e){dist_R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},dist_W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:dist_W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:dist_P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:dist_P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:dist_A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:dist_O,fromHsva:function(e){var r=dist_A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:dist_P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=dist_A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=dist_A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:dist_P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:dist_L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:dist_P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return dist_L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:dist_P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))}; //# sourceMappingURL=index.module.js.map ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/picker.js @@ -73255,10 +73255,10 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) { ;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs -function floating_ui_core_browser_min_t(t){return t.split("-")[0]}function dist_floating_ui_core_browser_min_e(t){return t.split("-")[1]}function dist_floating_ui_core_browser_min_n(e){return["top","bottom"].includes(floating_ui_core_browser_min_t(e))?"x":"y"}function dist_floating_ui_core_browser_min_r(t){return"y"===t?"height":"width"}function floating_ui_core_browser_min_i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=dist_floating_ui_core_browser_min_n(o),m=dist_floating_ui_core_browser_min_r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(floating_ui_core_browser_min_t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(dist_floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const dist_floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=floating_ui_core_browser_min_i(c,r,s),m=r,g={},d=0;for(let n=0;n({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=dist_floating_ui_core_browser_min_a(l),p={x:s,y:c},h=dist_floating_ui_core_browser_min_n(f),y=dist_floating_ui_core_browser_min_e(f),x=dist_floating_ui_core_browser_min_r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=floating_ui_core_browser_min_u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?kfloating_ui_core_browser_min_g[t]))}function floating_ui_core_browser_min_p(t,i,o){void 0===o&&(o=!1);const a=dist_floating_ui_core_browser_min_e(t),l=dist_floating_ui_core_browser_min_n(t),s=dist_floating_ui_core_browser_min_r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=floating_ui_core_browser_min_d(c)),{main:c,cross:floating_ui_core_browser_min_d(c)}}const floating_ui_core_browser_min_h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>floating_ui_core_browser_min_h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],floating_ui_core_browser_min_w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const floating_ui_core_browser_min_v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=floating_ui_core_browser_min_w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>dist_floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>dist_floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>floating_ui_core_browser_min_t(e)===e))).filter((t=>!n||dist_floating_ui_core_browser_min_e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await dist_floating_ui_core_browser_min_s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=floating_ui_core_browser_min_p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[floating_ui_core_browser_min_t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const floating_ui_core_browser_min_b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=floating_ui_core_browser_min_t(i),b=g||(v===l||!x?[floating_ui_core_browser_min_d(l)]:function(t){const e=floating_ui_core_browser_min_d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await dist_floating_ui_core_browser_min_s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=floating_ui_core_browser_min_p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function floating_ui_core_browser_min_R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function floating_ui_core_browser_min_A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const floating_ui_core_browser_min_P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=floating_ui_core_browser_min_R(await dist_floating_ui_core_browser_min_s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:floating_ui_core_browser_min_A(e)}}}case"escaped":{const e=floating_ui_core_browser_min_R(await dist_floating_ui_core_browser_min_s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:floating_ui_core_browser_min_A(e)}}}default:return{}}}}};const floating_ui_core_browser_min_T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=floating_ui_core_browser_min_t(o),f=dist_floating_ui_core_browser_min_e(o),u="x"===dist_floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function floating_ui_core_browser_min_O(t){return"x"===t?"y":"x"}const floating_ui_core_browser_min_D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await dist_floating_ui_core_browser_min_s(r,m),p=dist_floating_ui_core_browser_min_n(floating_ui_core_browser_min_t(a)),h=floating_ui_core_browser_min_O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=floating_ui_core_browser_min_u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=floating_ui_core_browser_min_u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},floating_ui_core_browser_min_L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=dist_floating_ui_core_browser_min_n(a),d=floating_ui_core_browser_min_O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;pn&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(floating_ui_core_browser_min_t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);hi&&(h=i)}return{[g]:p,[d]:h}}}},floating_ui_core_browser_min_k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await dist_floating_ui_core_browser_min_s(r,u),g=floating_ui_core_browser_min_t(i),d=dist_floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=floating_ui_core_browser_min_f(m.left,0),x=floating_ui_core_browser_min_f(m.right,0),w=floating_ui_core_browser_min_f(m.top,0),v=floating_ui_core_browser_min_f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:floating_ui_core_browser_min_f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:floating_ui_core_browser_min_f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},floating_ui_core_browser_min_E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=floating_ui_core_browser_min_l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=dist_floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&pt.top-w.top&&h=2){if("x"===dist_floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===floating_ui_core_browser_min_t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===floating_ui_core_browser_min_t(o),r=floating_ui_core_browser_min_f(...x.map((t=>t.right))),i=floating_ui_core_browser_min_c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}; +function floating_ui_core_browser_min_t(t){return t.split("-")[0]}function dist_floating_ui_core_browser_min_e(t){return t.split("-")[1]}function dist_floating_ui_core_browser_min_n(e){return["top","bottom"].includes(floating_ui_core_browser_min_t(e))?"x":"y"}function floating_ui_core_browser_min_r(t){return"y"===t?"height":"width"}function floating_ui_core_browser_min_i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=dist_floating_ui_core_browser_min_n(o),m=floating_ui_core_browser_min_r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(floating_ui_core_browser_min_t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(dist_floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const dist_floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=floating_ui_core_browser_min_i(c,r,s),m=r,g={},d=0;for(let n=0;n({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=dist_floating_ui_core_browser_min_a(l),p={x:s,y:c},h=dist_floating_ui_core_browser_min_n(f),y=dist_floating_ui_core_browser_min_e(f),x=floating_ui_core_browser_min_r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=floating_ui_core_browser_min_u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?kfloating_ui_core_browser_min_g[t]))}function floating_ui_core_browser_min_p(t,i,o){void 0===o&&(o=!1);const a=dist_floating_ui_core_browser_min_e(t),l=dist_floating_ui_core_browser_min_n(t),s=floating_ui_core_browser_min_r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=floating_ui_core_browser_min_d(c)),{main:c,cross:floating_ui_core_browser_min_d(c)}}const floating_ui_core_browser_min_h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>floating_ui_core_browser_min_h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],floating_ui_core_browser_min_w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const floating_ui_core_browser_min_v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=floating_ui_core_browser_min_w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>dist_floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>dist_floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>floating_ui_core_browser_min_t(e)===e))).filter((t=>!n||dist_floating_ui_core_browser_min_e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await floating_ui_core_browser_min_s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=floating_ui_core_browser_min_p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[floating_ui_core_browser_min_t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const floating_ui_core_browser_min_b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=floating_ui_core_browser_min_t(i),b=g||(v===l||!x?[floating_ui_core_browser_min_d(l)]:function(t){const e=floating_ui_core_browser_min_d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await floating_ui_core_browser_min_s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=floating_ui_core_browser_min_p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function floating_ui_core_browser_min_R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function floating_ui_core_browser_min_A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const floating_ui_core_browser_min_P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:floating_ui_core_browser_min_A(e)}}}case"escaped":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:floating_ui_core_browser_min_A(e)}}}default:return{}}}}};const floating_ui_core_browser_min_T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=floating_ui_core_browser_min_t(o),f=dist_floating_ui_core_browser_min_e(o),u="x"===dist_floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function floating_ui_core_browser_min_O(t){return"x"===t?"y":"x"}const floating_ui_core_browser_min_D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await floating_ui_core_browser_min_s(r,m),p=dist_floating_ui_core_browser_min_n(floating_ui_core_browser_min_t(a)),h=floating_ui_core_browser_min_O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=floating_ui_core_browser_min_u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=floating_ui_core_browser_min_u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},floating_ui_core_browser_min_L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=dist_floating_ui_core_browser_min_n(a),d=floating_ui_core_browser_min_O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;pn&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(floating_ui_core_browser_min_t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);hi&&(h=i)}return{[g]:p,[d]:h}}}},floating_ui_core_browser_min_k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await floating_ui_core_browser_min_s(r,u),g=floating_ui_core_browser_min_t(i),d=dist_floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=floating_ui_core_browser_min_f(m.left,0),x=floating_ui_core_browser_min_f(m.right,0),w=floating_ui_core_browser_min_f(m.top,0),v=floating_ui_core_browser_min_f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:floating_ui_core_browser_min_f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:floating_ui_core_browser_min_f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},floating_ui_core_browser_min_E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=floating_ui_core_browser_min_l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=dist_floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&pt.top-w.top&&h=2){if("x"===dist_floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===floating_ui_core_browser_min_t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===floating_ui_core_browser_min_t(o),r=floating_ui_core_browser_min_f(...x.map((t=>t.right))),i=floating_ui_core_browser_min_c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}; ;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs -function dist_floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function dist_floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!dist_floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function dist_floating_ui_dom_browser_min_i(t){return dist_floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return dist_floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function dist_floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function dist_floating_ui_dom_browser_min_c(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).HTMLElement}function dist_floating_ui_dom_browser_min_f(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).Element}function floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof dist_floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function dist_floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=dist_floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function dist_floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function dist_floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(dist_floating_ui_dom_browser_min_l()),n=dist_floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function dist_floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(dist_floating_ui_dom_browser_min_l())}const dist_floating_ui_dom_browser_min_g=Math.min,dist_floating_ui_dom_browser_min_p=Math.max,dist_floating_ui_dom_browser_min_m=Math.round;function dist_floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&dist_floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&dist_floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&dist_floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=dist_floating_ui_dom_browser_min_f(t)?dist_floating_ui_dom_browser_min_o(t):window,p=!dist_floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function dist_floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof dist_floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function dist_floating_ui_dom_browser_min_y(t){return dist_floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dist_floating_ui_dom_browser_min_x(t){return dist_floating_ui_dom_browser_min_w(dist_floating_ui_dom_browser_min_v(t)).left+dist_floating_ui_dom_browser_min_y(t).scrollLeft}function dist_floating_ui_dom_browser_min_b(t,e,n){const o=dist_floating_ui_dom_browser_min_c(e),i=dist_floating_ui_dom_browser_min_v(e),l=dist_floating_ui_dom_browser_min_w(t,o&&function(t){const e=dist_floating_ui_dom_browser_min_w(t);return dist_floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||dist_floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||dist_floating_ui_dom_browser_min_u(i))&&(f=dist_floating_ui_dom_browser_min_y(e)),dist_floating_ui_dom_browser_min_c(e)){const t=dist_floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=dist_floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function dist_floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_s(t)?t.host:null)||dist_floating_ui_dom_browser_min_v(t)}function dist_floating_ui_dom_browser_min_R(t){return dist_floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function dist_floating_ui_dom_browser_min_T(t){const e=dist_floating_ui_dom_browser_min_o(t);let n=dist_floating_ui_dom_browser_min_R(t);for(;n&&dist_floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=dist_floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!dist_floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=dist_floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_s(e)&&(e=e.host);dist_floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(dist_floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function floating_ui_dom_browser_min_W(t){if(dist_floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=dist_floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function dist_floating_ui_dom_browser_min_E(t){const e=dist_floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:dist_floating_ui_dom_browser_min_c(e)&&dist_floating_ui_dom_browser_min_u(e)?e:dist_floating_ui_dom_browser_min_E(e)}function floating_ui_dom_browser_min_H(t,e){var n;void 0===e&&(e=[]);const i=dist_floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=dist_floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],dist_floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(floating_ui_dom_browser_min_H(c))}function dist_floating_ui_dom_browser_min_C(e,n,r){return"viewport"===n?floating_ui_core_browser_min_l(function(t,e){const n=dist_floating_ui_dom_browser_min_o(t),i=dist_floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=dist_floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):dist_floating_ui_dom_browser_min_f(n)?function(t,e){const n=dist_floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):floating_ui_core_browser_min_l(function(t){var e;const n=dist_floating_ui_dom_browser_min_v(t),o=dist_floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=dist_floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=dist_floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+dist_floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===dist_floating_ui_dom_browser_min_i(r||n).direction&&(f+=dist_floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(dist_floating_ui_dom_browser_min_v(e)))}function floating_ui_dom_browser_min_S(t){const e=floating_ui_dom_browser_min_H(t),n=["absolute","fixed"].includes(dist_floating_ui_dom_browser_min_i(t).position)&&dist_floating_ui_dom_browser_min_c(t)?dist_floating_ui_dom_browser_min_T(t):t;return dist_floating_ui_dom_browser_min_f(n)?e.filter((t=>dist_floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const dist_floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?floating_ui_dom_browser_min_S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=dist_floating_ui_dom_browser_min_C(e,n,i);return t.top=dist_floating_ui_dom_browser_min_p(o.top,t.top),t.right=dist_floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=dist_floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=dist_floating_ui_dom_browser_min_p(o.left,t.left),t}),dist_floating_ui_dom_browser_min_C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=dist_floating_ui_dom_browser_min_c(n),l=dist_floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||dist_floating_ui_dom_browser_min_u(l))&&(f=dist_floating_ui_dom_browser_min_y(n)),dist_floating_ui_dom_browser_min_c(n))){const t=dist_floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:dist_floating_ui_dom_browser_min_f,getDimensions:floating_ui_dom_browser_min_W,getOffsetParent:dist_floating_ui_dom_browser_min_T,getDocumentElement:dist_floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:dist_floating_ui_dom_browser_min_b(e,dist_floating_ui_dom_browser_min_T(n),o),floating:{...floating_ui_dom_browser_min_W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===dist_floating_ui_dom_browser_min_i(t).direction};function floating_ui_dom_browser_min_N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...dist_floating_ui_dom_browser_min_f(t)?floating_ui_dom_browser_min_H(t):[],...floating_ui_dom_browser_min_H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;if(l){let o=!0;a=new ResizeObserver((()=>{o||n(),o=!1})),dist_floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e)}let g=c?dist_floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=dist_floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const floating_ui_dom_browser_min_z=(t,n,o)=>dist_floating_ui_core_browser_min_o(t,n,{platform:dist_floating_ui_dom_browser_min_D,...o}); +function dist_floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function dist_floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!dist_floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function dist_floating_ui_dom_browser_min_i(t){return dist_floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function dist_floating_ui_dom_browser_min_r(t){return dist_floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function dist_floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function dist_floating_ui_dom_browser_min_c(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).HTMLElement}function dist_floating_ui_dom_browser_min_f(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).Element}function dist_floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof dist_floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function dist_floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=dist_floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function dist_floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(dist_floating_ui_dom_browser_min_r(t))}function dist_floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(dist_floating_ui_dom_browser_min_l()),n=dist_floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function dist_floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(dist_floating_ui_dom_browser_min_l())}const dist_floating_ui_dom_browser_min_g=Math.min,dist_floating_ui_dom_browser_min_p=Math.max,dist_floating_ui_dom_browser_min_m=Math.round;function dist_floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&dist_floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&dist_floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&dist_floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=dist_floating_ui_dom_browser_min_f(t)?dist_floating_ui_dom_browser_min_o(t):window,p=!dist_floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function dist_floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof dist_floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function dist_floating_ui_dom_browser_min_y(t){return dist_floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dist_floating_ui_dom_browser_min_x(t){return dist_floating_ui_dom_browser_min_w(dist_floating_ui_dom_browser_min_v(t)).left+dist_floating_ui_dom_browser_min_y(t).scrollLeft}function dist_floating_ui_dom_browser_min_b(t,e,n){const o=dist_floating_ui_dom_browser_min_c(e),i=dist_floating_ui_dom_browser_min_v(e),l=dist_floating_ui_dom_browser_min_w(t,o&&function(t){const e=dist_floating_ui_dom_browser_min_w(t);return dist_floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||dist_floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==dist_floating_ui_dom_browser_min_r(e)||dist_floating_ui_dom_browser_min_u(i))&&(f=dist_floating_ui_dom_browser_min_y(e)),dist_floating_ui_dom_browser_min_c(e)){const t=dist_floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=dist_floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function dist_floating_ui_dom_browser_min_L(t){return"html"===dist_floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(dist_floating_ui_dom_browser_min_s(t)?t.host:null)||dist_floating_ui_dom_browser_min_v(t)}function dist_floating_ui_dom_browser_min_R(t){return dist_floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function dist_floating_ui_dom_browser_min_T(t){const e=dist_floating_ui_dom_browser_min_o(t);let n=dist_floating_ui_dom_browser_min_R(t);for(;n&&dist_floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=dist_floating_ui_dom_browser_min_R(n);return n&&("html"===dist_floating_ui_dom_browser_min_r(n)||"body"===dist_floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!dist_floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=dist_floating_ui_dom_browser_min_L(t);for(dist_floating_ui_dom_browser_min_s(e)&&(e=e.host);dist_floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(dist_floating_ui_dom_browser_min_r(e));){if(dist_floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function floating_ui_dom_browser_min_W(t){if(dist_floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=dist_floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function dist_floating_ui_dom_browser_min_E(t){const e=dist_floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(dist_floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:dist_floating_ui_dom_browser_min_c(e)&&dist_floating_ui_dom_browser_min_u(e)?e:dist_floating_ui_dom_browser_min_E(e)}function floating_ui_dom_browser_min_H(t,e){var n;void 0===e&&(e=[]);const i=dist_floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=dist_floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],dist_floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(floating_ui_dom_browser_min_H(c))}function floating_ui_dom_browser_min_C(e,n,r){return"viewport"===n?floating_ui_core_browser_min_l(function(t,e){const n=dist_floating_ui_dom_browser_min_o(t),i=dist_floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=dist_floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):dist_floating_ui_dom_browser_min_f(n)?function(t,e){const n=dist_floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):floating_ui_core_browser_min_l(function(t){var e;const n=dist_floating_ui_dom_browser_min_v(t),o=dist_floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=dist_floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=dist_floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+dist_floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===dist_floating_ui_dom_browser_min_i(r||n).direction&&(f+=dist_floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(dist_floating_ui_dom_browser_min_v(e)))}function floating_ui_dom_browser_min_S(t){const e=floating_ui_dom_browser_min_H(t),n=["absolute","fixed"].includes(dist_floating_ui_dom_browser_min_i(t).position)&&dist_floating_ui_dom_browser_min_c(t)?dist_floating_ui_dom_browser_min_T(t):t;return dist_floating_ui_dom_browser_min_f(n)?e.filter((t=>dist_floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&dist_floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==dist_floating_ui_dom_browser_min_r(t))):[]}const dist_floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?floating_ui_dom_browser_min_S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=floating_ui_dom_browser_min_C(e,n,i);return t.top=dist_floating_ui_dom_browser_min_p(o.top,t.top),t.right=dist_floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=dist_floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=dist_floating_ui_dom_browser_min_p(o.left,t.left),t}),floating_ui_dom_browser_min_C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=dist_floating_ui_dom_browser_min_c(n),l=dist_floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==dist_floating_ui_dom_browser_min_r(n)||dist_floating_ui_dom_browser_min_u(l))&&(f=dist_floating_ui_dom_browser_min_y(n)),dist_floating_ui_dom_browser_min_c(n))){const t=dist_floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:dist_floating_ui_dom_browser_min_f,getDimensions:floating_ui_dom_browser_min_W,getOffsetParent:dist_floating_ui_dom_browser_min_T,getDocumentElement:dist_floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:dist_floating_ui_dom_browser_min_b(e,dist_floating_ui_dom_browser_min_T(n),o),floating:{...floating_ui_dom_browser_min_W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===dist_floating_ui_dom_browser_min_i(t).direction};function floating_ui_dom_browser_min_N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...dist_floating_ui_dom_browser_min_f(t)?floating_ui_dom_browser_min_H(t):[],...floating_ui_dom_browser_min_H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;if(l){let o=!0;a=new ResizeObserver((()=>{o||n(),o=!1})),dist_floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e)}let g=c?dist_floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=dist_floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const floating_ui_dom_browser_min_z=(t,n,o)=>dist_floating_ui_core_browser_min_o(t,n,{platform:dist_floating_ui_dom_browser_min_D,...o}); ;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 8595ab30c7..8faa591e7b 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -38,18 +38,18 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:function(e,t,n){"use strict";e.exports=n(7755)},9196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};!function(){"use strict";o.r(i),o.d(i,{AnglePickerControl:function(){return xb},Animate:function(){return Vm},Autocomplete:function(){return Db},BaseControl:function(){return Kv},BlockQuotation:function(){return r.BlockQuotation},Button:function(){return wd},ButtonGroup:function(){return ZC},Card:function(){return NS},CardBody:function(){return HS},CardDivider:function(){return XS},CardFooter:function(){return JS},CardHeader:function(){return ek},CardMedia:function(){return nk},CheckboxControl:function(){return rk},Circle:function(){return r.Circle},ClipboardButton:function(){return ik},ColorIndicator:function(){return hy},ColorPalette:function(){return x_},ColorPicker:function(){return a_},ComboboxControl:function(){return GT},CustomGradientPicker:function(){return Zk},CustomSelectControl:function(){return RP},Dashicon:function(){return Jl},DatePicker:function(){return vI},DateTimePicker:function(){return BI},Disabled:function(){return KI},Draggable:function(){return YI},DropZone:function(){return ZI},DropZoneProvider:function(){return JI},Dropdown:function(){return wy},DropdownMenu:function(){return mT},DuotonePicker:function(){return aN},DuotoneSwatch:function(){return tN},ExternalLink:function(){return cN},Fill:function(){return Pf},Flex:function(){return Eh},FlexBlock:function(){return rh},FlexItem:function(){return _h},FocalPointPicker:function(){return AN},FocusReturnProvider:function(){return wj},FocusableIframe:function(){return LN},FontSizePicker:function(){return NO},FormFileUpload:function(){return OO},FormToggle:function(){return AO},FormTokenField:function(){return VO},G:function(){return r.G},GradientPicker:function(){return nT},Guide:function(){return WO},GuidePage:function(){return UO},HorizontalRule:function(){return r.HorizontalRule},Icon:function(){return Ql},IconButton:function(){return GO},IsolatedEventContainer:function(){return oj},KeyboardShortcuts:function(){return ZO},Line:function(){return r.Line},MenuGroup:function(){return JO},MenuItem:function(){return QO},MenuItemsChoice:function(){return tD},Modal:function(){return QT},NavigableMenu:function(){return uT},Notice:function(){return bA},NoticeList:function(){return wA},Panel:function(){return EA},PanelBody:function(){return TA},PanelHeader:function(){return xA},PanelRow:function(){return RA},Path:function(){return r.Path},Placeholder:function(){return MA},Polygon:function(){return r.Polygon},Popover:function(){return Uf},QueryControls:function(){return jA},RadioControl:function(){return WA},RangeControl:function(){return sw},Rect:function(){return r.Rect},ResizableBox:function(){return PL},ResponsiveWrapper:function(){return ML},SVG:function(){return r.SVG},SandBox:function(){return NL},ScrollLock:function(){return Cd},SearchControl:function(){return dD},SelectControl:function(){return My},Slot:function(){return Mf},SlotFillProvider:function(){return If},Snackbar:function(){return DL},SnackbarList:function(){return LL},Spinner:function(){return HL},TabPanel:function(){return GL},TabbableContainer:function(){return nD},TextControl:function(){return qL},TextHighlight:function(){return tz},TextareaControl:function(){return ez},TimePicker:function(){return AI},Tip:function(){return rz},ToggleControl:function(){return oz},Toolbar:function(){return wB},ToolbarButton:function(){return GF},ToolbarDropdownMenu:function(){return xB},ToolbarGroup:function(){return YF},ToolbarItem:function(){return WF},Tooltip:function(){return Jf},TreeSelect:function(){return AA},VisuallyHidden:function(){return vd},__experimentalAlignmentMatrixControl:function(){return Fm},__experimentalApplyValueToSides:function(){return RC},__experimentalBorderBoxControl:function(){return iC},__experimentalBorderControl:function(){return V_},__experimentalBoxControl:function(){return XC},__experimentalConfirmDialog:function(){return tR},__experimentalDimensionControl:function(){return VI},__experimentalDivider:function(){return qS},__experimentalDropdownContentWrapper:function(){return h_},__experimentalElevation:function(){return tS},__experimentalGrid:function(){return W_},__experimentalHStack:function(){return ub},__experimentalHasSplitBorders:function(){return J_},__experimentalHeading:function(){return f_},__experimentalInputControl:function(){return Xv},__experimentalInputControlPrefixWrapper:function(){return YO},__experimentalInputControlSuffixWrapper:function(){return xy},__experimentalIsDefinedBorder:function(){return Z_},__experimentalIsEmptyBorder:function(){return X_},__experimentalItem:function(){return qO},__experimentalItemGroup:function(){return Ek},__experimentalNavigation:function(){return kD},__experimentalNavigationBackButton:function(){return MD},__experimentalNavigationGroup:function(){return OD},__experimentalNavigationItem:function(){return HD},__experimentalNavigationMenu:function(){return KD},__experimentalNavigatorBackButton:function(){return mA},__experimentalNavigatorButton:function(){return fA},__experimentalNavigatorProvider:function(){return iA},__experimentalNavigatorScreen:function(){return cA},__experimentalNavigatorToParentButton:function(){return hA},__experimentalNumberControl:function(){return pb},__experimentalPaletteEdit:function(){return NT},__experimentalParseQuantityAndUnitFromRawValue:function(){return P_},__experimentalRadio:function(){return HA},__experimentalRadioGroup:function(){return $A},__experimentalScrollable:function(){return jS},__experimentalSpacer:function(){return hh},__experimentalStyleProvider:function(){return xf},__experimentalSurface:function(){return $L},__experimentalText:function(){return ng},__experimentalToggleGroupControl:function(){return uO},__experimentalToggleGroupControlOption:function(){return TO},__experimentalToggleGroupControlOptionIcon:function(){return az},__experimentalToolbarContext:function(){return $F},__experimentalToolsPanel:function(){return VB},__experimentalToolsPanelContext:function(){return NB},__experimentalToolsPanelItem:function(){return WB},__experimentalTreeGrid:function(){return ZB},__experimentalTreeGridCell:function(){return nj},__experimentalTreeGridItem:function(){return tj},__experimentalTreeGridRow:function(){return JB},__experimentalTruncate:function(){return d_},__experimentalUnitControl:function(){return z_},__experimentalUseCustomUnits:function(){return M_},__experimentalUseNavigator:function(){return uA},__experimentalUseSlot:function(){return nf},__experimentalUseSlotFills:function(){return ij},__experimentalVStack:function(){return u_},__experimentalView:function(){return gd},__experimentalZStack:function(){return uj},__unstableAnimatePresence:function(){return qm},__unstableComposite:function(){return Rm},__unstableCompositeGroup:function(){return Im},__unstableCompositeItem:function(){return ke},__unstableDisclosureContent:function(){return Yx},__unstableGetAnimateClassName:function(){return jm},__unstableMotion:function(){return Kl},__unstableUseAutocompleteProps:function(){return Ob},__unstableUseCompositeState:function(){return ym},__unstableUseNavigateRegions:function(){return fj},createSlotFill:function(){return Nf},navigateRegions:function(){return pj},privateApis:function(){return jG},useBaseControlProps:function(){return Ab},withConstrainedTabbing:function(){return mj},withFallbackStyles:function(){return hj},withFilters:function(){return bj},withFocusOutside:function(){return VT},withFocusReturn:function(){return yj},withNotices:function(){return xj},withSpokenMessages:function(){return $D}});var e={};o.r(e),o.d(e,{Text:function(){return jh},block:function(){return Vh},destructive:function(){return $h},highlighterText:function(){return Uh},muted:function(){return Wh},positive:function(){return Hh},upperCase:function(){return Gh}});var t={};o.r(t),o.d(t,{TooltipContent:function(){return rE},TooltipPopoverView:function(){return oE},TooltipShortcut:function(){return aE},noOutline:function(){return iE}});var n={};o.r(n),o.d(n,{ButtonContentView:function(){return wO},LabelView:function(){return hO},buttonView:function(){return vO},labelBlock:function(){return gO}});var r=window.wp.primitives,a=window.wp.element,s=o(4403),l=o.n(s),c=window.wp.i18n,u=window.wp.compose;function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e){for(var t=1;t=0||(o[n]=e[n]);return o}function h(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)}var v=o(9196),b=o.t(v,2),y=o.n(v);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(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 E(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)}var k=(0,v.createContext)({});var T,R=function(e,t,n){void 0===n&&(n=t.children);var r=(0,v.useContext)(k);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(_(t,["children"]))}return(0,v.createElement)(e,t,n)};function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!N(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["state"]);return[I(I({},i),a),o]}function A(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;i0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=B({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=m(e,["unstable_system"]),o=t.unstable_system,i=m(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,v.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=B({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return p({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=m(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,v.useRef)(null),d=G(o),f=G(i),h=G(a),g=G(s),b=!!e.disabled&&!e.focusable,y=(0,v.useState)(!0),w=y[0],x=y[1],E=(0,v.useState)(!0),_=E[0],C=E[1],S=e.disabled?p({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var k=se(d,e.disabled),T=se(f,e.disabled),R=se(g,e.disabled),P=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return p({ref:V(u,n),style:S,tabIndex:ae(b,w,_,r),disabled:!(!b||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:k,onMouseDownCapture:T,onMouseDown:P,onKeyPressCapture:R},c)}});z({as:"div",useHook:le});var ce=B({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return p({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},m(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=m(t,["onKeyDown","onKeyUp"]),i=(0,v.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,v.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&K(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&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,v.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return p({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(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}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,v.createContext)(ye);var xe=B({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,v.useContext)(we),r=(0,v.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,v.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return p(p({},e),{},{id:i})},useProps:function(e,t){return p({id:e.id},t)}});z({as:"div",useHook:xe});function Ee(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=H(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function _e(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(Ee(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var Se=B({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=m(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=m(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return p(p({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=m(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,v.useRef)(null),h=e.id,b=e.disabled&&!e.focusable,y=e.currentId===h,w=G(y),x=(0,v.useRef)(!1),E=function(e){return(0,v.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),_=G(a),C=G(s),S=G(l),k=G(c),T=G(u),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,v.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:f,disabled:!!b}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,b,e.registerItem,e.unregisterItem]),(0,v.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var P=(0,v.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e),ge(e.currentTarget,!0)}),[]),M=(0,v.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&h&&!function(e,t){if(K(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&K(t))){var i=H(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,v.useCallback)((function(t){var n;null===(n=S.current)||void 0===n||n.call(S,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),N=(0,v.useCallback)((function(t){var n;if(K(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==E||!E.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?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;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),_e(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),_e(l,""))}}}),[e.orientation,E,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,v.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return p({ref:V(f,r),id:h,tabIndex:R?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:P,onFocus:M,onBlurCapture:I,onKeyDown:N,onClick:O},d)}}),ke=z({as:"button",memo:!0,useHook:Se});function Te(e){return e.split("-")[1]}function Re(e){return"y"===e?"height":"width"}function Pe(e){return e.split("-")[0]}function Me(e){return["top","bottom"].includes(Pe(e))?"x":"y"}function Ie(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Me(t),l=Re(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Pe(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Te(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const Ne=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ie(c,r,l),f=r,p={},m=0;for(let n=0;n({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:c=0}=Oe(e,t)||{};if(null==l)return{};const u=De(c),d={x:n,y:r},f=Me(o),p=Re(f),m=await a.getDimensions(l),h="y"===f,g=h?"top":"left",v=h?"bottom":"right",b=h?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let E=x?x[b]:0;E&&await(null==a.isElement?void 0:a.isElement(x))||(E=s.floating[b]||i.floating[p]);const _=y/2-w/2,C=E/2-m[p]/2-1,S=ze(u[g],C),k=ze(u[v],C),T=S,R=E-m[p]-k,P=E/2-m[p]/2+_,M=Be(T,P,R),I=null!=Te(o)&&P!=M&&i.reference[p]/2-(Pe.concat(t,t+"-start",t+"-end")),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function $e(e){return e.replace(/left|right|bottom|top/g,(e=>He[e]))}function We(e,t,n){void 0===n&&(n=!1);const r=Te(e),o=Me(e),i=Re(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$e(a)),{main:a,cross:$e(a)}}const Ue={start:"end",end:"start"};function Ge(e){return e.replace(/start|end/g,(e=>Ue[e]))}const Ke=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...h}=Oe(e,t),g=Pe(r),v=Pe(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(l.floating)),y=d||(v||!m?[$e(a)]:function(e){const t=$e(e);return[Ge(e),t,Ge(t)]}(a));d||"none"===p||y.push(...function(e,t,n,r){const o=Te(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Pe(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ge)))),i}(a,m,p,b));const w=[a,...y],x=await Le(t,h),E=[];let _=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&E.push(x[g]),u){const{main:e,cross:t}=We(r,i,b);E.push(x[e],x[t])}if(_=[..._,{placement:r,overflows:E}],!E.every((e=>e<=0))){var C,S;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(S=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(f){case"bestFit":{var k;const e=null==(k=_.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const qe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pe(n),s=Te(n),l="x"===Me(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Oe(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Ye(e){return"x"===e?"y":"x"}const Xe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Oe(e,t),c={x:n,y:r},u=await Le(t,l),d=Me(Pe(o)),f=Ye(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=Be(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=Be(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Ze=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Oe(e,t),l=await Le(t,s),c=Pe(n),u=Te(n),d="x"===Me(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l[m],v=f-l[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-l.left-l.right;w=u||b?ze(v,e):e}else{const e=p-l.top-l.bottom;y=u||b?ze(g,e):e}if(b&&!u){const e=Fe(l.left,0),t=Fe(l.right,0),n=Fe(l.top,0),r=Fe(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Fe(l.left,l.right)):y=p-2*(0!==n||0!==r?n+r:Fe(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Je(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qe(e){return Je(e).getComputedStyle(e)}function et(e){return e instanceof Je(e).Node}function tt(e){return et(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function rt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Je(e).ShadowRoot||e instanceof ShadowRoot)}function ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function it(e){return["table","td","th"].includes(tt(e))}function at(e){const t=st(),n=Qe(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function st(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function lt(e){return["html","body","#document"].includes(tt(e))}const ct=Math.min,ut=Math.max,dt=Math.round,ft=Math.floor,pt=e=>({x:e,y:e});function mt(e){const t=Qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=dt(n)!==i||dt(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ht(e){return e instanceof Element||e instanceof Je(e).Element}function gt(e){return ht(e)?e:e.contextElement}function vt(e){const t=gt(e);if(!nt(t))return pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=mt(t);let a=(i?dt(n.width):n.width)/r,s=(i?dt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const bt=pt(0);function yt(e){const t=Je(e);return st()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bt}function wt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=gt(e);let a=pt(1);t&&(r?ht(r)&&(a=vt(r)):a=vt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Je(e))&&t}(i,n,r)?yt(i):pt(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Je(i),t=r&&ht(r)?Je(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=vt(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Je(n).frameElement}}return Ae({width:u,height:d,x:l,y:c})}function xt(e){return ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Et(e){var t;return null==(t=(et(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _t(e){return wt(Et(e)).left+xt(e).scrollLeft}function Ct(e){if("html"===tt(e))return e;const t=e.assignedSlot||e.parentNode||rt(e)&&e.host||Et(e);return rt(t)?t.host:t}function St(e){const t=Ct(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&ot(t)?t:St(t)}function kt(e,t){var n;void 0===t&&(t=[]);const r=St(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Je(r);return o?t.concat(i,i.visualViewport||[],ot(r)?r:[]):t.concat(r,kt(r))}function Tt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Je(e),r=Et(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=st();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Et(e),n=xt(e),r=e.ownerDocument.body,o=ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+_t(e);const s=-n.scrollTop;return"rtl"===Qe(r).direction&&(a+=ut(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Et(e));else if(ht(t))r=function(e,t){const n=wt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=nt(e)?vt(e):pt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=yt(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ae(r)}function Rt(e,t){const n=Ct(e);return!(n===t||!ht(n)||lt(n))&&("fixed"===Qe(n).position||Rt(n,t))}function Pt(e,t,n){const r=nt(t),o=Et(t),i="fixed"===n,a=wt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=pt(0);if(r||!r&&!i)if(("body"!==tt(t)||ot(o))&&(s=xt(t)),nt(t)){const e=wt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=_t(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Mt(e,t){return nt(e)&&"fixed"!==Qe(e).position?t?t(e):e.offsetParent:null}function It(e,t){const n=Je(e);if(!nt(e))return n;let r=Mt(e,t);for(;r&&it(r)&&"static"===Qe(r).position;)r=Mt(r,t);return r&&("html"===tt(r)||"body"===tt(r)&&"static"===Qe(r).position&&!at(r))?n:r||function(e){let t=Ct(e);for(;nt(t)&&!lt(t);){if(at(t))return t;t=Ct(t)}return null}(e)||n}const Nt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=nt(n),i=Et(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=pt(1);const l=pt(0);if((o||!o&&"fixed"!==r)&&(("body"!==tt(n)||ot(i))&&(a=xt(n)),nt(n))){const e=wt(n);s=vt(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Et,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=kt(e).filter((e=>ht(e)&&"body"!==tt(e))),o=null;const i="fixed"===Qe(e).position;let a=i?Ct(e):e;for(;ht(a)&&!lt(a);){const t=Qe(a),n=at(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ot(a)&&!n&&Rt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ct(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Tt(t,n,o);return e.top=ut(r.top,e.top),e.right=ct(r.right,e.right),e.bottom=ct(r.bottom,e.bottom),e.left=ut(r.left,e.left),e}),Tt(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:It,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||It,i=this.getDimensions;return{reference:Pt(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return mt(e)},getScale:vt,isElement:ht,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};var Ot=window.ReactDOM,Dt=o.n(Ot),At="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Lt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Lt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function zt(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const[i,a]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[s,l]=v.useState(t);Lt(null==s?void 0:s.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(i),p=function(e){const t=v.useRef(e);return At((()=>{t.current=e})),t}(o),m=v.useCallback((()=>{c.current&&u.current&&((e,t,n)=>{const r=new Map,o={platform:Nt,...n},i={...o.platform,_c:r};return Ne(e,t,{...o,platform:i})})(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Lt(f.current,e)&&(f.current=e,Ot.flushSync((()=>{a(e)})))}))}),[s,n,r]);At((()=>{h.current&&m()}),[m]);const h=v.useRef(!1);At((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=v.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),b=v.useCallback((e=>{c.current=e,g()}),[g]),y=v.useCallback((e=>{u.current=e,g()}),[g]),w=v.useMemo((()=>({reference:c,floating:u})),[]);return v.useMemo((()=>({...i,update:m,refs:w,reference:b,floating:y})),[i,m,w,b,y])}const Ft=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?je({element:t.current,padding:n}).fn(e):{}:t?je({element:t,padding:n}).fn(e):{};var r}}},Bt="undefined"!=typeof document,jt={current:null},Vt={current:!1};function Ht(){if(Vt.current=!0,Bt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jt.current=e.matches;e.addListener(t),t()}else jt.current=!1}const $t=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wt=(0,v.createContext)({}),Ut=(0,v.createContext)(null),Gt=Bt?v.useLayoutEffect:v.useEffect,Kt=(0,v.createContext)({strict:!1});function qt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Yt(e){return"string"==typeof e||Array.isArray(e)}function Xt(e){return"object"==typeof e&&"function"==typeof e.start}const Zt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jt=["initial",...Zt];function Qt(e){return Xt(e.animate)||Jt.some((t=>Yt(e[t])))}function en(e){return Boolean(Qt(e)||e.variants)}function tn(e){const{initial:t,animate:n}=function(e,t){if(Qt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Yt(t)?t:void 0,animate:Yt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(Wt));return(0,v.useMemo)((()=>({initial:t,animate:n})),[nn(t),nn(n)])}function nn(e){return Array.isArray(e)?e.join(" "):e}const rn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},on={};for(const e in rn)on[e]={isEnabled:t=>rn[e].some((e=>!!t[e]))};function an(e){const t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}const sn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ln=1;const cn=(0,v.createContext)({}),un=(0,v.createContext)({}),dn=Symbol.for("motionComponentSymbol");function fn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)on[t]={...on[t],...e[t]}}(e);const i=(0,v.forwardRef)((function(i,a){let s;const l={...(0,v.useContext)($t),...i,layoutId:pn(i)},{isStatic:c}=l,u=tn(i),d=c?void 0:an((()=>{if(sn.hasEverUpdated)return ln++})),f=r(i,c);if(!c&&Bt){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,v.useContext)(Wt),i=(0,v.useContext)(Kt),a=(0,v.useContext)(Ut),s=(0,v.useContext)($t).reducedMotion,l=(0,v.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return(0,v.useInsertionEffect)((()=>{c&&c.update(n,a)})),Gt((()=>{c&&c.render()})),(0,v.useEffect)((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Gt:v.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=(0,v.useContext)(un),r=(0,v.useContext)(Kt).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return v.createElement(Wt.Provider,{value:u},s&&u.visualElement?v.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return(0,v.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):qt(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[dn]=o,i}function pn({layoutId:e}){const t=(0,v.useContext)(cn).id;return t&&void 0!==e?t+"-"+e:e}function mn(e){function t(t,n={}){return fn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const hn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function gn(e){return"string"==typeof e&&!e.includes("-")&&!!(hn.indexOf(e)>-1||/[A-Z]/.test(e))}const vn={};const bn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yn=new Set(bn);function wn(e,{layout:t,layoutId:n}){return yn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!vn[e]||"opacity"===e)}const xn=e=>Boolean(e&&e.getVelocity),En={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_n=bn.length;const Cn=e=>t=>"string"==typeof t&&t.startsWith(e),Sn=Cn("--"),kn=Cn("var(--"),Tn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Rn=(e,t,n)=>Math.min(Math.max(n,e),t),Pn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Mn={...Pn,transform:e=>Rn(0,1,e)},In={...Pn,default:1},Nn=e=>Math.round(1e5*e)/1e5,On=/(-)?([\d]*\.?[\d])+/g,Dn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,An=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ln(e){return"string"==typeof e}const zn=e=>({test:t=>Ln(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Fn=zn("deg"),Bn=zn("%"),jn=zn("px"),Vn=zn("vh"),Hn=zn("vw"),$n={...Bn,parse:e=>Bn.parse(e)/100,transform:e=>Bn.transform(100*e)},Wn={...Pn,transform:Math.round},Un={borderWidth:jn,borderTopWidth:jn,borderRightWidth:jn,borderBottomWidth:jn,borderLeftWidth:jn,borderRadius:jn,radius:jn,borderTopLeftRadius:jn,borderTopRightRadius:jn,borderBottomRightRadius:jn,borderBottomLeftRadius:jn,width:jn,maxWidth:jn,height:jn,maxHeight:jn,size:jn,top:jn,right:jn,bottom:jn,left:jn,padding:jn,paddingTop:jn,paddingRight:jn,paddingBottom:jn,paddingLeft:jn,margin:jn,marginTop:jn,marginRight:jn,marginBottom:jn,marginLeft:jn,rotate:Fn,rotateX:Fn,rotateY:Fn,rotateZ:Fn,scale:In,scaleX:In,scaleY:In,scaleZ:In,skew:Fn,skewX:Fn,skewY:Fn,distance:jn,translateX:jn,translateY:jn,translateZ:jn,x:jn,y:jn,z:jn,perspective:jn,transformPerspective:jn,opacity:Mn,originX:$n,originY:$n,originZ:jn,zIndex:Wn,fillOpacity:Mn,strokeOpacity:Mn,numOctaves:Wn};function Gn(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Sn(e)){i[e]=n;continue}const r=Un[e],d=Tn(n,r);if(yn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<_n;t++){const n=bn[t];void 0!==e[n]&&(i+=`${En[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const Kn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qn(e,t,n){for(const r in t)xn(t[r])||wn(r,n)||(e[r]=t[r])}function Yn(e,t,n){const r={};return qn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,v.useMemo)((()=>{const r=Kn();return Gn(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Xn(e,t,n){const r={},o=Yn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Zn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Jn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Zn.has(e)}let Qn=e=>!Jn(e);try{(er=require("@emotion/is-prop-valid").default)&&(Qn=e=>e.startsWith("on")?!Jn(e):er(e))}catch(Oz){}var er;function tr(e,t,n){return"string"==typeof e?e:jn.transform(t+n*e)}const nr={offset:"stroke-dashoffset",array:"stroke-dasharray"},rr={offset:"strokeDashoffset",array:"strokeDasharray"};function or(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Gn(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${tr(t,e.x,e.width)} ${tr(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?nr:rr;e[i.offset]=jn.transform(-r);const a=jn.transform(t),s=jn.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const ir=()=>({...Kn(),attrs:{}}),ar=e=>"string"==typeof e&&"svg"===e.toLowerCase();function sr(e,t,n,r){const o=(0,v.useMemo)((()=>{const n=ir();return or(n,t,{enableHardwareAcceleration:!1},ar(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};qn(t,e.style,e),o.style={...t,...o.style}}return o}function lr(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(gn(t)?sr:Xn)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Qn(o)||!0===n&&Jn(o)||!t&&!Jn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,v.useMemo)((()=>xn(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),(0,v.createElement)(t,{...c,children:d})}}const cr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ur(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const dr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fr(e,t,n,r){ur(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(dr.has(n)?n:cr(n),t.attrs[n])}function pr(e,t){const{style:n}=e,r={};for(const o in n)(xn(n[o])||t.style&&xn(t.style[o])||wn(o,e))&&(r[o]=n[o]);return r}function mr(e,t){const n=pr(e,t);for(const r in e)if(xn(e[r])||xn(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function hr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const gr=e=>Array.isArray(e),vr=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),br=e=>gr(e)?e[e.length-1]||0:e;function yr(e){const t=xn(e)?e.get():e;return vr(t)?t.toValue():t}const wr=e=>(t,n)=>{const r=(0,v.useContext)(Wt),o=(0,v.useContext)(Ut),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:xr(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():an(i)};function xr(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=yr(i[e]);let{initial:a,animate:s}=e;const l=Qt(e),c=en(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Xt(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=hr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Er={useVisualState:wr({scrapeMotionValuesFromProps:mr,createRenderState:ir,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}or(n,r,{enableHardwareAcceleration:!1},ar(t.tagName),e.transformTemplate),fr(t,n)}})},_r={useVisualState:wr({scrapeMotionValuesFromProps:pr,createRenderState:Kn})};function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Sr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function kr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Tr=e=>t=>Sr(t)&&e(t,kr(t));function Rr(e,t,n,r){return Cr(e,t,Tr(n),r)}const Pr=(e,t)=>n=>t(e(n)),Mr=(...e)=>e.reduce(Pr);function Ir(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Nr=Ir("dragHorizontal"),Or=Ir("dragVertical");function Dr(e){let t=!1;if("y"===e)t=Or();else if("x"===e)t=Nr();else{const e=Nr(),n=Or();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Ar(){const e=Dr(!0);return!e||(e(),!1)}class Lr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const zr={delta:0,timestamp:0,isProcessing:!1};let Fr=!0,Br=!1;const jr=["read","update","preRender","render","postRender"],Vr=jr.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nBr=!0)),e)),{}),Hr=jr.reduce(((e,t)=>{const n=Vr[t];return e[t]=(e,t=!1,r=!1)=>(Br||Kr(),n.schedule(e,t,r)),e}),{}),$r=jr.reduce(((e,t)=>(e[t]=Vr[t].cancel,e)),{}),Wr=jr.reduce(((e,t)=>(e[t]=()=>Vr[t].process(zr),e)),{}),Ur=e=>Vr[e].process(zr),Gr=e=>{Br=!1,zr.delta=Fr?1e3/60:Math.max(Math.min(e-zr.timestamp,40),1),zr.timestamp=e,zr.isProcessing=!0,jr.forEach(Ur),zr.isProcessing=!1,Br&&(Fr=!1,requestAnimationFrame(Gr))},Kr=()=>{Br=!0,Fr=!0,zr.isProcessing||requestAnimationFrame(Gr)};function qr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Rr(e.current,n,((n,o)=>{if("touch"===n.type||Ar())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Hr.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Yr=(e,t)=>!!t&&(e===t||Yr(e,t.parentElement)),Xr=e=>e;function Zr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,kr(n))}const Jr=new WeakMap,Qr=new WeakMap,eo=e=>{const t=Jr.get(e.target);t&&t(e)},to=e=>{e.forEach(eo)};function no(e,t,n){const r=function({root:e,...t}){const n=e||document;Qr.has(n)||Qr.set(n,{});const r=Qr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(to,{root:e,...t})),r[o]}(t);return Jr.set(e,n),r.observe(e),()=>{Jr.delete(e),r.unobserve(e)}}const ro={some:0,all:1};const oo={inView:{Feature:class extends Lr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ro[r]};return no(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Lr{constructor(){super(...arguments),this.removeStartListeners=Xr,this.removeEndListeners=Xr,this.removeAccessibleListeners=Xr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Rr(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Hr.update((()=>{Yr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Rr(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Mr(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Cr(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Cr(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Zr("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Hr.update((()=>n(e,t)))}))})),Zr("down",((e,t)=>{this.startPress(e,t)}))})),t=Cr(this.node.current,"blur",(()=>{this.isPressing&&Zr("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Mr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Hr.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ar()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Hr.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Rr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Cr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Mr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Lr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Mr(Cr(this.node.current,"focus",(()=>this.onFocus())),Cr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Lr{mount(){this.unmount=Mr(qr(this.node,!0),qr(this.node,!1))}unmount(){}}}};function io(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const so="data-"+cr("framerAppearId");let lo=Xr,co=Xr;const uo=e=>1e3*e,fo=e=>e/1e3,po=!1,mo=e=>Array.isArray(e)&&"number"==typeof e[0];function ho(e){return Boolean(!e||"string"==typeof e&&vo[e]||mo(e)||Array.isArray(e)&&e.every(ho))}const go=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:go([0,.65,.55,1]),circOut:go([.55,0,1,.45]),backIn:go([.31,.01,.66,-.59]),backOut:go([.33,1.53,.69,.99])};function bo(e){if(e)return mo(e)?go(e):Array.isArray(e)?e.map(bo):vo[e]}const yo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},wo={},xo={};for(const e in yo)xo[e]=()=>(void 0===wo[e]&&(wo[e]=yo[e]()),wo[e]);const Eo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_o=1e-7,Co=12;function So(e,t,n,r){if(e===t&&n===r)return Xr;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Eo(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>_o&&++s0===e||1===e?e:Eo(o(e),t,r)}const ko=So(.42,0,1,1),To=So(0,0,.58,1),Ro=So(.42,0,.58,1),Po=e=>Array.isArray(e)&&"number"!=typeof e[0],Mo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Io=e=>t=>1-e(1-t),No=e=>1-Math.sin(Math.acos(e)),Oo=Io(No),Do=Mo(Oo),Ao=So(.33,1.53,.69,.99),Lo=Io(Ao),zo=Mo(Lo),Fo={linear:Xr,easeIn:ko,easeInOut:Ro,easeOut:To,circIn:No,circInOut:Do,circOut:Oo,backIn:Lo,backInOut:zo,backOut:Ao,anticipate:e=>(e*=2)<1?.5*Lo(e):.5*(2-Math.pow(2,-10*(e-1)))},Bo=e=>{if(Array.isArray(e)){co(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return So(t,n,r,o)}return"string"==typeof e?(co(void 0!==Fo[e],`Invalid easing type '${e}'`),Fo[e]):e},jo=(e,t)=>n=>Boolean(Ln(n)&&An.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Vo=(e,t,n)=>r=>{if(!Ln(r))return r;const[o,i,a,s]=r.match(On);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ho={...Pn,transform:e=>Math.round((e=>Rn(0,255,e))(e))},$o={test:jo("rgb","red"),parse:Vo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ho.transform(e)+", "+Ho.transform(t)+", "+Ho.transform(n)+", "+Nn(Mn.transform(r))+")"};const Wo={test:jo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:$o.transform},Uo={test:jo("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bn.transform(Nn(t))+", "+Bn.transform(Nn(n))+", "+Nn(Mn.transform(r))+")"},Go={test:e=>$o.test(e)||Wo.test(e)||Uo.test(e),parse:e=>$o.test(e)?$o.parse(e):Uo.test(e)?Uo.parse(e):Wo.parse(e),transform:e=>Ln(e)?e:e.hasOwnProperty("red")?$o.transform(e):Uo.transform(e)},Ko=(e,t,n)=>-n*e+n*t+e;function qo(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}const Yo=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Xo=[Wo,$o,Uo];function Zo(e){const t=(e=>Xo.find((t=>t.test(e))))(e);co(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Uo&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=qo(s,r,e+1/3),i=qo(s,r,e),a=qo(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Jo=(e,t)=>{const n=Zo(e),r=Zo(t),o={...n};return e=>(o.red=Yo(n.red,r.red,e),o.green=Yo(n.green,r.green,e),o.blue=Yo(n.blue,r.blue,e),o.alpha=Ko(n.alpha,r.alpha,e),$o.transform(o))},Qo="${c}",ei="${n}";function ti(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Dn);o&&(n=o.length,e=e.replace(Dn,Qo),t.push(...o.map(Go.parse)));const i=e.match(On);return i&&(r=i.length,e=e.replace(On,ei),t.push(...i.map(Pn.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function ni(e){return ti(e).values}function ri(e){const{values:t,numColors:n,tokenised:r}=ti(e),o=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e;const ii={test:function(e){var t,n;return isNaN(e)&&Ln(e)&&((null===(t=e.match(On))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Dn))||void 0===n?void 0:n.length)||0)>0},parse:ni,createTransformer:ri,getAnimatableNone:function(e){const t=ni(e);return ri(e)(t.map(oi))}};function ai(e,t){return"number"==typeof e?n=>Ko(e,t,n):Go.test(e)?Jo(e,t):ci(e,t)}const si=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>ai(e,t[n])));return e=>{for(let t=0;t{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ai(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ci=(e,t)=>{const n=ii.createTransformer(t),r=ti(e),o=ti(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Mr(si(r.values,o.values),n):(lo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ui=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},di=(e,t)=>n=>Ko(e,t,n);function fi(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?di:"string"==typeof e?Go.test(e)?Jo:ci:Array.isArray(e)?si:"object"==typeof e?li:di}(e[0]),i=e.length-1;for(let n=0;nt[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=fi(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;nl(Rn(e[0],e[i-1],t)):l}function mi(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ui(0,t,r);e.push(Ko(n,1,o))}}(t,e.length-1),t}function hi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Po(r)?r.map(Bo):Bo(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:mi(t),e),s=pi(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Ro)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function gi(e,t){return t?e*(1e3/t):0}const vi=5;function bi(e,t,n){const r=Math.max(t-vi,0);return gi(n-e(r),t-r)}const yi=.001,wi=.01,xi=10,Ei=.05,_i=1;function Ci({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;lo(e<=uo(xi),"Spring duration must be 10 seconds or less");let a=1-t;a=Rn(Ei,_i,a),e=Rn(wi,xi,fo(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=ki(t,a),l=Math.exp(-o);return yi-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ki(Math.pow(t,2),a);return(-o(t)+yi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-yi,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;nvoid 0!==e[t]))}function Mi({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pi(e,Ri)&&Pi(e,Ti)){const n=Ci(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-fo(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=fo(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=ki(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?bi(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Ii({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&el)(f.value)&&(w=e,x=Mi({keyframes:[f.value,p(f.value)],velocity:bi(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,y(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&y(e),f)}}}const Ni=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Hr.update(t,!0),stop:()=>$r.update(t),now:()=>zr.isProcessing?zr.timestamp:performance.now()}},Oi=2e4;function Di(e){let t=0;let n=e.next(t);for(;!n.done&&t=Oi?1/0:t}const Ai={decay:Ii,inertia:Ii,tween:hi,keyframes:hi,spring:Mi};function Li({autoplay:e=!0,delay:t=0,driver:n=Ni,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{p&&p(),m=new Promise((e=>{p=e}))};let b;v();const y=Ai[o]||hi;let w;y!==hi&&"number"!=typeof r[0]&&(w=pi([0,100],r,{clamp:!1}),r=[0,100]);const x=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,S=null,k=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Di(x));const{calculatedDuration:T}=x;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let M=0;const I=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),M=null!==C?C:(e-S)*h;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===_&&null===C&&(M=P);let l=M,c=x;if(i){const e=M/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=E));let o=Rn(0,1,n);M>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=M>=P);const p=null===C&&("finished"===_||"running"===_&&f||h<0&&M<=0);return d&&d(u.value),p&&D(),u},N=()=>{b&&b.stop(),b=void 0},O=()=>{_="idle",N(),v(),S=k=null},D=()=>{_="finished",u&&u(),N(),v()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==C?S=e-C:S&&"finished"!==_||(S=e),k=S,C=null,_="running",b.start()};e&&A();const L={then(e,t){return m.then(e,t)},get time(){return fo(M)},set time(e){e=uo(e),M=e,null===C&&b&&0!==h?S=b.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Di(x):x.calculatedDuration;return fo(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=fo(M))},get state(){return _},play:A,pause:()=>{_="paused",C=M},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&I(k),O()},complete:()=>{_="finished"},sample:e=>(S=0,I(e))};return L}const zi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Fi(e,t,{onUpdate:n,onComplete:r,...o}){if(!(xo.waapi()&&zi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!ho(t.ease))(t,o)){const e=Li({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=bo(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f}),m=()=>p.cancel(),h=()=>{Hr.update(m),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return a.then(e,t)},get time(){return fo(p.currentTime||0)},set time(e){p.currentTime=uo(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return fo(u)},play:()=>{s||(p.play(),$r.update(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Li({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const Bi={type:"spring",stiffness:500,damping:25,restSpeed:10},ji={type:"keyframes",duration:.8},Vi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hi=(e,{keyframes:t})=>t.length>2?ji:yn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Bi:Vi,$i=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ii.test(t)||t.startsWith("url("))),Wi=new Set(["brightness","contrast","saturate","opacity"]);function Ui(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(On)||[];if(!r)return e;const o=n.replace(r,"");let i=Wi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Gi=/([a-z-]*)\(.*?\)/g,Ki={...ii,getAnimatableNone:e=>{const t=e.match(Gi);return t?t.map(Ui).join(" "):e}},qi={...Un,color:Go,backgroundColor:Go,outlineColor:Go,fill:Go,stroke:Go,borderColor:Go,borderTopColor:Go,borderRightColor:Go,borderBottomColor:Go,borderLeftColor:Go,filter:Ki,WebkitFilter:Ki},Yi=e=>qi[e];function Xi(e,t){let n=Yi(e);return n!==Ki&&(n=ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Zi(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ji(e){return"number"==typeof e?0:Xi("",e)}function Qi(e,t){return e[t]||e.default||e}const ea=(e,t,n,r={})=>o=>{const i=Qi(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=uo(a);const l=function(e,t,n,r){const o=$i(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=Xi(t,n):Zi(i)&&"string"==typeof n?i=Ji(n):!Array.isArray(n)&&Zi(n)&&"string"==typeof i&&(n=Ji(i)),Array.isArray(n)?function(e,[...t]){for(let n=0;n{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Hi(e,p)}),p.duration&&(p.duration=uo(p.duration)),p.repeatDelay&&(p.repeatDelay=uo(p.repeatDelay)),!d||!f||po||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Xr,pause:Xr,stop:Xr,then:e=>(e(),Promise.resolve()),cancel:Xr,complete:Xr});return t?Li({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Fi(t,e,p);if(n)return n}return Li(p)};function ta(e){return Boolean(xn(e)&&e.add)}const na=e=>/^\-?\d*\.?\d+$/.test(e),ra=e=>/^0[^.\s]+$/.test(e);function oa(e,t){-1===e.indexOf(t)&&e.push(t)}function ia(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class aa{constructor(){this.subscriptions=[]}add(e){return oa(this.subscriptions,e),()=>ia(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=zr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Hr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Hr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new aa);const n=this.events[e].add(t);return"change"===e?()=>{n(),Hr.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?gi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function la(e,t){return new sa(e,t)}const ca=e=>t=>t.test(e),ua=[Pn,jn,Bn,Fn,Hn,Vn,{test:e=>"auto"===e,parse:e=>e}],da=e=>ua.find(ca(e)),fa=[...ua,Go,ii],pa=e=>fa.find(ca(e));function ma(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,la(n))}function ha(e,t){const n=ao(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){ma(e,t,br(i[t]))}}function ga(e,t){if(!t)return;return(t[e]||t.default||t).from}function va({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ba(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&va(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[so];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Hr))}r.start(ea(t,r,o,e.shouldReduceMotion&&yn.has(t)?{type:!1}:a));const d=r.animation;ta(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&ha(e,a)})),c}function ya(e,t,n={}){const r=ao(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ba(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(wa).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(ya(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function wa(e,t){return e.sortNodePosition(t)}const xa=[...Zt].reverse(),Ea=Zt.length;function _a(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>ya(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=ya(e,t,n);else{const o="function"==typeof t?ao(e,t,n.custom):t;r=Promise.all(ba(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Ca(e){let t=_a(e);const n={animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()};let r=!0;const o=(t,n)=>{const r=ao(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;tf&&g;const x=Array.isArray(h)?h:[h];let E=x.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=m,C={..._,...E},S=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?gr(t)&&gr(n)?!io(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Sa(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!io(t,e)}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Ta=0;const Ra={animation:{Feature:class extends Lr{constructor(e){super(e),e.animationState||(e.animationState=Ca(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Xt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Lr{constructor(){super(...arguments),this.id=Ta++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Pa=(e,t)=>Math.abs(e-t);class Ma{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Oa(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Pa(e.x,t.x),r=Pa(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=zr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ia(t,this.transformPagePoint),Hr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Oa("pointercancel"===e.type?this.lastMoveEventInfo:Ia(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Sr(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ia(kr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=zr;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Oa(r,this.history)),this.removeListeners=Mr(Rr(window,"pointermove",this.handlePointerMove),Rr(window,"pointerup",this.handlePointerUp),Rr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$r.update(this.updatePoint)}}function Ia(e,t){return t?{point:t(e.point)}:e}function Na(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oa({point:e},t){return{point:e,delta:Na(e,Aa(t)),offset:Na(e,Da(t)),velocity:La(t,.1)}}function Da(e){return e[0]}function Aa(e){return e[e.length-1]}function La(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Aa(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>uo(t)));)n--;if(!r)return{x:0,y:0};const i=fo(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function za(e){return e.max-e.min}function Fa(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ba(e,t,n,r=.5){e.origin=r,e.originPoint=Ko(t.min,t.max,e.origin),e.scale=za(n)/za(t),(Fa(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ko(n.min,n.max,e.origin)-e.originPoint,(Fa(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ja(e,t,n,r){Ba(e.x,t.x,n.x,r?r.originX:void 0),Ba(e.y,t.y,n.y,r?r.originY:void 0)}function Va(e,t,n){e.min=n.min+t.min,e.max=e.min+za(t)}function Ha(e,t,n){e.min=t.min-n.min,e.max=e.min+za(t)}function $a(e,t,n){Ha(e.x,t.x,n.x),Ha(e.y,t.y,n.y)}function Wa(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ua(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Xa=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Za(e){return[e("x"),e("y")]}function Ja({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qa(e){return void 0===e||1===e}function es({scale:e,scaleX:t,scaleY:n}){return!Qa(e)||!Qa(t)||!Qa(n)}function ts(e){return es(e)||ns(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ns(e){return rs(e.x)||rs(e.y)}function rs(e){return e&&"0%"!==e}function os(e,t,n){return n+t*(e-n)}function is(e,t,n,r,o){return void 0!==o&&(e=os(e,o,r)),os(e,n,r)+t}function as(e,t=0,n=1,r,o){e.min=is(e.min,t,n,r,o),e.max=is(e.max,t,n,r,o)}function ss(e,{x:t,y:n}){as(e.x,t.translate,t.scale,t.originPoint),as(e.y,n.translate,n.scale,n.originPoint)}function ls(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function cs(e,t){e.min=e.min+t,e.max=e.max+t}function us(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Ko(e.min,e.max,i);as(e,t[n],t[r],a,t.scale)}const ds=["x","scaleX","originX"],fs=["y","scaleY","originY"];function ps(e,t){us(e.x,t,ds),us(e.y,t,fs)}function ms(e,t){return Ja(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const hs=new WeakMap;class gs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xa(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Ma(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(kr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Dr(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Za((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Bn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=za(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Hr.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Hr.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!vs(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?Ko(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&qt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Wa(e.x,n,o),y:Wa(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ga){return!1===e?e=0:!0===e&&(e=Ga),{x:Ka(e,"left","right"),y:Ka(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Za((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!qt(e))return!1;const n=e.current;co(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=ms(e,n),{scroll:o}=t;return o&&(cs(r.x,o.offset.x),cs(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Ua(e.x,t.x),y:Ua(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ja(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Za((a=>{if(!vs(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(ea(e,n,0,t))}stopAnimation(){Za((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Za((t=>{const{drag:n}=this.getProps();if(!vs(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Ko(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!qt(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Za((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=za(e),o=za(t);return o>r?n=ui(t.min,t.max-r,e.min):r>o&&(n=ui(e.min,e.max-o,t.min)),Rn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Za((t=>{if(!vs(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Ko(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;hs.set(this.visualElement,this);const e=Rr(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();qt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Cr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Za((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ga,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function vs(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const bs=e=>(t,n)=>{e&&Hr.update((()=>e(t,n)))};function ys(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ws={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!jn.test(e))return e;e=parseFloat(e)}return`${ys(e,t.target.x)}% ${ys(e,t.target.y)}%`}},xs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Es=4;function _s(e,t,n=1){co(n<=Es,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=xs.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():kn(o)?_s(o,t,n+1):o}const Cs="_$css",Ss={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(xs,(e=>(i.push(e),Cs))));const a=ii.parse(e);if(a.length>5)return r;const s=ii.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=Ko(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(Cs,(()=>{const t=i[e];return e++,t}))}return f}};class ks extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rs,Object.assign(vn,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),sn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Hr.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ts(e){const[t,n]=function(){const e=(0,v.useContext)(Ut);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,v.useId)();return(0,v.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,v.useContext)(cn);return v.createElement(ks,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(un),isPresent:t,safeToRemove:n})}const Rs={borderRadius:{...ws,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ws,borderTopRightRadius:ws,borderBottomLeftRadius:ws,borderBottomRightRadius:ws,boxShadow:Ss},Ps=["TopLeft","TopRight","BottomLeft","BottomRight"],Ms=Ps.length,Is=e=>"string"==typeof e?parseFloat(e):e,Ns=e=>"number"==typeof e||jn.test(e);function Os(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ds=Ls(0,.5,Oo),As=Ls(.5,.95,Xr);function Ls(e,t,n){return r=>rt?1:n(ui(e,t,r))}function zs(e,t){e.min=t.min,e.max=t.max}function Fs(e,t){zs(e.x,t.x),zs(e.y,t.y)}function Bs(e,t,n,r,o){return e=os(e-=t,1/n,r),void 0!==o&&(e=os(e,1/o,r)),e}function js(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Bn.test(t)&&(t=parseFloat(t),t=Ko(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ko(i.min,i.max,r);e===i&&(s-=t),e.min=Bs(e.min,t,n,s,o),e.max=Bs(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Vs=["x","scaleX","originX"],Hs=["y","scaleY","originY"];function $s(e,t,n,r){js(e.x,t,Vs,n?n.x:void 0,r?r.x:void 0),js(e.y,t,Hs,n?n.y:void 0,r?r.y:void 0)}function Ws(e){return 0===e.translate&&1===e.scale}function Us(e){return Ws(e.x)&&Ws(e.y)}function Gs(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ks(e){return za(e.x)/za(e.y)}class qs{constructor(){this.members=[]}add(e){oa(this.members,e),e.scheduleRender()}remove(e){if(ia(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ys(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Xs=(e,t)=>e.depth-t.depth;class Zs{constructor(){this.children=[],this.isDirty=!1}add(e){oa(this.children,e),this.isDirty=!0}remove(e){ia(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Xs),this.isDirty=!1,this.children.forEach(e)}}const Js=["","X","Y","Z"];let Qs=0;const el={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Qs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;el.totalNodes=el.resolvedTargetDeltas=el.recalculatedProjection=0,this.nodes.forEach(ol),this.nodes.forEach(ul),this.nodes.forEach(dl),this.nodes.forEach(il),e=el,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&($r.read(r),e(i-t))};return Hr.read(r,!0),()=>$r.read(r)}(r,250),sn.hasAnimatedSinceResize&&(sn.hasAnimatedSinceResize=!1,this.nodes.forEach(cl))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||vl,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Gs(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Qi(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||cl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$r.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fl),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{const n=t/1e3;ml(i.x,e.x,n),ml(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($a(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){hl(e.x,t.x,n.x,r),hl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Gs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Xa()),Fs(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Ko(0,void 0!==n.opacity?n.opacity:1,Ds(r)),e.opacityExit=Ko(void 0!==t.opacity?t.opacity:1,0,As(r))):i&&(e.opacity=Ko(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o{sn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=xn(e)?e:la(e);return r.start(ea("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&wl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Xa();const t=za(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=za(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Fs(t,n),ps(t,o),ja(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(sl),this.root.sharedNodes.clear()}}}function nl(e){e.updateLayout()}function rl(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Za((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=za(r);r.min=t[e].min,r.max=r.min+o})):wl(o,n.layoutBox,t)&&Za((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=za(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Ya();ja(a,t,n.layoutBox);const s=Ya();i?ja(s,e.applyTransform(r,!0),n.measuredBox):ja(s,t,n.layoutBox);const l=!Us(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Xa();$a(a,n.layoutBox,o.layoutBox);const s=Xa();$a(s,t,i.layoutBox),Gs(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ol(e){el.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function il(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function al(e){e.clearSnapshot()}function sl(e){e.clearMeasurements()}function ll(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ul(e){e.resolveTargetDelta()}function dl(e){e.calcProjection()}function fl(e){e.resetRotation()}function pl(e){e.removeLeadSnapshot()}function ml(e,t,n){e.translate=Ko(t.translate,0,n),e.scale=Ko(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hl(e,t,n,r){e.min=Ko(t.min,n.min,r),e.max=Ko(t.max,n.max,r)}function gl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const vl={duration:.45,ease:[.4,0,.1,1]};function bl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function yl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Fa(Ks(t),Ks(n),.2)}const xl=tl({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),El={current:void 0},_l=tl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!El.current){const e=new xl(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),El.current=e}return El.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Cl={pan:{Feature:class extends Lr{constructor(){super(...arguments),this.removePointerDownListener=Xr}onPointerDown(e){this.session=new Ma(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:bs(e),onStart:bs(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Hr.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Rr(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Lr{constructor(e){super(e),this.removeGroupControls=Xr,this.removeListeners=Xr,this.controls=new gs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:_l,MeasureLayout:Ts}},Sl=new Set(["width","height","top","left","right","bottom","x","y"]),kl=e=>Sl.has(e),Tl=e=>e===Pn||e===jn,Rl=(e,t)=>parseFloat(e.split(", ")[t]),Pl=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Rl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Rl(t[1],e):0}},Ml=new Set(["x","y","z"]),Il=bn.filter((e=>!Ml.has(e)));const Nl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Pl(4,13),y:Pl(5,14)},Ol=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(kl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=da(c);const d=t[o];let f;if(gr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=da(c);for(let n=t;n{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Nl[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Nl[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Bt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Dl(e,t,n,r){return(e=>Object.keys(e).some(kl))(t)?Ol(e,t,n,r):{target:t,transitionEnd:r}}const Al=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!kn(t))return;const n=_s(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!kn(o))continue;const i=_s(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Dl(e,t=o.target,n,r=o.transitionEnd)};const Ll=new WeakMap,zl=Object.keys(on),Fl=zl.length,Bl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],jl=Jt.length;class Vl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Hr.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Qt(t),this.isVariantNode=en(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&xn(t)&&(t.set(a[e],!1),ta(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Ll.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Vt.current||Ht(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||jt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ll.delete(this.current),this.projection&&this.projection.unmount(),$r.update(this.notifyUpdate),$r.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=yn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Hr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xa()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=la(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=hr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||xn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new aa),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Hl extends Vl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ga(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){ur(e,t,n,r)}}class Wl extends Hl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(yn.has(t)){const e=Yi(t);return e&&e.default||0}return t=dr.has(t)?t:cr(t),e.getAttribute(t)}measureInstanceViewportBox(){return Xa()}scrapeMotionValuesFromProps(e,t){return mr(e,t)}build(e,t,n,r){or(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){fr(e,t,0,r)}mount(e){this.isSVGTag=ar(e.tagName),super.mount(e)}}const Ul=(e,t)=>gn(e)?new Wl(t,{enableHardwareAcceleration:!1}):new $l(t,{enableHardwareAcceleration:!0}),Gl={...Ra,...oo,...Cl,...{layout:{ProjectionNode:_l,MeasureLayout:Ts}}},Kl=mn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...gn(e)?Er:_r,preloadedFeatures:n,useRender:lr(t),createVisualElement:r,Component:e}}(e,t,Gl,Ul)));var ql=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Yl=window.wp.deprecated,Xl=o.n(Yl),Zl=window.wp.dom;var Jl=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,a.createElement)("span",{className:i,style:s,...o})};var Ql=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,a.createElement)(Jl,{icon:e,size:t,...n});if((0,a.isValidElement)(e)&&Jl===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return(0,a.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===r.SVG)){const o={...e.props,width:t,height:t,...n};return(0,a.createElement)(r.SVG,{...o})}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},ec=(window.wp.warning,o(1919)),tc=o.n(ec),nc=o(5619),rc=o.n(nc); + */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:function(e,t,n){"use strict";e.exports=n(7755)},9196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};!function(){"use strict";o.r(i),o.d(i,{AnglePickerControl:function(){return mb},Animate:function(){return Dm},Autocomplete:function(){return Tb},BaseControl:function(){return jv},BlockQuotation:function(){return r.BlockQuotation},Button:function(){return pd},ButtonGroup:function(){return WC},Card:function(){return SS},CardBody:function(){return AS},CardDivider:function(){return $S},CardFooter:function(){return US},CardHeader:function(){return KS},CardMedia:function(){return YS},CheckboxControl:function(){return XS},Circle:function(){return r.Circle},ClipboardButton:function(){return JS},ColorIndicator:function(){return ly},ColorPalette:function(){return m_},ColorPicker:function(){return QE},ComboboxControl:function(){return BT},CustomGradientPicker:function(){return Wk},CustomSelectControl:function(){return xP},Dashicon:function(){return Ul},DatePicker:function(){return uI},DateTimePicker:function(){return NI},Disabled:function(){return jI},Draggable:function(){return HI},DropZone:function(){return WI},DropZoneProvider:function(){return UI},Dropdown:function(){return py},DropdownMenu:function(){return sT},DuotonePicker:function(){return QI},DuotoneSwatch:function(){return qI},ExternalLink:function(){return nN},Fill:function(){return Ef},Flex:function(){return hh},FlexBlock:function(){return Xm},FlexItem:function(){return gh},FocalPointPicker:function(){return RN},FocusReturnProvider:function(){return pj},FocusableIframe:function(){return PN},FontSizePicker:function(){return SO},FormFileUpload:function(){return kO},FormToggle:function(){return RO},FormTokenField:function(){return DO},G:function(){return r.G},GradientPicker:function(){return Yk},Guide:function(){return zO},GuidePage:function(){return FO},HorizontalRule:function(){return r.HorizontalRule},Icon:function(){return Gl},IconButton:function(){return BO},IsolatedEventContainer:function(){return ZB},KeyboardShortcuts:function(){return WO},Line:function(){return r.Line},MenuGroup:function(){return UO},MenuItem:function(){return GO},MenuItemsChoice:function(){return qO},Modal:function(){return GT},NavigableMenu:function(){return rT},Notice:function(){return dA},NoticeList:function(){return pA},Panel:function(){return hA},PanelBody:function(){return wA},PanelHeader:function(){return mA},PanelRow:function(){return xA},Path:function(){return r.Path},Placeholder:function(){return _A},Polygon:function(){return r.Polygon},Popover:function(){return Ff},QueryControls:function(){return OA},RadioControl:function(){return zA},RangeControl:function(){return ew},Rect:function(){return r.Rect},ResizableBox:function(){return EL},ResponsiveWrapper:function(){return _L},SVG:function(){return r.SVG},SandBox:function(){return SL},ScrollLock:function(){return vd},SearchControl:function(){return oD},SelectControl:function(){return _y},Slot:function(){return _f},SlotFillProvider:function(){return Cf},Snackbar:function(){return TL},SnackbarList:function(){return PL},Spinner:function(){return AL},TabPanel:function(){return BL},TabbableContainer:function(){return YO},TextControl:function(){return VL},TextHighlight:function(){return qL},TextareaControl:function(){return KL},TimePicker:function(){return RI},Tip:function(){return XL},ToggleControl:function(){return ZL},Toolbar:function(){return pB},ToolbarButton:function(){return BF},ToolbarDropdownMenu:function(){return mB},ToolbarGroup:function(){return HF},ToolbarItem:function(){return zF},Tooltip:function(){return Uf},TreeSelect:function(){return RA},VisuallyHidden:function(){return ud},__experimentalAlignmentMatrixControl:function(){return Im},__experimentalApplyValueToSides:function(){return xC},__experimentalBorderBoxControl:function(){return J_},__experimentalBorderControl:function(){return D_},__experimentalBoxControl:function(){return $C},__experimentalConfirmDialog:function(){return qT},__experimentalDimensionControl:function(){return DI},__experimentalDivider:function(){return VS},__experimentalDropdownContentWrapper:function(){return l_},__experimentalElevation:function(){return qC},__experimentalGrid:function(){return z_},__experimentalHStack:function(){return rb},__experimentalHasSplitBorders:function(){return U_},__experimentalHeading:function(){return i_},__experimentalInputControl:function(){return $v},__experimentalInputControlPrefixWrapper:function(){return HO},__experimentalInputControlSuffixWrapper:function(){return my},__experimentalIsDefinedBorder:function(){return W_},__experimentalIsEmptyBorder:function(){return $_},__experimentalItem:function(){return VO},__experimentalItemGroup:function(){return hk},__experimentalNavigation:function(){return yD},__experimentalNavigationBackButton:function(){return _D},__experimentalNavigationGroup:function(){return kD},__experimentalNavigationItem:function(){return AD},__experimentalNavigationMenu:function(){return jD},__experimentalNavigatorBackButton:function(){return sA},__experimentalNavigatorButton:function(){return iA},__experimentalNavigatorProvider:function(){return JD},__experimentalNavigatorScreen:function(){return nA},__experimentalNavigatorToParentButton:function(){return lA},__experimentalNumberControl:function(){return ab},__experimentalPaletteEdit:function(){return ST},__experimentalParseQuantityAndUnitFromRawValue:function(){return E_},__experimentalRadio:function(){return AA},__experimentalRadioGroup:function(){return LA},__experimentalScrollable:function(){return OS},__experimentalSpacer:function(){return lh},__experimentalStyleProvider:function(){return mf},__experimentalSurface:function(){return LL},__experimentalText:function(){return Yh},__experimentalToggleGroupControl:function(){return rO},__experimentalToggleGroupControlOption:function(){return wO},__experimentalToggleGroupControlOptionIcon:function(){return QL},__experimentalToolbarContext:function(){return LF},__experimentalToolsPanel:function(){return DB},__experimentalToolsPanelContext:function(){return SB},__experimentalToolsPanelItem:function(){return zB},__experimentalTreeGrid:function(){return WB},__experimentalTreeGridCell:function(){return YB},__experimentalTreeGridItem:function(){return qB},__experimentalTreeGridRow:function(){return UB},__experimentalTruncate:function(){return o_},__experimentalUnitControl:function(){return M_},__experimentalUseCustomUnits:function(){return __},__experimentalUseNavigator:function(){return rA},__experimentalUseSlot:function(){return Yd},__experimentalUseSlotFills:function(){return JB},__experimentalVStack:function(){return r_},__experimentalView:function(){return cd},__experimentalZStack:function(){return rj},__unstableAnimatePresence:function(){return Vm},__unstableComposite:function(){return xm},__unstableCompositeGroup:function(){return Cm},__unstableCompositeItem:function(){return ke},__unstableDisclosureContent:function(){return Hx},__unstableGetAnimateClassName:function(){return Om},__unstableMotion:function(){return jl},__unstableUseAutocompleteProps:function(){return kb},__unstableUseCompositeState:function(){return fm},__unstableUseNavigateRegions:function(){return ij},createSlotFill:function(){return Sf},navigateRegions:function(){return aj},privateApis:function(){return OG},useBaseControlProps:function(){return Rb},withConstrainedTabbing:function(){return sj},withFallbackStyles:function(){return lj},withFilters:function(){return dj},withFocusOutside:function(){return DT},withFocusReturn:function(){return fj},withNotices:function(){return mj},withSpokenMessages:function(){return LD}});var e={};o.r(e),o.d(e,{Text:function(){return Oh},block:function(){return Dh},destructive:function(){return Lh},highlighterText:function(){return Fh},muted:function(){return zh},positive:function(){return Ah},upperCase:function(){return Bh}});var t={};o.r(t),o.d(t,{TooltipContent:function(){return Xx},TooltipPopoverView:function(){return Zx},TooltipShortcut:function(){return Qx},noOutline:function(){return Jx}});var n={};o.r(n),o.d(n,{ButtonContentView:function(){return pO},LabelView:function(){return lO},buttonView:function(){return uO},labelBlock:function(){return cO}});var r=window.wp.primitives,a=window.wp.element,s=o(4403),l=o.n(s),c=window.wp.i18n,u=window.wp.compose;function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e){for(var t=1;t=0||(o[n]=e[n]);return o}function h(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)}var v=o(9196),b=o.t(v,2),y=o.n(v);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(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 E(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)}var k=(0,v.createContext)({});var T,R=function(e,t,n){void 0===n&&(n=t.children);var r=(0,v.useContext)(k);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(_(t,["children"]))}return(0,v.createElement)(e,t,n)};function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!N(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["state"]);return[I(I({},i),a),o]}function A(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;i0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=B({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=m(e,["unstable_system"]),o=t.unstable_system,i=m(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,v.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=B({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return p({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=m(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,v.useRef)(null),d=G(o),f=G(i),h=G(a),g=G(s),b=!!e.disabled&&!e.focusable,y=(0,v.useState)(!0),w=y[0],x=y[1],E=(0,v.useState)(!0),_=E[0],C=E[1],S=e.disabled?p({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var k=se(d,e.disabled),T=se(f,e.disabled),R=se(g,e.disabled),P=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return p({ref:V(u,n),style:S,tabIndex:ae(b,w,_,r),disabled:!(!b||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:k,onMouseDownCapture:T,onMouseDown:P,onKeyPressCapture:R},c)}});z({as:"div",useHook:le});var ce=B({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return p({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},m(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=m(t,["onKeyDown","onKeyUp"]),i=(0,v.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,v.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&K(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&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,v.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return p({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(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}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,v.createContext)(ye);var xe=B({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,v.useContext)(we),r=(0,v.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,v.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return p(p({},e),{},{id:i})},useProps:function(e,t){return p({id:e.id},t)}});z({as:"div",useHook:xe});function Ee(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=H(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function _e(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(Ee(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var Se=B({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=m(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=m(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return p(p({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=m(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,v.useRef)(null),h=e.id,b=e.disabled&&!e.focusable,y=e.currentId===h,w=G(y),x=(0,v.useRef)(!1),E=function(e){return(0,v.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),_=G(a),C=G(s),S=G(l),k=G(c),T=G(u),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,v.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:f,disabled:!!b}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,b,e.registerItem,e.unregisterItem]),(0,v.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var P=(0,v.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e),ge(e.currentTarget,!0)}),[]),M=(0,v.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&h&&!function(e,t){if(K(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&K(t))){var i=H(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,v.useCallback)((function(t){var n;null===(n=S.current)||void 0===n||n.call(S,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),N=(0,v.useCallback)((function(t){var n;if(K(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==E||!E.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?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;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),_e(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),_e(l,""))}}}),[e.orientation,E,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,v.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return p({ref:V(f,r),id:h,tabIndex:R?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:P,onFocus:M,onBlurCapture:I,onKeyDown:N,onClick:O},d)}}),ke=z({as:"button",memo:!0,useHook:Se});function Te(e){return e.split("-")[0]}function Re(e){return e.split("-")[1]}function Pe(e){return["top","bottom"].includes(Te(e))?"x":"y"}function Me(e){return"y"===e?"height":"width"}function Ie(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Pe(t),l=Me(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Te(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Re(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Ne(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Oe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function De(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=Ne(p),h=s[f?"floating"===d?"reference":"floating":d],g=Oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const Ae=Math.min,Le=Math.max;function ze(e,t,n){return Le(e,Ae(t,n))}const Fe=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=Ne(r),u={x:o,y:i},d=Pe(a),f=Re(a),p=Me(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=ze(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?CBe[e]))}function Ve(e,t,n){void 0===n&&(n=!1);const r=Re(e),o=Pe(e),i=Me(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=je(a)),{main:a,cross:je(a)}}const He={start:"end",end:"start"};function $e(e){return e.replace(/start|end/g,(e=>He[e]))}const We=["top","right","bottom","left"],Ue=(We.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=Te(r),g=d||(h!==a&&p?function(e){const t=je(e);return[$e(e),t,$e(t)]}(a):[je(a)]),v=[a,...g],b=await De(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=Ve(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});const Ge=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Te(n),s=Re(n),l="x"===Pe(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Ke(e){return"x"===e?"y":"x"}const qe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await De(t,l),d=Pe(Te(o)),f=Ke(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=ze(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=ze(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=e,l=await De(t,s),c=Te(n),u=Re(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=Le(l.left,0),m=Le(l.right,0),h=Le(l.top,0),g=Le(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:Le(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Le(l.left,l.right)):l[f])};await a({...t,...v});const b=await o.getDimensions(i.floating);return r.floating.width!==b.width||r.floating.height!==b.height?{reset:{rects:!0}}:{}}}};function Xe(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ze(e){if(null==e)return window;if(!Xe(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return Ze(e).getComputedStyle(e)}function Qe(e){return Xe(e)?"":e?(e.nodeName||"").toLowerCase():""}function et(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function tt(e){return e instanceof Ze(e).HTMLElement}function nt(e){return e instanceof Ze(e).Element}function rt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}function ot(e){const{overflow:t,overflowX:n,overflowY:r}=Je(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function it(e){return["table","td","th"].includes(Qe(e))}function at(e){const t=/firefox/i.test(et()),n=Je(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function st(){return!/^((?!chrome|android).)*safari/i.test(et())}const lt=Math.min,ct=Math.max,ut=Math.round;function dt(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&tt(e)&&(l=e.offsetWidth>0&&ut(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ut(s.height)/e.offsetHeight||1);const u=nt(e)?Ze(e):window,d=!st()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function ft(e){return(t=e,(t instanceof Ze(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function pt(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mt(e){return dt(ft(e)).left+pt(e).scrollLeft}function ht(e,t,n){const r=tt(t),o=ft(t),i=dt(e,r&&function(e){const t=dt(e);return ut(t.width)!==e.offsetWidth||ut(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Qe(t)||ot(o))&&(a=pt(t)),tt(t)){const e=dt(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=mt(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function gt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(rt(e)?e.host:null)||ft(e)}function vt(e){return tt(e)&&"fixed"!==Je(e).position?function(e){let{offsetParent:t}=e,n=e,r=!1;for(;n&&n!==t;){const{assignedSlot:e}=n;if(e){let o=e.offsetParent;if("contents"===Je(e).display){const t=e.hasAttribute("style"),r=e.style.display;e.style.display=Je(n).display,o=e.offsetParent,e.style.display=r,t||e.removeAttribute("style")}n=e,t!==o&&(t=o,r=!0)}else if(rt(n)&&n.host&&r)break;n=rt(n)&&n.host||n.parentNode}return t}(e):null}function bt(e){const t=Ze(e);let n=vt(e);for(;n&&it(n)&&"static"===Je(n).position;)n=vt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===Je(n).position&&!at(n))?t:n||function(e){let t=gt(e);for(rt(t)&&(t=t.host);tt(t)&&!["html","body"].includes(Qe(t));){if(at(t))return t;{const e=t.parentNode;t=rt(e)?e.host:e}}return null}(e)||t}function yt(e){if(tt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=dt(e);return{width:t.width,height:t.height}}function wt(e){const t=gt(e);return["html","body","#document"].includes(Qe(t))?e.ownerDocument.body:tt(t)&&ot(t)?t:wt(t)}function xt(e,t){var n;void 0===t&&(t=[]);const r=wt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ze(r),a=o?[i].concat(i.visualViewport||[],ot(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(xt(a))}function Et(e,t,n){return"viewport"===t?Oe(function(e,t){const n=Ze(e),r=ft(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=st();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):nt(t)?function(e,t){const n=dt(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Oe(function(e){var t;const n=ft(e),r=pt(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ct(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ct(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+mt(e);const l=-r.scrollTop;return"rtl"===Je(o||n).direction&&(s+=ct(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(ft(e)))}function _t(e){const t=xt(e),n=["absolute","fixed"].includes(Je(e).position)&&tt(e)?bt(e):e;return nt(n)?t.filter((e=>nt(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&rt(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Qe(e))):[]}const Ct={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?_t(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Et(t,n,o);return e.top=ct(r.top,e.top),e.right=lt(r.right,e.right),e.bottom=lt(r.bottom,e.bottom),e.left=ct(r.left,e.left),e}),Et(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=tt(n),i=ft(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Qe(n)||ot(i))&&(a=pt(n)),tt(n))){const e=dt(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:nt,getDimensions:yt,getOffsetParent:bt,getDocumentElement:ft,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:ht(t,bt(n),r),floating:{...yt(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Je(e).direction};const St=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Ie(l,r,s),d=r,f={},p=0;for(let n=0;n{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(i),p=function(e){const t=v.useRef(e);return Rt((()=>{t.current=e})),t}(o),m=v.useCallback((()=>{c.current&&u.current&&St(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Pt(f.current,e)&&(f.current=e,kt.flushSync((()=>{a(e)})))}))}),[s,n,r]);Rt((()=>{h.current&&m()}),[m]);const h=v.useRef(!1);Rt((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=v.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),b=v.useCallback((e=>{c.current=e,g()}),[g]),y=v.useCallback((e=>{u.current=e,g()}),[g]),w=v.useMemo((()=>({reference:c,floating:u})),[]);return v.useMemo((()=>({...i,update:m,refs:w,reference:b,floating:y})),[i,m,w,b,y])}const It=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Fe({element:t.current,padding:n}).fn(e):{}:t?Fe({element:t,padding:n}).fn(e):{};var r}}},Nt="undefined"!=typeof document,Ot={current:null},Dt={current:!1};function At(){if(Dt.current=!0,Nt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ot.current=e.matches;e.addListener(t),t()}else Ot.current=!1}const Lt=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),zt=(0,v.createContext)({}),Ft=(0,v.createContext)(null),Bt=Nt?v.useLayoutEffect:v.useEffect,jt=(0,v.createContext)({strict:!1});function Vt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ht(e){return"string"==typeof e||Array.isArray(e)}function $t(e){return"object"==typeof e&&"function"==typeof e.start}const Wt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ut=["initial",...Wt];function Gt(e){return $t(e.animate)||Ut.some((t=>Ht(e[t])))}function Kt(e){return Boolean(Gt(e)||e.variants)}function qt(e){const{initial:t,animate:n}=function(e,t){if(Gt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ht(t)?t:void 0,animate:Ht(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(zt));return(0,v.useMemo)((()=>({initial:t,animate:n})),[Yt(t),Yt(n)])}function Yt(e){return Array.isArray(e)?e.join(" "):e}const Xt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zt={};for(const e in Xt)Zt[e]={isEnabled:t=>Xt[e].some((e=>!!t[e]))};function Jt(e){const t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let en=1;const tn=(0,v.createContext)({}),nn=(0,v.createContext)({}),rn=Symbol.for("motionComponentSymbol");function on({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)Zt[t]={...Zt[t],...e[t]}}(e);const i=(0,v.forwardRef)((function(i,a){let s;const l={...(0,v.useContext)(Lt),...i,layoutId:an(i)},{isStatic:c}=l,u=qt(i),d=c?void 0:Jt((()=>{if(Qt.hasEverUpdated)return en++})),f=r(i,c);if(!c&&Nt){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,v.useContext)(zt),i=(0,v.useContext)(jt),a=(0,v.useContext)(Ft),s=(0,v.useContext)(Lt).reducedMotion,l=(0,v.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return(0,v.useInsertionEffect)((()=>{c&&c.update(n,a)})),Bt((()=>{c&&c.render()})),(0,v.useEffect)((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Bt:v.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=(0,v.useContext)(nn),r=(0,v.useContext)(jt).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return v.createElement(zt.Provider,{value:u},s&&u.visualElement?v.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return(0,v.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Vt(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[rn]=o,i}function an({layoutId:e}){const t=(0,v.useContext)(tn).id;return t&&void 0!==e?t+"-"+e:e}function sn(e){function t(t,n={}){return on(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ln=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cn(e){return"string"==typeof e&&!e.includes("-")&&!!(ln.indexOf(e)>-1||/[A-Z]/.test(e))}const un={};const dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fn=new Set(dn);function pn(e,{layout:t,layoutId:n}){return fn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!un[e]||"opacity"===e)}const mn=e=>Boolean(e&&e.getVelocity),hn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gn=dn.length;const vn=e=>t=>"string"==typeof t&&t.startsWith(e),bn=vn("--"),yn=vn("var(--"),wn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,xn=(e,t,n)=>Math.min(Math.max(n,e),t),En={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},_n={...En,transform:e=>xn(0,1,e)},Cn={...En,default:1},Sn=e=>Math.round(1e5*e)/1e5,kn=/(-)?([\d]*\.?[\d])+/g,Tn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Rn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pn(e){return"string"==typeof e}const Mn=e=>({test:t=>Pn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),In=Mn("deg"),Nn=Mn("%"),On=Mn("px"),Dn=Mn("vh"),An=Mn("vw"),Ln={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(100*e)},zn={...En,transform:Math.round},Fn={borderWidth:On,borderTopWidth:On,borderRightWidth:On,borderBottomWidth:On,borderLeftWidth:On,borderRadius:On,radius:On,borderTopLeftRadius:On,borderTopRightRadius:On,borderBottomRightRadius:On,borderBottomLeftRadius:On,width:On,maxWidth:On,height:On,maxHeight:On,size:On,top:On,right:On,bottom:On,left:On,padding:On,paddingTop:On,paddingRight:On,paddingBottom:On,paddingLeft:On,margin:On,marginTop:On,marginRight:On,marginBottom:On,marginLeft:On,rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:Cn,scaleX:Cn,scaleY:Cn,scaleZ:Cn,skew:In,skewX:In,skewY:In,distance:On,translateX:On,translateY:On,translateZ:On,x:On,y:On,z:On,perspective:On,transformPerspective:On,opacity:_n,originX:Ln,originY:Ln,originZ:On,zIndex:zn,fillOpacity:_n,strokeOpacity:_n,numOctaves:zn};function Bn(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(bn(e)){i[e]=n;continue}const r=Fn[e],d=wn(n,r);if(fn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function Vn(e,t,n){for(const r in t)mn(t[r])||pn(r,n)||(e[r]=t[r])}function Hn(e,t,n){const r={};return Vn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,v.useMemo)((()=>{const r=jn();return Bn(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function $n(e,t,n){const r={},o=Hn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Wn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Un(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Wn.has(e)}let Gn=e=>!Un(e);try{(Kn=require("@emotion/is-prop-valid").default)&&(Gn=e=>e.startsWith("on")?!Un(e):Kn(e))}catch(kz){}var Kn;function qn(e,t,n){return"string"==typeof e?e:On.transform(t+n*e)}const Yn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xn={offset:"strokeDashoffset",array:"strokeDasharray"};function Zn(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Bn(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${qn(t,e.x,e.width)} ${qn(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Yn:Xn;e[i.offset]=On.transform(-r);const a=On.transform(t),s=On.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const Jn=()=>({...jn(),attrs:{}}),Qn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function er(e,t,n,r){const o=(0,v.useMemo)((()=>{const n=Jn();return Zn(n,t,{enableHardwareAcceleration:!1},Qn(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Vn(t,e.style,e),o.style={...t,...o.style}}return o}function tr(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(cn(t)?er:$n)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Gn(o)||!0===n&&Un(o)||!t&&!Un(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,v.useMemo)((()=>mn(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),(0,v.createElement)(t,{...c,children:d})}}const nr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rr(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const or=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ir(e,t,n,r){rr(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(or.has(n)?n:nr(n),t.attrs[n])}function ar(e,t){const{style:n}=e,r={};for(const o in n)(mn(n[o])||t.style&&mn(t.style[o])||pn(o,e))&&(r[o]=n[o]);return r}function sr(e,t){const n=ar(e,t);for(const r in e)if(mn(e[r])||mn(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function lr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const cr=e=>Array.isArray(e),ur=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),dr=e=>cr(e)?e[e.length-1]||0:e;function fr(e){const t=mn(e)?e.get():e;return ur(t)?t.toValue():t}const pr=e=>(t,n)=>{const r=(0,v.useContext)(zt),o=(0,v.useContext)(Ft),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:mr(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():Jt(i)};function mr(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=fr(i[e]);let{initial:a,animate:s}=e;const l=Gt(e),c=Kt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!$t(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=lr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const hr={useVisualState:pr({scrapeMotionValuesFromProps:sr,createRenderState:Jn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Zn(n,r,{enableHardwareAcceleration:!1},Qn(t.tagName),e.transformTemplate),ir(t,n)}})},gr={useVisualState:pr({scrapeMotionValuesFromProps:ar,createRenderState:jn})};function vr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const br=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function yr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const wr=e=>t=>br(t)&&e(t,yr(t));function xr(e,t,n,r){return vr(e,t,wr(n),r)}const Er=(e,t)=>n=>t(e(n)),_r=(...e)=>e.reduce(Er);function Cr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Sr=Cr("dragHorizontal"),kr=Cr("dragVertical");function Tr(e){let t=!1;if("y"===e)t=kr();else if("x"===e)t=Sr();else{const e=Sr(),n=kr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Rr(){const e=Tr(!0);return!e||(e(),!1)}class Pr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Mr={delta:0,timestamp:0,isProcessing:!1};let Ir=!0,Nr=!1;const Or=["read","update","preRender","render","postRender"],Dr=Or.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nNr=!0)),e)),{}),Ar=Or.reduce(((e,t)=>{const n=Dr[t];return e[t]=(e,t=!1,r=!1)=>(Nr||jr(),n.schedule(e,t,r)),e}),{}),Lr=Or.reduce(((e,t)=>(e[t]=Dr[t].cancel,e)),{}),zr=Or.reduce(((e,t)=>(e[t]=()=>Dr[t].process(Mr),e)),{}),Fr=e=>Dr[e].process(Mr),Br=e=>{Nr=!1,Mr.delta=Ir?1e3/60:Math.max(Math.min(e-Mr.timestamp,40),1),Mr.timestamp=e,Mr.isProcessing=!0,Or.forEach(Fr),Mr.isProcessing=!1,Nr&&(Ir=!1,requestAnimationFrame(Br))},jr=()=>{Nr=!0,Ir=!0,Mr.isProcessing||requestAnimationFrame(Br)};function Vr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return xr(e.current,n,((n,o)=>{if("touch"===n.type||Rr())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Ar.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Hr=(e,t)=>!!t&&(e===t||Hr(e,t.parentElement)),$r=e=>e;function Wr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,yr(n))}const Ur=new WeakMap,Gr=new WeakMap,Kr=e=>{const t=Ur.get(e.target);t&&t(e)},qr=e=>{e.forEach(Kr)};function Yr(e,t,n){const r=function({root:e,...t}){const n=e||document;Gr.has(n)||Gr.set(n,{});const r=Gr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(qr,{root:e,...t})),r[o]}(t);return Ur.set(e,n),r.observe(e),()=>{Ur.delete(e),r.unobserve(e)}}const Xr={some:0,all:1};const Zr={inView:{Feature:class extends Pr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Xr[r]};return Yr(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Pr{constructor(){super(...arguments),this.removeStartListeners=$r,this.removeEndListeners=$r,this.removeAccessibleListeners=$r,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=xr(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Ar.update((()=>{Hr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=xr(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_r(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=vr(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=vr(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Wr("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Ar.update((()=>n(e,t)))}))})),Wr("down",((e,t)=>{this.startPress(e,t)}))})),t=vr(this.node.current,"blur",(()=>{this.isPressing&&Wr("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_r(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ar.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rr()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ar.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=xr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=vr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_r(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Pr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_r(vr(this.node.current,"focus",(()=>this.onFocus())),vr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Pr{mount(){this.unmount=_r(Vr(this.node,!0),Vr(this.node,!1))}unmount(){}}}};function Jr(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const eo="data-"+nr("framerAppearId");let to=$r,no=$r;const ro=e=>1e3*e,oo=e=>e/1e3,io=!1,ao=e=>Array.isArray(e)&&"number"==typeof e[0];function so(e){return Boolean(!e||"string"==typeof e&&co[e]||ao(e)||Array.isArray(e)&&e.every(so))}const lo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,co={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lo([0,.65,.55,1]),circOut:lo([.55,0,1,.45]),backIn:lo([.31,.01,.66,-.59]),backOut:lo([.33,1.53,.69,.99])};function uo(e){if(e)return ao(e)?lo(e):Array.isArray(e)?e.map(uo):co[e]}const fo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},po={},mo={};for(const e in fo)mo[e]=()=>(void 0===po[e]&&(po[e]=fo[e]()),po[e]);const ho=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,go=1e-7,vo=12;function bo(e,t,n,r){if(e===t&&n===r)return $r;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ho(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>go&&++s0===e||1===e?e:ho(o(e),t,r)}const yo=bo(.42,0,1,1),wo=bo(0,0,.58,1),xo=bo(.42,0,.58,1),Eo=e=>Array.isArray(e)&&"number"!=typeof e[0],_o=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Co=e=>t=>1-e(1-t),So=e=>1-Math.sin(Math.acos(e)),ko=Co(So),To=_o(ko),Ro=bo(.33,1.53,.69,.99),Po=Co(Ro),Mo=_o(Po),Io={linear:$r,easeIn:yo,easeInOut:xo,easeOut:wo,circIn:So,circInOut:To,circOut:ko,backIn:Po,backInOut:Mo,backOut:Ro,anticipate:e=>(e*=2)<1?.5*Po(e):.5*(2-Math.pow(2,-10*(e-1)))},No=e=>{if(Array.isArray(e)){no(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return bo(t,n,r,o)}return"string"==typeof e?(no(void 0!==Io[e],`Invalid easing type '${e}'`),Io[e]):e},Oo=(e,t)=>n=>Boolean(Pn(n)&&Rn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Do=(e,t,n)=>r=>{if(!Pn(r))return r;const[o,i,a,s]=r.match(kn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ao={...En,transform:e=>Math.round((e=>xn(0,255,e))(e))},Lo={test:Oo("rgb","red"),parse:Do("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ao.transform(e)+", "+Ao.transform(t)+", "+Ao.transform(n)+", "+Sn(_n.transform(r))+")"};const zo={test:Oo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Lo.transform},Fo={test:Oo("hsl","hue"),parse:Do("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Sn(t))+", "+Nn.transform(Sn(n))+", "+Sn(_n.transform(r))+")"},Bo={test:e=>Lo.test(e)||zo.test(e)||Fo.test(e),parse:e=>Lo.test(e)?Lo.parse(e):Fo.test(e)?Fo.parse(e):zo.parse(e),transform:e=>Pn(e)?e:e.hasOwnProperty("red")?Lo.transform(e):Fo.transform(e)},jo=(e,t,n)=>-n*e+n*t+e;function Vo(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}const Ho=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},$o=[zo,Lo,Fo];function Wo(e){const t=(e=>$o.find((t=>t.test(e))))(e);no(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Fo&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Vo(s,r,e+1/3),i=Vo(s,r,e),a=Vo(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Uo=(e,t)=>{const n=Wo(e),r=Wo(t),o={...n};return e=>(o.red=Ho(n.red,r.red,e),o.green=Ho(n.green,r.green,e),o.blue=Ho(n.blue,r.blue,e),o.alpha=jo(n.alpha,r.alpha,e),Lo.transform(o))},Go="${c}",Ko="${n}";function qo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Tn);o&&(n=o.length,e=e.replace(Tn,Go),t.push(...o.map(Bo.parse)));const i=e.match(kn);return i&&(r=i.length,e=e.replace(kn,Ko),t.push(...i.map(En.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Yo(e){return qo(e).values}function Xo(e){const{values:t,numColors:n,tokenised:r}=qo(e),o=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e;const Jo={test:function(e){var t,n;return isNaN(e)&&Pn(e)&&((null===(t=e.match(kn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Tn))||void 0===n?void 0:n.length)||0)>0},parse:Yo,createTransformer:Xo,getAnimatableNone:function(e){const t=Yo(e);return Xo(e)(t.map(Zo))}};function Qo(e,t){return"number"==typeof e?n=>jo(e,t,n):Bo.test(e)?Uo(e,t):ni(e,t)}const ei=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Qo(e,t[n])));return e=>{for(let t=0;t{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Qo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ni=(e,t)=>{const n=Jo.createTransformer(t),r=qo(e),o=qo(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?_r(ei(r.values,o.values),n):(to(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ri=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},oi=(e,t)=>n=>jo(e,t,n);function ii(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?oi:"string"==typeof e?Bo.test(e)?Uo:ni:Array.isArray(e)?ei:"object"==typeof e?ti:oi}(e[0]),i=e.length-1;for(let n=0;nt[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ii(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;nl(xn(e[0],e[i-1],t)):l}function si(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ri(0,t,r);e.push(jo(n,1,o))}}(t,e.length-1),t}function li({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Eo(r)?r.map(No):No(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:si(t),e),s=ai(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||xo)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function ci(e,t){return t?e*(1e3/t):0}const ui=5;function di(e,t,n){const r=Math.max(t-ui,0);return ci(n-e(r),t-r)}const fi=.001,pi=.01,mi=10,hi=.05,gi=1;function vi({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;to(e<=ro(mi),"Spring duration must be 10 seconds or less");let a=1-t;a=xn(hi,gi,a),e=xn(pi,mi,oo(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=yi(t,a),l=Math.exp(-o);return fi-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=yi(Math.pow(t,2),a);return(-o(t)+fi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-fi,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;nvoid 0!==e[t]))}function _i({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ei(e,xi)&&Ei(e,wi)){const n=vi(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-oo(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=oo(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=yi(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?di(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Ci({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&el)(f.value)&&(w=e,x=_i({keyframes:[f.value,p(f.value)],velocity:di(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,y(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&y(e),f)}}}const Si=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ar.update(t,!0),stop:()=>Lr.update(t),now:()=>Mr.isProcessing?Mr.timestamp:performance.now()}},ki=2e4;function Ti(e){let t=0;let n=e.next(t);for(;!n.done&&t=ki?1/0:t}const Ri={decay:Ci,inertia:Ci,tween:li,keyframes:li,spring:_i};function Pi({autoplay:e=!0,delay:t=0,driver:n=Si,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{p&&p(),m=new Promise((e=>{p=e}))};let b;v();const y=Ri[o]||li;let w;y!==li&&"number"!=typeof r[0]&&(w=ai([0,100],r,{clamp:!1}),r=[0,100]);const x=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,S=null,k=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ti(x));const{calculatedDuration:T}=x;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let M=0;const I=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),M=null!==C?C:(e-S)*h;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===_&&null===C&&(M=P);let l=M,c=x;if(i){const e=M/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=E));let o=xn(0,1,n);M>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=M>=P);const p=null===C&&("finished"===_||"running"===_&&f||h<0&&M<=0);return d&&d(u.value),p&&D(),u},N=()=>{b&&b.stop(),b=void 0},O=()=>{_="idle",N(),v(),S=k=null},D=()=>{_="finished",u&&u(),N(),v()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==C?S=e-C:S&&"finished"!==_||(S=e),k=S,C=null,_="running",b.start()};e&&A();const L={then(e,t){return m.then(e,t)},get time(){return oo(M)},set time(e){e=ro(e),M=e,null===C&&b&&0!==h?S=b.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Ti(x):x.calculatedDuration;return oo(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=oo(M))},get state(){return _},play:A,pause:()=>{_="paused",C=M},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&I(k),O()},complete:()=>{_="finished"},sample:e=>(S=0,I(e))};return L}const Mi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Ii(e,t,{onUpdate:n,onComplete:r,...o}){if(!(mo.waapi()&&Mi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!so(t.ease))(t,o)){const e=Pi({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=uo(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f}),m=()=>p.cancel(),h=()=>{Ar.update(m),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return a.then(e,t)},get time(){return oo(p.currentTime||0)},set time(e){p.currentTime=ro(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return oo(u)},play:()=>{s||(p.play(),Lr.update(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Pi({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const Ni={type:"spring",stiffness:500,damping:25,restSpeed:10},Oi={type:"keyframes",duration:.8},Di={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ai=(e,{keyframes:t})=>t.length>2?Oi:fn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ni:Di,Li=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Jo.test(t)||t.startsWith("url("))),zi=new Set(["brightness","contrast","saturate","opacity"]);function Fi(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(kn)||[];if(!r)return e;const o=n.replace(r,"");let i=zi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Bi=/([a-z-]*)\(.*?\)/g,ji={...Jo,getAnimatableNone:e=>{const t=e.match(Bi);return t?t.map(Fi).join(" "):e}},Vi={...Fn,color:Bo,backgroundColor:Bo,outlineColor:Bo,fill:Bo,stroke:Bo,borderColor:Bo,borderTopColor:Bo,borderRightColor:Bo,borderBottomColor:Bo,borderLeftColor:Bo,filter:ji,WebkitFilter:ji},Hi=e=>Vi[e];function $i(e,t){let n=Hi(e);return n!==ji&&(n=Jo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Wi(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ui(e){return"number"==typeof e?0:$i("",e)}function Gi(e,t){return e[t]||e.default||e}const Ki=(e,t,n,r={})=>o=>{const i=Gi(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=ro(a);const l=function(e,t,n,r){const o=Li(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=$i(t,n):Wi(i)&&"string"==typeof n?i=Ui(n):!Array.isArray(n)&&Wi(n)&&"string"==typeof i&&(n=Ui(i)),Array.isArray(n)?function(e,[...t]){for(let n=0;n{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Ai(e,p)}),p.duration&&(p.duration=ro(p.duration)),p.repeatDelay&&(p.repeatDelay=ro(p.repeatDelay)),!d||!f||io||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:$r,pause:$r,stop:$r,then:e=>(e(),Promise.resolve()),cancel:$r,complete:$r});return t?Pi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Ii(t,e,p);if(n)return n}return Pi(p)};function qi(e){return Boolean(mn(e)&&e.add)}const Yi=e=>/^\-?\d*\.?\d+$/.test(e),Xi=e=>/^0[^.\s]+$/.test(e);function Zi(e,t){-1===e.indexOf(t)&&e.push(t)}function Ji(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qi{constructor(){this.subscriptions=[]}add(e){return Zi(this.subscriptions,e),()=>Ji(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Mr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Qi);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ar.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ci(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ta(e,t){return new ea(e,t)}const na=e=>t=>t.test(e),ra=[En,On,Nn,In,An,Dn,{test:e=>"auto"===e,parse:e=>e}],oa=e=>ra.find(na(e)),ia=[...ra,Bo,Jo],aa=e=>ia.find(na(e));function sa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ta(n))}function la(e,t){const n=Qr(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){sa(e,t,dr(i[t]))}}function ca(e,t){if(!t)return;return(t[e]||t.default||t).from}function ua({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function da(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&ua(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[eo];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Ar))}r.start(Ki(t,r,o,e.shouldReduceMotion&&fn.has(t)?{type:!1}:a));const d=r.animation;qi(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&la(e,a)})),c}function fa(e,t,n={}){const r=Qr(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(da(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(pa).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(fa(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function pa(e,t){return e.sortNodePosition(t)}const ma=[...Wt].reverse(),ha=Wt.length;function ga(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>fa(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=fa(e,t,n);else{const o="function"==typeof t?Qr(e,t,n.custom):t;r=Promise.all(da(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function va(e){let t=ga(e);const n={animate:ya(!0),whileInView:ya(),whileHover:ya(),whileTap:ya(),whileDrag:ya(),whileFocus:ya(),exit:ya()};let r=!0;const o=(t,n)=>{const r=Qr(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;tf&&g;const x=Array.isArray(h)?h:[h];let E=x.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=m,C={..._,...E},S=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?cr(t)&&cr(n)?!Jr(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ba(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Jr(t,e)}function ya(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let wa=0;const xa={animation:{Feature:class extends Pr{constructor(e){super(e),e.animationState||(e.animationState=va(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),$t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Pr{constructor(){super(...arguments),this.id=wa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ea=(e,t)=>Math.abs(e-t);class _a{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ka(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ea(e.x,t.x),r=Ea(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Mr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ca(t,this.transformPagePoint),Ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=ka("pointercancel"===e.type?this.lastMoveEventInfo:Ca(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!br(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ca(yr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Mr;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,ka(r,this.history)),this.removeListeners=_r(xr(window,"pointermove",this.handlePointerMove),xr(window,"pointerup",this.handlePointerUp),xr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Lr.update(this.updatePoint)}}function Ca(e,t){return t?{point:t(e.point)}:e}function Sa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ka({point:e},t){return{point:e,delta:Sa(e,Ra(t)),offset:Sa(e,Ta(t)),velocity:Pa(t,.1)}}function Ta(e){return e[0]}function Ra(e){return e[e.length-1]}function Pa(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ra(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ro(t)));)n--;if(!r)return{x:0,y:0};const i=oo(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ma(e){return e.max-e.min}function Ia(e,t=0,n=.01){return Math.abs(e-t)<=n}function Na(e,t,n,r=.5){e.origin=r,e.originPoint=jo(t.min,t.max,e.origin),e.scale=Ma(n)/Ma(t),(Ia(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jo(n.min,n.max,e.origin)-e.originPoint,(Ia(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Oa(e,t,n,r){Na(e.x,t.x,n.x,r?r.originX:void 0),Na(e.y,t.y,n.y,r?r.originY:void 0)}function Da(e,t,n){e.min=n.min+t.min,e.max=e.min+Ma(t)}function Aa(e,t,n){e.min=t.min-n.min,e.max=e.min+Ma(t)}function La(e,t,n){Aa(e.x,t.x,n.x),Aa(e.y,t.y,n.y)}function za(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Fa(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),$a=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Wa(e){return[e("x"),e("y")]}function Ua({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ga(e){return void 0===e||1===e}function Ka({scale:e,scaleX:t,scaleY:n}){return!Ga(e)||!Ga(t)||!Ga(n)}function qa(e){return Ka(e)||Ya(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ya(e){return Xa(e.x)||Xa(e.y)}function Xa(e){return e&&"0%"!==e}function Za(e,t,n){return n+t*(e-n)}function Ja(e,t,n,r,o){return void 0!==o&&(e=Za(e,o,r)),Za(e,n,r)+t}function Qa(e,t=0,n=1,r,o){e.min=Ja(e.min,t,n,r,o),e.max=Ja(e.max,t,n,r,o)}function es(e,{x:t,y:n}){Qa(e.x,t.translate,t.scale,t.originPoint),Qa(e.y,n.translate,n.scale,n.originPoint)}function ts(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ns(e,t){e.min=e.min+t,e.max=e.max+t}function rs(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=jo(e.min,e.max,i);Qa(e,t[n],t[r],a,t.scale)}const os=["x","scaleX","originX"],is=["y","scaleY","originY"];function as(e,t){rs(e.x,t,os),rs(e.y,t,is)}function ss(e,t){return Ua(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ls=new WeakMap;class cs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$a(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new _a(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(yr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tr(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wa((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Nn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ma(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Ar.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ar.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!us(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?jo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Vt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:za(e.x,n,o),y:za(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ba){return!1===e?e=0:!0===e&&(e=Ba),{x:ja(e,"left","right"),y:ja(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Wa((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Vt(e))return!1;const n=e.current;no(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=ss(e,n),{scroll:o}=t;return o&&(ns(r.x,o.offset.x),ns(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Fa(e.x,t.x),y:Fa(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ua(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Wa((a=>{if(!us(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Ki(e,n,0,t))}stopAnimation(){Wa((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Wa((t=>{const{drag:n}=this.getProps();if(!us(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-jo(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Vt(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Wa((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ma(e),o=Ma(t);return o>r?n=ri(t.min,t.max-r,e.min):r>o&&(n=ri(e.min,e.max-o,t.min)),xn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wa((t=>{if(!us(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(jo(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;ls.set(this.visualElement,this);const e=xr(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Vt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=vr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Wa((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ba,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function us(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ds=e=>(t,n)=>{e&&Ar.update((()=>e(t,n)))};function fs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ps={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!On.test(e))return e;e=parseFloat(e)}return`${fs(e,t.target.x)}% ${fs(e,t.target.y)}%`}},ms=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const hs=4;function gs(e,t,n=1){no(n<=hs,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ms.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():yn(o)?gs(o,t,n+1):o}const vs="_$css",bs={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(ms,(e=>(i.push(e),vs))));const a=Jo.parse(e);if(a.length>5)return r;const s=Jo.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=jo(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(vs,(()=>{const t=i[e];return e++,t}))}return f}};class ys extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=xs,Object.assign(un,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ar.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ws(e){const[t,n]=function(){const e=(0,v.useContext)(Ft);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,v.useId)();return(0,v.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,v.useContext)(tn);return v.createElement(ys,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(nn),isPresent:t,safeToRemove:n})}const xs={borderRadius:{...ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ps,borderTopRightRadius:ps,borderBottomLeftRadius:ps,borderBottomRightRadius:ps,boxShadow:bs},Es=["TopLeft","TopRight","BottomLeft","BottomRight"],_s=Es.length,Cs=e=>"string"==typeof e?parseFloat(e):e,Ss=e=>"number"==typeof e||On.test(e);function ks(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ts=Ps(0,.5,ko),Rs=Ps(.5,.95,$r);function Ps(e,t,n){return r=>rt?1:n(ri(e,t,r))}function Ms(e,t){e.min=t.min,e.max=t.max}function Is(e,t){Ms(e.x,t.x),Ms(e.y,t.y)}function Ns(e,t,n,r,o){return e=Za(e-=t,1/n,r),void 0!==o&&(e=Za(e,1/o,r)),e}function Os(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Nn.test(t)&&(t=parseFloat(t),t=jo(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=jo(i.min,i.max,r);e===i&&(s-=t),e.min=Ns(e.min,t,n,s,o),e.max=Ns(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Ds=["x","scaleX","originX"],As=["y","scaleY","originY"];function Ls(e,t,n,r){Os(e.x,t,Ds,n?n.x:void 0,r?r.x:void 0),Os(e.y,t,As,n?n.y:void 0,r?r.y:void 0)}function zs(e){return 0===e.translate&&1===e.scale}function Fs(e){return zs(e.x)&&zs(e.y)}function Bs(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function js(e){return Ma(e.x)/Ma(e.y)}class Vs{constructor(){this.members=[]}add(e){Zi(this.members,e),e.scheduleRender()}remove(e){if(Ji(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Hs(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const $s=(e,t)=>e.depth-t.depth;class Ws{constructor(){this.children=[],this.isDirty=!1}add(e){Zi(this.children,e),this.isDirty=!0}remove(e){Ji(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($s),this.isDirty=!1,this.children.forEach(e)}}const Us=["","X","Y","Z"];let Gs=0;const Ks={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Gs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Ks.totalNodes=Ks.resolvedTargetDeltas=Ks.recalculatedProjection=0,this.nodes.forEach(Zs),this.nodes.forEach(rl),this.nodes.forEach(ol),this.nodes.forEach(Js),e=Ks,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Lr.read(r),e(i-t))};return Ar.read(r,!0),()=>Lr.read(r)}(r,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(nl))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||ul,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Bs(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Gi(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||nl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(il),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{const n=t/1e3;sl(i.x,e.x,n),sl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(La(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ll(e.x,t.x,n.x,r),ll(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Bs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=$a()),Is(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=jo(0,void 0!==n.opacity?n.opacity:1,Ts(r)),e.opacityExit=jo(void 0!==t.opacity?t.opacity:1,0,Rs(r))):i&&(e.opacity=jo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<_s;o++){const i=`border${Es[o]}Radius`;let a=ks(t,i),s=ks(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ss(a)===Ss(s)?(e[i]=Math.max(jo(Cs(a),Cs(s),r),0),(Nn.test(s)||Nn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=jo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ar.update((()=>{Qt.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=mn(e)?e:ta(e);return r.start(Ki("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&pl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$a();const t=Ma(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ma(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Is(t,n),as(t,o),Oa(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Vs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(el),this.root.sharedNodes.clear()}}}function Ys(e){e.updateLayout()}function Xs(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Wa((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Ma(r);r.min=t[e].min,r.max=r.min+o})):pl(o,n.layoutBox,t)&&Wa((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Ma(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Ha();Oa(a,t,n.layoutBox);const s=Ha();i?Oa(s,e.applyTransform(r,!0),n.measuredBox):Oa(s,t,n.layoutBox);const l=!Fs(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=$a();La(a,n.layoutBox,o.layoutBox);const s=$a();La(s,t,i.layoutBox),Bs(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zs(e){Ks.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Js(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Qs(e){e.clearSnapshot()}function el(e){e.clearMeasurements()}function tl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function rl(e){e.resolveTargetDelta()}function ol(e){e.calcProjection()}function il(e){e.resetRotation()}function al(e){e.removeLeadSnapshot()}function sl(e,t,n){e.translate=jo(t.translate,0,n),e.scale=jo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ll(e,t,n,r){e.min=jo(t.min,n.min,r),e.max=jo(t.max,n.max,r)}function cl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ul={duration:.45,ease:[.4,0,.1,1]};function dl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function fl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function pl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ia(js(t),js(n),.2)}const ml=qs({attachResizeListener:(e,t)=>vr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hl={current:void 0},gl=qs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hl.current){const e=new ml(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),hl.current=e}return hl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),vl={pan:{Feature:class extends Pr{constructor(){super(...arguments),this.removePointerDownListener=$r}onPointerDown(e){this.session=new _a(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ds(e),onStart:ds(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ar.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=xr(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Pr{constructor(e){super(e),this.removeGroupControls=$r,this.removeListeners=$r,this.controls=new cs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$r}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:gl,MeasureLayout:ws}},bl=new Set(["width","height","top","left","right","bottom","x","y"]),yl=e=>bl.has(e),wl=e=>e===En||e===On,xl=(e,t)=>parseFloat(e.split(", ")[t]),El=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return xl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?xl(t[1],e):0}},_l=new Set(["x","y","z"]),Cl=dn.filter((e=>!_l.has(e)));const Sl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:El(4,13),y:El(5,14)},kl=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(yl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=oa(c);const d=t[o];let f;if(cr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=oa(c);for(let n=t;n{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Sl[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Sl[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Nt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Tl(e,t,n,r){return(e=>Object.keys(e).some(yl))(t)?kl(e,t,n,r):{target:t,transitionEnd:r}}const Rl=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!yn(t))return;const n=gs(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!yn(o))continue;const i=gs(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Tl(e,t=o.target,n,r=o.transitionEnd)};const Pl=new WeakMap,Ml=Object.keys(Zt),Il=Ml.length,Nl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ol=Ut.length;class Dl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ar.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Gt(t),this.isVariantNode=Kt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&mn(t)&&(t.set(a[e],!1),qi(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Pl.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Dt.current||At(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ot.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pl.delete(this.current),this.projection&&this.projection.unmount(),Lr.update(this.notifyUpdate),Lr.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=fn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$a()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ta(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=lr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||mn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Qi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Al extends Dl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ca(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){rr(e,t,n,r)}}class zl extends Al{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fn.has(t)){const e=Hi(t);return e&&e.default||0}return t=or.has(t)?t:nr(t),e.getAttribute(t)}measureInstanceViewportBox(){return $a()}scrapeMotionValuesFromProps(e,t){return sr(e,t)}build(e,t,n,r){Zn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){ir(e,t,0,r)}mount(e){this.isSVGTag=Qn(e.tagName),super.mount(e)}}const Fl=(e,t)=>cn(e)?new zl(t,{enableHardwareAcceleration:!1}):new Ll(t,{enableHardwareAcceleration:!0}),Bl={...xa,...Zr,...vl,...{layout:{ProjectionNode:gl,MeasureLayout:ws}}},jl=sn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...cn(e)?hr:gr,preloadedFeatures:n,useRender:tr(t),createVisualElement:r,Component:e}}(e,t,Bl,Fl)));var Vl=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Hl=window.wp.deprecated,$l=o.n(Hl),Wl=window.wp.dom;var Ul=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,a.createElement)("span",{className:i,style:s,...o})};var Gl=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,a.createElement)(Ul,{icon:e,size:t,...n});if((0,a.isValidElement)(e)&&Ul===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return(0,a.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===r.SVG)){const o={...e.props,width:t,height:t,...n};return(0,a.createElement)(r.SVG,{...o})}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},Kl=(window.wp.warning,o(1919)),ql=o.n(Kl),Yl=o(5619),Xl=o.n(Yl); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function oc(e){return"[object Object]"===Object.prototype.toString.call(e)}function ic(e){var t,n;return!1!==oc(e)&&(void 0===(t=e.constructor)||!1!==oc(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var ac=function(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const sc=(0,a.createContext)({}),lc=()=>(0,a.useContext)(sc);const cc=(0,a.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=lc(),n=(0,a.useRef)(e);return ac((()=>{rc()(n.current,e)&&n.current!==e&&"undefined"!=typeof process&&process.env}),[e]),(0,a.useMemo)((()=>tc()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ic})),[t,e])}({value:t});return(0,a.createElement)(sc.Provider,{value:n},e)})),uc="data-wp-component",dc="data-wp-c16t",fc="__contextSystemKey__";var pc=function(){return pc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?Ic(Vc,--Bc):0,zc--,10===jc&&(zc=1,Lc--),jc}function Uc(){return jc=Bc2||Yc(jc)>3?"":" "}function eu(e,t){for(;--t&&Uc()&&!(jc<48||jc>102||jc>57&&jc<65||jc>70&&jc<97););return qc(e,Kc()+(t<6&&32==Gc()&&32==Uc()))}function tu(e){for(;Uc();)switch(jc){case e:return Bc;case 34:case 39:34!==e&&39!==e&&tu(jc);break;case 40:41===e&&tu(e);break;case 92:Uc()}return Bc}function nu(e,t){for(;Uc()&&e+jc!==57&&(e+jc!==84||47!==Gc()););return"/*"+qc(t,Bc-1)+"*"+kc(47===e?e:Uc())}function ru(e){for(;!Yc(Gc());)Uc();return qc(e,Bc)}var ou="-ms-",iu="-moz-",au="-webkit-",su="comm",lu="rule",cu="decl",uu="@keyframes";function du(e,t){for(var n="",r=Dc(e),o=0;o0&&Oc(_)-d&&Ac(p>32?vu(_+";",r,n,d-1):vu(Pc(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Ac(E=hu(_,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)mu(_,t,E,E,w,i,d,s,x);else switch(99===f&&110===Ic(_,3)?100:f){case 100:case 108:case 109:case 115:mu(e,E,E,r&&Ac(hu(e,E,E,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:mu(_,E,E,E,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=_="",d=a;break;case 58:d=1+Oc(_),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Wc())continue;switch(_+=kc(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Oc(_)-1)*v,v=1;break;case 64:45===Gc()&&(_+=Jc(Uc())),f=Gc(),u=d=Oc(y=_+=ru(Kc())),b++;break;case 45:45===m&&2==Oc(_)&&(h=0)}}return i}function hu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Dc(f),m=0,h=0,g=0;m0?f[v]+" "+b:Pc(b,/&\f/g,f[v])))&&(l[g++]=y);return Hc(e,t,n,0===o?lu:s,l,c,u)}function gu(e,t,n){return Hc(e,t,n,su,kc(jc),Nc(e,2,-2),0)}function vu(e,t,n,r){return Hc(e,t,n,cu,Nc(e,0,r),Nc(e,r+1,-1),r)}var bu=function(e,t,n){for(var r=0,o=0;r=o,o=Gc(),38===r&&12===o&&(t[n]=1),!Yc(o);)Uc();return qc(e,Bc)},yu=function(e,t){return Zc(function(e,t){var n=-1,r=44;do{switch(Yc(r)){case 0:38===r&&12===Gc()&&(t[n]=1),e[n]+=bu(Bc-1,t,n);break;case 2:e[n]+=Jc(r);break;case 4:if(44===r){e[++n]=58===Gc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=kc(r)}}while(r=Uc());return e}(Xc(e),t))},wu=new WeakMap,xu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||wu.get(n))&&!r){wu.set(e,!0);for(var o=[],i=yu(t,o),a=n.props,s=0,l=0;s6)switch(Ic(e,t+1)){case 109:if(45!==Ic(e,t+4))break;case 102:return Pc(e,/(.+:)(.+)-([^]+)/,"$1"+au+"$2-$3$1"+iu+(108==Ic(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Mc(e,"stretch")?_u(Pc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ic(e,t+1))break;case 6444:switch(Ic(e,Oc(e)-3-(~Mc(e,"!important")&&10))){case 107:return Pc(e,":",":"+au)+e;case 101:return Pc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+au+(45===Ic(e,14)?"inline-":"")+"box$3$1"+au+"$2$3$1"+ou+"$2box$3")+e}break;case 5936:switch(Ic(e,t+11)){case 114:return au+e+ou+Pc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return au+e+ou+Pc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return au+e+ou+Pc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return au+e+ou+e+e}return e}var Cu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cu:e.return=_u(e.value,e.length);break;case uu:return du([$c(e,{value:Pc(e.value,"@","@"+au)})],r);case lu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return du([$c(e,{props:[Pc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return du([$c(e,{props:[Pc(t,/:(plac\w+)/,":"+au+"input-$1")]}),$c(e,{props:[Pc(t,/:(plac\w+)/,":-moz-$1")]}),$c(e,{props:[Pc(t,/:(plac\w+)/,ou+"input-$1")]})],r)}return""}))}}],Su=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Cu;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=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)}(o)+l;return{name:c,styles:o,next:Au}},Fu=!!v.useInsertionEffect&&v.useInsertionEffect,Bu=Fu||function(e){return e()},ju=(Fu||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?Su({key:"css"}):null));var Vu=ju.Provider,Hu=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(ju);return e(t,r,n)}))};var $u=v.createContext({});function Wu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Uu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Gu=function(e,t,n){Uu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Ku(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function qu(e,t,n){var r=[],o=Wu(e,r,n);return r.length<2?n:o+t(r)}var Yu=function e(t){for(var n="",r=0;r{const e=(0,v.useContext)(ju),t=(0,a.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Zu(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Gu(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Qu(e,t){const n=lc();void 0===t&&"undefined"!=typeof process&&process.env;const r=n?.[t]||{},o={[dc]:!0,...(i=t,{[uc]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Ju()(_c(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function ed(e,t){return nd(e,t,{forwardsRef:!0})}function td(e,t){return nd(e,t)}function nd(e,t,n){const r=n?.forwardsRef?(0,a.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r[fc]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[fc]:[...new Set(o)],displayName:t,selector:`.${_c(t)}`})}function rd(e){if(!e)return[];let t=[];return e[fc]&&(t=e[fc]),e.type&&e.type[fc]&&(t=e.type[fc]),t}function od(e,t){return!!e&&("string"==typeof t?rd(e).includes(t):!!Array.isArray(t)&&t.some((t=>rd(e).includes(t))))}const id={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t96?cd:ud},fd=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},pd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Uu(t,n,r),Bu((function(){return Gu(t,n,r)})),null},md=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=fd(t,n,i),l=s||dd(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p{e&&(e.stopPropagation(),e.preventDefault())}}const A=!I&&(m&&v||g||!!v&&!b?.length&&!1!==m),L=_?R:void 0,z=T["aria-describedby"]||L,F={className:M,"aria-label":T["aria-label"]||v,"aria-describedby":z,ref:t},B=(0,a.createElement)(a.Fragment,null,d&&"left"===f&&(0,a.createElement)(Ql,{icon:d,size:p}),w&&(0,a.createElement)(a.Fragment,null,w),d&&"right"===f&&(0,a.createElement)(Ql,{icon:d,size:p}),b),j="a"===N?(0,a.createElement)("a",{...D,...T,...F},B):(0,a.createElement)("button",{...O,...T,...F},B);return A?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Jf,{text:b?.length&&_?_:v,shortcut:g,position:h},j),_&&(0,a.createElement)(vd,null,(0,a.createElement)("span",{id:L},_))):(0,a.createElement)(a.Fragment,null,j,_&&(0,a.createElement)(vd,null,(0,a.createElement)("span",{id:L},_)))}));var wd=yd;let xd=0;function Ed(e){const t=document.scrollingElement||document.body;e&&(xd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=xd)}let _d=0;var Cd=function(){return(0,a.useEffect)((()=>(0===_d&&Ed(!0),++_d,()=>{1===_d&&Ed(!1),--_d})),[]),null};const Sd=Symbol(),kd=Symbol(),Td=Symbol();let Rd=(e,t)=>new Proxy(e,t);const Pd=Object.getPrototypeOf,Md=new WeakMap,Id=e=>e&&(Md.has(e)?Md.get(e):Pd(e)===Object.prototype||Pd(e)===Array.prototype),Nd=e=>"object"==typeof e&&null!==e,Od=new WeakMap,Dd=e=>e[Td]||e,Ad=(e,t,n)=>{if(!Id(e))return e;const r=Dd(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(Sd)||r.add(t)}},i={get:(t,r)=>r===Td?e:(o(r),Ad(t[r],n.a,n.c)),has:(t,i)=>i===kd?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(Sd),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=Rd(o?(e=>{let t=Od.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(Pd(e),n)}Od.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Ld=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},zd=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Nd(e)||!Nd(t))return!0;const o=n.get(Dd(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===Sd?Ld(e,t):zd(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Fd=(e,t=!0)=>{Md.set(e,t)};var Bd=o(635);const jd=e=>"object"==typeof e&&null!==e,Vd=new WeakSet,Hd=Symbol("VERSION"),$d=Symbol("LISTENERS"),Wd=Symbol("SNAPSHOT"),Ud=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>jd(e)&&!Vd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Fd(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Vd.has(i))Fd(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[$d])?s[e]=i[Wd]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!jd(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===Hd?u:t===$d?d:t===Wd?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[$d];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[$d];let p;return d&&d.delete(h(i)),jd(a)&&(a=(e=>Id(e)&&e[Td]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[$d])?(p=a,p[$d].add(m(i))):n(a)?(p=Kd(a),p[$d].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,Vd,Hd,$d,Wd,e,t,n,r,o,i,a,s,l],[Gd]=Ud();function Kd(e={}){return Gd(e)}function qd(e,t,n){let r;(null==e?void 0:e[$d])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[$d].add(i),()=>{e[$d].delete(i)}}function Yd(e){return(null==e?void 0:e[Wd])||console.warn("Please use proxy object"),e[Wd]}function Xd(e){return Vd.add(e),e}const{useSyncExternalStore:Zd}=Bd,Jd=(e,t)=>{const n=(0,v.useRef)();(0,v.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;Nd(e)&&r.add(e);const a=Nd(e)&&t.get(Dd(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,v.useDebugValue)(n.current)};function Qd(e,t){const n=null==t?void 0:t.sync,r=(0,v.useRef)(),o=(0,v.useRef)();let i=!0;const a=Zd((0,v.useCallback)((t=>{const r=qd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Yd(e);try{if(!i&&r.current&&o.current&&!zd(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Yd(e)));i=!1;const s=new WeakMap;(0,v.useEffect)((()=>{r.current=a,o.current=s})),Jd(a,s);const l=(0,v.useMemo)((()=>new WeakMap),[]);return Ad(a,s,l)}Symbol();function ef(e){const t=Kd({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var tf=(0,a.createContext)({slots:ef(),fills:ef(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function nf(e){const t=(0,a.useContext)(tf);return{...Qd(t.slots,{sync:!0}).get(e),...(0,a.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}var rf=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var of=e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(rf);return(0,a.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function af({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,a.useContext)(rf),o=of(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function sf(e){return"function"==typeof e}class lf extends a.Component{constructor(){super(...arguments),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=sf(e.children)?e.children(r):e.children;return a.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((e=>!(0,a.isEmptyElement)(e)));return(0,a.createElement)(a.Fragment,null,sf(t)?t(i):i)}}var cf,uf=e=>(0,a.createElement)(rf.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,a.createElement)(lf,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),df=new Uint8Array(16);function ff(){if(!cf&&!(cf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cf(df)}var pf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var mf=function(e){return"string"==typeof e&&pf.test(e)},hf=[],gf=0;gf<256;++gf)hf.push((gf+256).toString(16).substr(1));var vf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(hf[e[t+0]]+hf[e[t+1]]+hf[e[t+2]]+hf[e[t+3]]+"-"+hf[e[t+4]]+hf[e[t+5]]+"-"+hf[e[t+6]]+hf[e[t+7]]+"-"+hf[e[t+8]]+hf[e[t+9]]+"-"+hf[e[t+10]]+hf[e[t+11]]+hf[e[t+12]]+hf[e[t+13]]+hf[e[t+14]]+hf[e[t+15]]).toLowerCase();if(!mf(n))throw TypeError("Stringified UUID is invalid");return n};var bf=function(e,t,n){var r=(e=e||{}).random||(e.rng||ff)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return vf(r)};const yf=new Set,wf=Ec((e=>{let t=bf().replace(/[0-9]/g,"");for(;yf.has(t);)t=bf().replace(/[0-9]/g,"");return yf.add(t),Su({container:e,key:t})}));var xf=function(e){const{children:t,document:n}=e;if(!n)return null;const r=wf(n.head);return(0,a.createElement)(Vu,{value:r},t)};function Ef({name:e,children:t}){const{registerFill:n,unregisterFill:r,...o}=nf(e),i=function(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),s=(0,a.useRef)({rerender:i});if((0,a.useEffect)((()=>(n(s),()=>{r(s)})),[n,r]),!o.ref||!o.ref.current)return null;"function"==typeof t&&(t=t(o.fillProps));const l=(0,a.createElement)(xf,{document:o.ref.current.ownerDocument},t);return(0,a.createPortal)(l,o.ref.current)}var _f=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...r},o){const{registerSlot:i,unregisterSlot:s,...l}=(0,a.useContext)(tf),c=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(i(e,c,t),()=>{s(e,c)})),[i,s,e]),(0,a.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,a.createElement)(n,{ref:(0,u.useMergeRefs)([o,c]),...r})})),Cf=window.wp.isShallowEqual,Sf=o.n(Cf);function kf(){const e=ef(),t=ef();return{slots:e,fills:t,registerSlot:function(t,n,r){const o=e.get(t)||{};e.set(t,Xd({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))},updateSlot:function(n,r){const o=e.get(n);if(!o)return;if(Sf()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:function(t,n){e.get(t)?.ref===n&&e.delete(t)},registerFill:function(e,n){t.set(e,Xd([...t.get(e)||[],n]))},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,Xd(r.filter((e=>e!==n))))}}}function Tf({children:e}){const[t]=(0,a.useState)(kf);return(0,a.createElement)(tf.Provider,{value:t},e)}class Rf extends a.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n;this.fills[e]=null!==(n=this.fills[e]?.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,a.createElement)(rf.Provider,{value:this.contextValue},this.props.children)}}function Pf(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(af,{...e}),(0,a.createElement)(Ef,{...e}))}const Mf=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(_f,{...t,ref:n}):(0,a.createElement)(uf,{...t})));function If({children:e,...t}){return(0,a.createElement)(Rf,{...t},(0,a.createElement)(Tf,null,e))}function Nf(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.createElement)(Pf,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,a.createElement)(Mf,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const Of={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Df=e=>{var t;return null!==(t=Of[e])&&void 0!==t?t:"bottom"},Af={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},Lf=e=>{const t=e?.defaultView?.frameElement;if(!t)return;const n=t.getBoundingClientRect();return{x:n.left,y:n.top}},zf=e=>null===e||Number.isNaN(e)?void 0:Math.round(e);function Ff(e){return e.split("-")[0]}const Bf=(e={})=>({options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=function(e){return["top","bottom"].includes(Ff(e))?"x":"y"}(o),f="x"===d?"y":"x";let p=u[d],m=u[f];const h="function"==typeof s?s(t):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h},v={x:0,y:0,...a.frameOffset?.amount};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis+v[d],n=i.reference[d]+i.reference[e]-g.mainAxis+v[d];pn&&(p=n)}if(c){var b,y;const e="y"===d?"width":"height",t=["top","left"].includes(Ff(o)),n=i.reference[f]-i.floating[e]+(t&&null!==(b=a.offset?.[f])&&void 0!==b?b:0)+(t?0:g.crossAxis)+v[f],r=i.reference[f]+i.reference[e]+(t?0:null!==(y=a.offset?.[f])&&void 0!==y?y:0)-(t?g.crossAxis:0)+v[f];mr&&(m=r)}return{[d]:p,[f]:m}}});const jf="Popover",Vf=()=>(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,a.createElement)(r.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,a.createElement)(r.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),Hf=(0,a.forwardRef)((({style:e,placement:t,shouldAnimate:n=!1,...r},o)=>{const i=function(){!Vt.current&&Ht();const[e]=(0,v.useState)(jt.current);return e}(),{style:s,...l}=(0,a.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Af[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(t)),[t]),c=n&&!i?{style:{...s,...e},...l}:{animate:!1,style:e};return(0,a.createElement)(Kl.div,{...c,...r,ref:o})})),$f=(0,a.createContext)(void 0),Wf=(0,a.forwardRef)(((e,t)=>{var n,r;const{animate:o=!0,headerTitle:i,onClose:s,children:c,className:d,noArrow:f=!0,position:p,placement:m="bottom-start",offset:h=0,focusOnMount:g="firstElement",anchor:v,expandOnMobile:b,onFocusOutside:y,__unstableSlotName:w=jf,flip:x=!0,resize:E=!0,shift:_=!1,variant:C,__unstableForcePosition:S,anchorRef:k,anchorRect:T,getAnchorRect:R,isAlternate:P,...M}=e;let I=x,N=E;void 0!==S&&(Xl()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!S,N=!S),void 0!==k&&Xl()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&Xl()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==R&&Xl()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const O=P?"toolbar":C;void 0!==P&&Xl()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),[z,F]=(0,a.useState)(),B=(0,a.useCallback)((e=>{L(e)}),[]),j=(0,u.useViewportMatch)("medium","<"),V=b&&j,H=!V&&!f,$=p?Df(p):m,W=(0,a.useRef)(Lf(z)),U=[..."overlay"===m?[{name:"overlay",fn({rects:e}){return e.reference}},Ze({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],{name:"frameOffset",fn({x:e,y:t}){return W.current?{x:e+W.current.x,y:t+W.current.y,data:{amount:W.current}}:{x:e,y:t}}},qe(h),I?Ke():void 0,N?Ze({apply(e){var t;const{firstElementChild:n}=null!==(t=te.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,_?Xe({crossAxis:!0,limiter:Bf(),padding:1}):void 0,Ft({element:D})].filter((e=>void 0!==e)),G=(0,a.useContext)($f)||w,K=nf(G);let q;(s||y)&&(q=(e,t)=>{"focus-outside"===e&&y?y(t):s&&s()});const[Y,X]=(0,u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:q,onClose:q}),{x:Z,y:J,reference:Q,floating:ee,refs:te,strategy:ne,update:re,placement:oe,middlewareData:{arrow:ie}}=zt({placement:"overlay"===$?void 0:$,middleware:U,whileElementsMounted:(e,t,n)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=gt(e),u=o||i?[...c?kt(c):[],...kt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Et(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-ft(u)+"px "+-ft(o.clientWidth-(c+d))+"px "+-ft(o.clientHeight-(u+f))+"px "+-ft(c)+"px",threshold:ut(0,ct(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?wt(e):null;return l&&function t(){const r=wt(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(f)}}(e,t,n,{animationFrame:!0})}),ae=(0,a.useCallback)((e=>{D.current=e,re()}),[re]),se=k?.top,le=k?.bottom,ce=k?.startContainer,ue=k?.current;(0,a.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,fallbackDocument:i})=>{var a;let s;return e?s=e.ownerDocument:t?.top?s=t?.top.ownerDocument:t?.startContainer?s=t.startContainer.ownerDocument:t?.current?s=t.current.ownerDocument:t?s=t.ownerDocument:n&&n?.ownerDocument?s=n.ownerDocument:r&&(s=r(o)?.ownerDocument),null!==(a=s)&&void 0!==a?a:i})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,fallbackDocument:document}),t=(e=>{const t=e?.defaultView?.frameElement;if(!t)return{x:1,y:1};const n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth,y:n.height/t.offsetHeight}})(e),n=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,scale:i})=>{var a;let s=null;if(e?s=e:t?.top?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:t?.current?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(s=o.parentElement),s&&(1!==i.x||1!==i.y)){const e=s.getBoundingClientRect();s={getBoundingClientRect(){return new window.DOMRect(e.x*i.x,e.y*i.y,e.width*i.x,e.height*i.y)}}}return null!==(a=s)&&void 0!==a?a:null})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,scale:t});Q(n),F(e)}),[v,k,se,le,ce,ue,T,R,A,Q]),(0,a.useLayoutEffect)((()=>{if(z===document||z===te.floating.current?.ownerDocument||!z?.defaultView?.frameElement)return void(W.current=void 0);const{defaultView:e}=z,{frameElement:t}=e,n=t?(0,Zl.getScrollContainer)(t):null,r=()=>{W.current=Lf(z),re()};return e.addEventListener("resize",r),n?.addEventListener("scroll",r),r(),()=>{e.removeEventListener("resize",r),n?.removeEventListener("scroll",r)}}),[z,re,te.floating]);const de=(0,u.useMergeRefs)([ee,Y,t]);let fe=(0,a.createElement)(Hf,{shouldAnimate:o&&!V,placement:oe,className:l()("components-popover",d,{"is-expanded":V,"is-positioned":null!==Z&&null!==J,[`is-${"toolbar"===O?"alternate":O}`]:O}),...M,ref:de,...X,tabIndex:-1,style:V?void 0:{position:ne,top:0,left:0,x:zf(Z),y:zf(J)}},V&&(0,a.createElement)(Cd,null),V&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},i),(0,a.createElement)(wd,{className:"components-popover__close",icon:ql,onClick:s})),(0,a.createElement)("div",{className:"components-popover__content"},c),H&&(0,a.createElement)("div",{ref:ae,className:["components-popover__arrow",`is-${oe.split("-")[0]}`].join(" "),style:{left:void 0!==ie?.x&&Number.isFinite(ie.x)?`${ie.x+(null!==(n=W.current?.x)&&void 0!==n?n:0)}px`:"",top:void 0!==ie?.y&&Number.isFinite(ie.y)?`${ie.y+(null!==(r=W.current?.y)&&void 0!==r?r:0)}px`:""}},(0,a.createElement)(Vf,null)));return K.ref&&(fe=(0,a.createElement)(Pf,{name:G},fe)),k||T||v?fe:(0,a.createElement)("span",{ref:B},fe)}));Wf.Slot=(0,a.forwardRef)((function({name:e=jf},t){return(0,a.createElement)(Mf,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),Wf.__unstableSlotNameProvider=$f.Provider;var Uf=Wf;var Gf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,a.createElement)("span",{className:n,"aria-label":o},r)};const Kf=700,qf=(0,a.createElement)("div",{className:"event-catcher"}),Yf=({eventHandlers:e,child:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(qf,e),(0,a.cloneElement)(t,{children:n,ref:r})),{...e}),Xf=({child:e,eventHandlers:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)(e,{...t,children:n,ref:r}),Zf=(e,t,n)=>{if(1!==a.Children.count(e))return;const r=a.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Jf=function(e){const{children:t,position:n="bottom middle",text:r,shortcut:o,delay:i=Kf,...s}=e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m=(0,u.useDebounce)(p,i),[h,g]=(0,a.useState)(null),v=a.Children.toArray(t)[0]?.ref,b=(0,u.useMergeRefs)([g,v]),y=e=>{"OPTION"!==e.target.tagName&&(Zf(t,"onMouseDown",e),document.addEventListener("mouseup",E),d(!0))},w=e=>{"OPTION"!==e.target.tagName&&(Zf(t,"onMouseUp",e),document.removeEventListener("mouseup",E),d(!1))},x=e=>"mouseUp"===e?w:"mouseDown"===e?y:void 0,E=x("mouseUp"),_=(e,n)=>r=>{if(Zf(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&c)return;m.cancel();const o=["focus","mouseenter"].includes(r.type);o!==f&&(n?m(o):p(o))},C=()=>{m.cancel(),document.removeEventListener("mouseup",E)};if((0,a.useEffect)((()=>C),[]),1!==a.Children.count(t))return t;const S={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:x("mouseDown")},k=a.Children.only(t),{children:T,disabled:R}=k.props,P=R?Yf:Xf,M=(({anchor:e,grandchildren:t,isOver:n,offset:r,position:o,shortcut:i,text:s,className:c,...u})=>(0,a.concatChildren)(t,n&&(0,a.createElement)(Uf,{focusOnMount:!1,position:o,className:l()("components-tooltip",c),"aria-hidden":"true",animate:!1,offset:r,anchor:e,shift:!0,...u},s,(0,a.createElement)(Gf,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:T,...{anchor:h,isOver:f,offset:4,position:n,shortcut:o,text:r},...s});return P({child:k,eventHandlers:S,childrenWithPopover:M,mergedRefs:b})};const Qf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],ep={"top left":(0,c.__)("Top Left"),"top center":(0,c.__)("Top Center"),"top right":(0,c.__)("Top Right"),"center left":(0,c.__)("Center Left"),"center center":(0,c.__)("Center"),center:(0,c.__)("Center"),"center right":(0,c.__)("Center Right"),"bottom left":(0,c.__)("Bottom Left"),"bottom center":(0,c.__)("Bottom Center"),"bottom right":(0,c.__)("Bottom Right")},tp=Qf.flat();function np(e){return("center"===e?"center center":e).replace("-"," ")}function rp(e,t){return`${e}-${np(t).replace(" ","-")}`}o(1281);function op(){for(var e=arguments.length,t=new Array(e),n=0;n0:"number"==typeof e},lp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},cp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},up=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},dp=function(e){return{r:cp(e.r,0,255),g:cp(e.g,0,255),b:cp(e.b,0,255),a:cp(e.a)}},fp=function(e){return{r:lp(e.r),g:lp(e.g),b:lp(e.b),a:lp(e.a,3)}},pp=/^#([0-9a-f]{3,8})$/i,mp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},hp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},gp=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},vp=function(e){return{h:up(e.h),s:cp(e.s,0,100),l:cp(e.l,0,100),a:cp(e.a)}},bp=function(e){return{h:lp(e.h),s:lp(e.s),l:lp(e.l),a:lp(e.a,3)}},yp=function(e){return gp((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},wp=function(e){return{h:(t=hp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},xp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ep=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_p=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sp={string:[[function(e){var t=pp.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?lp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?lp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_p.exec(e)||Cp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:dp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=xp.exec(e)||Ep.exec(e);if(!t)return null;var n,r,o=vp({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ap[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return yp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return sp(t)&&sp(n)&&sp(r)?dp({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!sp(t)||!sp(n)||!sp(r))return null;var a=vp({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return yp(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!sp(t)||!sp(n)||!sp(r))return null;var a=function(e){return{h:up(e.h),s:cp(e.s,0,100),v:cp(e.v,0,100),a:cp(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return gp(a)},"hsv"]]},kp=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=fp(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?mp(lp(255*o)):"","#"+mp(t)+mp(n)+mp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return fp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=fp(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return bp(wp(this.rgba))},e.prototype.toHslString=function(){return t=(e=bp(wp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=hp(this.rgba),{h:lp(e.h),s:lp(e.s),v:lp(e.v),a:lp(e.a,3)};var e},e.prototype.invert=function(){return Np({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Np(Rp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Np(Rp(this.rgba,-e))},e.prototype.grayscale=function(){return Np(Rp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Np(Mp(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Np(Mp(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Np({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):lp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=wp(this.rgba);return"number"==typeof e?Np({h:e,s:t.s,l:t.l,a:t.a}):lp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Np(e).toHex()},e}(),Np=function(e){return e instanceof Ip?e:new Ip(e)},Op=[],Dp=function(e){e.forEach((function(e){Op.indexOf(e)<0&&(e(Ip,Sp),Op.push(e))}))};function Ap(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p$p,Up=md("div",{target:"ecapk1j3"})(Wp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>op("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Gp=md("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Kp=e=>op("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Hp("transition")," ",(({isActive:e})=>op("box-shadow:",e?`0 0 0 2px ${Vp.gray[900]}`:null,";color:",e?Vp.gray[900]:Vp.gray[400],";*:hover>&{color:",e?Vp.gray[900]:Vp.ui.theme,";}",""))(e),";",""),qp=md("span",{target:"ecapk1j1"})("height:6px;width:6px;",Kp,";"),Yp=md("span",{target:"ecapk1j0"})({name:"rjf3ub",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 Xp({isActive:e=!1,value:t,...n}){const r=ep[t];return(0,a.createElement)(Jf,{text:r},(0,a.createElement)(ke,{as:Yp,role:"gridcell",...n},(0,a.createElement)(vd,null,t),(0,a.createElement)(qp,{isActive:e,role:"presentation"})))}function Zp(e){return(0,v.useState)(e)[0]}function Jp(e){for(var t,n=[[]],r=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])},o=g(e);!(t=o()).done;)r();return n}function Qp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function em(e){return e.slice().reverse()}function tm(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function nm(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function rm(e){void 0===e&&(e={});var t=Zp(e).baseId,n=(0,v.useContext)(we),r=(0,v.useRef)(0),o=(0,v.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function om(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function im(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&om(t.ref.current,e.ref.current)}))}function am(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function sm(e){for(var t=Jp(e),n=am(t),r=[],o=0;oi&&(n=!0),-1):(rop({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>op({pointerEvents:e?"none":void 0},"","")),";"),Om=md("span",{target:"erowt50"})("height:2px;width:2px;",Kp,";",(({isActive:e})=>op("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),Dm=Yp;var Am=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const s=function(e="center"){const t=np(e),n=tp.indexOf(t);return n>-1?n:void 0}(o),c=(n/24).toFixed(2),u=l()("component-alignment-matrix-control-icon",e),d={...r,transform:`scale(${c})`};return(0,a.createElement)(Nm,{...i,className:u,disablePointerEvents:t,role:"presentation",style:d},tp.map(((e,t)=>{const n=s===t;return(0,a.createElement)(Dm,{key:e},(0,a.createElement)(Om,{isActive:n}))})))};const Lm=()=>{};function zm({className:e,id:t,label:n=(0,c.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i=Lm,width:s=92,...d}){const[f]=(0,a.useState)(null!=o?o:r),p=function(e){const t=(0,u.useInstanceId)(zm,"alignment-matrix-control");return e||t}(t),m=rp(p,f),h=ym({baseId:p,currentId:m,rtl:(0,c.isRTL)()}),{setCurrentId:g}=h;(0,a.useEffect)((()=>{void 0!==o&&g(rp(p,o))}),[o,g,p]);const v=l()("component-alignment-matrix-control",e);return(0,a.createElement)(Rm,{...d,...h,"aria-label":n,as:Up,className:v,role:"grid",size:s},Qf.map(((e,t)=>(0,a.createElement)(Im,{...h,as:Gp,role:"row",key:t},e.map((e=>{const t=rp(p,e),n=h.currentId===t;return(0,a.createElement)(Xp,{...h,id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1})}))))))}zm.Icon=Am;var Fm=zm;function Bm(e){return"appear"===e?"top":"left"}function jm(e){if("loading"===e.type)return l()("components-animate__loading");const{type:t,origin:n=Bm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return l()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?l()("components-animate__slide-in","is-from-"+n):void 0}var Vm=function({type:e,options:t={},children:n}){return n({className:jm({type:e,...t})})};function Hm(){const e=(0,v.useRef)(!1);return Gt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class $m extends v.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Wm({children:e,isPresent:t}){const n=(0,v.useId)(),r=(0,v.useRef)(null),o=(0,v.useRef)({width:0,height:0,top:0,left:0});return(0,v.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),v.createElement($m,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const Um=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=an(Gm),l=(0,v.useId)(),c=(0,v.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,v.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),v.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=v.createElement(Wm,{isPresent:n},e)),v.createElement(Ut.Provider,{value:c},e)};function Gm(){return new Map}const Km=e=>e.key||"";const qm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{co(!o,"Replace exitBeforeEnter with mode='wait'");let[s]=function(){const e=Hm(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,v.useCallback)((()=>Hr.postRender(r)),[r]),t]}();const l=(0,v.useContext)(cn).forceRender;l&&(s=l);const c=Hm(),u=function(e){const t=[];return v.Children.forEach(e,(e=>{(0,v.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,v.useRef)(d),m=(0,v.useRef)(new Map).current,h=(0,v.useRef)(!0);var g;if(Gt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Km(e);t.set(n,e)}))}(u,m),p.current=d})),g=()=>{h.current=!0,m.clear(),f.clear()},(0,v.useEffect)((()=>()=>g()),[]),h.current)return v.createElement(v.Fragment,null,d.map((e=>v.createElement(Um,{key:Km(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const b=p.current.map(Km),y=u.map(Km),w=b.length;for(let e=0;e{if(-1!==y.indexOf(e))return;const n=m.get(e);if(!n)return;const o=b.indexOf(e);d.splice(o,0,v.createElement(Um,{key:Km(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:v.createElement(Um,{key:Km(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),v.createElement(v.Fragment,null,f.size?d:d.map((e=>(0,v.cloneElement)(e))))},Ym=(0,a.createContext)({flexItemDisplay:void 0}),Xm=()=>(0,a.useContext)(Ym);const Zm={name:"zjik7",styles:"display:flex"},Jm={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Qm={name:"82a6rk",styles:"flex:1"},eh={name:"13nosa1",styles:">*{min-height:0;}"},th={name:"1pwxzk4",styles:">*{min-width:0;}"};function nh(e){const{className:t,display:n,isBlock:r=!1,...o}=Qu(e,"FlexItem"),i={},a=Xm().flexItemDisplay;i.Base=op({display:n||a},"","");return{...o,className:Ju()(Jm,i.Base,r&&Qm,t)}}var rh=ed((function(e,t){const n=function(e){return nh({isBlock:!0,...Qu(e,"FlexBlock")})}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"FlexBlock");const oh="4px";function ih(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${oh} * ${e})`}const ah=new RegExp(/-left/g),sh=new RegExp(/-right/g),lh=new RegExp(/Left/g),ch=new RegExp(/Right/g);function uh(e){return"left"===e?"right":"right"===e?"left":ah.test(e)?e.replace(ah,"-right"):sh.test(e)?e.replace(sh,"-left"):lh.test(e)?e.replace(lh,"Right"):ch.test(e)?e.replace(ch,"Left"):e}const dh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[uh(e),t])));function fh(e={},t){return()=>t?(0,c.isRTL)()?op(t,""):op(e,""):(0,c.isRTL)()?op(dh(e),""):op(e,"")}fh.watch=()=>(0,c.isRTL)();const ph=e=>null!=e;const mh=ed((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...g}=Qu(e,"Spacer");return{...g,className:Ju()(ph(n)&&op("margin:",ih(n),";",""),ph(l)&&op("margin-bottom:",ih(l),";margin-top:",ih(l),";",""),ph(s)&&op("margin-left:",ih(s),";margin-right:",ih(s),";",""),ph(a)&&op("margin-top:",ih(a),";",""),ph(r)&&op("margin-bottom:",ih(r),";",""),ph(o)&&fh({marginLeft:ih(o)})(),ph(i)&&fh({marginRight:ih(i)})(),ph(c)&&op("padding:",ih(c),";",""),ph(h)&&op("padding-bottom:",ih(h),";padding-top:",ih(h),";",""),ph(m)&&op("padding-left:",ih(m),";padding-right:",ih(m),";",""),ph(p)&&op("padding-top:",ih(p),";",""),ph(u)&&op("padding-bottom:",ih(u),";",""),ph(d)&&fh({paddingLeft:ih(d)})(),ph(f)&&fh({paddingRight:ih(f)})(),t)}}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Spacer");var hh=mh;var gh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var vh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));const bh=["40em","52em","64em"],yh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>bh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${bh.length} breakpoints, got index ${t}`);const[n,r]=(0,a.useState)(t);return(0,a.useEffect)((()=>{const e=()=>{const e=bh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function wh(e,t={}){const n=yh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function xh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:l=!1,...c}=Qu(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Xl()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=wh(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Ju();return{...c,className:(0,a.useMemo)((()=>{const e=op({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:l?"wrap":void 0,gap:ih(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Zm,e,d?eh:th,n)}),[t,n,f,u,o,i,d,s,l]),isColumn:d}}var Eh=ed((function(e,t){const{children:n,isColumn:r,...o}=xh(e);return(0,a.createElement)(Ym.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,a.createElement)(gd,{...o,ref:t},n))}),"Flex");var _h=ed((function(e,t){const n=nh(e);return(0,a.createElement)(gd,{...n,ref:t})}),"FlexItem");const Ch={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function Sh(e){return null!=e}const kh=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Th="…",Rh={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Ph={ellipsis:Th,ellipsizeMode:Rh.auto,limit:0,numberOfLines:0};function Mh(e="",t){const n={...Ph,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Rh.none)return e;let a,s;switch(o){case Rh.head:a=0,s=i;break;case Rh.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==Rh.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=Sh(r)?r:Th;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function Ih(e){const{className:t,children:n,ellipsis:r=Th,ellipsizeMode:o=Rh.auto,limit:i=0,numberOfLines:s=0,...l}=Qu(e,"Truncate"),c=Ju(),u=Mh("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}),d=o===Rh.auto;return{...l,className:(0,a.useMemo)((()=>c(d&&!s&&Ch,d&&!!s&&op("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}let Nh;Dp([Ap]);const Oh=Ec((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Np(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Nh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Nh=e}return Nh}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Dh(e){const t=function(e){const t=Oh(e);return Np(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Ah="36px",Lh="12px",zh={controlSurfaceColor:Vp.white,controlTextActiveColor:Vp.ui.theme,controlPaddingX:Lh,controlPaddingXLarge:`calc(${Lh} * 1.3334)`,controlPaddingXSmall:`calc(${Lh} / 1.3334)`,controlBackgroundColor:Vp.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Vp.ui.theme}`,controlDestructiveBorderColor:Vp.alert.red,controlHeight:Ah,controlHeightXSmall:`calc( ${Ah} * 0.6 )`,controlHeightSmall:`calc( ${Ah} * 0.8 )`,controlHeightLarge:`calc( ${Ah} * 1.2 )`,controlHeightXLarge:`calc( ${Ah} * 1.4 )`},Fh={toggleGroupControlBackgroundColor:zh.controlBackgroundColor,toggleGroupControlBorderColor:Vp.ui.border,toggleGroupControlBackdropBackgroundColor:zh.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Vp.ui.border,toggleGroupControlButtonColorActive:zh.controlBackgroundColor};var Bh=Object.assign({},zh,Fh,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${ih(2)}`,cardPaddingSmall:`${ih(4)}`,cardPaddingMedium:`${ih(4)} ${ih(6)}`,cardPaddingLarge:`${ih(6)} ${ih(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Vp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Vp.white,surfaceColor:Vp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const jh=op("color:",Vp.gray[900],";line-height:",Bh.fontLineHeightBase,";margin:0;",""),Vh={name:"4zleql",styles:"display:block"},Hh=op("color:",Vp.alert.green,";",""),$h=op("color:",Vp.alert.red,";",""),Wh=op("color:",Vp.gray[700],";",""),Uh=op("mark{background:",Vp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Gh={name:"50zrmy",styles:"text-transform:uppercase"};var Kh=o(3138);const qh=Ec((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Yh=13,Xh={body:Yh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Zh=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Jh(e=Yh){if(e in Xh)return Jh(Xh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Yh})`} * ${Bh.fontSize})`}function Qh(e=3){if(!Zh.includes(e))return Jh(e);return Bh[`fontSizeH${e}`]}var eg={name:"50zrmy",styles:"text-transform:uppercase"};function tg(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:E,weight:_=Bh.fontWeight,...C}=Qu(t,"Text");let S=o;const k=Array.isArray(p),T="caption"===y;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const h=i,g=(0,Kh.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:f,textToHighlight:h}),v=u;let b,y=-1,w="";const x=g.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;y++,r="object"==typeof l?o?l[s]:(l=qh(l))[s.toLowerCase()]:l;const u=y===+t;w=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:s,className:w,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=y),(0,a.createElement)(v,d)}return(0,a.createElement)("span",{children:s,className:p,key:i,style:m})}));return x}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const R=Ju();let P;!0===w&&(P="auto"),!1===w&&(P="none");const M=Ih({...C,className:(0,a.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Bh.controlHeight} + ${ih(2)})`;switch(e){case"large":n=`calc(${Bh.controlHeightLarge} + ${ih(2)})`;break;case"small":n=`calc(${Bh.controlHeightSmall} + ${ih(2)})`;break;case"xSmall":n=`calc(${Bh.controlHeightXSmall} + ${ih(2)})`}return n}(n,v);if(t.Base=op({color:s,display:u,fontSize:Jh(y),fontWeight:_,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=eg,t.optimalTextColor=null,b){const e="dark"===Dh(b);t.optimalTextColor=op(e?{color:Vp.gray[900]}:{color:Vp.white},"","")}return R(jh,t.Base,t.optimalTextColor,c&&$h,!!k&&Uh,h&&Vh,T&&Wh,E&&e[E],x&&t.upperCase,i)}),[n,r,i,s,R,u,h,T,c,k,g,v,b,y,x,E,_]),children:o,ellipsizeMode:l||P});return!w&&Array.isArray(o)&&(S=a.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return od(e,["Link"])?(0,a.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:S}}var ng=ed((function(e,t){const n=tg(e);return(0,a.createElement)(gd,{as:"span",...n,ref:t})}),"Text");const rg={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var og={name:"1739oy8",styles:"z-index:1"};const ig=({isFocused:e})=>e?og:"",ag=md(Eh,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",ig,";");var sg={name:"1d3w5wq",styles:"width:100%"};const lg=md("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>op({backgroundColor:e?Vp.ui.backgroundDisabled:Vp.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":op("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):sg),";"),cg=({inputSize:e,__next36pxDefaultSize:t})=>{const n={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:ih(4),paddingRight:ih(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:ih(2),paddingRight:ih(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:ih(4),paddingRight:ih(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:ih(2),paddingRight:ih(2)}),n[e]||n.default},ug=md("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Vp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=op("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=op("&:active{cursor:",t,";}","")),op(n," ",r,";","")})," ",(({disabled:e})=>e?op({color:Vp.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?op("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>op(cg(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>op({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),dg=md(ng,{target:"em5sgkm4"})("&&&{",rg,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),fg=e=>(0,a.createElement)(dg,{...e,as:"label"}),pg=md(_h,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),mg=md("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?Vp.ui.borderFocus:Vp.ui.border;return t&&(n=`0 0 0 1px ${Vp.ui.borderFocus} inset`,r="2px solid transparent",o="-2px"),e&&(i=Vp.ui.borderDisabled),op({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",fh({paddingLeft:2}),";}"),hg=md("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),gg=md("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const vg=(0,a.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,a.createElement)(mg,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var bg=vg;function yg({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,a.createElement)(vd,{as:"label",htmlFor:n},e):(0,a.createElement)(pg,null,(0,a.createElement)(fg,{htmlFor:n,...r},e)):null}function wg(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function xg({__next36pxDefaultSize:e,__unstableInputWidth:t,children:n,className:r,disabled:o=!1,hideLabelFromVision:i=!1,labelPosition:s,id:l,isFocused:c=!1,label:d,prefix:f,size:p="default",suffix:m,...h},g){const v=function(e){const t=(0,u.useInstanceId)(xg);return e||`input-base-control-${t}`}(l),b=i||!d,{paddingLeft:y,paddingRight:w}=cg({inputSize:p,__next36pxDefaultSize:e}),x=(0,a.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:y},InputControlSuffixWrapper:{paddingRight:w}})),[y,w]);return(0,a.createElement)(ag,{...h,...wg(s),className:r,gap:2,isFocused:c,labelPosition:s,ref:g},(0,a.createElement)(yg,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:s,htmlFor:v},d),(0,a.createElement)(lg,{__unstableInputWidth:t,className:"components-input-control__container",disabled:o,hideLabel:b,labelPosition:s},(0,a.createElement)(cc,{value:x},f&&(0,a.createElement)(hg,{className:"components-input-control__prefix"},f),n,m&&(0,a.createElement)(gg,{className:"components-input-control__suffix"},m)),(0,a.createElement)(bg,{disabled:o,isFocused:c})))}var Eg=(0,a.forwardRef)(xg);const _g={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Cg(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Sg(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+Cg(e-n,n-t,r)+n:e}function kg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Tg(e,t,n){return(t=kg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rg(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 Pg(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function jg(e){const t=Fg(e);return Lg(e)?t.identifier:t.pointerId}function Vg(e){const t=Fg(e);return[t.clientX,t.clientY]}function Hg(e,...t){return"function"==typeof e?e(...t):e}function $g(){}function Wg(...e){return 0===e.length?$g:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Ug(e,t){return Object.assign({},t,e||{})}class Gg{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Hg(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);_g.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Hg(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[mv?1:0,hy?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[Sg(t,i,a,r),Sg(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=_g.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=_g.sub(t.offset,f);const e=t.delta.map(Math.abs);_g.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Pg(Pg(Pg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Kg extends Gg{constructor(...e){super(...e),Tg(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=_g.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=_g.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[zg(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const qg=e=>e,Yg={enabled(e=!0){return e},eventOptions(e,t,n){return Pg(Pg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return _g.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?_g.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||qg},threshold(e){return _g.toVector(e,0)}};const Xg=Pg(Pg({},Yg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>Xg.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Zg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Jg="undefined"!=typeof window&&window.document&&window.document.createElement;function Qg(){return Jg&&"ontouchstart"in window||Jg&&window.navigator.maxTouchPoints>1}const ev={isBrowser:Jg,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Qg(),touchscreen:Qg(),pointer:Jg&&"onpointerdown"in window,pointerLock:Jg&&"exitPointerLock"in window.document},tv={mouse:0,touch:0,pen:8},nv=Pg(Pg({},Xg),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&ev.pointerLock,ev.touch&&n?"touch":this.pointerLock?"mouse":ev.pointer&&!o?"pointer":ev.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,ev.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=_g.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(_g.toVector(e)),distance:this.transform(_g.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Pg(Pg({},tv),e):tv},keyboardDisplacement(e=10){return e}});Pg(Pg({},Yg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ev.touch&&ev.gesture)return"gesture";if(ev.touch&&r)return"touch";if(ev.touchscreen){if(ev.pointer)return"pointer";if(ev.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Ug(Hg(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Ug(Hg(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return _g.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Pg(Pg({},Xg),{},{mouseOnly:(e=!0)=>e});const rv=Pg(Pg({},Xg),{},{mouseOnly:(e=!0)=>e}),ov=new Map,iv=new Map;function av(e){ov.set(e.key,e.engine),iv.set(e.key,e.resolver)}const sv={key:"drag",engine:class extends Kg{constructor(...e){super(...e),Tg(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=Xg.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=jg(e),n._pointerActive=!0,this.computeValues(Vg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==zg(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=jg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Vg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=_g.sub(o,t._values),this.computeValues(o)),_g.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=jg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTimea&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Zg[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,_g.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Zg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:nv},lv={key:"hover",engine:class extends Kg{constructor(...e){super(...e),Tg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Vg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Vg(e);t._movement=t._delta=_g.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:rv};function cv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const uv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(ev.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},dv=["target","eventOptions","window","enabled","transform"];function fv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=fv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class pv{constructor(e,t){Tg(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Mg[e];return e+(n&&n[t]||t)}(t,n),s=Pg(Pg({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class mv{constructor(){Tg(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class hv{constructor(e){Tg(this,"gestures",new Set),Tg(this,"_targetEventStore",new pv(this)),Tg(this,"gestureEventStores",{}),Tg(this,"gestureTimeoutStores",{}),Tg(this,"handlers",{}),Tg(this,"config",{}),Tg(this,"pointerIds",new Set),Tg(this,"touchIds",new Set),Tg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&gv(e,"drag");t.wheel&&gv(e,"wheel");t.scroll&&gv(e,"scroll");t.move&&gv(e,"move");t.pinch&&gv(e,"pinch");t.hover&&gv(e,"hover")}(this,e)}setEventIds(e){return Lg(e)?(this.touchIds=new Set(Bg(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=cv(r,dv);if(n.shared=fv({target:o,eventOptions:i,window:a,enabled:s,transform:l},uv),t){const e=iv.get(t);n[t]=fv(Pg({shared:n.shared},c),e)}else for(const e in c){const t=iv.get(e);t&&(n[e]=fv(Pg({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=vv(n,o.eventOptions,!!r);if(o.enabled){new(ov.get(t))(this,e,t).bind(i)}}const o=vv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Pg(Pg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Wg(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Ag(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function gv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new pv(e,t),e.gestureTimeoutStores[t]=new mv}const vv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Og(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function bv(e,t={},n,r){const o=y().useMemo((()=>new hv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const yv=e=>e,wv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},xv="CHANGE",Ev="COMMIT",_v="CONTROL",Cv="DRAG_END",Sv="DRAG_START",kv="DRAG",Tv="INVALIDATE",Rv="PRESS_DOWN",Pv="PRESS_ENTER",Mv="PRESS_UP",Iv="RESET";function Nv(e=yv,t=wv,n){const[r,o]=(0,a.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case _v:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Mv:case Rv:n.isDirty=!1;break;case Sv:n.isDragging=!0;break;case Cv:n.isDragging=!1;break;case xv:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case Ev:n.value=t.payload.value,n.isDirty=!1;break;case Iv:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Tv:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=wv){const{value:t}=e;return{...wv,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},u=s(xv),d=s(Iv),f=s(Ev),p=c(Sv),m=c(kv),h=c(Cv),g=l(Mv),v=l(Rv),b=l(Pv),y=(0,a.useRef)(r),w=(0,a.useRef)({value:t.value,onChangeHandler:n});return(0,a.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,a.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,a.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:_v,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:Tv,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}const Ov=()=>{};const Dv=(0,a.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:s=!1,onBlur:l=Ov,onChange:c=Ov,onDrag:u=Ov,onDragEnd:d=Ov,onDragStart:f=Ov,onFocus:p=Ov,onKeyDown:m=Ov,onValidate:h=Ov,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:w,...x},E){const{state:_,change:C,commit:S,drag:k,dragEnd:T,dragStart:R,invalidate:P,pressDown:M,pressEnter:I,pressUp:N,reset:O}=Nv(b,{isDragEnabled:o,value:y,isPressEnterToChange:s},c),{value:D,isDragging:A,isDirty:L}=_,z=(0,a.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,a.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(A,t),B=e=>{const t=e.currentTarget.value;try{h(t),S(t,e)}catch(t){P(t,e)}},j=(V=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void T(e);u(e),k(e),A||(f(e),R(e))}},H={axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}},av(sv),bv({drag:V},H||{},"drag"));var V,H;const $=o?j():{};let W;return"number"===w&&(W=e=>{x.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,a.createElement)(ug,{...x,...$,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:A,id:r,onBlur:e=>{l(e),v?.(!1),!L&&e.target.validity.valid||(z.current=!0,B(e))},onChange:e=>{const t=e.target.value;C(t,e)},onFocus:e=>{p(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(m(e),t){case"ArrowUp":N(e);break;case"ArrowDown":M(e);break;case"Enter":I(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&L&&(e.preventDefault(),O(y,e))}},onMouseDown:W,ref:E,inputSize:g,value:null!=D?D:"",type:w})}));var Av=Dv,Lv={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function zv(e){var t;return null!==(t=Lv[e])&&void 0!==t?t:""}const Fv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Bv=md("div",{target:"ej5x27r4"})("font-family:",zv("default.fontFamily"),";font-size:",zv("default.fontSize"),";",Fv,";"),jv=md("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&op("margin-bottom:",ih(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Vv=op(rg,";display:inline-block;margin-bottom:",ih(2),";padding:0;",""),Hv=md("label",{target:"ej5x27r2"})(Vv,";");var $v={name:"11yad0w",styles:"margin-bottom:revert"};const Wv=md("p",{target:"ej5x27r1"})("margin-top:",ih(2),";margin-bottom:0;font-size:",zv("helpText.fontSize"),";font-style:normal;color:",Vp.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&$v),";"),Uv=md("span",{target:"ej5x27r0"})(Vv,";"),Gv=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:s})=>(0,a.createElement)(Bv,{className:l()("components-base-control",i)},(0,a.createElement)(jv,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,a.createElement)(vd,{as:"label",htmlFor:t},n):(0,a.createElement)(Hv,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,a.createElement)(vd,{as:"label"},n):(0,a.createElement)(Gv.VisualLabel,null,n)),s),!!o&&(0,a.createElement)(Wv,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));Gv.VisualLabel=({className:e,children:t,...n})=>(0,a.createElement)(Uv,{...n,className:l()("components-base-control__label",e)},t);var Kv=Gv;const qv=()=>{};const Yv=(0,a.forwardRef)((function({__next36pxDefaultSize:e,__unstableStateReducer:t=(e=>e),__unstableInputWidth:n,className:r,disabled:o=!1,help:i,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:d=!1,label:f,labelPosition:p="top",onChange:m=qv,onValidate:h=qv,onKeyDown:g=qv,prefix:v,size:b="default",style:y,suffix:w,value:x,...E},_){const[C,S]=(0,a.useState)(!1),k=function(e){const t=(0,u.useInstanceId)(Yv);return e||`inspector-input-control-${t}`}(c),T=l()("components-input-control",r),R=function(e){const t=(0,a.useRef)(e.value),[n,r]=(0,a.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,a.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:x,onBlur:E.onBlur,onChange:m}),P=i?{["string"==typeof i?"aria-describedby":"aria-details"]:`${k}__help`}:{};return(0,a.createElement)(Kv,{className:T,help:i,id:k,__nextHasNoMarginBottom:!0},(0,a.createElement)(Eg,{__next36pxDefaultSize:e,__unstableInputWidth:n,disabled:o,gap:3,hideLabelFromVision:s,id:k,isFocused:C,justify:"left",label:f,labelPosition:p,prefix:v,size:b,style:y,suffix:w},(0,a.createElement)(Av,{...E,...P,__next36pxDefaultSize:e,className:"components-input-control__input",disabled:o,id:k,isFocused:C,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:v?ih(2):void 0,paddingInlineEnd:w?ih(2):void 0,ref:_,setIsFocused:S,size:b,stateReducer:t,...R})))}));var Xv=Yv;var Zv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Jv=({hideHTMLArrows:e})=>e?Zv:"",Qv=md(Xv,{target:"ep09it41"})(Jv,";"),eb=md(wd,{target:"ep09it40"})("&&&&&{color:",Vp.ui.theme,";}"),tb={smallSpinButtons:op("width:",ih(5),";min-width:",ih(5),";height:",ih(5),";","")};function nb(e){const t=Number(e);return isNaN(t)?0:t}function rb(...e){return e.reduce(((e,t)=>e+nb(t)),0)}function ob(e,t,n){const r=nb(e);return Math.max(t,Math.min(r,n))}function ib(e=0,t=1/0,n=1/0,r=1){const o=nb(e),i=nb(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=ob(Math.round(o/i)*i,t,n);return a?nb(s.toFixed(a)):s}const ab={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},sb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function lb(e){return"string"==typeof e?[e]:a.Children.toArray(e).filter((e=>(0,a.isValidElement)(e)))}function cb(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Qu(e,"HStack"),s=function(e,t="row"){if(!Sh(e))return{};const n="column"===t?sb:ab;return e in n?n[e]:{align:e}}(t,r),l=lb(n).map(((e,t)=>{if(od(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,a.createElement)(_h,{isBlock:!0,key:r,...n.props})}return e}));return xh({children:l,direction:r,justify:"center",...s,...i,gap:o})}var ub=ed((function(e,t){const n=cb(e);return(0,a.createElement)(gd,{...n,ref:t})}),"HStack");const db=()=>{};const fb=(0,a.forwardRef)((function({__unstableStateReducer:e,className:t,dragDirection:n="n",hideHTMLArrows:r=!1,spinControls:o="native",isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:h=10,step:g=1,type:v="number",value:b,size:y="default",suffix:w,onChange:x=db,...E},_){r&&(Xl()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),o="none");const C=(0,a.useRef)(),S=(0,u.useMergeRefs)([C,_]),k="any"===g,T=k?1:kh(g),R=ib(0,p,f,T),P=(e,t)=>k?Math.min(f,Math.max(p,kh(e))):ib(e,p,f,null!=t?t:T),M="number"===v?"off":void 0,I=l()("components-number-control",t),N=Ju()("small"===y&&tb.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&s,o=r?kh(h)*T:T;let i=function(e){const t=""===e;return!Sh(e)||t}(e)?R:e;return"up"===t?i=rb(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=nb(t);return 0===n?r:e-r}),0)}(i,o)),P(i,r?o:void 0)},D=e=>t=>x(String(O(b,e,t)),{event:{...t,target:C.current}});return(0,a.createElement)(Qv,{autoComplete:M,inputMode:"numeric",...E,className:I,dragDirection:n,hideHTMLArrows:"native"!==o,isDragEnabled:i,label:d,max:f,min:p,ref:S,required:m,step:g,type:v,value:b,__unstableStateReducer:(t,r)=>{var o;const a=((e,t)=>{const r={...e},{type:o,payload:a}=t,l=a.event,u=r.value;if(o!==Mv&&o!==Rv||(r.value=O(u,o===Mv?"up":"down",l)),o===kv&&i){const[e,t]=a.delta,o=a.shiftKey&&s,i=o?kh(h)*T:T;let l,d;switch(n){case"n":d=t,l=-1;break;case"e":d=e,l=(0,c.isRTL)()?-1:1;break;case"s":d=t,l=1;break;case"w":d=e,l=(0,c.isRTL)()?1:-1}if(0!==d){d=Math.ceil(Math.abs(d))*Math.sign(d);const e=d*i*l;r.value=P(rb(u,e),o?i:void 0)}}if(o===Pv||o===Ev){const e=!1===m&&""===u;r.value=e?u:P(u)}return r})(t,r);return null!==(o=e?.(a,r))&&void 0!==o?o:a},size:y,suffix:"custom"===o?(0,a.createElement)(a.Fragment,null,w,(0,a.createElement)(hh,{marginBottom:0,marginRight:2},(0,a.createElement)(ub,{spacing:1},(0,a.createElement)(eb,{className:N,icon:gh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Increment"),tabIndex:-1,onClick:D("up")}),(0,a.createElement)(eb,{className:N,icon:vh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Decrement"),tabIndex:-1,onClick:D("down")})))):w,onChange:x})}));var pb=fb;const mb=({__nextHasNoMarginBottom:e})=>e?"":op("margin-bottom:",ih(2),";",""),hb=md(Eh,{target:"eln3bjz4"})(mb,";"),gb=md("div",{target:"eln3bjz3"})("border-radius:50%;border:",Bh.borderWidth," solid ",Vp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),vb=md("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),bb=md("div",{target:"eln3bjz1"})("background:",Vp.ui.theme,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),yb=md(ng,{target:"eln3bjz0"})("color:",Vp.ui.theme,";margin-right:",ih(3),";");var wb=function({value:e,onChange:t,...n}){const r=(0,a.useRef)(null),o=(0,a.useRef)(),i=(0,a.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,u.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,a.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,a.createElement)(gb,{ref:r,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,a.createElement)(vb,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,a.createElement)(bb,{className:"components-angle-picker-control__angle-circle-indicator"})))};var xb=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=(0,c.__)("Angle"),onChange:i,value:s,...u}=e;n||Xl()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const d=l()("components-angle-picker-control",r),f=(0,a.createElement)(yb,null,"°"),[p,m]=(0,c.isRTL)()?[f,null]:[null,f];return(0,a.createElement)(hb,{...u,ref:t,__nextHasNoMarginBottom:n,className:d,gap:2},(0,a.createElement)(rh,null,(0,a.createElement)(pb,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:p,suffix:m})),(0,a.createElement)(hh,{marginBottom:"1",marginTop:"auto"},(0,a.createElement)(wb,{"aria-hidden":"true",value:s,onChange:i})))})),Eb=o(4793),_b=o.n(Eb),Cb=window.wp.richText,Sb=window.wp.a11y;const kb=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),Tb=e=>_b()(e).toLocaleLowerCase().replace(kb,"-");function Rb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Pb(e){return t=>{const[n,r]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,u.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+Rb(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;oe.test(_b()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function Mb(e){const t=e.useItems?e.useItems:Pb(e);return function({filterValue:e,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:d,onReset:f,reset:p,contentRef:m}){const[h]=t(e),g=(0,Cb.useAnchor)({editableContentElement:m.current}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),w=(0,u.useMergeRefs)([y,(0,u.useRefEffect)((e=>{m.current&&b(e.ownerDocument!==m.current.ownerDocument)}),[m])]);!function(e,t){(0,a.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,p);const x=(0,u.useDebounce)(Sb.speak,500);if((0,a.useLayoutEffect)((()=>{s(h),function(t){x&&(t.length?x(e?(0,c.sprintf)((0,c._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):(0,c.sprintf)((0,c._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):x((0,c.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,a.createElement)(e,{id:r,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,a.createElement)(wd,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:l()("components-autocomplete__result",o,{"is-selected":t===i}),onClick:()=>d(e)},e.label))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Uf,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:w},(0,a.createElement)(E,null)),m.current&&v&&(0,Ot.createPortal)((0,a.createElement)(E,{Component:vd}),m.current.ownerDocument.body))}}const Ib=[];function Nb({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,u.useInstanceId)(Nb),[s,l]=(0,a.useState)(0),[c,d]=(0,a.useState)(Ib),[f,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),b=(0,a.useRef)(!1);function y(r){const{getOptionCompletion:o}=m||{};if(!r.isDisabled){if(o){const i=o(r.value,f),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===m)return;const r=e.start,o=r-m.triggerPrefix.length-f.length,i=(0,Cb.create)({html:(0,a.renderToString)(n)});t((0,Cb.insert)(e,i,o,r))}(s.value)}w()}}function w(){l(0),d(Ib),p(""),h(null),v(null)}const x=(0,a.useMemo)((()=>(0,Cb.isCollapsed)(e)?(0,Cb.getTextContent)((0,Cb.slice)(e,0)):""),[e]);(0,a.useEffect)((()=>{if(!x)return void(m&&w());const t=r?.find((({triggerPrefix:t,allowContext:n})=>{const r=x.lastIndexOf(t);if(-1===r)return!1;const o=x.slice(r+t.length);if(o.length>50)return!1;const i=0===c.length,a=1===o.split(/\s/).length,s=b.current&&o.split(/\s/).length<=3;if(i&&!s&&!a)return!1;const l=(0,Cb.getTextContent)((0,Cb.slice)(e,void 0,(0,Cb.getTextContent)(e).length));return!(n&&!n(x.slice(0,r),l))&&(!/^\s/.test(o)&&!/\s\s+$/.test(o)&&/[\u0000-\uFFFF]*$/.test(o))}));if(!t)return void(m&&w());const n=Rb(t.triggerPrefix),o=_b()(x),i=o.slice(o.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${n}([\0-￿]*)$`)),a=i&&i[1];h(t),v((()=>t!==m?Mb(t):g)),p(null===a?"":a)}),[x]);const{key:E=""}=c[s]||{},{className:_}=m||{},C=!!m&&c.length>0,S=C?`components-autocomplete-listbox-${i}`:void 0;return{listBoxId:S,activeId:C?`components-autocomplete-item-${i}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,m&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":l((0===s?c.length:s)-1);break;case"ArrowDown":l((s+1)%c.length);break;case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void w();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,a.createElement)(g,{className:_,filterValue:f,instanceId:i,listBoxId:S,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),d(e)},onSelect:y,value:e,contentRef:o,reset:w})}}function Ob(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(),{record:r}=e,o=function(e){const t=(0,a.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:l,onKeyDown:c}=Nb({...e,contentRef:t});n.current=c;const d=(0,u.useMergeRefs)([t,(0,u.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":l}:{ref:d}}function Db({children:e,isSelected:t,...n}){const{popover:r,...o}=Nb(n);return(0,a.createElement)(a.Fragment,null,e(o),t&&r)}function Ab(e){const{help:t,id:n,...r}=e,o=(0,u.useInstanceId)(Kv,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}var Lb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var zb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Fb=op("",""),Bb={name:"bjn8wh",styles:"position:relative"},jb=e=>{const{color:t=Vp.gray[200],style:n="solid",width:r=Bh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Bh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Vb={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Hb(e){const{className:t,size:n="default",...r}=Qu(e,"BorderBoxControlLinkedButton"),o=Ju();return{...r,className:(0,a.useMemo)((()=>o((e=>op("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",fh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var $b=ed(((e,t)=>{const{className:n,isLinked:r,...o}=Hb(e),i=r?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Jf,{text:i},(0,a.createElement)(gd,{className:n},(0,a.createElement)(wd,{...o,isSmall:!0,icon:r?Lb:zb,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function Wb(e){const{className:t,value:n,size:r="default",...o}=Qu(e,"BorderBoxControlVisualizer"),i=Ju(),s=(0,a.useMemo)((()=>i(((e,t)=>op("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",jb(e?.top),";border-bottom:",jb(e?.bottom),";",fh({borderLeft:jb(e?.left)})()," ",fh({borderRight:jb(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}var Ub=ed(((e,t)=>{const{value:n,...r}=Wb(e);return(0,a.createElement)(gd,{...r,ref:t})}),"BorderBoxControlVisualizer");var Gb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Kb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));var qb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Yb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const Xb=md(pb,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",mg,"{transition:box-shadow 0.1s linear;}}"),Zb=({selectSize:e})=>{const t={default:op("box-sizing:border-box;padding:2px 1px;width:20px;color:",Vp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:op("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",ih(2),";padding:",ih(1),";color:",Vp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===e?t.large:t.default},Jb=md("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Zb,";color:",Vp.gray[900],";}"),Qb=md("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Zb,";",(({selectSize:e="default"})=>{const t={default:op("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",fh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Vp.gray[100],";}&:focus{border:1px solid ",Vp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Bh.borderWidth+" "+Vp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:op("display:flex;justify-content:center;align-items:center;&:hover{color:",Vp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Bh.borderWidth+" "+Vp.ui.borderFocus,";outline:",Bh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Bh.borderWidthFocus+" "+Vp.ui.borderFocus,";outline:",Bh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===e?t.large:t.default}),";&:not( :disabled ){cursor:pointer;}}");const ey={name:"f3vz0n",styles:"font-weight:500"},ty=op("box-shadow:inset 0 0 0 ",Bh.borderWidth," ",Vp.ui.borderFocus,";",""),ny=op("border:0;padding:0;margin:0;",Fv,";",""),ry=op(Xb,"{flex:0 0 auto;}",""),oy=(e,t)=>{const{style:n}=e||{};return op("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Vp.gray[300]:void 0;return op("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",ih(4),";width:",ih(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},iy=op("width:",228,"px;>div:first-of-type>",Hv,"{margin-bottom:0;",ey,";}&& ",Hv,"+button:not( .has-text ){min-width:24px;padding:0;}",""),ay=op("",""),sy=op("",""),ly=op("justify-content:center;width:100%;&&{border-top:",Bh.borderWidth," solid ",Vp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),cy=op(Hv,"{",ey,";}",""),uy={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const dy=[{label:(0,c.__)("Solid"),icon:Kb,value:"solid"},{label:(0,c.__)("Dashed"),icon:qb,value:"dashed"},{label:(0,c.__)("Dotted"),icon:Yb,value:"dotted"}],fy=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(vd,{as:"label"},t):(0,a.createElement)(Hv,null,t):null},py=ed(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:s,...l}=function(e){const{className:t,...n}=Qu(e,"BorderControlStylePicker"),r=Ju();return{...n,className:(0,a.useMemo)((()=>r(cy,t)),[t,r]),buttonClassName:(0,a.useMemo)((()=>r(uy)),[r])}}(e);return(0,a.createElement)(gd,{...l,ref:t},(0,a.createElement)(fy,{label:o,hideLabelFromVision:r}),(0,a.createElement)(Eh,{justify:"flex-start",gap:1},dy.map((e=>(0,a.createElement)(wd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===s,onClick:()=>i(e.value===s?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var my=py;var hy=(0,a.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,a.createElement)("span",{className:l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),gy=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},vy=function(e){return.2126*gy(e.r)+.7152*gy(e.g)+.0722*gy(e.b)};function by(e){e.prototype.luminance=function(){return e=vy(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=vy(i))>(l=vy(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const yy=ed(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:f,onClose:p,onToggle:m,style:h,position:g,variant:v}=Qu(e,"Dropdown");void 0!==g&&Xl()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,y]=(0,a.useState)(null),w=(0,a.useRef)(),[x,E]=function(e,t){const[n,r]=(0,a.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,m);function _(){p&&p(),E(!1)}(0,a.useEffect)((()=>()=>{m&&x&&m(!1)}),[m,x]);const C={isOpen:x,onToggle:function(){E(!x)},onClose:_},S=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,a.createElement)("div",{className:o,ref:(0,u.useMergeRefs)([w,t,y]),tabIndex:-1,style:h},r(C),x&&(0,a.createElement)(Uf,{position:g,onClose:_,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||_()},expandOnMobile:s,headerTitle:c,focusOnMount:d,offset:13,anchor:S?void 0:b,variant:v,...f,className:l()("components-dropdown__content",f?.className,i)},n(C)))}),"Dropdown");var wy=yy;var xy=ed((function(e,t){const n=Qu(e,"InputControlSuffixWrapper");return(0,a.createElement)(hh,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper");const Ey=md("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Vp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?op({color:Vp.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?op("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return op(r[n]||r.default,"","")}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return fh({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),_y=md("div",{target:"e1mv6sxx1"})("margin-inline-end:",ih(-1),";line-height:0;"),Cy=md(xy,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",fh({right:0}),";");var Sy=function({icon:e,size:t=24,...n}){return(0,a.cloneElement)(e,{width:t,height:t,...n})};var ky=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var Ty=()=>(0,a.createElement)(Cy,null,(0,a.createElement)(_y,null,(0,a.createElement)(Sy,{icon:ky,size:18})));const Ry=()=>{};const Py=(0,a.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:f=Ry,onChange:p,onFocus:m=Ry,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:w,suffix:x,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...C}=e,[S,k]=(0,a.useState)(!1),T=function(e){const t=(0,u.useInstanceId)(Py);return e||`inspector-select-control-${t}`}(s),R=o?`${T}__help`:void 0;if(!h?.length&&!y)return null;const P=l()("components-select-control",n);return(0,a.createElement)(Kv,{help:o,id:T,__nextHasNoMarginBottom:_},(0,a.createElement)(Eg,{className:P,disabled:r,hideLabelFromVision:i,id:T,isFocused:S,label:c,size:g,suffix:x||!d&&(0,a.createElement)(Ty,null),prefix:w,labelPosition:b,__next36pxDefaultSize:E},(0,a.createElement)(Ey,{...C,__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:T,multiple:d,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,a.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))}));var My=Py;const Iy={initial:void 0,fallback:""};var Ny=function(e,t=Iy){const{initial:n,fallback:r}={...Iy,...t},[o,i]=(0,a.useState)(e),s=Sh(e);return(0,a.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(Sh))&&void 0!==n?n:t}([e,o,n],r),(0,a.useCallback)((e=>{s||i(e)}),[s])]};function Oy(e,t,n){return"number"!=typeof e?null:parseFloat(`${ob(e,t,n)}`)}const Dy=()=>op({height:30,minHeight:30},"",""),Ay=12,Ly=md("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),zy=md("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Vp.ui.borderFocus})=>op({color:e},"","")),";",Dy,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":op({marginBottom:e?16:void 0},"","")),";"),Fy=md("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",fh({marginRight:6}),";"),By=md("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",fh({marginLeft:6}),";"),jy=md("span",{target:"e1epgpqk10"})("background-color:",Vp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Vp.ui.backgroundDisabled),op({background:n},"","")}),";"),Vy=md("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Vp.gray[400]),op({background:n},"","")}),";"),Hy=md("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),$y=md("span",{target:"e1epgpqk7"})("height:",Ay,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Vp.gray[300];return e&&(n=Vp.gray[400]),op({backgroundColor:n},"","")}),";"),Wy=md("span",{target:"e1epgpqk6"})("color:",Vp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>op({color:e?Vp.gray[700]:Vp.gray[300]},"","")),";"),Uy=({disabled:e})=>op("background-color:",e?Vp.gray[400]:Vp.ui.theme,";",""),Gy=md("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ay,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ay,"px;border-radius:50%;",Uy,";",fh({marginLeft:-10}),";",fh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Ky=md("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Uy,";",(({isFocused:e})=>e?op("&::before{content:' ';position:absolute;background-color:",Vp.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),qy=md("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Ay,"px );");var Yy={name:"1cypxip",styles:"top:-80%"},Xy={name:"1lr98c4",styles:"bottom:-80%"};const Zy=md("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;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;",(({show:e})=>op({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?Xy:Yy),";",Hp("transition"),";",fh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Jy=md(pb,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",ih(16),"!important;input[type='number']&{",Dy,";}",fh({marginLeft:`${ih(4)} !important`}),";"),Qy=md("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Dy,";}",fh({marginLeft:8}),";");var ew=(0,a.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,a.createElement)(qy,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function tw(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=l()("components-range-control__mark",n&&"is-filled",t),c=l()("components-range-control__mark-label",n&&"is-filled");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)($y,{...i,"aria-hidden":"true",className:s,isFilled:n,style:o}),r&&(0,a.createElement)(Wy,{"aria-hidden":"true",className:c,isFilled:n,style:o},r))}function nw(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(jy,{disabled:t,...l}),n&&(0,a.createElement)(rw,{disabled:t,marks:n,min:r,max:o,step:i,value:s}))}function rw(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.valuen)return;const s=`mark-${r}`,l=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,c.isRTL)()?"right":"left"]:u};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,a.createElement)(Hy,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,a.createElement)(tw,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function ow(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:c=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,a.useEffect)((()=>{o()}),[o]),(0,a.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=l()("components-simple-tooltip",t),m={...i,zIndex:u};return(0,a.createElement)(Zy,{...d,"aria-hidden":o,className:p,position:f,show:o,role:"tooltip",style:m},c(s))}const iw=()=>{};const aw=(0,a.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:s,className:d,color:f=Vp.ui.theme,currentInput:p,disabled:m=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:w=!1,max:x=100,min:E=0,onBlur:_=iw,onChange:C=iw,onFocus:S=iw,onMouseLeave:k=iw,onMouseMove:T=iw,railColor:R,renderTooltipContent:P=(e=>e),resetFallbackValue:M,shiftStep:I=10,showTooltip:N,step:O=1,trackColor:D,value:A,withInputField:L=!0,...z}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=Ny(Oy(r,t,n),{initial:Oy(null!=o?o:null,t,n),fallback:null});return[i,(0,a.useCallback)((e=>{s(null===e?null:Oy(e,t,n))}),[t,n,s])]}({min:E,max:x,value:null!=A?A:null,initial:v}),j=(0,a.useRef)(!1);let V=N,H=L;"any"===O&&(V=!1,H=!1);const[$,W]=(0,a.useState)(V),[U,G]=(0,a.useState)(!1),K=(0,a.useRef)(),q=K.current?.matches(":focus"),Y=!m&&U,X=null===F,Z=X?"":void 0!==F?F:p,J=X?(x-E)/2+E:F,Q=`${ob(X?50:(F-E)/(x-E)*100,0,100)}%`,ee=l()("components-range-control",d),te=l()("components-range-control__wrapper",!!w&&"is-marked"),ne=(0,u.useInstanceId)(e,"inspector-range-control"),re=h?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(F),ie=()=>{let e=parseFloat(`${M}`),t=e;isNaN(e)&&(e=null,t=void 0),B(e),C(t)},ae={[(0,c.isRTL)()?"right":"left"]:Q};return(0,a.createElement)(Kv,{__nextHasNoMarginBottom:r,className:ee,label:y,hideLabelFromVision:g,id:`${ne}`,help:h},(0,a.createElement)(Ly,{className:"components-range-control__root"},s&&(0,a.createElement)(Fy,null,(0,a.createElement)(Ql,{icon:s})),(0,a.createElement)(zy,{__nextHasNoMarginBottom:r,className:te,color:f,marks:!!w},(0,a.createElement)(ew,{...z,className:"components-range-control__slider",describedBy:re,disabled:m,id:`${ne}`,label:y,max:x,min:E,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{S(e),G(!0),W(!0)},onMouseMove:T,onMouseLeave:k,ref:(0,u.useMergeRefs)([K,n]),step:O,value:null!=Z?Z:void 0}),(0,a.createElement)(nw,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:E,railColor:R,step:O,value:J}),(0,a.createElement)(Vy,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:Q},trackColor:D}),(0,a.createElement)(Gy,{className:"components-range-control__thumb-wrapper",style:ae,disabled:m},(0,a.createElement)(Ky,{"aria-hidden":!0,isFocused:Y,disabled:m})),oe&&(0,a.createElement)(ow,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:q||$,style:ae,value:F})),o&&(0,a.createElement)(By,null,(0,a.createElement)(Ql,{icon:o})),H&&(0,a.createElement)(Jy,{"aria-label":y,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:b,max:x,min:E,onBlur:()=>{j.current&&(ie(),j.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(j.current=!0):((tx)&&(t=Oy(t,E,x)),C(t),j.current=!1)},shiftStep:I,step:O,value:Z}),i&&(0,a.createElement)(Qy,null,(0,a.createElement)(wd,{className:"components-range-control__reset",disabled:m||void 0===F,variant:"secondary",isSmall:!0,onClick:ie},(0,c.__)("Reset")))))}));var sw=aw;const lw=md(pb,{target:"ez9hsf47"})(lg,"{width:",ih(24),";}"),cw=md(My,{target:"ez9hsf46"})("margin-left:",ih(-2),";width:5em;select:not( :focus )~",mg,mg,mg,"{border-color:transparent;}"),uw=md(sw,{target:"ez9hsf45"})("flex:1;margin-right:",ih(2),";"),dw=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ih(2)} );\n\tmargin-left: ${ih(1)};\n}`,fw=md("div",{target:"ez9hsf44"})("padding-top:",ih(2),";padding-right:0;padding-left:0;padding-bottom:0;"),pw=md(ub,{target:"ez9hsf43"})("padding-left:",ih(4),";padding-right:",ih(4),";"),mw=md(Eh,{target:"ez9hsf42"})("padding-top:",ih(4),";padding-left:",ih(4),";padding-right:",ih(3),";padding-bottom:",ih(5),";"),hw=md("div",{target:"ez9hsf41"})(Fv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ih(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ih(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Bh.borderWidthFocus," #fff;}",dw,";"),gw=md(wd,{target:"ez9hsf40"})("&&&&&{min-width:",ih(6),";padding:0;>svg{margin-right:0;}}");var vw=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.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 bw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yw(e){return e instanceof bw(e).Element||e instanceof Element}function ww(e){return e instanceof bw(e).HTMLElement||e instanceof HTMLElement}function xw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bw(e).ShadowRoot||e instanceof ShadowRoot)}var Ew=Math.max,_w=Math.min,Cw=Math.round;function Sw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kw(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function Tw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ww(e)&&(o=e.offsetWidth>0&&Cw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cw(r.height)/e.offsetHeight||1);var a=(yw(e)?bw(e):window).visualViewport,s=!kw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Rw(e){var t=bw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pw(e){return e?(e.nodeName||"").toLowerCase():null}function Mw(e){return((yw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Iw(e){return Tw(Mw(e)).left+Rw(e).scrollLeft}function Nw(e){return bw(e).getComputedStyle(e)}function Ow(e){var t=Nw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Dw(e,t,n){void 0===n&&(n=!1);var r=ww(t),o=ww(t)&&function(e){var t=e.getBoundingClientRect(),n=Cw(t.width)/e.offsetWidth||1,r=Cw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Mw(t),a=Tw(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Pw(t)||Ow(i))&&(s=function(e){return e!==bw(e)&&ww(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Rw(e);var t}(t)),ww(t)?((l=Tw(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Iw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Aw(e){var t=Tw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Lw(e){return"html"===Pw(e)?e:e.assignedSlot||e.parentNode||(xw(e)?e.host:null)||Mw(e)}function zw(e){return["html","body","#document"].indexOf(Pw(e))>=0?e.ownerDocument.body:ww(e)&&Ow(e)?e:zw(Lw(e))}function Fw(e,t){var n;void 0===t&&(t=[]);var r=zw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=bw(r),a=o?[i].concat(i.visualViewport||[],Ow(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Fw(Lw(a)))}function Bw(e){return["table","td","th"].indexOf(Pw(e))>=0}function jw(e){return ww(e)&&"fixed"!==Nw(e).position?e.offsetParent:null}function Vw(e){for(var t=bw(e),n=jw(e);n&&Bw(n)&&"static"===Nw(n).position;)n=jw(n);return n&&("html"===Pw(n)||"body"===Pw(n)&&"static"===Nw(n).position)?t:n||function(e){var t=/firefox/i.test(Sw());if(/Trident/i.test(Sw())&&ww(e)&&"fixed"===Nw(e).position)return null;var n=Lw(e);for(xw(n)&&(n=n.host);ww(n)&&["html","body"].indexOf(Pw(n))<0;){var r=Nw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Hw="top",$w="bottom",Ww="right",Uw="left",Gw="auto",Kw=[Hw,$w,Ww,Uw],qw="start",Yw="end",Xw="clippingParents",Zw="viewport",Jw="popper",Qw="reference",ex=Kw.reduce((function(e,t){return e.concat([t+"-"+qw,t+"-"+Yw])}),[]),tx=[].concat(Kw,[Gw]).reduce((function(e,t){return e.concat([t,t+"-"+qw,t+"-"+Yw])}),[]),nx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rx(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ox={placement:"bottom",modifiers:[],strategy:"absolute"};function ix(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function fx(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?cx(o):null,a=o?ux(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Hw:t={x:s,y:n.y-r.height};break;case $w:t={x:s,y:n.y+n.height};break;case Ww:t={x:n.x+n.width,y:l};break;case Uw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?dx(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case qw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Yw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var px={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=fx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},mx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Uw,w=Hw,x=window;if(c){var E=Vw(n),_="clientHeight",C="clientWidth";if(E===bw(n)&&"static"!==Nw(E=Mw(n)).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth"),o===Hw||(o===Uw||o===Ww)&&i===Yw)w=$w,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,h*=l?1:-1;if(o===Uw||(o===Hw||o===$w)&&i===Yw)y=Ww,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=l?1:-1}var S,k=Object.assign({position:s},c&&mx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cw(n*o)/o||0,y:Cw(r*o)/o||0}}({x:p,y:h},bw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},k,((S={})[w]=b?"0":"",S[y]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var gx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:cx(t.placement),variation:ux(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var vx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];ww(o)&&Pw(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ww(r)&&Pw(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var bx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=tx.reduce((function(e,n){return e[n]=function(e,t,n){var r=cx(e),o=[Uw,Hw].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Uw,Ww].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},yx={left:"right",right:"left",bottom:"top",top:"bottom"};function wx(e){return e.replace(/left|right|bottom|top/g,(function(e){return yx[e]}))}var xx={start:"end",end:"start"};function Ex(e){return e.replace(/start|end/g,(function(e){return xx[e]}))}function _x(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sx(e,t,n){return t===Zw?Cx(function(e,t){var n=bw(e),r=Mw(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=kw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Iw(e),y:l}}(e,n)):yw(t)?function(e,t){var n=Tw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Cx(function(e){var t,n=Mw(e),r=Rw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ew(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ew(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Iw(e),l=-r.scrollTop;return"rtl"===Nw(o||n).direction&&(s+=Ew(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Mw(e)))}function kx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Fw(Lw(e)),n=["absolute","fixed"].indexOf(Nw(e).position)>=0&&ww(e)?Vw(e):e;return yw(n)?t.filter((function(e){return yw(e)&&_x(e,n)&&"body"!==Pw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Sx(e,n,r);return t.top=Ew(o.top,t.top),t.right=_w(o.right,t.right),t.bottom=_w(o.bottom,t.bottom),t.left=Ew(o.left,t.left),t}),Sx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Tx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Rx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Px(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?Xw:s,c=n.rootBoundary,u=void 0===c?Zw:c,d=n.elementContext,f=void 0===d?Jw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=Tx("number"!=typeof g?g:Rx(g,Kw)),b=f===Jw?Qw:Jw,y=e.rects.popper,w=e.elements[m?b:f],x=kx(yw(w)?w:w.contextElement||Mw(e.elements.popper),l,u,a),E=Tw(e.elements.reference),_=fx({reference:E,element:y,strategy:"absolute",placement:o}),C=Cx(Object.assign({},y,_)),S=f===Jw?C:E,k={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(f===Jw&&T){var R=T[o];Object.keys(k).forEach((function(e){var t=[Ww,$w].indexOf(e)>=0?1:-1,n=[Hw,$w].indexOf(e)>=0?"y":"x";k[e]+=R[n]*t}))}return k}var Mx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=cx(g),b=l||(v===g||!m?[wx(g)]:function(e){if(cx(e)===Gw)return[];var t=wx(e);return[Ex(e),t,Ex(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(cx(n)===Gw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?tx:l,u=ux(r),d=u?s?ex:ex.filter((function(e){return ux(e)===u})):Kw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Px(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[cx(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,C=y[0],S=0;S=0,M=P?"width":"height",I=Px(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=P?R?Ww:Uw:R?$w:Hw;w[M]>x[M]&&(N=wx(N));var O=wx(N),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[N]<=0,I[O]<=0),D.every((function(e){return e}))){C=k,_=!1;break}E.set(k,D)}if(_)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ix(e,t,n){return Ew(e,_w(t,n))}var Nx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Px(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=cx(t.placement),b=ux(t.placement),y=!b,w=dx(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,M="y"===w?Hw:Uw,I="y"===w?$w:Ww,N="y"===w?"height":"width",O=E[w],D=O+g[M],A=O-g[I],L=p?-C[N]/2:0,z=b===qw?_[N]:C[N],F=b===qw?-C[N]:-_[N],B=t.elements.arrow,j=p&&B?Aw(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[M],$=V[I],W=Ix(0,_[N],j[N]),U=y?_[N]/2-L-W-H-k.mainAxis:z-W-H-k.mainAxis,G=y?-_[N]/2+L+W+$+k.mainAxis:F+W+$+k.mainAxis,K=t.elements.arrow&&Vw(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=O+G-Y,Z=Ix(p?_w(D,O+U-Y-q):D,O,p?Ew(A,X):A);E[w]=Z,R[w]=Z-O}if(s){var J,Q="x"===w?Hw:Uw,ee="x"===w?$w:Ww,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Hw,Uw].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-_[ne]-C[ne]-ae+k.altAxis,le=ie?te+_[ne]+C[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Ix(e,t,n);return r>n?n:r}(se,te,le):Ix(p?se:re,te,p?le:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};var Ox={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=cx(n.placement),l=dx(s),c=[Uw,Ww].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Tx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Rx(e,Kw))}(o.padding,n),d=Aw(i),f="y"===l?Hw:Uw,p="y"===l?$w:Ww,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=Vw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=Ix(y,x,w),_=l;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&_x(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ax(e){return[Hw,Ww,$w,Uw].some((function(t){return e[t]>=0}))}var Lx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Px(t,{elementContext:"reference"}),s=Px(t,{altBoundary:!0}),l=Dx(a,r),c=Dx(s,o,i),u=Ax(l),d=Ax(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},zx=ax({defaultModifiers:[lx,px,gx,vx,bx,Mx,Nx,Ox,Lx]});function Fx(e){void 0===e&&(e={});var t,n,r=Zp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=rm(m(r,["visible","animated"])),c=(0,v.useState)(i),u=c[0],d=c[1],f=(0,v.useState)(s),h=f[0],g=f[1],b=(0,v.useState)(!1),y=b[0],w=b[1],x=(t=u,n=(0,v.useRef)(null),U((function(){n.current=t}),[t]),n),E=null!=x.current&&x.current!==u;h&&!y&&E&&w(!0),(0,v.useEffect)((function(){if("number"==typeof h&&y){var e=setTimeout((function(){return w(!1)}),h);return function(){clearTimeout(e)}}return function(){}}),[h,y]);var _=(0,v.useCallback)((function(){return d(!0)}),[]),C=(0,v.useCallback)((function(){return d(!1)}),[]),S=(0,v.useCallback)((function(){return d((function(e){return!e}))}),[]),k=(0,v.useCallback)((function(){return w(!1)}),[]);return p(p({},l),{},{visible:u,animated:h,animating:y,show:_,hide:C,toggle:S,setVisible:d,setAnimated:g,stopAnimation:k})}var Bx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function jx(e){return function(t){return e&&!A(t,e)?e:t}}function Vx(e){void 0===e&&(e={});var t=Zp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,h=t.modal,g=void 0!==h&&h,b=m(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,v.useRef)(null),w=(0,v.useRef)(null),x=(0,v.useRef)(null),E=(0,v.useRef)(null),_=(0,v.useState)(i),C=_[0],S=_[1],k=(0,v.useState)(i),T=k[0],R=k[1],P=(0,v.useState)(l||[0,r])[0],M=(0,v.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],N=M[1],O=(0,v.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Zp(e),n=t.modal,r=void 0===n||n,o=Fx(m(t,["modal"])),i=(0,v.useState)(r),a=i[0],s=i[1],l=(0,v.useRef)(null);return p(p({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(p({modal:g},b)),z=(0,v.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,v.useCallback)((function(e){e.placement&&R(e.placement),e.styles&&(N(jx(e.styles.popper)),E.current&&A(jx(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=zx(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:Bx?F:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:P}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!E.current,options:{element:E.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,P,u]),(0,v.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),p(p({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:E,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:S})}var Hx={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var $x=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Wx=[].concat($x,["unstable_portal"]),Ux=B({name:"TooltipReference",compose:re,keys:$x,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=m(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,v.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=(0,v.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,v.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),b=(0,v.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return p({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:h,onMouseEnter:g,onMouseLeave:b,"aria-describedby":e.baseId},s)}}),Gx=z({as:"div",useHook:Ux});const Kx=(0,a.createContext)({});var qx=B({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=m(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,v.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?p({display:"none"},o):o,f=G(n),h=G(r),g=(0,v.useRef)(0);(0,v.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var b=(0,v.useCallback)((function(t){var n;K(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,v.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),b(e)}),[b]),w=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),b(e)}),[b]);return p({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Yx=z({as:"div",useHook:qx});function Xx(){return W?document.body:null}var Zx=(0,v.createContext)(Xx());function Jx(e){var t=e.children,n=(0,v.useContext)(Zx)||Xx(),r=(0,v.useState)((function(){if(W){var e=document.createElement("div");return e.className=Jx.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,Ot.createPortal)((0,v.createElement)(Zx.Provider,{value:r},t),r):null}function Qx(e){e.defaultPrevented||"Escape"===e.key&&Hx.show(null)}Jx.__className="__reakit-portal",Jx.__selector="."+Jx.__className;var eE=B({name:"Tooltip",compose:qx,keys:Wx,useOptions:function(e){var t=e.unstable_portal;return p({unstable_portal:void 0===t||t},m(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=m(t,["ref","style","wrapElement"]);(0,v.useEffect)((function(){var t;H(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Qx)}),[]);var a=(0,v.useCallback)((function(t){return e.unstable_portal&&(t=(0,v.createElement)(Jx,null,t)),o?o(t):t}),[e.unstable_portal,o]);return p({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:p(p({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),tE=z({as:"div",memo:!0,useHook:eE});var nE=ed((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Qu(e,"Shortcut");if(!r)return null;let s,l;return"string"==typeof r?s=r:(s=r.display,l=r.ariaLabel),(0,a.createElement)(gd,{as:n,className:o,"aria-label":l,ref:t,...i},s)}),"Shortcut");const rE=op("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Bh.transitionDurationFastest," ease;font-size:",Bh.fontSize,";&[data-enter]{opacity:1;}",""),oE=md("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Vp.white,";padding:4px 8px;"),iE={name:"12mkfdx",styles:"outline:none"},aE=md(nE,{target:"e7tfjmw0"})("display:inline-block;margin-left:",ih(1),";"),{TooltipPopoverView:sE}=t;var lE=ed((function(e,t){const{children:n,className:r,...o}=Qu(e,"TooltipContent"),{tooltip:i}=(0,a.useContext)(Kx),s=Ju()(rE,r);return(0,a.createElement)(tE,{as:gd,...o,...i,className:s,ref:t},(0,a.createElement)(sE,null,n))}),"TooltipContent");const cE=ed((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:s,focusable:l=!0,gutter:c=4,id:u,modal:d=!0,placement:f,visible:h=!1,shortcut:g,...b}=Qu(e,"Tooltip"),y=function(e){void 0===e&&(e={});var t=Zp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=m(t,["placement","unstable_timeout"]),s=(0,v.useState)(i),l=s[0],c=s[1],u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=Vx(p(p({},a),{},{placement:r})),h=(f.modal,f.setModal,m(f,["modal","setModal"])),g=(0,v.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),b=(0,v.useCallback)((function(){g(),h.hide(),d.current=window.setTimeout((function(){Hx.hide(h.baseId)}),l)}),[g,h.hide,l,h.baseId]),y=(0,v.useCallback)((function(){g(),!l||Hx.currentTooltipId?(Hx.show(h.baseId),h.show()):(Hx.show(null),u.current=window.setTimeout((function(){Hx.show(h.baseId),h.show()}),l))}),[g,l,h.show,h.baseId]);return(0,v.useEffect)((function(){return Hx.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,v.useEffect)((function(){return function(){g(),Hx.hide(h.baseId)}}),[g,h.baseId]),p(p({},h),{},{hide:b,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||u,gutter:c,placement:f,visible:h,...b}),w=(0,a.useMemo)((()=>({tooltip:y})),[y]);return(0,a.createElement)(Kx.Provider,{value:w},s&&(0,a.createElement)(lE,{unstable_portal:d,ref:t},s,g&&(0,a.createElement)(aE,{shortcut:g})),i&&(0,a.createElement)(Gx,{...y,...i.props,ref:i?.ref},(e=>(l||(e.tabIndex=void 0),(0,a.cloneElement)(i,e)))))}),"Tooltip");var uE=cE;const dE=e=>{const{color:t,colorType:n}=e,[r,o]=(0,a.useState)(null),i=(0,a.useRef)(),s=(0,u.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,a.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,a.createElement)(uE,{content:(0,a.createElement)(ng,{color:"white"},r===t.toHex()?(0,c.__)("Copied!"):(0,c.__)("Copy")),placement:"bottom"},(0,a.createElement)(gw,{isSmall:!0,ref:s,icon:vw,showTooltip:!1}))},fE=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,a.createElement)(ub,{spacing:4},(0,a.createElement)(lw,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,a.createElement)(hh,{as:ng,paddingLeft:ih(4),color:Vp.ui.theme,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,a.createElement)(uw,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),pE=({color:e,onChange:t,enableAlpha:n})=>{const{r:r,g:o,b:i,a:s}=e.toRgb();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(fE,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Np({r:e,g:o,b:i,a:s}))}),(0,a.createElement)(fE,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Np({r:r,g:e,b:i,a:s}))}),(0,a.createElement)(fE,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Np({r:r,g:o,b:e,a:s}))}),n&&(0,a.createElement)(fE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Np({r:r,g:o,b:i,a:e/100}))}))},mE=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a:s}=e.toHsl();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(fE,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(Np({h:e,s:o,l:i,a:s}))}}),(0,a.createElement)(fE,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(Np({h:r,s:e,l:i,a:s}))}}),(0,a.createElement)(fE,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(Np({h:r,s:o,l:e,a:s}))}}),n&&(0,a.createElement)(fE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>{t(Np({h:r,s:o,l:i,a:e/100}))}}))},hE=({color:e,onChange:t,enableAlpha:n})=>(0,a.createElement)(Yv,{prefix:(0,a.createElement)(hh,{as:ng,marginLeft:ih(4),color:Vp.ui.theme,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Np(n))},maxLength:n?9:7,label:(0,c.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),gE=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,a.createElement)(mE,{...o});case"rgb":return(0,a.createElement)(pE,{...o});default:return(0,a.createElement)(hE,{...o})}};function vE(){return(vE=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function yE(e){var t=(0,v.useRef)(e),n=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var wE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e0:e.buttons>0)&&o.current?i(_E(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=EE(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(CE(t),!function(e,t){return t&&!xE(e)}(t,l.current)&&r)){if(xE(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(_E(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,v.useEffect)((function(){return f}),[f]),v.createElement("div",vE({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),kE=function(e){return e.filter(Boolean).join(" ")},TE=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=kE(["react-colorful__pointer",e.className]);return v.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},RE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},PE=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:RE(e.h),s:RE(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:RE(o/2),a:RE(r,2)}}),ME=function(e){var t=PE(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},IE=function(e){var t=PE(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},NE=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:RE(255*[r,s,a,a,l,r][c]),g:RE(255*[l,r,r,s,a,a][c]),b:RE(255*[a,a,l,r,r,s][c]),a:RE(o,2)}},OE=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?AE({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},DE=OE,AE=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:RE(60*(s<0?s+6:s)),s:RE(i?a/i*100:0),v:RE(i/255*100),a:o}},LE=v.memo((function(e){var t=e.hue,n=e.onChange,r=kE(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(SE,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:wE(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":RE(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(TE,{className:"react-colorful__hue-pointer",left:t/360,color:ME({h:t,s:100,v:100,a:1})})))})),zE=v.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:ME({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(SE,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:wE(t.s+100*e.left,0,100),v:wE(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+RE(t.s)+"%, Brightness "+RE(t.v)+"%"},v.createElement(TE,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:ME(t)})))})),FE=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},BE=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function jE(e,t,n){var r=yE(n),o=(0,v.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,v.useRef)({color:t,hsva:i});(0,v.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,v.useEffect)((function(){var t;FE(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,v.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var VE,HE="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,$E=new Map,WE=function(e){HE((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!$E.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',$E.set(t,n);var r=VE||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},UE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=bE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);WE(s);var l=jE(n,o,i),c=l[0],u=l[1],d=kE(["react-colorful",t]);return v.createElement("div",vE({},a,{ref:s,className:d}),v.createElement(zE,{hsva:c,onChange:u}),v.createElement(LE,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},GE=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+IE(Object.assign({},n,{a:0}))+", "+IE(Object.assign({},n,{a:1}))+")"},i=kE(["react-colorful__alpha",t]),a=RE(100*n.a);return v.createElement("div",{className:i},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(SE,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:wE(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(TE,{className:"react-colorful__alpha-pointer",left:n.a,color:IE(n)})))},KE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=bE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);WE(s);var l=jE(n,o,i),c=l[0],u=l[1],d=kE(["react-colorful",t]);return v.createElement("div",vE({},a,{ref:s,className:d}),v.createElement(zE,{hsva:c,onChange:u}),v.createElement(LE,{hue:c.h,onChange:u}),v.createElement(GE,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},qE={defaultColor:"rgba(0, 0, 0, 1)",toHsva:OE,fromHsva:function(e){var t=NE(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:BE},YE=function(e){return v.createElement(KE,vE({},e,{colorModel:qE}))},XE={defaultColor:"rgb(0, 0, 0)",toHsva:DE,fromHsva:function(e){var t=NE(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:BE},ZE=function(e){return v.createElement(UE,vE({},e,{colorModel:XE}))};const JE=({color:e,enableAlpha:t,onChange:n})=>{const r=t?YE:ZE,o=(0,a.useMemo)((()=>e.toRgbString()),[e]);return(0,a.createElement)(r,{color:o,onChange:e=>{n(Np(e))}})};function QE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,a.useState)(o);let l;return l=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,l]}Dp([Ap]);const e_=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],t_=ed(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...l}=Qu(e,"ColorPicker"),[d,f]=QE({onChange:o,value:r,defaultValue:i}),p=(0,a.useMemo)((()=>Np(d||"")),[d]),m=(0,u.useDebounce)(f),h=(0,a.useCallback)((e=>{m(e.toHex())}),[m]),[g,v]=(0,a.useState)(s||"hex");return(0,a.createElement)(hw,{ref:t,...l},(0,a.createElement)(JE,{onChange:h,color:p,enableAlpha:n}),(0,a.createElement)(fw,null,(0,a.createElement)(pw,{justify:"space-between"},(0,a.createElement)(cw,{__nextHasNoMarginBottom:!0,options:e_,value:g,onChange:e=>v(e),label:(0,c.__)("Color format"),hideLabelFromVision:!0}),(0,a.createElement)(dE,{color:p,colorType:s||g})),(0,a.createElement)(mw,{direction:"column",gap:2},(0,a.createElement)(gE,{colorType:g,color:p,onChange:h,enableAlpha:n}))))}),"ColorPicker");var n_=t_;function r_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const o_=Ec((e=>{const t=Np(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function i_(e){const{onChangeComplete:t}=e,n=(0,a.useCallback)((e=>{t(o_(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:r_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const a_=e=>(0,a.createElement)(n_,{...i_(e)});var s_=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function l_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,a.createElement)("div",{className:l()("components-circular-option-picker",n)},(0,a.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,a.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}l_.Option=function({className:e,isSelected:t,selectedIconProps:n,tooltipText:r,...o}){const i=(0,a.createElement)(wd,{isPressed:t,className:"components-circular-option-picker__option",...o});return(0,a.createElement)("div",{className:l()(e,"components-circular-option-picker__option-wrapper")},r?(0,a.createElement)(Jf,{text:r},i):i,t&&(0,a.createElement)(Sy,{icon:s_,...n||{}}))},l_.ButtonAction=function({className:e,children:t,...n}){return(0,a.createElement)(wd,{className:l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},l_.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,a.createElement)(wy,{className:l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,a.createElement)(wd,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};var c_=l_;var u_=ed((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Qu(e,"VStack");return cb({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"VStack");var d_=ed((function(e,t){const n=Ih(e);return(0,a.createElement)(gd,{as:"span",...n,ref:t})}),"Truncate");var f_=ed((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Qu(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...tg({color:Vp.gray[900],size:Qh(n),isBlock:!0,weight:Bh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Heading");const p_=md(f_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),m_=md("div",{target:"eovvns30"})("margin-left:",ih(-2),";margin-right:",ih(-2),";&:first-of-type{margin-top:",ih(-2),";}&:last-of-type{margin-bottom:",ih(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:ih(2),medium:ih(4)};return op("padding:",t[e]||t.small,";","")}),";");var h_=ed((function(e,t){const{paddingSize:n="small",...r}=Qu(e,"DropdownContentWrapper");return(0,a.createElement)(m_,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Dp([Ap,by]);const g_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function v_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Np(e),l=o===e;return(0,a.createElement)(c_.Option,{key:`${e}-${i}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,c.sprintf)((0,c.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Color: %s"),n):(0,c.sprintf)((0,c.__)("Color code: %s"),e)})}))),[n,o,r,t]);return(0,a.createElement)(c_,{className:e,options:s,actions:i})}function b_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i,headingLevel:s}){return 0===n.length?null:(0,a.createElement)(u_,{spacing:3,className:e},n.map((({name:e,colors:l},c)=>(0,a.createElement)(u_,{spacing:2,key:c},(0,a.createElement)(p_,{level:s},e),(0,a.createElement)(v_,{clearColor:t,colors:l,onChange:e=>r(e,c),value:o,actions:n.length===c+1?i:null})))))}function y_({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,a.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,a.createElement)(wy,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Dp([Ap,by]);const w_=(0,a.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:s,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:f=2,...p}=e,[m,h]=(0,a.useState)(u),g=(0,a.useCallback)((()=>s(void 0)),[s]),v=(0,a.useCallback)((e=>{h(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Np(o).toHex():e})(u,e))}),[u]),b=g_(r),y=(0,a.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Np(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Np(n).toHex()))return t;return(0,c.__)("Custom")})(u,r,b)),[u,r,b]),w=u?.startsWith("#"),x=u?.replace(/^var\((.+)\)$/,"$1"),E=x?(0,c.sprintf)((0,c.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),y,w?x.split("").join("-"):x):(0,c.__)("Custom color picker."),_={clearable:n,clearColor:g,onChange:s,value:u,actions:!!n&&(0,a.createElement)(c_.ButtonAction,{onClick:g},(0,c.__)("Clear")),headingLevel:f};return(0,a.createElement)(u_,{spacing:3,ref:t,...p},!o&&(0,a.createElement)(y_,{isRenderedInSidebar:d,renderContent:()=>(0,a.createElement)(h_,{paddingSize:"none"},(0,a.createElement)(a_,{color:m,onChange:e=>s(e),enableAlpha:i})),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(u_,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,a.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:u}}),(0,a.createElement)(u_,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,a.createElement)(d_,{className:"components-color-palette__custom-color-name"},u?y:"No color selected"),(0,a.createElement)(d_,{className:l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},x)))}),b?(0,a.createElement)(b_,{..._,colors:r}):(0,a.createElement)(v_,{..._,colors:r}))}));var x_=w_;const E_="web"===a.Platform.OS,__={px:{value:"px",label:E_?"px":(0,c.__)("Pixels (px)"),a11yLabel:(0,c.__)("Pixels (px)"),step:1},"%":{value:"%",label:E_?"%":(0,c.__)("Percentage (%)"),a11yLabel:(0,c.__)("Percent (%)"),step:.1},em:{value:"em",label:E_?"em":(0,c.__)("Relative to parent font size (em)"),a11yLabel:(0,c._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:E_?"rem":(0,c.__)("Relative to root font size (rem)"),a11yLabel:(0,c._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:E_?"vw":(0,c.__)("Viewport width (vw)"),a11yLabel:(0,c.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:E_?"vh":(0,c.__)("Viewport height (vh)"),a11yLabel:(0,c.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:E_?"vmin":(0,c.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,c.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:E_?"vmax":(0,c.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,c.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:E_?"ch":(0,c.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,c.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:E_?"ex":(0,c.__)("x-height of the font (ex)"),a11yLabel:(0,c.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:E_?"cm":(0,c.__)("Centimeters (cm)"),a11yLabel:(0,c.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:E_?"mm":(0,c.__)("Millimeters (mm)"),a11yLabel:(0,c.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:E_?"in":(0,c.__)("Inches (in)"),a11yLabel:(0,c.__)("Inches (in)"),step:.001},pc:{value:"pc",label:E_?"pc":(0,c.__)("Picas (pc)"),a11yLabel:(0,c.__)("Picas (pc)"),step:1},pt:{value:"pt",label:E_?"pt":(0,c.__)("Points (pt)"),a11yLabel:(0,c.__)("Points (pt)"),step:1}},C_=Object.values(__),S_=[__.px,__["%"],__.em,__.rem,__.vw,__.vh],k_=__.px;function T_(e,t,n){return P_(t?`${null!=e?e:""}${t}`:e,n)}function R_(e){return Array.isArray(e)&&!!e.length}function P_(e,t=C_){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(R_(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=k_.value;return[r,a]}const M_=({units:e=C_,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=P_(n[e.value]);r[t].default=o}})),r};function I_(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Qu(e,"BorderControlDropdown"),[f]=P_(t?.width),p=0===f,m=Ju(),h=(0,a.useMemo)((()=>m((e=>op("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",fh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Bh.borderWidth," solid ",Vp.ui.border,";&:focus,&:hover:not( :disabled ){",ty," border-color:",Vp.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,a.useMemo)((()=>m(sy)),[m]),v=(0,a.useMemo)((()=>m(oy(t,c))),[t,m,c]),b=(0,a.useMemo)((()=>m(iy)),[m]),y=(0,a.useMemo)((()=>m(ay)),[m]),w=(0,a.useMemo)((()=>m(ly)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?l:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const N_=e=>{const t=e.startsWith("#"),n=e.replace(/^var\((.+)\)$/,"$1");return t?n.split("").join("-"):n},O_=ed(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,onReset:f,onColorChange:p,onStyleChange:m,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,__unstablePopoverProps:y,...w}=I_(e),{color:x,style:E}=r||{},_=((e,t)=>{if(e&&t){if(g_(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(x,o),C=((e,t,n,r)=>{if(r){if(t){const e=N_(t.color);return n?(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=N_(e);return n?(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,c.__)("Border color and style picker.")}return t?(0,c.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,N_(t.color)):e?(0,c.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',N_(e)):(0,c.__)("Border color picker.")})(x,_,E,l),S=x||E&&"none"!==E,k=n?"bottom left":void 0;return(0,a.createElement)(wy,{renderToggle:({onToggle:e})=>(0,a.createElement)(wd,{onClick:e,variant:"tertiary","aria-label":C,tooltipPosition:k,label:(0,c.__)("Border color and style picker"),showTooltip:!0},(0,a.createElement)("span",{className:d},(0,a.createElement)(hy,{className:u,colorValue:x}))),renderContent:({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(h_,{paddingSize:"medium"},(0,a.createElement)(u_,{className:g,spacing:6},b?(0,a.createElement)(ub,null,(0,a.createElement)(Hv,null,(0,c.__)("Border color")),(0,a.createElement)(wd,{isSmall:!0,label:(0,c.__)("Close border color"),icon:Gb,onClick:e})):void 0,(0,a.createElement)(x_,{className:h,value:x,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&(0,a.createElement)(my,{label:(0,c.__)("Style"),value:E,onChange:m}))),S&&(0,a.createElement)(h_,{paddingSize:"none"},(0,a.createElement)(wd,{className:v,variant:"tertiary",onClick:()=>{f(),e()}},(0,c.__)("Reset to default")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown");var D_=O_;var A_=(0,a.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=S_,...s},c){if(!R_(i)||1===i?.length)return(0,a.createElement)(Jb,{className:"components-unit-control__unit-label",selectSize:r},o);const u=l()("components-unit-control__select",e);return(0,a.createElement)(Qb,{ref:c,className:u,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...s},i.map((e=>(0,a.createElement)("option",{value:e.value,key:e.value},e.label))))}));const L_=(0,a.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:p=!0,label:m,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=S_,value:w,onFocus:x,...E}=e;"unit"in e&&Xl()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=w?w:void 0,[C,S]=(0,a.useMemo)((()=>{const e=function(e,t,n=C_){const r=Array.isArray(n)?[...n]:[],[,o]=T_(e,t,C_);return o&&!r.some((e=>e.value===o))&&__[o]&&r.unshift(__[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Rb(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Rb(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,T]=T_(_,b,C),[R,P]=Ny(1===C.length?C[0].value:b,{initial:T,fallback:""});(0,a.useEffect)((()=>{void 0!==T&&P(T)}),[T,P]);const M=l()("components-unit-control","components-unit-control-wrapper",i);let I;!u&&p&&C.length&&(I=e=>{E.onKeyDown?.(e),!e.metaKey&&S.test(e.key)&&N.current?.focus()});const N=(0,a.useRef)(null),O=u?null:(0,a.createElement)(A_,{ref:N,"aria-label":(0,c.__)("Select unit"),disabled:s,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),P(e)},size:v,unit:R,units:C,onFocus:x,onBlur:e.onBlur});let D=E.step;if(!D&&C){var A;const e=C.find((e=>e.value===R));D=null!==(A=e?.step)&&void 0!==A?A:1}return(0,a.createElement)(Xb,{...E,autoComplete:r,className:M,disabled:s,spinControls:"none",isPressEnterToChange:d,label:m,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=P_(e,t),a=null!=o?o:n;let s=i||r;return!s&&R_(t)&&(s=t[0].value),[a,s]}(e,C,k,R).join("");h?.(n,t)},ref:t,size:v,suffix:O,type:d?"text":"number",value:null!=k?k:"",step:D,onFocus:x,__unstableStateReducer:n})}));var z_=L_;function F_(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=Qu(e,"BorderControl"),[m,h]=P_(u?.width),g=h||"px",v=0===m,[b,y]=(0,a.useState)(),[w,x]=(0,a.useState)(),E=(0,a.useCallback)((e=>{if(l)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,l]),_=(0,a.useCallback)((e=>{const t=""===e?void 0:e,[n]=P_(e),r=0===n,o={...u,width:t};r&&!v&&(y(u?.color),x(u?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),E(o)}),[u,v,b,w,E]),C=(0,a.useCallback)((e=>{_(`${e}${g}`)}),[_,g]),S=Ju(),k=(0,a.useMemo)((()=>S(ny,t)),[t,S]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const R=(0,a.useMemo)((()=>{const e=!!T&&ry,t=(e=>op("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return S(op(Xb,"{flex:1 1 40%;}&& ",Qb,"{min-height:0;}",""),e,t)}),[T,S,c]),P=(0,a.useMemo)((()=>S(op("flex:1 1 60%;",fh({marginRight:ih(3)})(),";",""))),[S]);return{...p,className:k,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:T,onBorderChange:E,onSliderChange:C,onWidthChange:_,previousStyleSelection:w,sliderClassName:P,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const B_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(vd,{as:"legend"},t):(0,a.createElement)(Hv,{as:"legend"},t):null},j_=ed(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:g,__unstablePopoverProps:v,previousStyleSelection:b,showDropdownHeader:y,size:w,sliderClassName:x,value:E,widthUnit:_,widthValue:C,withSlider:S,__experimentalIsRenderedInSidebar:k,...T}=F_(e);return(0,a.createElement)(gd,{as:"fieldset",...T,ref:t},(0,a.createElement)(B_,{label:f,hideLabelFromVision:l}),(0,a.createElement)(ub,{spacing:4,className:u},(0,a.createElement)(z_,{prefix:(0,a.createElement)(D_,{border:E,colors:n,__unstablePopoverProps:v,disableCustomColors:r,enableAlpha:i,enableStyle:s,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalIsRenderedInSidebar:k,size:w}),label:(0,c.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:E?.width||"",placeholder:g,disableUnits:o,__unstableInputWidth:d,size:w}),S&&(0,a.createElement)(sw,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Border width"),hideLabelFromVision:!0,className:x,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:C||void 0,withInputField:!1})))}),"BorderControl");var V_=j_;const H_={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function $_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=Qu(e,"Grid"),h=wh(Array.isArray(i)?i:[i]),g=wh(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Ju();return{...m,className:(0,a.useMemo)((()=>{const e=function(e){return e?H_[e]:{}}(n),i=op({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${Bh.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,s,v,b,l,c,u])}}var W_=ed((function(e,t){const n=$_(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Grid");function U_(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...l}=Qu(e,"BorderBoxControlSplitControls"),c=Ju(),u=(0,a.useMemo)((()=>c((e=>op("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,a.useMemo)((()=>c(Vb,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,a.useMemo)((()=>c(op(fh({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:s}}var G_=ed(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:l,popoverPlacement:d,popoverOffset:f,rightAlignedClassName:p,size:m="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=U_(e),[b,y]=(0,a.useState)(null),w=(0,a.useMemo)((()=>d?{placement:d,offset:f,anchor:b,shift:!0}:void 0),[d,f,b]),x={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:m},E=(0,u.useMergeRefs)([y,t]);return(0,a.createElement)(W_,{...v,ref:E,gap:4},(0,a.createElement)(Ub,{value:h,size:m}),(0,a.createElement)(V_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:w,value:h?.top,...x}),(0,a.createElement)(V_,{hideLabelFromVision:!0,label:(0,c.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:w,value:h?.left,...x}),(0,a.createElement)(V_,{className:p,hideLabelFromVision:!0,label:(0,c.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:w,value:h?.right,...x}),(0,a.createElement)(V_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:w,value:h?.bottom,...x}))}),"BorderBoxControlSplitControls");const K_=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const q_=["top","right","bottom","left"],Y_=["color","style","width"],X_=e=>!e||!Y_.some((t=>void 0!==e[t])),Z_=e=>{if(!e)return!1;if(J_(e)){return!q_.every((t=>X_(e[t])))}return!X_(e)},J_=(e={})=>Object.keys(e).some((e=>-1!==q_.indexOf(e))),Q_=e=>{if(!J_(e))return!1;const t=q_.map((t=>eC(e?.[t])));return!t.every((e=>e===t[0]))},eC=(e,t)=>{if(X_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},tC=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(K_);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function nC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=Qu(e,"BorderBoxControl"),d=Q_(l),f=J_(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];q_.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:tC(r)}})(l):l,m=f?l:(e=>{if(e&&!X_(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${p?.width}`)),[g,v]=(0,a.useState)(!d),b=Ju(),y=(0,a.useMemo)((()=>b(Fb,t)),[b,t]),w=(0,a.useMemo)((()=>b(op("flex:1;",fh({marginRight:"24px"})(),";",""))),[b]),x=(0,a.useMemo)((()=>b(Bb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&Y_.every((e=>void 0!==t[e])))return r(X_(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...l?.top,...n},right:{...l?.right,...n},bottom:{...l?.bottom,...n},left:{...l?.left,...n}};if(Q_(o))return r(o);const i=X_(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};Q_(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:s,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const rC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(vd,{as:"label"},t):(0,a.createElement)(Hv,null,t):null},oC=ed(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hasMixedBorders:d,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:w,size:x,splitValue:E,toggleLinked:_,wrapperClassName:C,__experimentalIsRenderedInSidebar:S,...k}=nC(e),[T,R]=(0,a.useState)(null),P=(0,a.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,u.useMergeRefs)([R,t]);return(0,a.createElement)(gd,{className:n,...k,ref:M},(0,a.createElement)(rC,{label:m,hideLabelFromVision:f}),(0,a.createElement)(gd,{className:C},p?(0,a.createElement)(V_,{className:h,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:v,placeholder:d?(0,c.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===x?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:x}):(0,a.createElement)(G_,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:E,__experimentalIsRenderedInSidebar:S,size:x}),(0,a.createElement)($b,{onClick:_,isLinked:p,size:x})))}),"BorderBoxControl");var iC=oC;const aC=md("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),sC=md(Eh,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),lC=md(Eh,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),cC=md("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),uC=md(Eh,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),dC=md(Eh,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var fC={name:"1ch9yvl",styles:"border-radius:0"},pC={name:"tg3mx0",styles:"border-radius:2px"};const mC=({isFirst:e,isLast:t,isOnly:n})=>e?fh({borderTopRightRadius:0,borderBottomRightRadius:0})():t?fh({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?pC:fC,hC=({isFirst:e,isOnly:t})=>fh({marginLeft:e||t?0:-1})(),gC=md(z_,{target:"e1jovhle0"})("max-width:60px;",mC,";",hC,";"),vC=()=>{};function bC({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=vC,onHoverOff:o=vC,label:i,value:s,...l}){const c=(u=({event:e,...t})=>{t.hovering?r(e,t):o(e,t)},av(lv),bv({hover:u},d||{},"hover"));var u,d;return(0,a.createElement)(cC,{...c()},(0,a.createElement)(yC,{text:i},(0,a.createElement)(gC,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:s,...l})))}function yC({children:e,text:t}){return t?(0,a.createElement)(Jf,{text:t,position:"top"},(0,a.createElement)("div",null,e)):e}const wC={all:(0,c.__)("All"),top:(0,c.__)("Top"),bottom:(0,c.__)("Bottom"),left:(0,c.__)("Left"),right:(0,c.__)("Right"),mixed:(0,c.__)("Mixed"),vertical:(0,c.__)("Vertical"),horizontal:(0,c.__)("Horizontal")},xC={top:void 0,right:void 0,bottom:void 0,left:void 0},EC=["top","right","bottom","left"];function _C(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function CC(e={},t,n=EC){const r=function(e){const t=[];if(!e?.length)return EC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=EC.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>P_(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=_C(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return _C(t)}(t))&&void 0!==l?l:_C(i);return[a,s].join("")}function SC(e={},t,n=EC){const r=CC(e,t,n);return isNaN(parseFloat(r))}function kC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function TC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function RC(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):EC.forEach((e=>r[e]=t)),r}const PC=()=>{};function MC({onChange:e=PC,onFocus:t=PC,onHoverOn:n=PC,onHoverOff:r=PC,values:o,sides:i,selectedUnits:s,setSelectedUnits:l,...c}){const u=CC(o,s,i),d=kC(o)&&SC(o,s,i),f=d?wC.mixed:void 0;return(0,a.createElement)(bC,{...c,disableUnits:d,isOnly:!0,value:u,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=RC(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=RC(s,e,i);l(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:f})}const IC=()=>{};function NC({onChange:e=IC,onFocus:t=IC,onHoverOn:n=IC,onHoverOff:r=IC,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t(n,{side:e})},d=e=>()=>{n({[e]:!0})},f=e=>()=>{r({[e]:!1})},p=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},m=e=>t=>{const n={...i};n[e]=t,s(n)},h=l?.length?EC.filter((e=>l.includes(e))):EC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(uC,{className:"component-box-control__input-controls-wrapper"},(0,a.createElement)(dC,{gap:0,align:"top",className:"component-box-control__input-controls"},h.map((e=>{const[t,n]=P_(o[e]),r=o[e]?n:i[e];return(0,a.createElement)(bC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,r].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:wC[e],key:`box-control-${e}`})}))))}const OC=["vertical","horizontal"];function DC({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t&&t(n,{side:e})},d=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},f=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},p=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),s(n)},h=l?.length?OC.filter((e=>l.includes(e))):OC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(dC,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},h.map((e=>{const[t,n]=P_("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,a.createElement)(bC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,null!=r?r:n].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:wC[e],key:e})})))}const AC=md("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),LC=md("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),zC=md("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>op({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),FC=md(zC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),BC=md(zC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),jC=md(BC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),VC=md(FC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),HC=md(BC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),$C=md(FC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),WC=24;function UC({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),l=o("bottom")||o("vertical"),c=o("left")||o("horizontal"),u=e/WC;return(0,a.createElement)(AC,{style:{transform:`scale(${u})`},...r},(0,a.createElement)(LC,null,(0,a.createElement)(jC,{isFocused:i}),(0,a.createElement)(VC,{isFocused:s}),(0,a.createElement)(HC,{isFocused:l}),(0,a.createElement)($C,{isFocused:c})))}function GC({isLinked:e,...t}){const n=e?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Jf,{text:n},(0,a.createElement)(wd,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?Lb:zb,iconSize:24,"aria-label":n}))}const KC={min:0},qC=()=>{};function YC({id:e,inputProps:t=KC,onChange:n=qC,label:r=(0,c.__)("Box Control"),values:o,units:i,sides:s,splitOnAxis:l=!1,allowReset:d=!0,resetValues:f=xC,onMouseOver:p,onMouseOut:m}){const[h,g]=Ny(o,{fallback:xC}),v=h||xC,b=kC(o),y=1===s?.length,[w,x]=(0,a.useState)(b),[E,_]=(0,a.useState)(!b||!SC(v)||y),[C,S]=(0,a.useState)(TC(E,l)),[k,T]=(0,a.useState)({top:P_(o?.top)[1],right:P_(o?.right)[1],bottom:P_(o?.bottom)[1],left:P_(o?.left)[1]}),R=function(e){const t=(0,u.useInstanceId)(YC,"inspector-box-control");return e||t}(e),P=`${R}-heading`,M={...t,onChange:e=>{n(e),g(e),x(!0)},onFocus:(e,{side:t})=>{S(t)},isLinked:E,units:i,selectedUnits:k,setSelectedUnits:T,sides:s,values:v,onMouseOver:p,onMouseOut:m};return(0,a.createElement)(aC,{id:R,role:"group","aria-labelledby":P},(0,a.createElement)(sC,{className:"component-box-control__header"},(0,a.createElement)(_h,null,(0,a.createElement)(Gv.VisualLabel,{id:P},r)),d&&(0,a.createElement)(_h,null,(0,a.createElement)(wd,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(f),g(f),T(f),x(!1)},disabled:!w},(0,c.__)("Reset")))),(0,a.createElement)(lC,{className:"component-box-control__header-control-wrapper"},(0,a.createElement)(_h,null,(0,a.createElement)(UC,{side:C,sides:s})),E&&(0,a.createElement)(rh,null,(0,a.createElement)(MC,{"aria-label":r,...M})),!E&&l&&(0,a.createElement)(rh,null,(0,a.createElement)(DC,{...M})),!y&&(0,a.createElement)(_h,null,(0,a.createElement)(GC,{onClick:()=>{_(!E),S(TC(!E,l))},isLinked:E}))),!E&&!l&&(0,a.createElement)(NC,{...M}))}var XC=YC;var ZC=(0,a.forwardRef)((function(e,t){const{className:n,...r}=e,o=l()("components-button-group",n);return(0,a.createElement)("div",{ref:t,role:"group",className:o,...r})}));const JC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function QC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const eS=ed((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:l=0,value:c=0,...u}=Qu(e,"Elevation"),d=Ju();return{...u,className:(0,a.useMemo)((()=>{let e=Sh(i)?i:2*c,a=Sh(t)?t:c/2;s||(e=Sh(i)?i:void 0,a=Sh(t)?t:void 0);const u=`box-shadow ${Bh.transitionDuration} ${Bh.transitionTimingFunction}`,f={};return f.Base=op({borderRadius:n,bottom:l,boxShadow:QC(c),opacity:Bh.elevationIntensity,left:l,right:l,top:l,transition:u},Hp("transition"),"",""),Sh(e)&&(f.hover=op("*:hover>&{box-shadow:",QC(e),";}","")),Sh(a)&&(f.active=op("*:active>&{box-shadow:",QC(a),";}","")),Sh(o)&&(f.focus=op("*:focus>&{box-shadow:",QC(o),";}","")),d(JC,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,s,l,c]),"aria-hidden":!0}}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Elevation");var tS=eS;const nS=`calc(${Bh.cardBorderRadius} - 1px)`,rS=op("box-shadow:0 0 0 1px ",Bh.surfaceBorderColor,";outline:none;",""),oS={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},iS={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},aS={name:"13udsys",styles:"height:100%"},sS={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},lS={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},cS={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},uS=op("&:first-of-type{border-top-left-radius:",nS,";border-top-right-radius:",nS,";}&:last-of-type{border-bottom-left-radius:",nS,";border-bottom-right-radius:",nS,";}",""),dS=op("border-color:",Bh.colorDivider,";",""),fS={name:"1t90u8d",styles:"box-shadow:none"},pS={name:"1e1ncky",styles:"border:none"},mS=op("border-radius:",nS,";",""),hS=op("padding:",Bh.cardPaddingXSmall,";",""),gS={large:op("padding:",Bh.cardPaddingLarge,";",""),medium:op("padding:",Bh.cardPaddingMedium,";",""),small:op("padding:",Bh.cardPaddingSmall,";",""),xSmall:hS,extraSmall:hS},vS=op("background-color:",Vp.ui.backgroundDisabled,";",""),bS=op("background-color:",Bh.surfaceColor,";color:",Vp.gray[900],";position:relative;","");Bh.surfaceBackgroundColor;function yS({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Bh.surfaceBorderColor}`;return op({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const wS=op("",""),xS=op("background:",Bh.surfaceBackgroundTintColor,";",""),ES=op("background:",Bh.surfaceBackgroundTertiaryColor,";",""),_S=e=>[e,e].join(" "),CS=e=>["90deg",[Bh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),SS=e=>[[Bh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),kS=(e,t)=>op("background:",(e=>[`linear-gradient( ${CS(e)} ) center`,`linear-gradient( ${SS(e)} ) center`,Bh.surfaceBorderBoldColor].join(","))(t),";background-size:",_S(e),";",""),TS=[`linear-gradient( ${[`${Bh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Bh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),RS=(e,t,n)=>{switch(e){case"dotted":return kS(t,n);case"grid":return(e=>op("background:",Bh.surfaceBackgroundColor,";background-image:",TS,";background-size:",_S(e),";",""))(t);case"primary":return wS;case"secondary":return xS;case"tertiary":return ES}};function PS(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:l="primary",...c}=Qu(e,"Surface"),u=Ju();return{...c,className:(0,a.useMemo)((()=>{const e={borders:yS({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(bS,e.borders,RS(l,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,l])}}function MS(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Qu(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(Xl()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),l=Ju();return{...PS({...s,className:(0,a.useMemo)((()=>l(rS,r&&fS,o&&mS,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const IS=ed((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...l}=MS(e),c=i?Bh.cardBorderRadius:0,u=Ju(),d=(0,a.useMemo)((()=>u(op({borderRadius:c},"",""))),[u,c]),f=(0,a.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,a.createElement)(cc,{value:f},(0,a.createElement)(gd,{...l,ref:t},(0,a.createElement)(gd,{className:u(aS)},n),(0,a.createElement)(tS,{className:d,isInteractive:!1,value:r?1:0}),(0,a.createElement)(tS,{className:d,isInteractive:!1,value:r})))}),"Card");var NS=IS;const OS=op("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Bh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Bh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Bh.colorScrollbarThumbHover,";}}",""),DS={name:"13udsys",styles:"height:100%"},AS={name:"7zq9w",styles:"scroll-behavior:smooth"},LS={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},zS={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},FS={name:"umwchj",styles:"overflow-y:auto"};const BS=ed((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Qu(e,"Scrollable"),i=Ju();return{...o,className:(0,a.useMemo)((()=>i(DS,OS,r&&AS,"x"===n&&LS,"y"===n&&zS,"auto"===n&&FS,t)),[t,i,n,r])}}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Scrollable");var jS=BS;const VS=ed((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Qu(e,"CardBody"),s=Ju();return{...i,className:(0,a.useMemo)((()=>s(sS,uS,gS[o],r&&vS,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,a.createElement)(jS,{...r,ref:t}):(0,a.createElement)(gd,{...r,ref:t})}),"CardBody");var HS=VS,$S=B({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return p({orientation:void 0===t?"horizontal":t},m(e,["orientation"]))},useProps:function(e,t){return p({role:"separator","aria-orientation":e.orientation},t)}}),WS=z({as:"hr",memo:!0,useHook:$S});const US={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var GS={name:"1u4hpl4",styles:"display:inline"};const KS=md("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?GS:void 0)," ",(({"aria-orientation":e="horizontal"})=>op({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>op({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>op(fh({[US[e].start]:ih(null!=n?n:t),[US[e].end]:ih(null!=r?r:t)})(),"","")),";");var qS=ed((function(e,t){const n=Qu(e,"Divider");return(0,a.createElement)(WS,{as:KS,...n,ref:t})}),"Divider");const YS=ed((function(e,t){const n=function(e){const{className:t,...n}=Qu(e,"CardDivider"),r=Ju();return{...n,className:(0,a.useMemo)((()=>r(cS,dS,"components-card__divider",t)),[t,r])}}(e);return(0,a.createElement)(qS,{...n,ref:t})}),"CardDivider");var XS=YS;const ZS=ed((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Qu(e,"CardFooter"),l=Ju();return{...s,className:(0,a.useMemo)((()=>l(iS,uS,dS,gS[i],r&&pS,o&&vS,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,a.createElement)(Eh,{...n,ref:t})}),"CardFooter");var JS=ZS;const QS=ed((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Qu(e,"CardHeader"),s=Ju();return{...i,className:(0,a.useMemo)((()=>s(oS,uS,dS,gS[o],n&&pS,r&&vS,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,a.createElement)(Eh,{...n,ref:t})}),"CardHeader");var ek=QS;const tk=ed((function(e,t){const n=function(e){const{className:t,...n}=Qu(e,"CardMedia"),r=Ju();return{...n,className:(0,a.useMemo)((()=>r(lS,uS,"components-card__media",t)),[t,r])}}(e);return(0,a.createElement)(gd,{...n,ref:t})}),"CardMedia");var nk=tk;var rk=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:s,indeterminate:c,help:d,id:f,onChange:p,...m}=t;i&&Xl()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),y=(0,u.useRefEffect)((e=>{e&&(e.indeterminate=!!c,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,c]),w=(0,u.useInstanceId)(e,"inspector-checkbox-control",f);return(0,a.createElement)(Kv,{__nextHasNoMarginBottom:n,label:i,id:w,help:d,className:l()("components-checkbox-control",o)},(0,a.createElement)("span",{className:"components-checkbox-control__input-container"},(0,a.createElement)("input",{ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:s,"aria-describedby":d?w+"__help":void 0,...m}),v?(0,a.createElement)(Sy,{icon:vh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,a.createElement)(Sy,{icon:s_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};const ok=4e3;function ik({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){Xl()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,a.useRef)(),c=(0,u.useCopyToClipboard)(o,(()=>{n(),s.current&&clearTimeout(s.current),r&&(s.current=setTimeout((()=>r()),ok))}));(0,a.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const d=l()("components-clipboard-button",e);return(0,a.createElement)(wd,{...i,className:d,ref:c,onCopy:e=>{e.target.focus()}},t)}var ak=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const sk=op("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;svg,path{fill:currentColor;}&:hover{color:",Vp.ui.theme,";}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t--wp-components-color-accent,\n\t\t\t\tvar( --wp-admin-theme-color, ",Vp.ui.theme," )\n\t\t\t);outline:2px solid transparent;}",""),lk={name:"1bcj5ek",styles:"width:100%;display:block"},ck={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},uk=op("border:1px solid ",Bh.surfaceBorderColor,";",""),dk=op(">*:not( marquee )>*{border-bottom:1px solid ",Bh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),fk=Bh.controlBorderRadius,pk=op("border-radius:",fk,";",""),mk=op("border-radius:",fk,";>*:first-of-type>*{border-top-left-radius:",fk,";border-top-right-radius:",fk,";}>*:last-of-type>*{border-bottom-left-radius:",fk,";border-bottom-right-radius:",fk,";}",""),hk=`calc(${Bh.fontSize} * ${Bh.fontLineHeightBase})`,gk=`calc((${Bh.controlHeight} - ${hk} - 2px) / 2)`,vk=`calc((${Bh.controlHeightSmall} - ${hk} - 2px) / 2)`,bk=`calc((${Bh.controlHeightLarge} - ${hk} - 2px) / 2)`,yk={small:op("padding:",vk," ",Bh.controlPaddingXSmall,";",""),medium:op("padding:",gk," ",Bh.controlPaddingX,";",""),large:op("padding:",bk," ",Bh.controlPaddingXLarge,";","")};const wk=(0,a.createContext)({size:"medium"}),xk=()=>(0,a.useContext)(wk);var Ek=ed((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=Qu(e,"ItemGroup");return{isBordered:n,className:Ju()(n&&uk,o&&dk,r&&mk,t),role:i,isSeparated:o,...a}}(e),{size:s}=xk(),l={spacedAround:!n&&!r,size:o||s};return(0,a.createElement)(wk.Provider,{value:l},(0,a.createElement)(gd,{...i,ref:t}))}),"ItemGroup");const _k=10,Ck=0,Sk=_k;function kk(e){return Math.max(0,Math.min(100,e))}function Tk(e,t,n){const r=e.slice();return r[t]=n,r}function Rk(e,t,n){if(function(e,t,n,r=Ck){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)({placement:"bottom",offset:8})),[]),o=l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,a.createElement)(y_,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function Ok({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,a.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=Mk(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(Rk(o,a,t))},p=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p),l(),d.current.listenersActivated=!1)},m=(0,a.useRef)();return m.current=p,(0,a.useEffect)((()=>()=>{m.current?.()}),[]),(0,a.createElement)(a.Fragment,null,o.map(((n,m)=>{const h=n?.position;return r!==h&&(0,a.createElement)(Nk,{isRenderedInSidebar:u,key:m,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(Ik,{key:m,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:m,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(Rk(o,m,kk(n.position-Sk)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(Rk(o,m,kk(n.position+Sk))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(a_,{enableAlpha:!t,color:n.color,onChange:e=>{i(Pk(o,m,Np(e).toRgbString()))}}),!e&&o.length>2&&(0,a.createElement)(ub,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,a.createElement)(wd,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,m)),r()},variant:"link"},(0,c.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}Ok.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,a.useState)(!1);return(0,a.createElement)(Nk,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(wd,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:gh}),renderContent:()=>(0,a.createElement)(a_,{enableAlpha:!i,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Pk(e,r,n)}(e,o,Np(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,Np(n).toRgbString())),c(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};var Dk=Ok;const Ak=(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},Lk={id:"IDLE"};function zk({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:s=!1}){const c=(0,a.useRef)(null),[u,d]=(0,a.useReducer)(Ak,Lk),f=e=>{if(!c.current)return;const t=Mk(e.clientX,c.current);n.some((({position:e})=>Math.abs(t-e)<_k))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===u.id,m="INSERTING_CONTROL_POINT"===u.id;return(0,a.createElement)("div",{className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,a.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,a.createElement)("div",{ref:c,className:"components-custom-gradient-picker__markers-container"},!o&&(p||m)&&(0,a.createElement)(Dk.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,a.createElement)(Dk,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,disableRemove:o,gradientPickerDomRef:c,ignoreMarkerPosition:m?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var Fk=o(7115);const Bk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",jk={type:"angular",value:"90"},Vk=[{value:"linear-gradient",label:(0,c.__)("Linear")},{value:"radial-gradient",label:(0,c.__)("Radial")}],Hk={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function $k({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function Wk({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map($k)].filter(Boolean).join(",")})`}function Uk(e){return void 0===e.length||"%"!==e.length.type}function Gk(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Dp([Ap]);const Kk=md(rh,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),qk=md(rh,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Yk=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,a.createElement)(xb,{__nextHasNoMarginBottom:!0,onChange:t=>{n(Wk({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},Xk=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,a.createElement)(My,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,c.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(Wk({...e,orientation:e.orientation?void 0:jk,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(Wk({...r,type:"radial-gradient"}))})()},options:Vk,size:"__unstable-large",value:t?r:void 0})};var Zk=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:Bk;try{t=Fk.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=Fk.parse(Bk)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Hk[t.orientation.value].toString()}),t.colorStops.some(Uk)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),s=function(e){return Wk({type:"linear-gradient",orientation:jk,colorStops:e.colorStops})}(o),c=o.colorStops.map((e=>({color:Gk(e),position:parseInt(e.length.value)})));return e||Xl()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,a.createElement)(u_,{spacing:4,className:l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,a.createElement)(zk,{__experimentalIsRenderedInSidebar:r,background:s,hasGradient:i,value:c,onChange:e=>{n(Wk(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Np(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,a.createElement)(Eh,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,a.createElement)(Kk,null,(0,a.createElement)(Xk,{gradientAST:o,hasGradient:i,onChange:n})),(0,a.createElement)(qk,null,"linear-gradient"===o.type&&(0,a.createElement)(Yk,{gradientAST:o,hasGradient:i,onChange:n}))))};const Jk=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Qk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,a.createElement)(c_.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||(0,c.sprintf)((0,c.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Gradient: %s"),n):(0,c.sprintf)((0,c.__)("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,a.createElement)(c_,{className:e,options:s,actions:i})}function eT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i,headingLevel:s}){return(0,a.createElement)(u_,{spacing:3,className:e},n.map((({name:e,gradients:l},c)=>(0,a.createElement)(u_,{spacing:2,key:c},(0,a.createElement)(p_,{level:s},e),(0,a.createElement)(Qk,{clearGradient:t,gradients:l,onChange:e=>r(e,c),value:o,...n.length===c+1?{actions:i}:{}})))))}function tT(e){return Jk(e.gradients)?(0,a.createElement)(eT,{...e}):(0,a.createElement)(Qk,{...e})}var nT=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:l,headingLevel:u=2}){const d=(0,a.useCallback)((()=>r(void 0)),[r]);e||Xl()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const f=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,a.createElement)(hh,{marginBottom:0,...f},(0,a.createElement)(u_,{spacing:n.length?4:0},!s&&(0,a.createElement)(Zk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:l,value:o,onChange:r}),(n.length||i)&&(0,a.createElement)(tT,{className:t,clearGradient:d,gradients:n,onChange:r,value:o,actions:i&&!s&&(0,a.createElement)(c_.ButtonAction,{onClick:d},(0,c.__)("Clear")),headingLevel:u})))};var rT=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));const oT=()=>{},iT=["menuitem","menuitemradio","menuitemcheckbox"];class aT extends a.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?Zl.focus.tabbable:Zl.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=oT,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&iT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d(0,a.createElement)(aT,{...e,forwardedRef:t});sT.displayName="NavigableContainer";var lT=(0,a.forwardRef)(sT);const cT=(0,a.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,a.createElement)(lT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})}));var uT=cT;function dT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}function fT(e){return"function"==typeof e}const pT=td((function(e){const{children:t,className:n,controls:r,icon:o=rT,label:i,popoverProps:s,toggleProps:c,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:p,variant:m}=Qu(e,"DropdownMenu");if(!r?.length&&!fT(t))return null;let h;r?.length&&(h=r,Array.isArray(h[0])||(h=[r]));const g=dT({className:"components-dropdown-menu__popover",variant:m},s);return(0,a.createElement)(wy,{className:n,popoverProps:g,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=wd,...s}=null!=c?c:{},u=dT({className:l()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,a.createElement)(r,{...u,icon:o,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:f,showTooltip:null===(n=c?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=dT({"aria-label":i,className:l()("components-dropdown-menu__menu",{"no-icons":p})},u);return(0,a.createElement)(uT,{...n,role:"menu"},fT(t)?t(e):null,h?.flatMap(((t,n)=>t.map(((t,r)=>(0,a.createElement)(wd,{key:[n,r].join(),onClick: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,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"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))))))}})}),"DropdownMenu");var mT=pT;const hT=md(c_.Option,{target:"e5bw3229"})("width:",ih(6),";height:",ih(6),";pointer-events:none;"),gT=md(Xv,{target:"e5bw3228"})(lg,"{background:",Vp.gray[100],";border-radius:",Bh.controlBorderRadius,";",ug,ug,ug,ug,"{height:",ih(8),";}",mg,mg,mg,"{border-color:transparent;box-shadow:none;}}"),vT=md(gd,{target:"e5bw3227"})("padding:3px 0 3px ",ih(3),";height:calc( 40px - ",Bh.borderWidth," );border:1px solid ",Bh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",Bh.controlBorderRadius,";border-top-right-radius:",Bh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Bh.controlBorderRadius,";border-bottom-right-radius:",Bh.controlBorderRadius,";border-bottom-color:",Bh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Vp.ui.theme,";}"),bT=md("div",{target:"e5bw3226"})("line-height:",ih(8),";margin-left:",ih(2),";margin-right:",ih(2),";white-space:nowrap;overflow:hidden;",vT,":hover &{color:",Vp.ui.theme,";}"),yT=md(f_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",ih(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),wT=md(gd,{target:"e5bw3224"})("height:",ih(6),";display:flex;"),xT=md(ub,{target:"e5bw3223"})("margin-bottom:",ih(2),";"),ET=md(gd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),_T=md(wd,{target:"e5bw3221"})("&&{color:",Vp.ui.theme,";}"),CT=md(wd,{target:"e5bw3220"})("&&{margin-top:",ih(1),";}"),ST="#000";function kT({value:e,onChange:t,label:n}){return(0,a.createElement)(gT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function TT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,a.useMemo)((()=>({shift:!0,offset:20,placement:"left-start",...r,className:l()("components-palette-edit__popover",r?.className)})),[r]);return(0,a.createElement)(Uf,{...i,onClose:o},!e&&(0,a.createElement)(a_,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,a.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,a.createElement)(Zk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function RT({canOnlyChangeValues:e,element:t,onChange:n,isEditing:r,onStartEditing:o,onRemove:i,onStopEditing:s,popoverProps:l,slugPrefix:d,isGradient:f}){const p=(0,u.__experimentalUseFocusOutside)(s),m=f?t.gradient:t.color,[h,g]=(0,a.useState)(null),v=(0,a.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,a.createElement)(vT,{className:r?"is-selected":void 0,as:"div",onClick:o,ref:g,...r?{...p}:{style:{cursor:"pointer"}}},(0,a.createElement)(ub,{justify:"flex-start"},(0,a.createElement)(_h,null,(0,a.createElement)(hT,{style:{background:m,color:"transparent"}})),(0,a.createElement)(_h,null,r&&!e?(0,a.createElement)(kT,{label:f?(0,c.__)("Gradient name"):(0,c.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:d+xc(null!=e?e:"")})}):(0,a.createElement)(bT,null,t.name)),r&&!e&&(0,a.createElement)(_h,null,(0,a.createElement)(CT,{isSmall:!0,icon:Kb,label:(0,c.__)("Remove color"),onClick:i}))),r&&(0,a.createElement)(TT,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function PT(e,{slug:t,color:n,gradient:r}){return new RegExp(`^${e}color-([\\d]+)$`).test(t)&&(!!n&&n===ST||!!r&&r===Bk)}function MT({elements:e,onChange:t,editingElement:n,setEditingElement:r,canOnlyChangeValues:o,slugPrefix:i,isGradient:s,popoverProps:l}){const c=(0,a.useRef)();(0,a.useEffect)((()=>{c.current=e}),[e]),(0,a.useEffect)((()=>()=>{if(c.current?.some((e=>PT(i,e)))){const e=c.current.filter((e=>!PT(i,e)));t(e.length?e:void 0)}}),[]);const d=(0,u.useDebounce)(t,100);return(0,a.createElement)(u_,{spacing:3},(0,a.createElement)(Ek,{isRounded:!0},e.map(((c,u)=>(0,a.createElement)(RT,{isGradient:s,canOnlyChangeValues:o,key:u,element:c,onStartEditing:()=>{n!==u&&r(u)},onChange:t=>{d(e.map(((e,n)=>n===u?t:e)))},onRemove:()=>{r(null);const n=e.filter(((e,t)=>t!==u));t(n.length?n:void 0)},isEditing:u===n,onStopEditing:()=>{u===n&&r(null)},slugPrefix:i,popoverProps:l})))))}const IT=[];var NT=function({gradients:e,colors:t=IT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:l,slugPrefix:d="",popoverProps:f}){const p=!!e,m=p?e:t,[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(null),y=h&&!!v&&m[v]&&!m[v].slug,w=m.length>0,x=(0,u.useDebounce)(n,100),E=(0,a.useCallback)(((e,t)=>{const n=void 0===t?void 0:m[t];n&&n[p?"gradient":"color"]===e?b(t):g(!0)}),[p,m]);return(0,a.createElement)(ET,null,(0,a.createElement)(xT,null,(0,a.createElement)(yT,{level:o},r),(0,a.createElement)(wT,null,w&&h&&(0,a.createElement)(_T,{isSmall:!0,onClick:()=>{g(!1),b(null)}},(0,c.__)("Done")),!s&&(0,a.createElement)(wd,{isSmall:!0,isPressed:y,icon:gh,label:p?(0,c.__)("Add gradient"):(0,c.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,c.sprintf)((0,c.__)("Color %s"),r)}(m,d);n(e?[...e,{gradient:Bk,name:r,slug:d+xc(r)}]:[...t,{color:ST,name:r,slug:d+xc(r)}]),g(!0),b(m.length)}}),w&&(!h||!s||l)&&(0,a.createElement)(mT,{icon:ak,label:p?(0,c.__)("Gradient options"):(0,c.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(uT,{role:"menu"},!h&&(0,a.createElement)(wd,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,c.__)("Show details")),!s&&(0,a.createElement)(wd,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},p?(0,c.__)("Remove all gradients"):(0,c.__)("Remove all colors")),l&&(0,a.createElement)(wd,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},p?(0,c.__)("Reset gradient"):(0,c.__)("Reset colors")))))))),w&&(0,a.createElement)(a.Fragment,null,h&&(0,a.createElement)(MT,{canOnlyChangeValues:s,elements:m,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:d,isGradient:p,popoverProps:f}),!h&&null!==v&&(0,a.createElement)(TT,{isGradient:p,onClose:()=>b(null),onChange:e=>{x(m.map(((t,n)=>n===v?e:t)))},element:m[null!=v?v:-1],popoverProps:f}),!h&&(p?(0,a.createElement)(nT,{__nextHasNoMargin:!0,gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,a.createElement)(x_,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!w&&i)};const OT=({__next40pxDefaultSize:e})=>!e&&op("height:28px;padding-left:",ih(1),";padding-right:",ih(1),";",""),DT=md(Eh,{target:"evuatpg0"})("height:38px;padding-left:",ih(2),";padding-right:",ih(2),";",OT,";");const AT=(0,a.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:c,onFocus:u,onBlur:d,...f}=e,[p,m]=(0,a.useState)(!1),h=n?n.length+1:0;return(0,a.createElement)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...f,value:n||"",onChange:e=>{c&&c({value:e.target.value})},onFocus:e=>{m(!0),u?.(e)},onBlur:e=>{m(!1),d?.(e)},size:h,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}));var LT=AT,zT=o(5425),FT=o.n(zT);const BT=e=>{e.preventDefault()};var jT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:c,__experimentalRenderItem:d}){const[f,p]=(0,a.useState)(!1),m=(0,u.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(p(!0),FT()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{p(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||r?.(e)},g=e=>()=>{o?.(e)};return(0,a.createElement)("ul",{ref:m,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox"},i.map(((t,r)=>{const o=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=l()("components-form-token-field__suggestion",{"is-selected":r===e});let u;return u="function"==typeof d?d({item:t}):o?(0,a.createElement)("span",{"aria-label":s(t)},o.suggestionBeforeMatch,(0,a.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):s(t),(0,a.createElement)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:i,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:BT,onClick:g(t),onMouseEnter:h(t),"aria-selected":r===e},u)})))},VT=(0,u.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,a.createElement)("div",{...(0,u.__experimentalUseFocusOutside)(n)},(0,a.createElement)(e,{ref:o,...t}))}),"withFocusOutside");function HT(e,t){const{__next36pxDefaultSize:n,__next40pxDefaultSize:r,...o}=e;return void 0!==n&&Xl()("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:"6.3"}),{...o,__next40pxDefaultSize:null!=r?r:n}}const $T=()=>{},WT=VT(class extends a.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),UT=(e,t)=>null===e?-1:t.indexOf(e);var GT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:s,options:d,onChange:f,onFilterValueChange:p=$T,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,c.__)("Item selected.")},__experimentalRenderItem:y}=HT(t,"wp.components.ComboboxControl"),[w,x]=QE({value:i,onChange:f}),E=d.find((e=>e.value===w)),_=null!==(n=E?.label)&&void 0!==n?n:"",C=(0,u.useInstanceId)(e,"combobox-control"),[S,k]=(0,a.useState)(E||null),[T,R]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[I,N]=(0,a.useState)(""),O=(0,a.useRef)(null),D=(0,a.useMemo)((()=>{const e=[],t=[],n=Tb(I);return d.forEach((r=>{const o=Tb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,d]),A=e=>{x(e.value),(0,Sb.speak)(b.selected,"assertive"),k(e),N(""),R(!1)},L=(e=1)=>{let t=UT(S,D)+e;t<0?t=D.length-1:t>=D.length&&(t=0),k(D[t]),R(!0)};return(0,a.useEffect)((()=>{const e=D.length>0,t=UT(S,D)>0;e&&!t&&k(D[0])}),[D,S]),(0,a.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,c.__)("No results.");(0,Sb.speak)(t,"polite")}}),[D,T]),(0,a.createElement)(WT,{onFocusOutside:()=>{R(!1)}},(0,a.createElement)(Kv,{__nextHasNoMarginBottom:r,className:l()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,a.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":S&&(A(S),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,a.createElement)(DT,{__next40pxDefaultSize:o},(0,a.createElement)(rh,null,(0,a.createElement)(LT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:_,onFocus:()=>{M(!0),R(!0),p(""),N("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:UT(S,D),onChange:e=>{const t=e.value;N(t),p(t),P&&R(!0)}})),g&&(0,a.createElement)(_h,null,(0,a.createElement)(wd,{className:"components-combobox-control__reset",icon:Gb,disabled:!w,onClick:()=>{x(null),O.current?.focus()},label:(0,c.__)("Reset")}))),T&&(0,a.createElement)(jT,{instanceId:C,match:{label:I,value:""},displayTransform:e=>e.label,suggestions:D,selectedIndex:UT(S,D),onHover:k,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const KT=new Set(["alert","status","log","marquee","timer"]);let qT=[],YT=!1;function XT(e){if(YT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&KT.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),qT.push(t))})),YT=!0}let ZT=0;const JT=(0,a.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:d=!0,isDismissible:f=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:m,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:w,contentLabel:x,onKeyDown:E,isFullScreen:_=!1,__experimentalHideHeader:C=!1}=e,S=(0,a.useRef)(),k=(0,u.useInstanceId)(JT),T=o?`components-modal-header-${k}`:p.labelledby,R=(0,u.useFocusOnMount)(i),P=(0,u.useConstrainedTabbing)(),M=(0,u.useFocusReturn)(),I=(0,u.__experimentalUseFocusOutside)(m),N=(0,a.useRef)(null),O=(0,a.useRef)(null),[D,A]=(0,a.useState)(!1),[L,z]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if(!N.current)return;const e=(0,Zl.getScrollContainer)(N.current);N.current===e?z(!0):z(!1)}),[N]);(0,a.useEffect)((()=>(ZT++,1===ZT&&(XT(S.current),document.body.classList.add(n)),()=>{ZT--,0===ZT&&(document.body.classList.remove(n),YT&&(qT.forEach((e=>{e.removeAttribute("aria-hidden")})),qT=[],YT=!1))})),[n]),(0,a.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(F);return e.observe(O.current),F(),()=>{e.disconnect()}}),[F,O]);const B=(0,a.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?A(!0):D&&n<=0&&A(!1)}),[D]);return(0,a.createPortal)((0,a.createElement)("div",{ref:(0,u.useMergeRefs)([S,t]),className:l()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||s&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},(0,a.createElement)(xf,{document:document},(0,a.createElement)("div",{className:l()("components-modal__frame",w,{"is-full-screen":_}),style:b,ref:(0,u.useMergeRefs)([P,M,R]),role:r,"aria-label":x,"aria-labelledby":x?void 0:T,"aria-describedby":p.describedby,tabIndex:-1,...d?I:{},onKeyDown:E},(0,a.createElement)("div",{className:l()("components-modal__content",{"hide-header":C,"is-scrollable":L,"has-scrolled-content":D}),role:"document",onScroll:B,ref:N,"aria-label":L?(0,c.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!C&&(0,a.createElement)("div",{className:"components-modal__header"},(0,a.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,a.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),o&&(0,a.createElement)("h1",{id:T,className:"components-modal__header-heading"},o)),f&&(0,a.createElement)(wd,{onClick:m,icon:ql,label:g||(0,c.__)("Close")})),(0,a.createElement)("div",{ref:O},v))))),document.body)}));var QT=JT;const eR={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var tR=ed((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=Qu(e,"ConfirmDialog"),d=Ju()(eR),f=(0,a.useRef)(),p=(0,a.useRef)(),[m,h]=(0,a.useState)(),[g,v]=(0,a.useState)();(0,a.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,a.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,a.useCallback)((e=>{e.target===f.current||e.target===p.current||"Enter"!==e.key||b(r)(e)}),[b,r]),w=null!=l?l:(0,c.__)("Cancel"),x=null!=s?s:(0,c.__)("OK");return(0,a.createElement)(a.Fragment,null,m&&(0,a.createElement)(QT,{onRequestClose:b(o),onKeyDown:y,closeButtonLabel:w,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u},(0,a.createElement)(u_,{spacing:8},(0,a.createElement)(ng,null,i),(0,a.createElement)(Eh,{direction:"row",justify:"flex-end"},(0,a.createElement)(wd,{ref:f,variant:"tertiary",onClick:b(o)},w),(0,a.createElement)(wd,{ref:p,variant:"primary",onClick:b(r)},x)))))}),"ConfirmDialog"),nR=o(2652),rR=o.n(nR);o(2797);function oR(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function iR(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function aR(e,t){if(e.clientHeightt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}let lR=0;function cR(){}function uR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!oR(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;oR(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&aR(p)&&!aR(document.documentElement)||null!=p&&aR(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,x=b.top,E=b.right,_=b.bottom,C=b.left,S="start"===o||"nearest"===o?x:"end"===o?_:x+y/2,k="center"===i?C+w/2:"end"===i?E:C,T=[],R=0;R=0&&C>=0&&_<=h&&E<=m&&x>=O&&_<=A&&C>=L&&E<=D)return T;var z=getComputedStyle(P),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),j=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-F-j:0,U="offsetHeight"in P?P.offsetHeight-P.clientHeight-B-V:0,G="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:I/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?sR(v,v+h,h,B,V,v+S,v+S+y,y):S-h/2,$="start"===i?k:"center"===i?k-m/2:"end"===i?k-m:sR(g,g+m,m,F,j,g+k,g+k+w,w),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-O-B:"end"===o?S-A+V+U:"nearest"===o?sR(O,A,I,B,V+U,S,S+y,y):S-(O+I/2)+U/2,$="start"===i?k-L-F:"center"===i?k-(L+N/2)+W/2:"end"===i?k-D+j+W:sR(L,D,N,F,j+W,k,k+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/K,P.scrollHeight-I/K+U))),k+=q-($=Math.max(0,Math.min(q+$/G,P.scrollWidth-N/G+W)))}T.push({el:P,top:H,left:$})}return T}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function dR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function fR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a{n=null,e(...i)}),t)}return o.cancel=r,o}function pR(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function mR(){for(var e=arguments.length,t=new Array(e),n=0;n{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function hR(){return String(lR++)}function gR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function vR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=bR(t,r)?t[r]:e[r],n)),{})}function bR(e,t){return void 0!==e[t]}function yR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function wR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=xR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function xR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?xR(1,0,n,r,!1):xR(-1,n-1,n,r,!1):-1}function ER(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(dR(t,e,n)||r&&dR(t,n.document.activeElement,n))))}const _R=fR((e=>{SR(e).textContent=""}),500);function CR(e,t){const n=SR(t);e&&(n.textContent=e,_R(t))}function SR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.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)}const kR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function TR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${OR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const RR=fR(((e,t)=>{CR(e(),t)}),200),PR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;function MR(e){let{id:t=`downshift-${hR()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,v.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function IR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function NR(e){return/^\S{1}$/.test(e)}function OR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function DR(e){const t=(0,v.useRef)(e);return t.current=e,t}function AR(e,t,n){const r=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useCallback)(((t,n)=>{o.current=n,t=vR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,v.useReducer)(i,t),l=DR(n),c=(0,v.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,v.useEffect)((()=>{u&&r.current&&r.current!==a&&TR(u,vR(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function LR(e,t,n){const[r,o]=AR(e,t,n);return[vR(r,n),o]}const zR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:uR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function FR(e,t,n){void 0===n&&(n=kR);const r=e[`default${OR(t)}`];return void 0!==r?r:n[t]}function BR(e,t,n){void 0===n&&(n=kR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${OR(t)}`];return void 0!==o?o:FR(e,t,n)}function jR(e){const t=BR(e,"selectedItem"),n=BR(e,"isOpen"),r=BR(e,"highlightedIndex"),o=BR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function VR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):wR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function HR(e,t,n,r){const o=(0,v.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,v.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!ER(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||ER(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let $R=()=>cR;function WR(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,v.useEffect)((()=>{r||RR((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function UR(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,v.useRef)(!0);return PR((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let GR=cR;function KR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:VR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:VR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:FR(o,"highlightedIndex"),isOpen:FR(o,"isOpen"),selectedItem:FR(o,"selectedItem"),inputValue:FR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function qR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s=0&&{selectedItem:r.items[a]}}}break;case uP:i={highlightedIndex:VR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case dP:i={highlightedIndex:VR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case nP:case rP:i={isOpen:FR(r,"isOpen"),highlightedIndex:FR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case eP:i={highlightedIndex:xR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case tP:i={highlightedIndex:xR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case QR:case iP:i={isOpen:!1,highlightedIndex:-1};break;case oP:{const n=t.key,o=`${e.inputValue}${n}`,a=qR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case ZR:i={highlightedIndex:wR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case JR:i={highlightedIndex:wR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case vP:i={selectedItem:t.selectedItem};break;default:return KR(e,t,wP)}return{...e,...i}}function EP(e){void 0===e&&(e={}),XR(e,EP);const t={...YR,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=jR(t),[d,f]=LR(xP,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,b=(0,v.useRef)(null),y=(0,v.useRef)(null),w=(0,v.useRef)({}),x=(0,v.useRef)(!0),E=(0,v.useRef)(null),_=MR(t),C=(0,v.useRef)(),S=(0,v.useRef)(!0),k=DR({state:d,props:t}),T=(0,v.useCallback)((e=>w.current[_.getItemId(e)]),[_]);WR(c,[p,m,g,n],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),WR(l,[h],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const R=UR({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,v.useEffect)((()=>(E.current=fR((e=>{e({type:bP,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,v.useEffect)((()=>{g&&E.current(f)}),[f,g]),GR({isInitialMount:S.current,props:t,state:d}),(0,v.useEffect)((()=>{S.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&b.current&&(x.current=!1,b.current.focus())}),[p]),(0,v.useEffect)((()=>{S.current||(C.current=n.length)}));const P=HR(p,[y,b],o,(()=>{f({type:iP})})),M=$R("getMenuProps","getToggleButtonProps");(0,v.useEffect)((()=>{S.current=!1}),[]),(0,v.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:uP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:dP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),N=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:ZR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:JR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:eP,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:tP,getItemNodeFromIndex:T})},Escape(){f({type:QR})},Enter(e){e.preventDefault(),f({type:nP})}," "(e){e.preventDefault(),f({type:rP})}})),[f,T]),O=(0,v.useCallback)((()=>{f({type:pP})}),[f]),D=(0,v.useCallback)((()=>{f({type:hP})}),[f]),A=(0,v.useCallback)((()=>{f({type:mP})}),[f]),L=(0,v.useCallback)((e=>{f({type:gP,highlightedIndex:e})}),[f]),z=(0,v.useCallback)((e=>{f({type:vP,selectedItem:e})}),[f]),F=(0,v.useCallback)((()=>{f({type:yP})}),[f]),B=(0,v.useCallback)((e=>{f({type:bP,inputValue:e})}),[f]),j=(0,v.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,v.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return M("getMenuProps",l,r,y),{[r]:mR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:pR(n,(()=>{f({type:aP})})),onKeyDown:pR(o,(e=>{const t=yR(e);t&&N[t]?N[t](e):NR(t)&&f({type:oP,key:t,getItemNodeFromIndex:T})})),onBlur:pR(i,(()=>{if(!1===x.current)return void(x.current=!0);!P.current.isMouseDown&&f({type:iP})})),...s}}),[f,k,N,P,M,_,T]),H=(0,v.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:cP})},c=e=>{const t=yR(e);t&&I[t]?I[t](e):NR(t)&&f({type:fP,key:t,getItemNodeFromIndex:T})},u={[o]:mR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=pR(n,l),u.onKeyDown=pR(r,c)),M("getToggleButtonProps",s,o,b),u}),[f,k,I,M,_,T]),$=(0,v.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{f({type:lP,index:n})},p=IR(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:_.getItemId(p),[i]:mR(a,(e=>{e&&(w.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=pR(o,d)),m.onMouseMove=pR(r,(()=>{n!==c.highlightedIndex&&(R.current=!1,f({type:sP,index:n,disabled:s}))})),m}),[f,k,R,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}EP.stateChangeTypes=wP;rR().array.isRequired,rR().func,rR().func,rR().func,rR().bool,rR().number,rR().number,rR().number,rR().bool,rR().bool,rR().bool,rR().any,rR().any,rR().any,rR().string,rR().string,rR().string,rR().string,rR().string,rR().string,rR().func,rR().string,rR().string,rR().func,rR().func,rR().func,rR().func,rR().func,rR().func,rR().shape({addEventListener:rR().func,removeEventListener:rR().func,document:rR().shape({getElementById:rR().func,activeElement:rR().any,body:rR().any})});rR().array,rR().array,rR().array,rR().func,rR().func,rR().func,rR().number,rR().number,rR().number,rR().func,rR().func,rR().string,rR().string,rR().shape({addEventListener:rR().func,removeEventListener:rR().func,document:rR().shape({getElementById:rR().func,activeElement:rR().any,body:rR().any})});const _P=e=>e.__nextUnconstrainedWidth?"":op(lg,"{min-width:130px;}",""),CP=md(Eg,{target:"eswuck60"})(_P,";"),SP=e=>e?.name,kP=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case EP.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case EP.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function TP(e){const{__next36pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:s,options:u,onChange:d,size:f="default",value:p,onMouseOver:m,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=e,{getLabelProps:y,getToggleButtonProps:w,getMenuProps:x,getItemProps:E,isOpen:_,highlightedIndex:C,selectedItem:S}=EP({initialSelectedItem:u[0],items:u,itemToString:SP,onSelectedItemChange:d,...null!=p?{selectedItem:p}:void 0,stateReducer:kP}),[k,T]=(0,a.useState)(!1);n||Xl()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const R=x({className:"components-custom-select-control__menu","aria-hidden":!_}),P=(0,a.useCallback)((e=>{e.stopPropagation(),R?.onKeyDown?.(e)}),[R]);return R["aria-activedescendant"]?.startsWith("downshift-null")&&delete R["aria-activedescendant"],(0,a.createElement)("div",{className:l()("components-custom-select-control",r)},o?(0,a.createElement)(vd,{as:"label",...y()},i):(0,a.createElement)(Hv,{...y({className:"components-custom-select-control__label"})},i),(0,a.createElement)(CP,{__next36pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,a.createElement)(Ty,null)},(0,a.createElement)(Ey,{onMouseOver:m,onMouseOut:h,as:"button",onFocus:function(e){T(!0),g?.(e)},onBlur:function(e){T(!1),v?.(e)},selectSize:f,__next36pxDefaultSize:t,...w({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(S?(0,c.sprintf)((0,c.__)("Currently selected: %s"),S.name):(0,c.__)("No selection"))})},SP(S),b&&S.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__hint"},S.__experimentalHint))),(0,a.createElement)("ul",{...R,onKeyDown:P},_&&u.map(((e,n)=>(0,a.createElement)("li",{...E({item:e,index:n,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":n===C,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===S&&(0,a.createElement)(Sy,{icon:s_,className:"components-custom-select-control__item-icon"}))))))}function RP(e){return(0,a.createElement)(TP,{...e,__experimentalShowSelectedHint:!1})}function PP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function MP(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function IP(e){MP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function NP(e,t){MP(2,arguments);var n=IP(e),r=PP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var OP,DP,AP={};function LP(){return AP}function zP(e,t){var n,r,o,i,a,s,l,c;MP(1,arguments);var u=LP(),d=PP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=IP(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=IP(e),p=f.getDay(),m=6+(pr.getTime()}(e,t))&&(WP(e,n)||function(e,t){MP(2,arguments);var n=IP(e),r=IP(t);return n.getTime()-1}),[E]),S=(0,v.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,v.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!WP(t,e)}))}))}),[]),T=(0,v.useCallback)((function(e,t){return C(e)?k(e):S(e,t)}),[k,C,S]),R=(0,v.useCallback)((function(e,t,n){_(n?VP({start:e,end:t}):function(n){return n.concat(VP({start:e,end:t}))})}),[]),P=(0,v.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!VP({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,v.useMemo)((function(){return function(e){MP(1,arguments);var t=e||{},n=IP(t.start),r=IP(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(IP(i)),i.setMonth(i.getMonth()+1);return o}({start:HP(d),end:jP(NP(d,c-1))}).map((function(e){return function(e,t){MP(1,arguments);var n=e||{},r=IP(n.start),o=IP(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=zP(r,t),s=zP(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(IP(c)),(c=FP(c,1)).setHours(15);return l}({start:HP(e),end:jP(e)},{weekStartsOn:r}).map((function(e){return VP({start:zP(e,{weekStartsOn:r}),end:$P(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:qP,inRange:KP,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:b,viewPreviousYear:y,viewNextYear:w,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:C,select:S,deselect:k,toggle:T,selectRange:R,deselectRange:P,calendar:M}};function XP(e){return XP="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},XP(e)}function ZP(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function JP(e){ZP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===XP(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function QP(e){ZP(1,arguments);var t=JP(e);return t.setHours(0,0,0,0),t}function eM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function tM(e,t){ZP(2,arguments);var n=JP(e),r=eM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function nM(e,t){return ZP(2,arguments),tM(e,-eM(t))}function rM(e){if(ZP(1,arguments),!function(e){return ZP(1,arguments),e instanceof Date||"object"===XP(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=JP(e);return!isNaN(Number(t))}function oM(e,t){return ZP(2,arguments),function(e,t){ZP(2,arguments);var n=JP(e).getTime(),r=eM(t);return new Date(n+r)}(e,-eM(t))}function iM(e){ZP(1,arguments);var t=JP(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function aM(e){ZP(1,arguments);var t=JP(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=iM(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=iM(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function sM(e){ZP(1,arguments);var t=JP(e),n=iM(t).getTime()-function(e){ZP(1,arguments);var t=aM(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),iM(n)}(t).getTime();return Math.round(n/6048e5)+1}var lM={};function cM(){return lM}function uM(e,t){var n,r,o,i,a,s,l,c;ZP(1,arguments);var u=cM(),d=eM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=JP(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=uM(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=uM(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function fM(e,t){ZP(1,arguments);var n=JP(e),r=uM(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;ZP(1,arguments);var u=cM(),d=eM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=dM(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),uM(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function pM(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return pM("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):pM(n+1,2)},d:function(e,t){return pM(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return pM(e.getUTCHours()%12||12,t.length)},H:function(e,t){return pM(e.getUTCHours(),t.length)},m:function(e,t){return pM(e.getUTCMinutes(),t.length)},s:function(e,t){return pM(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return pM(Math.floor(r*Math.pow(10,n-3)),t.length)}},hM=mM,gM="midnight",vM="noon",bM="morning",yM="afternoon",wM="evening",xM="night",EM={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return hM.y(e,t)},Y:function(e,t,n,r){var o=dM(e,r),i=o>0?o:1-o;return"YY"===t?pM(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):pM(i,t.length)},R:function(e,t){return pM(aM(e),t.length)},u:function(e,t){return pM(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pM(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pM(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return hM.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return pM(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=fM(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):pM(o,t.length)},I:function(e,t,n){var r=sM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):pM(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):hM.d(e,t)},D:function(e,t,n){var r=function(e){ZP(1,arguments);var t=JP(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):pM(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return pM(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return pM(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return pM(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?vM:0===o?gM:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?wM:o>=12?yM:o>=4?bM:xM,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return hM.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):hM.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):pM(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):pM(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):hM.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):hM.s(e,t)},S:function(e,t){return hM.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return CM(o);case"XXXX":case"XX":return SM(o);default:return SM(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return CM(o);case"xxxx":case"xx":return SM(o);default:return SM(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_M(o,":");default:return"GMT"+SM(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_M(o,":");default:return"GMT"+SM(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return pM(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return pM((r._originalDate||e).getTime(),t.length)}};function _M(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+pM(i,2)}function CM(e,t){return e%60==0?(e>0?"-":"+")+pM(Math.abs(e)/60,2):SM(e,t)}function SM(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+pM(Math.floor(o/60),2)+n+pM(o%60,2)}var kM=EM,TM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},RM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},PM={p:RM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return TM(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",TM(o,t)).replace("{{time}}",RM(i,t))}},MM=PM;var IM=["D","DD"],NM=["YY","YYYY"];function OM(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var DM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},AM=function(e,t,n){var r,o=DM[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function LM(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var zM={date:LM({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:LM({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:LM({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},FM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BM=function(e,t,n,r){return FM[e]};function jM(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var VM={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:jM({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jM({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:jM({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:jM({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:jM({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},HM=VM;function $M(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(WM.matchPattern);if(!n)return null;var r=n[0],o=e.match(WM.parsePattern);if(!o)return null;var i=WM.valueCallback?WM.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:$M({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:$M({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:$M({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:$M({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:$M({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},GM={code:"en-US",formatDistance:AM,formatLong:zM,formatRelative:BM,localize:HM,match:UM,options:{weekStartsOn:0,firstWeekContainsDate:1}},KM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YM=/^'([^]*?)'?$/,XM=/''/g,ZM=/[a-zA-Z]/;function JM(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;ZP(2,arguments);var x=String(t),E=cM(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:GM,C=eM(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=eM(null!==(p=null!==(m=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(y=E.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=JP(e);if(!rM(k))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),R=oM(k,T),P={firstWeekContainsDate:C,weekStartsOn:S,locale:_,_originalDate:k},M=x.match(qM).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,MM[t])(e,_.formatLong):e})).join("").match(KM).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(YM);if(!t)return e;return t[1].replace(XM,"'")}(r);var i=kM[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==NM.indexOf(e)}(r)||OM(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==IM.indexOf(e)}(r)||OM(r,t,String(e)),i(R,r,_.localize,P);if(o.match(ZM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function QM(e,t){ZP(2,arguments);var n=JP(e),r=JP(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function eI(e,t){ZP(2,arguments);var n=JP(e),r=JP(t);return n.getTime()===r.getTime()}function tI(e,t){ZP(2,arguments);var n=QP(e),r=QP(t);return n.getTime()===r.getTime()}function nI(e,t){ZP(2,arguments);var n=JP(e),r=eM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function rI(e,t){return ZP(2,arguments),nI(e,7*eM(t))}var oI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var iI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),aI=window.wp.date;const sI=md("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),lI=md(ub,{target:"e105ri6r4"})("margin-bottom:",ih(4),";"),cI=md(f_,{target:"e105ri6r3"})("font-size:",Bh.fontSize,";font-weight:",Bh.fontWeight,";strong{font-weight:",Bh.fontWeightHeading,";}"),uI=md("div",{target:"e105ri6r2"})("column-gap:",ih(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",ih(2),";"),dI=md("div",{target:"e105ri6r1"})("color:",Vp.gray[700],";font-size:",Bh.fontSize,";line-height:",Bh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),fI=md(wd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",ih(7),";width:",ih(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Vp.ui.theme};\n\t\t\tcolor: ${Vp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Vp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Vp.white:Vp.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function pI(e){return"string"==typeof e?new Date(e):JP(e)}const mI="yyyy-MM-dd'T'HH:mm:ss";function hI({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,a.useRef)();return(0,a.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,a.createElement)(fI,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":gI(e,n,l),column:t,isSelected:n,isToday:i,hasEvents:l>0,onClick:c,onKeyDown:u},(0,aI.dateI18n)("j",e,-e.getTimezoneOffset()))}function gI(e,t,n){const{formats:r}=(0,aI.getSettings)(),o=(0,aI.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,c.sprintf)((0,c._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,c.sprintf)((0,c.__)("%1$s. Selected"),o):n>0?(0,c.sprintf)((0,c._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var vI=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?pI(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:f,isSelected:p,viewPreviousMonth:m,viewNextMonth:h}=YP({selected:[QP(s)],viewing:QP(s),weekStartsOn:i}),[g,v]=(0,a.useState)(QP(s)),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e);return e!==w&&(x(e),d([QP(s)]),f(QP(s)),v(QP(s))),(0,a.createElement)(sI,{className:"components-datetime__date",role:"application","aria-label":(0,c.__)("Calendar")},(0,a.createElement)(lI,null,(0,a.createElement)(wd,{icon:(0,c.isRTL)()?oI:iI,variant:"tertiary","aria-label":(0,c.__)("View previous month"),onClick:()=>{m(),v(nM(g,1)),o?.(JM(nM(u,1),mI))}}),(0,a.createElement)(cI,{level:3},(0,a.createElement)("strong",null,(0,aI.dateI18n)("F",u,-u.getTimezoneOffset()))," ",(0,aI.dateI18n)("Y",u,-u.getTimezoneOffset())),(0,a.createElement)(wd,{icon:(0,c.isRTL)()?iI:oI,variant:"tertiary","aria-label":(0,c.__)("View next month"),onClick:()=>{h(),v(tM(g,1)),o?.(JM(tM(u,1),mI))}})),(0,a.createElement)(uI,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,a.createElement)(dI,{key:e.toString()},(0,aI.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,i)=>QM(e,u)?(0,a.createElement)(hI,{key:e.toString(),day:e,column:i+1,isSelected:p(e),isFocusable:eI(e,g),isFocusAllowed:b,isToday:tI(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>tI(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(JM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),mI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=nI(e,(0,c.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=nI(e,(0,c.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return ZP(2,arguments),rI(e,-eM(t))}(e,1)),"ArrowDown"===t.key&&(n=rI(e,1)),"PageUp"===t.key&&(n=nM(e,1)),"PageDown"===t.key&&(n=tM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;ZP(1,arguments);var u=cM(),d=eM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=JP(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=JP(e),p=f.getDay(),m=6+(p{const{timezone:e}=(0,aI.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,a.createElement)(Jf,{position:"top center",text:o},(0,a.createElement)(II,{className:"components-datetime__timezone"},r))};function OI(e,t){return t?(e%12+12)%24:e%12}function DI(e){return(t,n)=>{const r={...t};return n.type!==Ev&&n.type!==Mv&&n.type!==Rv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var AI=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,a.useState)((()=>t?bI(pI(t)):new Date));(0,a.useEffect)((()=>{o(t?bI(pI(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:u,hours:d,am:f}=(0,a.useMemo)((()=>({day:JM(r,"dd"),month:JM(r,"MM"),year:JM(r,"yyyy"),minutes:JM(r,"mm"),hours:JM(r,e?"hh":"HH"),am:JM(r,"a")})),[r,e]),p=t=>(i,{event:a})=>{if(!(a.target instanceof HTMLInputElement))return;if(!a.target.validity.valid)return;let s=Number(i);"hours"===t&&e&&(s=OI(s,"PM"===f));const l=function(e,t){if(ZP(2,arguments),"object"!==XP(t)||null===t)throw new RangeError("values parameter must be an object");var n=JP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=yI(n,t.month)),null!=t.date&&n.setDate(eM(t.date)),null!=t.hours&&n.setHours(eM(t.hours)),null!=t.minutes&&n.setMinutes(eM(t.minutes)),null!=t.seconds&&n.setSeconds(eM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(eM(t.milliseconds)),n)}(r,{[t]:s});o(l),n?.(JM(l,mI))};function m(e){return()=>{if(f===e)return;const t=parseInt(d,10),i=function(e,t){ZP(2,arguments);var n=JP(e),r=eM(t);return n.setHours(r),n}(r,OI(t,"PM"===e));o(i),n?.(JM(i,mI))}}const h=(0,a.createElement)(PI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,c.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),g=(0,a.createElement)(TI,null,(0,a.createElement)(RI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,c.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,c.__)("January")},{value:"02",label:(0,c.__)("February")},{value:"03",label:(0,c.__)("March")},{value:"04",label:(0,c.__)("April")},{value:"05",label:(0,c.__)("May")},{value:"06",label:(0,c.__)("June")},{value:"07",label:(0,c.__)("July")},{value:"08",label:(0,c.__)("August")},{value:"09",label:(0,c.__)("September")},{value:"10",label:(0,c.__)("October")},{value:"11",label:(0,c.__)("November")},{value:"12",label:(0,c.__)("December")}],onChange:e=>{const t=yI(r,Number(e)-1);o(t),n?.(JM(t,mI))}}));return(0,a.createElement)(wI,{className:"components-datetime__time"},(0,a.createElement)(xI,null,(0,a.createElement)(Kv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Time")),(0,a.createElement)(ub,{className:"components-datetime__time-wrapper"},(0,a.createElement)(EI,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,a.createElement)(CI,{className:"components-datetime__time-field-hours-input",label:(0,c.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:DI(2)}),(0,a.createElement)(SI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,a.createElement)(kI,{className:"components-datetime__time-field-minutes-input",label:(0,c.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:u,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:DI(2)})),e&&(0,a.createElement)(ZC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,a.createElement)(wd,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",onClick:m("AM")},(0,c.__)("AM")),(0,a.createElement)(wd,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",onClick:m("PM")},(0,c.__)("PM"))),(0,a.createElement)(hh,null),(0,a.createElement)(NI,null))),(0,a.createElement)(xI,null,(0,a.createElement)(Kv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Date")),(0,a.createElement)(ub,{className:"components-datetime__time-wrapper"},e?(0,a.createElement)(a.Fragment,null,g,h):(0,a.createElement)(a.Fragment,null,h,g),(0,a.createElement)(MI,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,c.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:DI(4)}))))};const LI=md(u_,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),zI=()=>{};const FI=(0,a.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=zI,onChange:o,events:i,startOfWeek:s},l){return(0,a.createElement)(LI,{ref:l,className:"components-datetime",spacing:4},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(AI,{currentTime:e,onChange:o,is12Hour:t}),(0,a.createElement)(vI,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})))}));var BI=FI;var jI=[{name:(0,c._x)("None","Size of a UI element"),slug:"none"},{name:(0,c._x)("Small","Size of a UI element"),slug:"small"},{name:(0,c._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,c._x)("Large","Size of a UI element"),slug:"large"},{name:(0,c._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var VI=function(e){const{label:t,value:n,sizes:r=jI,icon:o,onChange:i,className:s=""}=e,u=(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(Ql,{icon:o}),t);return(0,a.createElement)(My,{className:l()(s,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,c.__)("Default"),value:""},...t]})(r)})};const HI={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},$I=(0,a.createContext)(!1),{Consumer:WI,Provider:UI}=$I;function GI({className:e,children:t,isDisabled:n=!0,...r}){const o=Ju();return(0,a.createElement)(UI,{value:n},(0,a.createElement)("div",{inert:n?"true":void 0,className:n?o(HI,e,"components-disabled"):void 0,...r},t))}GI.Context=$I,GI.Consumer=WI;var KI=GI;const qI="is-dragging-components-draggable";var YI=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:d}){const f=(0,a.useRef)(null),p=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>()=>{p.current()}),[]),(0,a.createElement)(a.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const a=r.createElement("div");a.style.top="0",a.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),a.classList.add("components-draggable__clone"),i&&a.classList.add(i);let m=0,h=0;if(f.current){m=e.clientX,h=e.clientY,a.style.transform=`translate( ${m}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,a.appendChild(t),r.body.appendChild(a)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,l=t.left;a.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,m=l-0,h=i-0,a.style.transform=`translate( ${m}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),a.appendChild(c),o?r.body.appendChild(a):n?.appendChild(a)}let g=e.clientX,v=e.clientY;const b=(0,u.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=m+e.clientX-g,r=h+e.clientY-v;a.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,m=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(qI),t&&t(e),p.current=()=>{a&&a.parentNode&&a.parentNode.removeChild(a),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(qI),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),d&&(0,a.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))};var XI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.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"}));var ZI=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[s,d]=(0,a.useState)(),[f,p]=(0,a.useState)(),[m,h]=(0,a.useState)(),g=(0,u.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,Zl.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,Zl.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){d(!1),h(void 0)},onDragEnter(){p(!0)},onDragLeave(){p(!1)}}),v=(0,u.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},w={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,a.createElement)(Kl.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,a.createElement)(Kl.div,{variants:w},(0,a.createElement)(Sy,{icon:XI,className:"components-drop-zone__content-icon"}),(0,a.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,c.__)("Drop files to upload")))));const x=l()("components-drop-zone",e,{"is-active":(s||f)&&("file"===m&&n||"html"===m&&r||"default"===m&&o),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${m}`]:!!m});return(0,a.createElement)("div",{...i,ref:g,className:x},v?b:(0,a.createElement)(qm,null,b))};function JI({children:e}){return Xl()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}var QI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function eN(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Dp([Ap]);var tN=function({values:e}){return e?(0,a.createElement)(hy,{colorValue:eN(e,"135deg")}):(0,a.createElement)(Ql,{icon:QI})};function nN({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,l]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(wd,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e))},(0,a.createElement)(ub,{justify:"flex-start",spacing:2},t?(0,a.createElement)(hy,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,a.createElement)(Ql,{icon:QI}),(0,a.createElement)("span",null,e))),s&&(0,a.createElement)(x_,{className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o}))}var rN=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,a.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,a.createElement)(nN,{key:s,label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}}))))};const oN=["#333","#CCC"];function iN({value:e,onChange:t}){const n=!!e,r=n?e:oN,o=eN(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,a.createElement)(zk,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}var aN=function({clearable:e=!0,unsetable:t=!0,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,onChange:l}){const[u,d]=(0,a.useMemo)((()=>{return!(e=n)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Np(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[n]),f="unset"===s,p=(0,a.createElement)(c_.Option,{key:"unset",value:"unset",isSelected:f,tooltipText:(0,c.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{l(f?void 0:"unset")}}),m=r.map((({colors:e,slug:t,name:n})=>{const r={background:eN(e,"135deg"),color:"transparent"},o=null!=n?n:(0,c.sprintf)((0,c.__)("Duotone code: %s"),t),i=n?(0,c.sprintf)((0,c.__)("Duotone: %s"),n):o,u=rc()(e,s);return(0,a.createElement)(c_.Option,{key:t,value:e,isSelected:u,"aria-label":i,tooltipText:o,style:r,onClick:()=>{l(u?void 0:e)}})}));return(0,a.createElement)(c_,{options:t?[p,...m]:m,actions:!!e&&(0,a.createElement)(c_.ButtonAction,{onClick:()=>l(void 0)},(0,c.__)("Clear"))},(0,a.createElement)(hh,{paddingTop:4},(0,a.createElement)(u_,{spacing:3},!o&&!i&&(0,a.createElement)(iN,{value:f?void 0:s,onChange:l}),!i&&(0,a.createElement)(rN,{labels:[(0,c.__)("Shadows"),(0,c.__)("Highlights")],colors:n,value:f?void 0:s,disableCustomColors:o,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=u),e[1]||(e[1]=d);const t=e.length>=2?e:void 0;l(t)}}))))};var sN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const lN=md(Sy,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var cN=(0,a.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,u=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=l()("components-external-link",o),f=!!n?.startsWith("#");return(0,a.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:u,ref:t},r,(0,a.createElement)(vd,{as:"span"},(0,c.__)("(opens in a new tab)")),(0,a.createElement)(lN,{icon:sN,className:"components-external-link__icon"}))}));const uN={width:200,height:170},dN=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function fN(e){return Math.round(100*e)}const pN=md("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),mN=md("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;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;}"}),hN=md("div",{target:"eeew7dm6"})("background:",Vp.gray[100],";box-sizing:border-box;height:",uN.height,"px;max-width:280px;min-width:",uN.width,"px;width:100%;"),gN=md(z_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var vN={name:"1mn7kwb",styles:"padding-bottom:1em"};const bN=({__nextHasNoMarginBottom:e})=>e?void 0:vN;var yN={name:"1mn7kwb",styles:"padding-bottom:1em"};const wN=({hasHelpText:e=!1})=>e?yN:void 0,xN=md(Eh,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",wN," ",bN,";"),EN=md("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(({showOverlay:e})=>e?1:0),";"),_N=md("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),CN=md(_N,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),SN=md(_N,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),kN=0,TN=100,RN=()=>{};function PN({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=RN,point:r={x:.5,y:.5}}){const o=fN(r.x),i=fN(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,a.createElement)(xN,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t},(0,a.createElement)(MN,{label:(0,c.__)("Left"),"aria-label":(0,c.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,a.createElement)(MN,{label:(0,c.__)("Top"),"aria-label":(0,c.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function MN(e){return(0,a.createElement)(gN,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:TN,min:kN,units:[{value:"%",label:"%"}],...e})}const IN=md("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(({isDragging:e})=>e&&"cursor: grabbing;"),";");function NN({left:e="50%",top:t="50%",...n}){const r=l()("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,a.createElement)(IN,{...n,className:r,style:o})}function ON({bounds:e,...t}){return(0,a.createElement)(EN,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,a.createElement)(CN,{style:{top:"33%"}}),(0,a.createElement)(CN,{style:{top:"66%"}}),(0,a.createElement)(SN,{style:{left:"33%"}}),(0,a.createElement)(SN,{style:{left:"66%"}}))}function DN({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,a.createElement)(hN,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||dN.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,a.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,a.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}var AN=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:s,onDrag:d,onDragEnd:f,onDragStart:p,resolvePoint:m,url:h,value:g={x:.5,y:.5},...v}){const[b,y]=(0,a.useState)(g),[w,x]=(0,a.useState)(!1),{startDrag:E,endDrag:_,isDragging:C}=(0,u.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=I(e);t&&(p?.(t,e),y(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),y(t))},onDragEnd:()=>{f?.(),s?.(b)}}),{x:S,y:k}=C?b:g,T=(0,a.useRef)(null),[R,P]=(0,a.useState)(uN),M=(0,a.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;P(e>0&&t>0?{width:e,height:t}:{...uN})}));(0,a.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,u.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/R.width,a=(t-r)/R.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),N({x:i,y:a})},N=e=>{var t;const n=null!==(t=m?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},O={left:S*R.width,top:k*R.height},D=l()("components-focal-point-picker-control",r),A=`inspector-focal-point-picker-control-${(0,u.useInstanceId)(e)}`;return ac((()=>{x(!0);const e=window.setTimeout((()=>{x(!1)}),600);return()=>window.clearTimeout(e)}),[S,k]),(0,a.createElement)(Kv,{...v,__nextHasNoMarginBottom:t,label:i,id:A,help:o,className:D},(0,a.createElement)(pN,{className:"components-focal-point-picker-wrapper"},(0,a.createElement)(mN,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:S,y:k},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(N(r))},onMouseDown:E,onBlur:()=>{C&&_()},ref:T,role:"button",tabIndex:-1},(0,a.createElement)(ON,{bounds:R,showOverlay:w}),(0,a.createElement)(DN,{alt:(0,c.__)("Media preview"),autoPlay:n,onLoad:M.current,src:h}),(0,a.createElement)(NN,{...O,isDragging:C}))),(0,a.createElement)(PN,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:S,y:k},onChange:e=>{s?.(N(e))}}))};function LN({iframeRef:e,...t}){const n=(0,u.useMergeRefs)([e,(0,u.useFocusableIframe)()]);return Xl()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,a.createElement)("iframe",{ref:n,...t})}var zN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function FN(e){const[t,...n]=e;if(!t)return null;const[,r]=P_(t.size);return n.every((e=>{const[,t]=P_(e.size);return t===r}))?r:null}const BN=md("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),jN=md(ub,{target:"e8tqeku4"})("height:",ih(4),";"),VN=md(wd,{target:"e8tqeku3"})("margin-top:",ih(-1),";"),HN=md(Kv.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",ih(1),";justify-content:flex-start;margin-bottom:0;"),$N=md("span",{target:"e8tqeku1"})("color:",Vp.gray[700],";"),WN=md("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${ih(6)};`),";"),UN={key:"default",name:(0,c.__)("Default"),value:void 0},GN={key:"custom",name:(0,c.__)("Custom")};var KN=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:s,onSelectCustom:l}=e,u=!!FN(n),d=[UN,...n.map((e=>{let t;if(u){const[n]=P_(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[GN]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:GN:UN;return(0,a.createElement)(TP,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,c.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,c.sprintf)((0,c.__)("Currently selected font size: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===GN?l():s(e.value)},size:i})};const qN=e=>{const t=op("border-color:",Vp.ui.border,";","");return op(e&&t," &:hover{border-color:",Vp.ui.borderHover,";}&:focus-within{border-color:",Vp.ui.borderFocus,";box-shadow:",Bh.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},YN=e=>op("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),XN={name:"7whenc",styles:"display:flex;width:100%"},ZN=md("div",{target:"eakva831"})("background:",Vp.gray[900],";border-radius:",Bh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Bh.transitionDurationFast," ease;",Hp("transition")," z-index:1;outline:2px solid transparent;outline-offset:-3px;"),JN=md("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function QN(e){void 0===e&&(e={});var t=Zp(e),n=t.state,r=t.loop,o=void 0===r||r,i=m(t,["state","loop"]),a=(0,v.useState)(n),s=a[0],l=a[1],c=ym(p(p({},i),{},{loop:o}));return p(p({},c),{},{state:s,setState:l})}var eO=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],tO=[].concat(eO,["value","checked","unstable_checkOnFocus"]),nO=z({as:"div",useHook:B({name:"RadioGroup",compose:Tm,keys:eO,useProps:function(e,t){return p({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return R(e,t,n)}});var rO=(0,a.memo)((function({containerRef:e,containerWidth:t,isAdaptiveWidth:n,state:r}){const[o,i]=(0,a.useState)(0),[s,l]=(0,a.useState)(0),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const t=e?.current;if(!t)return;const n=t.querySelector(`[data-value="${r}"]`);if(f(!!n),!n)return;const o=window.setTimeout((()=>{const{width:e,x:r}=n.getBoundingClientRect(),{x:o}=t.getBoundingClientRect();i(r-o-1),l(e)}),100);let a;return c||(a=window.requestAnimationFrame((()=>{u(!0)}))),()=>{window.clearTimeout(o),window.cancelAnimationFrame(a)}}),[c,e,t,r,n]),d?(0,a.createElement)(ZN,{role:"presentation",style:{transform:`translateX(${o}px)`,transition:c?void 0:"none",width:s}}):null}));const oO=(0,a.createContext)({});var iO=oO;const aO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=QN({baseId:(0,u.useInstanceId)(aO,"toggle-group-control-as-radio-group").toString(),state:i}),m=(0,u.usePrevious)(i);return ac((()=>{m!==p.state&&r(p.state)}),[p.state]),ac((()=>{i!==p.state&&p.setState(i)}),[i]),(0,a.createElement)(iO.Provider,{value:{...p,isBlock:!t,size:o}},(0,a.createElement)(nO,{...p,"aria-label":n,as:gd,...s,ref:(0,u.useMergeRefs)([c,l])},d,(0,a.createElement)(rO,{state:p.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))}));const sO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=(0,u.useInstanceId)(sO,"toggle-group-control-as-button-group").toString(),[m,h]=(0,a.useState)(i),g={baseId:p,state:m,setState:h},v=(0,u.usePrevious)(i);return ac((()=>{v!==g.state&&r(g.state)}),[g.state]),ac((()=>{i!==g.state&&g.setState(i)}),[i]),(0,a.createElement)(iO.Provider,{value:{...g,isBlock:!t,isDeselectable:!0,size:o}},(0,a.createElement)(gd,{"aria-label":n,...s,ref:(0,u.useMergeRefs)([c,l]),role:"group"},d,(0,a.createElement)(rO,{state:g.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))})),lO=()=>{};const cO=ed((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d=lO,size:f="default",value:p,children:m,...h}=Qu(e,"ToggleGroupControl"),g=Ju(),v=(0,a.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>op("background:",Vp.ui.background,";border:1px solid transparent;border-radius:",Bh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",Bh.transitionDurationFastest," linear;",Hp("transition")," ",YN(n)," ",!t&&qN(e),";",""))({isBlock:i,isDeselectable:s,size:f}),i&&XN,r)),[r,g,i,s,f]),b=s?sO:aO;return(0,a.createElement)(Kv,{help:u,__nextHasNoMarginBottom:n},!c&&(0,a.createElement)(JN,null,(0,a.createElement)(Kv.VisualLabel,null,l)),(0,a.createElement)(b,{...h,children:m,className:v,isAdaptiveWidth:o,label:l,onChange:d,ref:t,size:f,value:p}))}),"ToggleGroupControl");var uO=cO;function dO(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function fO(e,t){var n=Ee(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var pO=B({name:"Radio",compose:Se,keys:tO,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=m(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return p(p({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=m(t,["ref","onChange","onClick"]),a=(0,v.useRef)(null),s=(0,v.useState)(!0),l=s[0],c=s[1],u=dO(e),d=G(e.currentId===e.id),f=G(r),h=G(o);!function(e){var t=(0,v.useState)((function(){return dO(e)}))[0],n=(0,v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,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]),b=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||l||fO(e.currentTarget,g)}),[g,l]);return(0,v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&fO(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),p({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:b},i)}}),mO=z({as:"input",memo:!0,useHook:pO});const hO=md("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),gO={name:"82a6rk",styles:"flex:1"},vO=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>op("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Bh.controlBorderRadius,";color:",Vp.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Bh.transitionDurationFast," linear,color ",Bh.transitionDurationFast," linear,font-weight 60ms linear;",Hp("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Bh.toggleGroupControlBackgroundColor,";}",e&&yO," ",t&&xO({size:r})," ",n&&bO,";",""),bO=op("color:",Vp.white,";&:active{background:transparent;}",""),yO=op("color:",Vp.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Vp.white,",0 0 0 ",Bh.borderWidthFocus," ",Vp.ui.theme,";outline:2px solid transparent;}",""),wO=md("div",{target:"et6ln9s0"})("display:flex;font-size:",Bh.fontSize,";line-height:1;"),xO=({size:e="default"})=>op("color:",Vp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),{ButtonContentView:EO,LabelView:_O}=n,CO=({showTooltip:e,text:t,children:n})=>e&&t?(0,a.createElement)(Jf,{text:t,position:"top center"},n):(0,a.createElement)(a.Fragment,null,n);const SO=ed((function e(t,n){const r=(0,a.useContext)(oO),o=Qu({...t,id:(0,u.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:l="default",...c}=r,{className:d,isIcon:f=!1,value:p,children:m,showTooltip:h=!1,...g}=o,v=c.state===p,b=Ju(),y=b(i&&gO),w=b(vO({isDeselectable:s,isIcon:f,isPressed:v,size:l}),d),x={...g,className:w,"data-value":p,ref:n};return(0,a.createElement)(_O,{className:y},(0,a.createElement)(CO,{showTooltip:h,text:g["aria-label"]},s?(0,a.createElement)("button",{...x,"aria-pressed":v,type:"button",onClick:()=>{s&&v?c.setState(void 0):c.setState(p)}},(0,a.createElement)(EO,null,m)):(0,a.createElement)(mO,{...x,...c,as:"button",value:p},(0,a.createElement)(EO,null,m))))}),"ToggleGroupControlOptionBase");var kO=SO;var TO=(0,a.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,a.createElement)(kO,{...r,"aria-label":o,ref:t},n)}));const RO=[(0,c.__)("S"),(0,c.__)("M"),(0,c.__)("L"),(0,c.__)("XL"),(0,c.__)("XXL")],PO=[(0,c.__)("Small"),(0,c.__)("Medium"),(0,c.__)("Large"),(0,c.__)("Extra Large"),(0,c.__)("Extra Extra Large")];var MO=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,a.createElement)(uO,{__nextHasNoMarginBottom:r,label:(0,c.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,a.createElement)(TO,{key:e.slug,value:e.size,label:RO[t],"aria-label":e.name||PO[t],showTooltip:!0}))))};const IO=(0,a.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u,value:d,withSlider:f=!1,withReset:p=!0}=e;n||Xl()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=M_({availableUnits:u||["px","em","rem"]}),h=o.length>5,g=o.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,a.useState)(!i&&v),w=(0,a.useMemo)((()=>{if(b)return(0,c.__)("Custom");if(!h)return g?g.name||PO[o.indexOf(g)]:"";const e=FN(o);return e?`(${e})`:""}),[b,h,g,o]);if(0===o.length&&i)return null;const x="string"==typeof d||"string"==typeof o[0]?.size,[E,_]=P_(d,m),C=!!_&&["em","rem"].includes(_);return(0,a.createElement)(BN,{ref:t,className:"components-font-size-picker"},(0,a.createElement)(vd,{as:"legend"},(0,c.__)("Font size")),(0,a.createElement)(hh,null,(0,a.createElement)(jN,{className:"components-font-size-picker__header"},(0,a.createElement)(HN,{"aria-label":`${(0,c.__)("Size")} ${w||""}`},(0,c.__)("Size"),w&&(0,a.createElement)($N,{className:"components-font-size-picker__header__hint"},w)),!i&&(0,a.createElement)(VN,{label:b?(0,c.__)("Use size preset"):(0,c.__)("Set custom size"),icon:zN,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,a.createElement)(WN,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&h&&!b&&(0,a.createElement)(KN,{fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,a.createElement)(MO,{fontSizes:o,value:d,__nextHasNoMarginBottom:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))}}),!i&&b&&(0,a.createElement)(Eh,{className:"components-font-size-picker__custom-size-control"},(0,a.createElement)(_h,{isBlock:!0},(0,a.createElement)(z_,{label:(0,c.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:x?e:parseInt(e,10))},size:l,units:x?m:[],min:0})),f&&(0,a.createElement)(_h,{isBlock:!0},(0,a.createElement)(hh,{marginX:2,marginBottom:0},(0,a.createElement)(sw,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:(0,c.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:x?e+(null!=_?_:"px"):e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,a.createElement)(_h,null,(0,a.createElement)(yd,{disabled:void 0===d,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==l?"small":"default"},(0,c.__)("Reset"))))))}));var NO=IO;var OO=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const l=(0,a.useRef)(null),c=()=>{l.current?.click()},u=i?i({openFileDialog:c}):(0,a.createElement)(wd,{onClick:c,...s},t);return(0,a.createElement)("div",{className:"components-form-file-upload"},u,(0,a.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))};const DO=()=>{};var AO=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=DO,...s}=e,c=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,a.createElement)("span",{className:c},(0,a.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...s}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"}))};const LO=()=>{};function zO({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:s=LO,onMouseEnter:d,onMouseLeave:f,messages:p,termPosition:m,termsCount:h}){const g=(0,u.useInstanceId)(zO),v=l()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),b=r(e),y=(0,c.sprintf)((0,c.__)("%1$s (%2$s of %3$s)"),b,m,h);return(0,a.createElement)("span",{className:v,onMouseEnter:d,onMouseLeave:f,title:n},(0,a.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,a.createElement)(vd,{as:"span"},y),(0,a.createElement)("span",{"aria-hidden":"true"},b)),(0,a.createElement)(wd,{className:"components-form-token-field__remove-token",icon:Gb,onClick:i?void 0:()=>s({value:e}),label:p.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const FO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&op("padding-top:",ih(t?1:.5),";padding-bottom:",ih(t?1:.5),";",""),BO=md(Eh,{target:"ehq8nmi0"})("padding:7px;",FO,";"),jO=e=>e;var VO=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:s=(0,c.__)("Add item"),className:d,suggestions:f=[],maxSuggestions:p=100,value:m=[],displayTransform:h=jO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:w=!1,disabled:x=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,c.__)("Item added."),removed:(0,c.__)("Item removed."),remove:(0,c.__)("Remove item"),__experimentalInvalid:(0,c.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:T=!0,__next40pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:M=!1}=HT(t,"wp.components.FormTokenField"),I=(0,u.useInstanceId)(e),[N,O]=(0,a.useState)(""),[D,A]=(0,a.useState)(0),[L,z]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[j,V]=(0,a.useState)(-1),[H,$]=(0,a.useState)(!1),W=(0,u.usePrevious)(f),U=(0,u.usePrevious)(m),G=(0,a.useRef)(null),K=(0,a.useRef)(null),q=(0,u.useDebounce)(Sb.speak,500);function Y(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(){fe()&&k(N)?z(!1):(O(""),A(0),z(!1),B(!1),V(-1),$(!1))}function J(e){e.target===K.current&&L&&e.preventDefault()}function Q(e){se(e.value),Y()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),b(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(m[e])}function re(){const e=ue();e!function(e){return m.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...m];e.splice(ue(),0,...t),v(e)}}function ae(e){k(e)?(ie([e]),(0,Sb.speak)(_.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&Y()):(0,Sb.speak)(_.__experimentalInvalid,"assertive")}function se(e){const t=m.filter((t=>le(t)!==le(e)));v(t),(0,Sb.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=N,t=f,n=m,r=p,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return m.length-D}function de(){return 0===N.length}function fe(){return g(N).length>0}function pe(e=!0){const t=N.trim().length>1,n=ce(N),r=n.length>0,o=X()&&S;if(B(o||t&&r),e&&(P&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,c.__)("No results.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,a.createElement)(_h,{key:"token-"+r},(0,a.createElement)(zO,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||w,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&x,messages:_,termsCount:s,termPosition:i}))}(0,a.useEffect)((()=>{L&&!X()&&Y()}),[L]),(0,a.useEffect)((()=>{const e=!Sf()(f,W||[]);(e||m!==U)&&pe(e)}),[f,W,m,U]),(0,a.useEffect)((()=>{pe()}),[N]),(0,a.useEffect)((()=>{pe()}),[P]),x&&L&&(z(!1),O(""));const he=l()(d,"components-form-token-field__input-container",{"is-active":L,"is-disabled":x});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return x||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,m.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(N,f,m,p,g).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(N,f,m,p,g).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(N),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),B(S||F)):z(!1),"function"==typeof y&&y(e)}})),(0,a.createElement)("div",{...ge},(0,a.createElement)(Hv,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},s),(0,a.createElement)("div",{ref:K,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,a.createElement)(BO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:R,hasTokens:!!m.length},function(){const e=m.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===m.length?i:"",key:"input",disabled:x,value:N,onBlur:Z,isExpanded:F,selectedSuggestionIndex:j};return(0,a.createElement)(LT,{...e,onChange:o&&m.length>=o?void 0:ee,ref:G})}()),e}()),F&&(0,a.createElement)(jT,{instanceId:I,match:g(N),displayTransform:h,suggestions:ve,selectedIndex:j,scrollIntoView:H,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})),!M&&(0,a.createElement)(hh,{marginBottom:2}),T&&(0,a.createElement)(Wv,{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M},E?(0,c.__)("Separate with commas, spaces, or the Enter key."):(0,c.__)("Separate with commas or the Enter key.")))};const HO=()=>(0,a.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:"4",cy:"4",r:"4"}));function $O({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,a.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,c.__)("Guide controls")},Array.from({length:t}).map(((r,o)=>(0,a.createElement)("li",{key:o,"aria-current":o===e?"step":void 0},(0,a.createElement)(wd,{key:o,icon:(0,a.createElement)(HO,null),"aria-label":(0,c.sprintf)((0,c.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)})))))}var WO=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,c.__)("Finish"),onFinish:o,pages:i=[]}){const s=(0,a.useRef)(null),[u,d]=(0,a.useState)(0);var f;(0,a.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,a.useEffect)((()=>{a.Children.count(e)&&Xl()("Passing children to ",{since:"5.5",alternative:"the `pages` prop"})}),[e]),a.Children.count(e)&&(i=null!==(f=a.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const p=u>0,m=u{p&&d(u-1)},g=()=>{m&&d(u+1)};return 0===i.length?null:(0,a.createElement)(QT,{className:l()("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,a.createElement)("div",{className:"components-guide__container"},(0,a.createElement)("div",{className:"components-guide__page"},i[u].image,i.length>1&&(0,a.createElement)($O,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content),(0,a.createElement)("div",{className:"components-guide__footer"},p&&(0,a.createElement)(wd,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,c.__)("Previous")),m&&(0,a.createElement)(wd,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,c.__)("Next")),!m&&(0,a.createElement)(wd,{className:"components-guide__finish-button",variant:"primary",onClick:o},r))))};function UO(e){return(0,a.useEffect)((()=>{Xl()("",{since:"5.5",alternative:"the `pages` prop in "})}),[]),(0,a.createElement)("div",{...e})}var GO=(0,a.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return Xl()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,a.createElement)(wd,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const KO=ed((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=Qu(e,"Item"),{spacedAround:l,size:c}=xk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Ju(),p=(0,a.useMemo)((()=>f("button"===d&&sk,yk[u]||yk.medium,ck,l&&pk,n)),[d,n,f,u,l]),m=f(lk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...s}}(e);return(0,a.createElement)("div",{role:n,className:r},(0,a.createElement)(gd,{...o,ref:t}))}),"Item");var qO=KO;var YO=ed((function(e,t){const n=Qu(e,"InputControlPrefixWrapper");return(0,a.createElement)(hh,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function XO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,u.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}var ZO=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,a.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,a.createElement)(XO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o})));return a.Children.count(e)?(0,a.createElement)("div",{ref:o},i,e):(0,a.createElement)(a.Fragment,null,i)};var JO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,u.useInstanceId)(e);if(!a.Children.count(n))return null;const c=`components-menu-group-label-${s}`,d=l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,a.createElement)("div",{className:d},o&&(0,a.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),(0,a.createElement)("div",{role:"group","aria-labelledby":o?c:void 0},n))};var QO=(0,a.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:c,isSelected:u,role:d="menuitem",suffix:f,...p}=e;return o=l()("components-menu-item__button",o),r&&(n=(0,a.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,a.createElement)("span",{className:"components-menu-item__item"},n),(0,a.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,a.cloneElement)(i,{className:l()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,a.createElement)(wd,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?i:void 0,className:o,...p},(0,a.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,a.createElement)(Gf,{className:"components-menu-item__shortcut",shortcut:c}),!f&&i&&"right"===s&&(0,a.createElement)(Ql,{icon:i}),f)}));const eD=()=>{};var tD=function({choices:e=[],onHover:t=eD,onSelect:n,value:r}){return(0,a.createElement)(a.Fragment,null,e.map((e=>{const o=r===e.value;return(0,a.createElement)(QO,{key:e.value,role:"menuitemradio",icon:o&&s_,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};var nD=(0,a.forwardRef)((function({eventToOffset:e,...t},n){return(0,a.createElement)(lT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})}));const rD="root",oD=100,iD=()=>{},aD=()=>{},sD=(0,a.createContext)({activeItem:void 0,activeMenu:rD,setActiveMenu:iD,navigationTree:{items:{},getItem:aD,addItem:iD,removeItem:iD,menus:{},getMenu:aD,addMenu:iD,removeMenu:iD,childMenu:{},traverseMenu:iD,isMenuEmpty:()=>!1}}),lD=()=>(0,a.useContext)(sD);var cD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const uD=(0,a.forwardRef)((function({__nextHasNoMarginBottom:e,className:t,onChange:n,onKeyDown:r,value:o,label:i,placeholder:s=(0,c.__)("Search"),hideLabelFromVision:d=!0,help:f,onClose:p,...m},h){const g=(0,a.useRef)(),v=`components-search-control-${(0,u.useInstanceId)(uD)}`;return(0,a.createElement)(Kv,{__nextHasNoMarginBottom:e,label:i,id:v,hideLabelFromVision:d,help:f,className:l()(t,"components-search-control")},(0,a.createElement)("div",{className:"components-search-control__input-wrapper"},(0,a.createElement)("input",{...m,ref:(0,u.useMergeRefs)([g,h]),className:"components-search-control__input",id:v,type:"search",placeholder:s,onChange:e=>n(e.target.value),onKeyDown:r,autoComplete:"off",value:o||""}),(0,a.createElement)("div",{className:"components-search-control__icon"},p?(0,a.createElement)(wd,{icon:Gb,label:(0,c.__)("Close search"),onClick:p}):o?(0,a.createElement)(wd,{icon:Gb,label:(0,c.__)("Reset search"),onClick:()=>{n(""),g.current?.focus()}}):(0,a.createElement)(Sy,{icon:cD}))))}));var dD=uD;const fD=md("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",ih(4),";overflow:hidden;"),pD=md("div",{target:"eeiismy10"})("margin-top:",ih(6),";margin-bottom:",ih(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ih(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ih(6),";}"),mD=md(wd,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),hD=md("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),gD=md("span",{target:"eeiismy7"})("height:",ih(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ih(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),vD=md(dD,{target:"eeiismy6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),bD=md(f_,{target:"eeiismy5"})("min-height:",ih(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ih(2),";padding:",(()=>(0,c.isRTL)()?`${ih(1)} ${ih(4)} ${ih(1)} ${ih(2)}`:`${ih(1)} ${ih(2)} ${ih(1)} ${ih(4)}`),";"),yD=md("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ih(2)," ",ih(4),";",fh({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Vp.ui.theme,";color:",Vp.white,";>button,>a{color:",Vp.white,";opacity:1;}}>svg path{color:",Vp.gray[600],";}"),wD=md("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ih(1.5)," ",ih(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),xD=md("span",{target:"eeiismy2"})("display:flex;margin-right:",ih(2),";"),ED=md("span",{target:"eeiismy1"})("margin-left:",(()=>(0,c.isRTL)()?"0":ih(2)),";margin-right:",(()=>(0,c.isRTL)()?ih(2):"0"),";display:inline-flex;padding:",ih(1)," ",ih(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Hp("animation"),";"),_D=md(ng,{target:"eeiismy0"})((()=>(0,c.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function CD(){const[e,t]=(0,a.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const SD=()=>{};var kD=function({activeItem:e,activeMenu:t=rD,children:n,className:r,onActivateMenu:o=SD}){const[i,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=CD(),{nodes:o,getNode:i,addNode:s,removeNode:l}=CD(),[c,u]=(0,a.useState)({}),d=e=>c[e]||[],f=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,c.isRTL)()?"right":"left",m=(e,t=p)=>{f.getMenu(e)&&(d(t),s(e),o(e))},h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,a.useEffect)((()=>{t!==i&&m(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:m,navigationTree:f},v=l()("components-navigation",r),b=jm({type:"slide-in",origin:u});return(0,a.createElement)(fD,{className:v},(0,a.createElement)("div",{key:i,className:b?l()({[b]:h.current&&u}):void 0},(0,a.createElement)(sD.Provider,{value:g},n)))};var TD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var RD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const PD=(0,a.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:s,navigationTree:u}=lD(),d=l()("components-navigation__back-button",t),f=void 0!==o?u.getMenu(o)?.title:void 0,p=(0,c.isRTL)()?TD:RD;return(0,a.createElement)(mD,{className:d,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,c.isRTL)()?"left":"right";o&&!e.defaultPrevented&&s(o,t)}},(0,a.createElement)(Sy,{icon:p}),e||f||(0,c.__)("Back"))}));var MD=PD;const ID=(0,a.createContext)({group:void 0});let ND=0;var OD=function({children:e,className:t,title:n}){const[r]=(0,a.useState)("group-"+ ++ND),{navigationTree:{items:o}}=lD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,a.createElement)(ID.Provider,{value:i},e);const s=`components-navigation__group-title-${r}`,c=l()("components-navigation__group",t);return(0,a.createElement)(ID.Provider,{value:i},(0,a.createElement)("li",{className:c},n&&(0,a.createElement)(bD,{className:"components-navigation__group-title",id:s,level:3},n),(0,a.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function DD(e){const{badge:t,title:n}=e;return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(_D,{className:"components-navigation__item-title",as:"span"},n),t&&(0,a.createElement)(ED,{className:"components-navigation__item-badge"},t))}const AD=(0,a.createContext)({menu:void 0,search:""}),LD=()=>(0,a.useContext)(AD),zD=e=>_b()(e).replace(/^\//,"").toLowerCase(),FD=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=lD(),{group:i}=(0,a.useContext)(ID),{menu:s,search:l}=LD();(0,a.useEffect)((()=>{const a=n===s,c=!l||void 0!==t.title&&((e,t)=>-1!==zD(e).indexOf(zD(t)))(t.title,l);return r(e,{...t,group:i,menu:s,_isVisible:a&&c}),()=>{o(e)}}),[n,l])};let BD=0;function jD(e){const{children:t,className:n,title:r,href:o,...i}=e,[s]=(0,a.useState)("item-"+ ++BD);FD(s,e);const{navigationTree:c}=lD();if(!c.getItem(s)?._isVisible)return null;const u=l()("components-navigation__item",n);return(0,a.createElement)(yD,{className:u,...i},t)}const VD=()=>{};var HD=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:s,onClick:u=VD,title:d,icon:f,hideIfTargetMenuEmpty:p,isText:m,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=lD();if(p&&s&&b(s))return null;const y=i&&g===i,w=l()(r,{"is-active":y}),x=(0,c.isRTL)()?RD:TD,E=n?e:{...e,onClick:void 0},_=m?h:{as:wd,href:o,onClick:e=>{s&&v(s),u(e)},"aria-current":y?"page":void 0,...h};return(0,a.createElement)(jD,{...E,className:w},n||(0,a.createElement)(wD,{..._},f&&(0,a.createElement)(xD,null,(0,a.createElement)(Sy,{icon:f})),(0,a.createElement)(DD,{title:d,badge:t}),s&&(0,a.createElement)(Sy,{icon:x})))};var $D=(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(e,{...t,speak:Sb.speak,debouncedSpeak:(0,u.useDebounce)(Sb.speak,500)})),"withSpokenMessages");var WD=$D((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=lD(),{menu:s}=LD(),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),oD);return()=>{clearTimeout(e)}}),[]),(0,a.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,c.sprintf)((0,c._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,c.sprintf)((0,c.__)("Search %s"),o?.toLowerCase()).trim();return(0,a.createElement)("div",{className:"components-navigation__menu-title-search"},(0,a.createElement)(vD,{autoComplete:"off",className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:f,onClose:u,ref:l,type:"search",value:r}))}));function UD({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,a.useState)(!1),{menu:l}=LD(),u=(0,a.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,f=(0,c.sprintf)((0,c.__)("Search in %s"),r);return(0,a.createElement)(hD,{className:"components-navigation__menu-title"},!i&&(0,a.createElement)(bD,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,a.createElement)("span",{id:d},r),(e||o)&&(0,a.createElement)(gD,null,o,e&&(0,a.createElement)(wd,{isSmall:!0,variant:"tertiary",label:f,onClick:()=>s(!0),ref:u},(0,a.createElement)(Sy,{icon:cD})))),i&&(0,a.createElement)("div",{className:jm({type:"slide-in",origin:"left"})},(0,a.createElement)(WD,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),oD)},onSearch:t,search:n,title:r})))}function GD({search:e}){const{navigationTree:{items:t}}=lD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,a.createElement)(yD,null,(0,a.createElement)(wD,null,(0,c.__)("No results found.")," "))}var KD=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=rD,onBackButtonClick:s,onSearch:c,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,a.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=lD(),r=e.menu||rD;(0,a.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=lD(),b={menu:i,search:h};if(v!==i)return(0,a.createElement)(AD.Provider,{value:b},n);const y=!!c,w=y?d:h,x=y?c:g,E=`components-navigation__menu-title-${i}`,_=l()("components-navigation__menu",r);return(0,a.createElement)(AD.Provider,{value:b},(0,a.createElement)(pD,{className:_},(u||s)&&(0,a.createElement)(MD,{backButtonLabel:t,parentMenu:u,onClick:s}),p&&(0,a.createElement)(UD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,a.createElement)(uT,null,(0,a.createElement)("ul",{"aria-labelledby":E},n,w&&!f&&(0,a.createElement)(GD,{search:w})))))};const qD=(0,a.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function YD(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(ZD(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,JD(n))}(YD(e,n),t,n)}function eA(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return eA(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),JD(n))}(e,t,n):QD(e,t,n)}function tA(e,t){return XD(t,{decode:decodeURIComponent})(e)}function nA(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var rA={name:"15bx5k",styles:"overflow-x:hidden"};const oA=ed((function(e,t){const{initialPath:n,children:r,className:o,...i}=Qu(e,"NavigatorProvider"),[s,l]=(0,a.useState)([{path:n}]),c=(0,a.useRef)([]),[u,d]=(0,a.useReducer)(nA,[]),f=(0,a.useRef)([]);(0,a.useEffect)((()=>{f.current=u}),[u]),(0,a.useEffect)((()=>{c.current=s}),[s]);const p=(0,a.useRef)(),m=(0,a.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(p.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=tA(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return p.current&&t&&Sf()(t.params,p.current.params)&&t.id===p.current.id?p.current:t})(e);return p.current=t,t}),[u,s]),h=(0,a.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,a.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,a.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,a.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,a.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==tA(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),w=(0,a.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:m?m.params:{},match:m?m.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,m,b,v,y,h,g]),x=Ju(),E=(0,a.useMemo)((()=>x(rA,o)),[o,x]);return(0,a.createElement)(gd,{ref:t,className:E,...i},(0,a.createElement)(qD.Provider,{value:w},r))}),"NavigatorProvider");var iA=oA,aA=window.wp.escapeHtml;var sA={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const lA=ed((function(e,t){const n=(0,a.useId)(),{children:r,className:o,path:i,...s}=Qu(e,"NavigatorScreen"),l=(0,u.useReducedMotion)(),{location:d,match:f,addScreen:p,removeScreen:m}=(0,a.useContext)(qD),h=f===n,g=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e={id:n,path:(0,aA.escapeAttribute)(i)};return p(e),()=>m(e)}),[n,i,p,m]);const v=Ju(),b=(0,a.useMemo)((()=>v(sA,o)),[o,v]),y=(0,a.useRef)(d);(0,a.useEffect)((()=>{y.current=d}),[d]);const w=d.isInitial&&!d.isBack;(0,a.useEffect)((()=>{if(w||!h||!g.current||y.current.hasRestoredFocus||d.skipFocus)return;const e=g.current.ownerDocument.activeElement;if(g.current.contains(e))return;let t=null;if(d.isBack&&d?.focusTargetSelector&&(t=g.current.querySelector(d.focusTargetSelector)),!t){const e=Zl.focus.tabbable.find(g.current)[0];t=null!=e?e:g.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,d.isBack,d.focusTargetSelector,d.skipFocus]);const x=(0,u.useMergeRefs)([t,g]);if(!h)return null;if(l)return(0,a.createElement)(gd,{ref:x,className:b,...s},r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},_=!(d.isInitial&&!d.isBack)&&{opacity:0,x:(0,c.isRTL)()&&d.isBack||!(0,c.isRTL)()&&!d.isBack?50:-50},C={animate:E,exit:{delay:0,opacity:0,x:!(0,c.isRTL)()&&d.isBack||(0,c.isRTL)()&&!d.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:_};return(0,a.createElement)(Kl.div,{ref:x,className:b,...s,...C},r)}),"NavigatorScreen");var cA=lA;var uA=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,a.useContext)(qD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const dA=(e,t)=>`[${e}="${t}"]`;var fA=ed((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=wd,attributeName:o="id",...i}=Qu(e,"NavigatorButton"),s=(0,aA.escapeAttribute)(t),{goTo:l}=uA();return{as:r,onClick:(0,a.useCallback)((e=>{e.preventDefault(),l(s,{focusTargetSelector:dA(o,s)}),n?.(e)}),[l,n,o,s]),...i,[o]:s}}(e);return(0,a.createElement)(gd,{ref:t,...n})}),"NavigatorButton");function pA(e){const{onClick:t,as:n=wd,goToParent:r=!1,...o}=Qu(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=uA();return{as:n,onClick:(0,a.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}var mA=ed((function(e,t){const n=pA(e);return(0,a.createElement)(gd,{ref:t,...n})}),"NavigatorBackButton");var hA=ed((function(e,t){const n=pA({...e,goToParent:!0});return(0,a.createElement)(gd,{ref:t,...n})}),"NavigatorToParentButton");const gA=()=>{};function vA(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var bA=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=gA,isDismissible:i=!0,actions:s=[],politeness:u=vA(t),__unstableHTML:d,onDismiss:f=gA}){!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,Sb.speak)(n,t)}),[n,t])}(r,u);const p=l()(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,a.createElement)(a.RawHTML,null,n)),(0,a.createElement)("div",{className:p},(0,a.createElement)("div",{className:"components-notice__content"},n,(0,a.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},c)=>{let u=r;return"primary"===r||o||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,a.createElement)(wd,{key:c,href:s,variant:u,onClick:s?void 0:i,className:l()("components-notice__action",e)},t)})))),i&&(0,a.createElement)(wd,{className:"components-notice__dismiss",icon:ql,label:(0,c.__)("Dismiss this notice"),onClick:e=>{e?.preventDefault?.(),f(),o()},showTooltip:!1}))};const yA=()=>{};var wA=function({notices:e,onRemove:t=yA,className:n,children:r}){const o=e=>()=>t(e);return n=l()("components-notice-list",n),(0,a.createElement)("div",{className:n},r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,a.createElement)(bA,{...n,key:e.id,onRemove:o(e.id)},e.content)})))};var xA=function({label:e,children:t}){return(0,a.createElement)("div",{className:"components-panel__header"},e&&(0,a.createElement)("h2",null,e),t)};var EA=(0,a.forwardRef)((function({header:e,className:t,children:n},r){const o=l()(t,"components-panel");return(0,a.createElement)("div",{className:o,ref:r},e&&(0,a.createElement)(xA,{label:e}),n)}));var _A=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const CA=()=>{};const SA=(0,a.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,a.createElement)("h2",{className:"components-panel__body-title"},(0,a.createElement)(wd,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,a.createElement)("span",{"aria-hidden":"true"},(0,a.createElement)(Ql,{className:"components-panel__arrow",icon:e?_A:ky})),n,t&&(0,a.createElement)(Ql,{icon:t,className:"components-panel__icon",size:20}))):null)),kA=(0,a.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:c=CA,opened:d,title:f,scrollAfterOpen:p=!0}=e,[m,h]=Ny(d,{initial:void 0===s||s,fallback:!1}),g=(0,a.useRef)(null),v=(0,u.useReducedMotion)()?"auto":"smooth",b=(0,a.useRef)();b.current=p,ac((()=>{m&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[m,v]);const y=l()("components-panel__body",o,{"is-opened":m});return(0,a.createElement)("div",{className:y,ref:(0,u.useMergeRefs)([g,t])},(0,a.createElement)(SA,{icon:i,isOpened:Boolean(m),onClick:e=>{e.preventDefault();const t=!m;h(t),c(t)},title:f,...n}),"function"==typeof r?r({opened:Boolean(m)}):m&&r)}));var TA=kA;var RA=(0,a.forwardRef)((function({className:e,children:t},n){return(0,a.createElement)("div",{className:l()("components-panel__row",e),ref:n},t)}));const PA=(0,a.createElement)(r.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,a.createElement)(r.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var MA=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:s,preview:c,isColumnLayout:d,withIllustration:f,...p}=e,[m,{width:h}]=(0,u.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=l()("components-placeholder",i,g,f?"has-illustration":null),b=l()("components-placeholder__fieldset",{"is-column-layout":d});return(0,a.createElement)("div",{...p,className:v},f?PA:null,m,s,c&&(0,a.createElement)("div",{className:"components-placeholder__preview"},c),(0,a.createElement)("div",{className:"components-placeholder__label"},(0,a.createElement)(Ql,{icon:t}),r),(0,a.createElement)("fieldset",{className:b},!!o&&(0,a.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};const IA=e=>e.every((e=>null!==e.parent));function NA(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!IA(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var OA=window.wp.htmlEntities;function DA(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,OA.decodeEntities)(e.name)},...DA(e.children||[],t+1)]))}var AA=function({label:e,noOptionLabel:t,onChange:n,selectedId:r,tree:o=[],...i}){const s=(0,a.useMemo)((()=>[t&&{value:"",label:t},...DA(o)].filter((e=>!!e))),[t,o]);return(0,a.createElement)(Py,{label:e,options:s,onChange:n,value:r,...i})};function LA({label:e,noOptionLabel:t,authorList:n,selectedAuthorId:r,onChange:o}){if(!n)return null;const i=NA(n);return(0,a.createElement)(AA,{label:e,noOptionLabel:t,onChange:o,tree:i,selectedId:void 0!==r?String(r):void 0,__nextHasNoMarginBottom:!0})}function zA({label:e,noOptionLabel:t,categoriesList:n,selectedCategoryId:r,onChange:o,...i}){const s=(0,a.useMemo)((()=>NA(n)),[n]);return(0,a.createElement)(AA,{label:e,noOptionLabel:t,onChange:o,tree:s,selectedId:void 0!==r?String(r):void 0,...i,__nextHasNoMarginBottom:!0})}function FA(e){return"categoriesList"in e}function BA(e){return"categorySuggestions"in e}var jA=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:f,...p}){return(0,a.createElement)(u_,{spacing:"4",className:"components-query-controls"},[d&&f&&(0,a.createElement)(My,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,c.__)("Order by"),value:`${o}/${r}`,options:[{label:(0,c.__)("Newest to oldest"),value:"date/desc"},{label:(0,c.__)("Oldest to newest"),value:"date/asc"},{label:(0,c.__)("A → Z"),value:"title/asc"},{label:(0,c.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&d(n),t!==o&&f(t)}}),FA(p)&&p.categoriesList&&p.onCategoryChange&&(0,a.createElement)(zA,{key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,c.__)("Category"),noOptionLabel:(0,c.__)("All"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),BA(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,a.createElement)(VO,{__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,c.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),l&&(0,a.createElement)(LA,{key:"query-controls-author-select",authorList:e,label:(0,c.__)("Author"),noOptionLabel:(0,c.__)("All"),selectedAuthorId:t,onChange:l}),u&&(0,a.createElement)(sw,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,c.__)("Number of items"),value:n,onChange:u,min:s,max:i,required:!0})])};var VA=(0,a.createContext)({state:null,setState:()=>{}});var HA=(0,a.forwardRef)((function({children:e,value:t,...n},r){const o=(0,a.useContext)(VA),i=o.state===t;return(0,a.createElement)(mO,{ref:r,as:wd,variant:i?"primary":"secondary",value:t,...o,...n},e||t)}));var $A=(0,a.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,...i},s){const l=QN({state:n,baseId:i.id}),c={...l,disabled:r,state:null!=t?t:l.state,setState:null!=o?o:l.setState};return(0,a.createElement)(VA.Provider,{value:c},(0,a.createElement)(nO,{ref:s,as:ZC,"aria-label":e,...l,...i}))}));var WA=function e(t){const{label:n,className:r,selected:o,help:i,onChange:s,hideLabelFromVision:c,options:d=[],...f}=t,p=`inspector-radio-control-${(0,u.useInstanceId)(e)}`,m=e=>s(e.target.value);return d?.length?(0,a.createElement)(Kv,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:l()(r,"components-radio-control")},(0,a.createElement)(u_,{spacing:1},d.map(((e,t)=>(0,a.createElement)("div",{key:`${p}-${t}`,className:"components-radio-control__option"},(0,a.createElement)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:m,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...f}),(0,a.createElement)("label",{htmlFor:`${p}-${t}`},e.label)))))):null},UA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GA=function(){return GA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{},fL={bottom:"bottom",corner:"corner"};function pL({axis:e,fadeTimeout:t=180,onResize:n=dL,position:r=fL.bottom,showPx:o=!1}){const[i,s]=(0,u.useResizeObserver)(),l=!!e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),{width:m,height:h}=s,g=(0,a.useRef)(h),v=(0,a.useRef)(m),b=(0,a.useRef)(),y=(0,a.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{l||(d(!1),p(!1))}),t)}),[t,l]);(0,a.useEffect)((()=>{if(!(null!==m||null!==h))return;const e=m!==v.current,t=h!==g.current;if(e||t){if(m&&!v.current&&h&&!g.current)return v.current=m,void(g.current=h);e&&(d(!0),v.current=m),t&&(p(!0),g.current=h),n({width:m,height:h}),y()}}),[m,h,n,y]);const w=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=fL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===fL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:h,moveX:c,moveY:f,position:r,showPx:o,width:m});return{label:w,resizeListener:i}}const mL=md("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),hL=md("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),gL=md("div",{target:"e1wq7y4k1"})("background:",Vp.gray[900],";border-radius:2px;box-sizing:border-box;font-family:",zv("default.fontFamily"),";font-size:12px;color:",Vp.ui.textDark,";padding:4px 8px;position:relative;"),vL=md(ng,{target:"e1wq7y4k0"})("&&&{color:",Vp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const bL=(0,a.forwardRef)((function({label:e,position:t=fL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===fL.bottom,l=t===fL.corner;if(!i)return null;let u={opacity:i?1:void 0,zIndex:n},d={};return s&&(u={...u,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(u={...u,position:"absolute",top:4,right:(0,c.isRTL)()?void 0:4,left:(0,c.isRTL)()?4:void 0}),(0,a.createElement)(hL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:u,...r},(0,a.createElement)(gL,{className:"components-resizable-tooltip__tooltip",style:d},(0,a.createElement)(vL,{as:"span"},e)))}));var yL=bL;const wL=()=>{};const xL=(0,a.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=wL,position:s=fL.bottom,showPx:c=!0,zIndex:u=1e3,...d},f){const{label:p,resizeListener:m}=pL({axis:e,fadeTimeout:n,onResize:i,showPx:c,position:s});if(!r)return null;const h=l()("components-resize-tooltip",t);return(0,a.createElement)(mL,{"aria-hidden":"true",className:h,ref:f,...d},m,(0,a.createElement)(yL,{"aria-hidden":d["aria-hidden"],label:p,position:s,ref:o,zIndex:u}))}));var EL=xL;const _L="components-resizable-box__handle",CL="components-resizable-box__side-handle",SL="components-resizable-box__corner-handle",kL={top:l()(_L,CL,"components-resizable-box__handle-top"),right:l()(_L,CL,"components-resizable-box__handle-right"),bottom:l()(_L,CL,"components-resizable-box__handle-bottom"),left:l()(_L,CL,"components-resizable-box__handle-left"),topLeft:l()(_L,SL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(_L,SL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(_L,SL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(_L,SL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},TL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},RL={top:TL,right:TL,bottom:TL,left:TL,topLeft:TL,topRight:TL,bottomRight:TL,bottomLeft:TL};var PL=(0,a.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},s){return(0,a.createElement)(uL,{className:l()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:kL,handleStyles:RL,ref:s,...i},t,r&&(0,a.createElement)(EL,{...o}))}));var ML=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==a.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,a.createElement)(o,{className:"components-responsive-wrapper"},(0,a.createElement)("div",null,(0,a.cloneElement)(n,{className:l()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})))};const IL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vmin|vmax|vh|vw)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};var NL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i}){const s=(0,a.useRef)(),[l,c]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);function p(i=!1){if(!function(){try{return!!s.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:l,ownerDocument:c}=s.current;if(!i&&null!==l?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,a.createElement)("html",{lang:c.documentElement.lang,className:n},(0,a.createElement)("head",null,(0,a.createElement)("title",null,t),(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,a.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,a.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,a.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${IL.toString()})();`}}),o.map((e=>(0,a.createElement)("script",{key:e,src:e})))));l.open(),l.write(""+(0,a.renderToString)(u)),l.close()}return(0,a.useEffect)((()=>{function e(){p(!1)}function t(e){const t=s.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(c(n.width),f(n.height))}p();const n=s.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.addEventListener("message",t)}}),[]),(0,a.useEffect)((()=>{p()}),[t,r,o]),(0,a.useEffect)((()=>{p(!0)}),[e,n]),(0,a.createElement)("iframe",{ref:(0,u.useMergeRefs)([s,(0,u.useFocusableIframe)()]),title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})};const OL=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:s=null,explicitDismiss:u=!1,onDismiss:d,listRef:f},p){function m(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,Sb.speak)(n,t)}),[n,t])}(n,r),(0,a.useEffect)((()=>{const e=setTimeout((()=>{u||(d?.(),i?.())}),1e4);return()=>clearTimeout(e)}),[d,i,u]);const h=l()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&("undefined"!=typeof process&&process.env,o=[o[0]]);const g=l()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,a.createElement)("div",{ref:p,className:h,onClick:u?void 0:m,tabIndex:0,role:u?"":"button",onKeyPress:u?void 0:m,"aria-label":u?"":(0,c.__)("Dismiss this notice")},(0,a.createElement)("div",{className:g},s&&(0,a.createElement)("div",{className:"components-snackbar__icon"},s),t,o.map((({label:e,onClick:t,url:n},r)=>(0,a.createElement)(wd,{key:r,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),u&&(0,a.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m},"✕")))}));var DL=OL;const AL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var LL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,a.useRef)(null),i=(0,u.useReducedMotion)();t=l()("components-snackbar-list",t);const s=e=>()=>r?.(e.id);return(0,a.createElement)("div",{className:t,tabIndex:-1,ref:o},n,(0,a.createElement)(qm,null,e.map((e=>{const{content:t,...n}=e;return(0,a.createElement)(Kl.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?void 0:AL},(0,a.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,a.createElement)(DL,{...n,onRemove:s(e),listRef:o},e.content)))}))))};const zL=ip` +function Zl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jl(e){var t,n;return!1!==Zl(e)&&(void 0===(t=e.constructor)||!1!==Zl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var Ql=function(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const ec=(0,a.createContext)({}),tc=()=>(0,a.useContext)(ec);const nc=(0,a.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=tc(),n=(0,a.useRef)(e);return Ql((()=>{Xl()(n.current,e)&&n.current!==e&&"undefined"!=typeof process&&process.env}),[e]),(0,a.useMemo)((()=>ql()(null!=t?t:{},null!=e?e:{},{isMergeableObject:Jl})),[t,e])}({value:t});return(0,a.createElement)(ec.Provider,{value:n},e)})),rc="data-wp-component",oc="data-wp-c16t",ic="__contextSystemKey__";var ac=function(){return ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?Cc(Dc,--Nc):0,Mc--,10===Oc&&(Mc=1,Pc--),Oc}function Fc(){return Oc=Nc2||Hc(Oc)>3?"":" "}function Kc(e,t){for(;--t&&Fc()&&!(Oc<48||Oc>102||Oc>57&&Oc<65||Oc>70&&Oc<97););return Vc(e,jc()+(t<6&&32==Bc()&&32==Fc()))}function qc(e){for(;Fc();)switch(Oc){case e:return Nc;case 34:case 39:34!==e&&39!==e&&qc(Oc);break;case 40:41===e&&qc(e);break;case 92:Fc()}return Nc}function Yc(e,t){for(;Fc()&&e+Oc!==57&&(e+Oc!==84||47!==Bc()););return"/*"+Vc(t,Nc-1)+"*"+yc(47===e?e:Fc())}function Xc(e){for(;!Hc(Bc());)Fc();return Vc(e,Nc)}var Zc="-ms-",Jc="-moz-",Qc="-webkit-",eu="comm",tu="rule",nu="decl",ru="@keyframes";function ou(e,t){for(var n="",r=Tc(e),o=0;o0&&kc(_)-d&&Rc(p>32?uu(_+";",r,n,d-1):uu(Ec(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Rc(E=lu(_,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)su(_,t,E,E,w,i,d,s,x);else switch(99===f&&110===Cc(_,3)?100:f){case 100:case 108:case 109:case 115:su(e,E,E,r&&Rc(lu(e,E,E,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:su(_,E,E,E,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=_="",d=a;break;case 58:d=1+kc(_),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==zc())continue;switch(_+=yc(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(kc(_)-1)*v,v=1;break;case 64:45===Bc()&&(_+=Uc(Fc())),f=Bc(),u=d=kc(y=_+=Xc(jc())),b++;break;case 45:45===m&&2==kc(_)&&(h=0)}}return i}function lu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Tc(f),m=0,h=0,g=0;m0?f[v]+" "+b:Ec(b,/&\f/g,f[v])))&&(l[g++]=y);return Ac(e,t,n,0===o?tu:s,l,c,u)}function cu(e,t,n){return Ac(e,t,n,eu,yc(Oc),Sc(e,2,-2),0)}function uu(e,t,n,r){return Ac(e,t,n,nu,Sc(e,0,r),Sc(e,r+1,-1),r)}var du=function(e,t,n){for(var r=0,o=0;r=o,o=Bc(),38===r&&12===o&&(t[n]=1),!Hc(o);)Fc();return Vc(e,Nc)},fu=function(e,t){return Wc(function(e,t){var n=-1,r=44;do{switch(Hc(r)){case 0:38===r&&12===Bc()&&(t[n]=1),e[n]+=du(Nc-1,t,n);break;case 2:e[n]+=Uc(r);break;case 4:if(44===r){e[++n]=58===Bc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yc(r)}}while(r=Fc());return e}($c(e),t))},pu=new WeakMap,mu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pu.get(n))&&!r){pu.set(e,!0);for(var o=[],i=fu(t,o),a=n.props,s=0,l=0;s6)switch(Cc(e,t+1)){case 109:if(45!==Cc(e,t+4))break;case 102:return Ec(e,/(.+:)(.+)-([^]+)/,"$1"+Qc+"$2-$3$1"+Jc+(108==Cc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_c(e,"stretch")?gu(Ec(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Cc(e,t+1))break;case 6444:switch(Cc(e,kc(e)-3-(~_c(e,"!important")&&10))){case 107:return Ec(e,":",":"+Qc)+e;case 101:return Ec(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qc+(45===Cc(e,14)?"inline-":"")+"box$3$1"+Qc+"$2$3$1"+Zc+"$2box$3")+e}break;case 5936:switch(Cc(e,t+11)){case 114:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qc+e+Zc+e+e}return e}var vu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nu:e.return=gu(e.value,e.length);break;case ru:return ou([Lc(e,{value:Ec(e.value,"@","@"+Qc)})],r);case tu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ou([Lc(e,{props:[Ec(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ou([Lc(e,{props:[Ec(t,/:(plac\w+)/,":"+Qc+"input-$1")]}),Lc(e,{props:[Ec(t,/:(plac\w+)/,":-moz-$1")]}),Lc(e,{props:[Ec(t,/:(plac\w+)/,Zc+"input-$1")]})],r)}return""}))}}],bu=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||vu;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=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)}(o)+l;return{name:c,styles:o,next:Ru}},Iu=!!v.useInsertionEffect&&v.useInsertionEffect,Nu=Iu||function(e){return e()},Ou=(Iu||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?bu({key:"css"}):null));var Du=Ou.Provider,Au=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(Ou);return e(t,r,n)}))};var Lu=v.createContext({});function zu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Fu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Bu=function(e,t,n){Fu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function ju(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Vu(e,t,n){var r=[],o=zu(e,r,n);return r.length<2?n:o+t(r)}var Hu=function e(t){for(var n="",r=0;r{const e=(0,v.useContext)(Ou),t=(0,a.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Wu(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Bu(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Gu(e,t){const n=tc();void 0===t&&"undefined"!=typeof process&&process.env;const r=n?.[t]||{},o={[oc]:!0,...(i=t,{[rc]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Uu()(gc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function Ku(e,t){return Yu(e,t,{forwardsRef:!0})}function qu(e,t){return Yu(e,t)}function Yu(e,t,n){const r=n?.forwardsRef?(0,a.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r[ic]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[ic]:[...new Set(o)],displayName:t,selector:`.${gc(t)}`})}function Xu(e){if(!e)return[];let t=[];return e[ic]&&(t=e[ic]),e.type&&e.type[ic]&&(t=e.type[ic]),t}function Zu(e,t){return!!e&&("string"==typeof t?Xu(e).includes(t):!!Array.isArray(t)&&t.some((t=>Xu(e).includes(t))))}const Ju={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t96?nd:rd},id=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ad=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Fu(t,n,r),Nu((function(){return Bu(t,n,r)})),null},sd=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=id(t,n,i),l=s||od(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p{e&&(e.stopPropagation(),e.preventDefault())}}const A=!I&&(m&&v||g||!!v&&!b?.length&&!1!==m),L=_?R:void 0,z=T["aria-describedby"]||L,F={className:M,"aria-label":T["aria-label"]||v,"aria-describedby":z,ref:t},B=(0,a.createElement)(a.Fragment,null,d&&"left"===f&&(0,a.createElement)(Gl,{icon:d,size:p}),w&&(0,a.createElement)(a.Fragment,null,w),d&&"right"===f&&(0,a.createElement)(Gl,{icon:d,size:p}),b),j="a"===N?(0,a.createElement)("a",{...D,...T,...F},B):(0,a.createElement)("button",{...O,...T,...F},B);return A?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Uf,{text:b?.length&&_?_:v,shortcut:g,position:h},j),_&&(0,a.createElement)(ud,null,(0,a.createElement)("span",{id:L},_))):(0,a.createElement)(a.Fragment,null,j,_&&(0,a.createElement)(ud,null,(0,a.createElement)("span",{id:L},_)))}));var pd=fd;let md=0;function hd(e){const t=document.scrollingElement||document.body;e&&(md=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=md)}let gd=0;var vd=function(){return(0,a.useEffect)((()=>(0===gd&&hd(!0),++gd,()=>{1===gd&&hd(!1),--gd})),[]),null};const bd=Symbol(),yd=Symbol(),wd=Symbol();let xd=(e,t)=>new Proxy(e,t);const Ed=Object.getPrototypeOf,_d=new WeakMap,Cd=e=>e&&(_d.has(e)?_d.get(e):Ed(e)===Object.prototype||Ed(e)===Array.prototype),Sd=e=>"object"==typeof e&&null!==e,kd=new WeakMap,Td=e=>e[wd]||e,Rd=(e,t,n)=>{if(!Cd(e))return e;const r=Td(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(bd)||r.add(t)}},i={get:(t,r)=>r===wd?e:(o(r),Rd(t[r],n.a,n.c)),has:(t,i)=>i===yd?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(bd),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=xd(o?(e=>{let t=kd.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(Ed(e),n)}kd.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Pd=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},Md=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Sd(e)||!Sd(t))return!0;const o=n.get(Td(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===bd?Pd(e,t):Md(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Id=(e,t=!0)=>{_d.set(e,t)};var Nd=o(635);const Od=e=>"object"==typeof e&&null!==e,Dd=new WeakSet,Ad=Symbol("VERSION"),Ld=Symbol("LISTENERS"),zd=Symbol("SNAPSHOT"),Fd=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>Od(e)&&!Dd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Id(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Dd.has(i))Id(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Ld])?s[e]=i[zd]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!Od(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===Ad?u:t===Ld?d:t===zd?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Ld];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Ld];let p;return d&&d.delete(h(i)),Od(a)&&(a=(e=>Cd(e)&&e[wd]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Ld])?(p=a,p[Ld].add(m(i))):n(a)?(p=jd(a),p[Ld].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,Dd,Ad,Ld,zd,e,t,n,r,o,i,a,s,l],[Bd]=Fd();function jd(e={}){return Bd(e)}function Vd(e,t,n){let r;(null==e?void 0:e[Ld])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Ld].add(i),()=>{e[Ld].delete(i)}}function Hd(e){return(null==e?void 0:e[zd])||console.warn("Please use proxy object"),e[zd]}function $d(e){return Dd.add(e),e}const{useSyncExternalStore:Wd}=Nd,Ud=(e,t)=>{const n=(0,v.useRef)();(0,v.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;Sd(e)&&r.add(e);const a=Sd(e)&&t.get(Td(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,v.useDebugValue)(n.current)};function Gd(e,t){const n=null==t?void 0:t.sync,r=(0,v.useRef)(),o=(0,v.useRef)();let i=!0;const a=Wd((0,v.useCallback)((t=>{const r=Vd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Hd(e);try{if(!i&&r.current&&o.current&&!Md(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Hd(e)));i=!1;const s=new WeakMap;(0,v.useEffect)((()=>{r.current=a,o.current=s})),Ud(a,s);const l=(0,v.useMemo)((()=>new WeakMap),[]);return Rd(a,s,l)}Symbol();function Kd(e){const t=jd({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var qd=(0,a.createContext)({slots:Kd(),fills:Kd(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Yd(e){const t=(0,a.useContext)(qd);return{...Gd(t.slots,{sync:!0}).get(e),...(0,a.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}var Xd=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var Zd=e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(Xd);return(0,a.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function Jd({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,a.useContext)(Xd),o=Zd(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Qd(e){return"function"==typeof e}class ef extends a.Component{constructor(){super(...arguments),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=Qd(e.children)?e.children(r):e.children;return a.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((e=>!(0,a.isEmptyElement)(e)));return(0,a.createElement)(a.Fragment,null,Qd(t)?t(i):i)}}var tf,nf=e=>(0,a.createElement)(Xd.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,a.createElement)(ef,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),rf=new Uint8Array(16);function of(){if(!tf&&!(tf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tf(rf)}var af=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var sf=function(e){return"string"==typeof e&&af.test(e)},lf=[],cf=0;cf<256;++cf)lf.push((cf+256).toString(16).substr(1));var uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(lf[e[t+0]]+lf[e[t+1]]+lf[e[t+2]]+lf[e[t+3]]+"-"+lf[e[t+4]]+lf[e[t+5]]+"-"+lf[e[t+6]]+lf[e[t+7]]+"-"+lf[e[t+8]]+lf[e[t+9]]+"-"+lf[e[t+10]]+lf[e[t+11]]+lf[e[t+12]]+lf[e[t+13]]+lf[e[t+14]]+lf[e[t+15]]).toLowerCase();if(!sf(n))throw TypeError("Stringified UUID is invalid");return n};var df=function(e,t,n){var r=(e=e||{}).random||(e.rng||of)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return uf(r)};const ff=new Set,pf=hc((e=>{let t=df().replace(/[0-9]/g,"");for(;ff.has(t);)t=df().replace(/[0-9]/g,"");return ff.add(t),bu({container:e,key:t})}));var mf=function(e){const{children:t,document:n}=e;if(!n)return null;const r=pf(n.head);return(0,a.createElement)(Du,{value:r},t)};function hf({name:e,children:t}){const{registerFill:n,unregisterFill:r,...o}=Yd(e),i=function(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),s=(0,a.useRef)({rerender:i});if((0,a.useEffect)((()=>(n(s),()=>{r(s)})),[n,r]),!o.ref||!o.ref.current)return null;"function"==typeof t&&(t=t(o.fillProps));const l=(0,a.createElement)(mf,{document:o.ref.current.ownerDocument},t);return(0,a.createPortal)(l,o.ref.current)}var gf=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...r},o){const{registerSlot:i,unregisterSlot:s,...l}=(0,a.useContext)(qd),c=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(i(e,c,t),()=>{s(e,c)})),[i,s,e]),(0,a.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,a.createElement)(n,{ref:(0,u.useMergeRefs)([o,c]),...r})})),vf=window.wp.isShallowEqual,bf=o.n(vf);function yf(){const e=Kd(),t=Kd();return{slots:e,fills:t,registerSlot:function(t,n,r){const o=e.get(t)||{};e.set(t,$d({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))},updateSlot:function(n,r){const o=e.get(n);if(!o)return;if(bf()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:function(t,n){e.get(t)?.ref===n&&e.delete(t)},registerFill:function(e,n){t.set(e,$d([...t.get(e)||[],n]))},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,$d(r.filter((e=>e!==n))))}}}function wf({children:e}){const[t]=(0,a.useState)(yf);return(0,a.createElement)(qd.Provider,{value:t},e)}class xf extends a.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n;this.fills[e]=null!==(n=this.fills[e]?.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,a.createElement)(Xd.Provider,{value:this.contextValue},this.props.children)}}function Ef(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Jd,{...e}),(0,a.createElement)(hf,{...e}))}const _f=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(gf,{...t,ref:n}):(0,a.createElement)(nf,{...t})));function Cf({children:e,...t}){return(0,a.createElement)(xf,{...t},(0,a.createElement)(wf,null,e))}function Sf(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.createElement)(Ef,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,a.createElement)(_f,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const kf={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Tf=e=>{var t;return null!==(t=kf[e])&&void 0!==t?t:"bottom"},Rf={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},Pf=e=>{const t=e?.defaultView?.frameElement;if(!t)return;const n=t.getBoundingClientRect();return{x:n.left,y:n.top}},Mf=e=>null===e||Number.isNaN(e)?void 0:Math.round(e);function If(e){return e.split("-")[0]}const Nf=(e={})=>({options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=function(e){return["top","bottom"].includes(If(e))?"x":"y"}(o),f="x"===d?"y":"x";let p=u[d],m=u[f];const h="function"==typeof s?s(t):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h},v={x:0,y:0,...a.frameOffset?.amount};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis+v[d],n=i.reference[d]+i.reference[e]-g.mainAxis+v[d];pn&&(p=n)}if(c){var b,y;const e="y"===d?"width":"height",t=["top","left"].includes(If(o)),n=i.reference[f]-i.floating[e]+(t&&null!==(b=a.offset?.[f])&&void 0!==b?b:0)+(t?0:g.crossAxis)+v[f],r=i.reference[f]+i.reference[e]+(t?0:null!==(y=a.offset?.[f])&&void 0!==y?y:0)-(t?g.crossAxis:0)+v[f];mr&&(m=r)}return{[d]:p,[f]:m}}});const Of="Popover",Df=()=>(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,a.createElement)(r.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,a.createElement)(r.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),Af=(0,a.forwardRef)((({style:e,placement:t,shouldAnimate:n=!1,...r},o)=>{const i=function(){!Dt.current&&At();const[e]=(0,v.useState)(Ot.current);return e}(),{style:s,...l}=(0,a.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Rf[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(t)),[t]),c=n&&!i?{style:{...s,...e},...l}:{animate:!1,style:e};return(0,a.createElement)(jl.div,{...c,...r,ref:o})})),Lf=(0,a.createContext)(void 0),zf=(0,a.forwardRef)(((e,t)=>{var n,r;const{animate:o=!0,headerTitle:i,onClose:s,children:c,className:d,noArrow:f=!0,position:p,placement:m="bottom-start",offset:h=0,focusOnMount:g="firstElement",anchor:v,expandOnMobile:b,onFocusOutside:y,__unstableSlotName:w=Of,flip:x=!0,resize:E=!0,shift:_=!1,variant:C,__unstableForcePosition:S,anchorRef:k,anchorRect:T,getAnchorRect:R,isAlternate:P,...M}=e;let I=x,N=E;void 0!==S&&($l()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!S,N=!S),void 0!==k&&$l()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&$l()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==R&&$l()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const O=P?"toolbar":C;void 0!==P&&$l()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),[z,F]=(0,a.useState)(),B=(0,a.useCallback)((e=>{L(e)}),[]),j=(0,u.useViewportMatch)("medium","<"),V=b&&j,H=!V&&!f,$=p?Tf(p):m,W=(0,a.useRef)(Pf(z)),U=[..."overlay"===m?[{name:"overlay",fn({rects:e}){return e.reference}},Ye({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],{name:"frameOffset",fn({x:e,y:t}){return W.current?{x:e+W.current.x,y:t+W.current.y,data:{amount:W.current}}:{x:e,y:t}}},Ge(h),I?Ue():void 0,N?Ye({apply(e){var t;const{firstElementChild:n}=null!==(t=te.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,_?qe({crossAxis:!0,limiter:Nf(),padding:1}):void 0,It({element:D})].filter((e=>void 0!==e)),G=(0,a.useContext)(Lf)||w,K=Yd(G);let q;(s||y)&&(q=(e,t)=>{"focus-outside"===e&&y?y(t):s&&s()});const[Y,X]=(0,u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:q,onClose:q}),{x:Z,y:J,reference:Q,floating:ee,refs:te,strategy:ne,update:re,placement:oe,middlewareData:{arrow:ie}}=Mt({placement:"overlay"===$?void 0:$,middleware:U,whileElementsMounted:(e,t,n)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...nt(e)?xt(e):[],...xt(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),nt(e)&&!s&&f.observe(e),f.observe(t)}let p=s?dt(e):null;return s&&function t(){const r=dt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}(e,t,n,{animationFrame:!0})}),ae=(0,a.useCallback)((e=>{D.current=e,re()}),[re]),se=k?.top,le=k?.bottom,ce=k?.startContainer,ue=k?.current;(0,a.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,fallbackDocument:i})=>{var a;let s;return e?s=e.ownerDocument:t?.top?s=t?.top.ownerDocument:t?.startContainer?s=t.startContainer.ownerDocument:t?.current?s=t.current.ownerDocument:t?s=t.ownerDocument:n&&n?.ownerDocument?s=n.ownerDocument:r&&(s=r(o)?.ownerDocument),null!==(a=s)&&void 0!==a?a:i})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,fallbackDocument:document}),t=(e=>{const t=e?.defaultView?.frameElement;if(!t)return{x:1,y:1};const n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth,y:n.height/t.offsetHeight}})(e),n=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,scale:i})=>{var a;let s=null;if(e?s=e:t?.top?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:t?.current?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(s=o.parentElement),s&&(1!==i.x||1!==i.y)){const e=s.getBoundingClientRect();s={getBoundingClientRect(){return new window.DOMRect(e.x*i.x,e.y*i.y,e.width*i.x,e.height*i.y)}}}return null!==(a=s)&&void 0!==a?a:null})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,scale:t});Q(n),F(e)}),[v,k,se,le,ce,ue,T,R,A,Q]),(0,a.useLayoutEffect)((()=>{if(z===document||z===te.floating.current?.ownerDocument||!z?.defaultView?.frameElement)return void(W.current=void 0);const{defaultView:e}=z,{frameElement:t}=e,n=t?(0,Wl.getScrollContainer)(t):null,r=()=>{W.current=Pf(z),re()};return e.addEventListener("resize",r),n?.addEventListener("scroll",r),r(),()=>{e.removeEventListener("resize",r),n?.removeEventListener("scroll",r)}}),[z,re,te.floating]);const de=(0,u.useMergeRefs)([ee,Y,t]);let fe=(0,a.createElement)(Af,{shouldAnimate:o&&!V,placement:oe,className:l()("components-popover",d,{"is-expanded":V,"is-positioned":null!==Z&&null!==J,[`is-${"toolbar"===O?"alternate":O}`]:O}),...M,ref:de,...X,tabIndex:-1,style:V?void 0:{position:ne,top:0,left:0,x:Mf(Z),y:Mf(J)}},V&&(0,a.createElement)(vd,null),V&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},i),(0,a.createElement)(pd,{className:"components-popover__close",icon:Vl,onClick:s})),(0,a.createElement)("div",{className:"components-popover__content"},c),H&&(0,a.createElement)("div",{ref:ae,className:["components-popover__arrow",`is-${oe.split("-")[0]}`].join(" "),style:{left:void 0!==ie?.x&&Number.isFinite(ie.x)?`${ie.x+(null!==(n=W.current?.x)&&void 0!==n?n:0)}px`:"",top:void 0!==ie?.y&&Number.isFinite(ie.y)?`${ie.y+(null!==(r=W.current?.y)&&void 0!==r?r:0)}px`:""}},(0,a.createElement)(Df,null)));return K.ref&&(fe=(0,a.createElement)(Ef,{name:G},fe)),k||T||v?fe:(0,a.createElement)("span",{ref:B},fe)}));zf.Slot=(0,a.forwardRef)((function({name:e=Of},t){return(0,a.createElement)(_f,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),zf.__unstableSlotNameProvider=Lf.Provider;var Ff=zf;var Bf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,a.createElement)("span",{className:n,"aria-label":o},r)};const jf=700,Vf=(0,a.createElement)("div",{className:"event-catcher"}),Hf=({eventHandlers:e,child:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(Vf,e),(0,a.cloneElement)(t,{children:n,ref:r})),{...e}),$f=({child:e,eventHandlers:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)(e,{...t,children:n,ref:r}),Wf=(e,t,n)=>{if(1!==a.Children.count(e))return;const r=a.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Uf=function(e){const{children:t,position:n="bottom middle",text:r,shortcut:o,delay:i=jf,...s}=e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m=(0,u.useDebounce)(p,i),[h,g]=(0,a.useState)(null),v=a.Children.toArray(t)[0]?.ref,b=(0,u.useMergeRefs)([g,v]),y=e=>{"OPTION"!==e.target.tagName&&(Wf(t,"onMouseDown",e),document.addEventListener("mouseup",E),d(!0))},w=e=>{"OPTION"!==e.target.tagName&&(Wf(t,"onMouseUp",e),document.removeEventListener("mouseup",E),d(!1))},x=e=>"mouseUp"===e?w:"mouseDown"===e?y:void 0,E=x("mouseUp"),_=(e,n)=>r=>{if(Wf(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&c)return;m.cancel();const o=["focus","mouseenter"].includes(r.type);o!==f&&(n?m(o):p(o))},C=()=>{m.cancel(),document.removeEventListener("mouseup",E)};if((0,a.useEffect)((()=>C),[]),1!==a.Children.count(t))return t;const S={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:x("mouseDown")},k=a.Children.only(t),{children:T,disabled:R}=k.props,P=R?Hf:$f,M=(({anchor:e,grandchildren:t,isOver:n,offset:r,position:o,shortcut:i,text:s,className:c,...u})=>(0,a.concatChildren)(t,n&&(0,a.createElement)(Ff,{focusOnMount:!1,position:o,className:l()("components-tooltip",c),"aria-hidden":"true",animate:!1,offset:r,anchor:e,shift:!0,...u},s,(0,a.createElement)(Bf,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:T,...{anchor:h,isOver:f,offset:4,position:n,shortcut:o,text:r},...s});return P({child:k,eventHandlers:S,childrenWithPopover:M,mergedRefs:b})};const Gf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Kf={"top left":(0,c.__)("Top Left"),"top center":(0,c.__)("Top Center"),"top right":(0,c.__)("Top Right"),"center left":(0,c.__)("Center Left"),"center center":(0,c.__)("Center"),center:(0,c.__)("Center"),"center right":(0,c.__)("Center Right"),"bottom left":(0,c.__)("Bottom Left"),"bottom center":(0,c.__)("Bottom Center"),"bottom right":(0,c.__)("Bottom Right")},qf=Gf.flat();function Yf(e){return("center"===e?"center center":e).replace("-"," ")}function Xf(e,t){return`${e}-${Yf(t).replace(" ","-")}`}o(1281);function Zf(){for(var e=arguments.length,t=new Array(e),n=0;n0:"number"==typeof e},tp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},np=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rp=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},op=function(e){return{r:np(e.r,0,255),g:np(e.g,0,255),b:np(e.b,0,255),a:np(e.a)}},ip=function(e){return{r:tp(e.r),g:tp(e.g),b:tp(e.b),a:tp(e.a,3)}},ap=/^#([0-9a-f]{3,8})$/i,sp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},lp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},cp=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},up=function(e){return{h:rp(e.h),s:np(e.s,0,100),l:np(e.l,0,100),a:np(e.a)}},dp=function(e){return{h:tp(e.h),s:tp(e.s),l:tp(e.l),a:tp(e.a,3)}},fp=function(e){return cp((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},pp=function(e){return{h:(t=lp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},mp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bp={string:[[function(e){var t=ap.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?tp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?tp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=gp.exec(e)||vp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:op({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=mp.exec(e)||hp.exec(e);if(!t)return null;var n,r,o=up({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Qf[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return fp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ep(t)&&ep(n)&&ep(r)?op({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ep(t)||!ep(n)||!ep(r))return null;var a=up({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return fp(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ep(t)||!ep(n)||!ep(r))return null;var a=function(e){return{h:rp(e.h),s:np(e.s,0,100),v:np(e.v,0,100),a:np(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return cp(a)},"hsv"]]},yp=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=ip(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?sp(tp(255*o)):"","#"+sp(t)+sp(n)+sp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return ip(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ip(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return dp(pp(this.rgba))},e.prototype.toHslString=function(){return t=(e=dp(pp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=lp(this.rgba),{h:tp(e.h),s:tp(e.s),v:tp(e.v),a:tp(e.a,3)};var e},e.prototype.invert=function(){return Sp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Sp(xp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Sp(xp(this.rgba,-e))},e.prototype.grayscale=function(){return Sp(xp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Sp(_p(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Sp(_p(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Sp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):tp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=pp(this.rgba);return"number"==typeof e?Sp({h:e,s:t.s,l:t.l,a:t.a}):tp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Sp(e).toHex()},e}(),Sp=function(e){return e instanceof Cp?e:new Cp(e)},kp=[],Tp=function(e){e.forEach((function(e){kp.indexOf(e)<0&&(e(Cp,bp),kp.push(e))}))};function Rp(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));pLp,Fp=sd("div",{target:"ecapk1j3"})(zp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>Zf("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Bp=sd("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),jp=e=>Zf("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Ap("transition")," ",(({isActive:e})=>Zf("box-shadow:",e?`0 0 0 2px ${Dp.gray[900]}`:null,";color:",e?Dp.gray[900]:Dp.gray[400],";*:hover>&{color:",e?Dp.gray[900]:Dp.ui.theme,";}",""))(e),";",""),Vp=sd("span",{target:"ecapk1j1"})("height:6px;width:6px;",jp,";"),Hp=sd("span",{target:"ecapk1j0"})({name:"rjf3ub",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 $p({isActive:e=!1,value:t,...n}){const r=Kf[t];return(0,a.createElement)(Uf,{text:r},(0,a.createElement)(ke,{as:Hp,role:"gridcell",...n},(0,a.createElement)(ud,null,t),(0,a.createElement)(Vp,{isActive:e,role:"presentation"})))}function Wp(e){return(0,v.useState)(e)[0]}function Up(e){for(var t,n=[[]],r=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])},o=g(e);!(t=o()).done;)r();return n}function Gp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Kp(e){return e.slice().reverse()}function qp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function Yp(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function Xp(e){void 0===e&&(e={});var t=Wp(e).baseId,n=(0,v.useContext)(we),r=(0,v.useRef)(0),o=(0,v.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function Zp(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Jp(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Zp(t.ref.current,e.ref.current)}))}function Qp(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function em(e){for(var t=Up(e),n=Qp(t),r=[],o=0;oi&&(n=!0),-1):(rZf({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>Zf({pointerEvents:e?"none":void 0},"","")),";"),km=sd("span",{target:"erowt50"})("height:2px;width:2px;",jp,";",(({isActive:e})=>Zf("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),Tm=Hp;var Rm=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const s=function(e="center"){const t=Yf(e),n=qf.indexOf(t);return n>-1?n:void 0}(o),c=(n/24).toFixed(2),u=l()("component-alignment-matrix-control-icon",e),d={...r,transform:`scale(${c})`};return(0,a.createElement)(Sm,{...i,className:u,disablePointerEvents:t,role:"presentation",style:d},qf.map(((e,t)=>{const n=s===t;return(0,a.createElement)(Tm,{key:e},(0,a.createElement)(km,{isActive:n}))})))};const Pm=()=>{};function Mm({className:e,id:t,label:n=(0,c.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i=Pm,width:s=92,...d}){const[f]=(0,a.useState)(null!=o?o:r),p=function(e){const t=(0,u.useInstanceId)(Mm,"alignment-matrix-control");return e||t}(t),m=Xf(p,f),h=fm({baseId:p,currentId:m,rtl:(0,c.isRTL)()}),{setCurrentId:g}=h;(0,a.useEffect)((()=>{void 0!==o&&g(Xf(p,o))}),[o,g,p]);const v=l()("component-alignment-matrix-control",e);return(0,a.createElement)(xm,{...d,...h,"aria-label":n,as:Fp,className:v,role:"grid",size:s},Gf.map(((e,t)=>(0,a.createElement)(Cm,{...h,as:Bp,role:"row",key:t},e.map((e=>{const t=Xf(p,e),n=h.currentId===t;return(0,a.createElement)($p,{...h,id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1})}))))))}Mm.Icon=Rm;var Im=Mm;function Nm(e){return"appear"===e?"top":"left"}function Om(e){if("loading"===e.type)return l()("components-animate__loading");const{type:t,origin:n=Nm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return l()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?l()("components-animate__slide-in","is-from-"+n):void 0}var Dm=function({type:e,options:t={},children:n}){return n({className:Om({type:e,...t})})};function Am(){const e=(0,v.useRef)(!1);return Bt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class Lm extends v.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zm({children:e,isPresent:t}){const n=(0,v.useId)(),r=(0,v.useRef)(null),o=(0,v.useRef)({width:0,height:0,top:0,left:0});return(0,v.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),v.createElement(Lm,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const Fm=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Jt(Bm),l=(0,v.useId)(),c=(0,v.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,v.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),v.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=v.createElement(zm,{isPresent:n},e)),v.createElement(Ft.Provider,{value:c},e)};function Bm(){return new Map}const jm=e=>e.key||"";const Vm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{no(!o,"Replace exitBeforeEnter with mode='wait'");let[s]=function(){const e=Am(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,v.useCallback)((()=>Ar.postRender(r)),[r]),t]}();const l=(0,v.useContext)(tn).forceRender;l&&(s=l);const c=Am(),u=function(e){const t=[];return v.Children.forEach(e,(e=>{(0,v.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,v.useRef)(d),m=(0,v.useRef)(new Map).current,h=(0,v.useRef)(!0);var g;if(Bt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=jm(e);t.set(n,e)}))}(u,m),p.current=d})),g=()=>{h.current=!0,m.clear(),f.clear()},(0,v.useEffect)((()=>()=>g()),[]),h.current)return v.createElement(v.Fragment,null,d.map((e=>v.createElement(Fm,{key:jm(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const b=p.current.map(jm),y=u.map(jm),w=b.length;for(let e=0;e{if(-1!==y.indexOf(e))return;const n=m.get(e);if(!n)return;const o=b.indexOf(e);d.splice(o,0,v.createElement(Fm,{key:jm(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:v.createElement(Fm,{key:jm(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),v.createElement(v.Fragment,null,f.size?d:d.map((e=>(0,v.cloneElement)(e))))},Hm=(0,a.createContext)({flexItemDisplay:void 0}),$m=()=>(0,a.useContext)(Hm);const Wm={name:"zjik7",styles:"display:flex"},Um={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Gm={name:"82a6rk",styles:"flex:1"},Km={name:"13nosa1",styles:">*{min-height:0;}"},qm={name:"1pwxzk4",styles:">*{min-width:0;}"};function Ym(e){const{className:t,display:n,isBlock:r=!1,...o}=Gu(e,"FlexItem"),i={},a=$m().flexItemDisplay;i.Base=Zf({display:n||a},"","");return{...o,className:Uu()(Um,i.Base,r&&Gm,t)}}var Xm=Ku((function(e,t){const n=function(e){return Ym({isBlock:!0,...Gu(e,"FlexBlock")})}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"FlexBlock");const Zm="4px";function Jm(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${Zm} * ${e})`}const Qm=new RegExp(/-left/g),eh=new RegExp(/-right/g),th=new RegExp(/Left/g),nh=new RegExp(/Right/g);function rh(e){return"left"===e?"right":"right"===e?"left":Qm.test(e)?e.replace(Qm,"-right"):eh.test(e)?e.replace(eh,"-left"):th.test(e)?e.replace(th,"Right"):nh.test(e)?e.replace(nh,"Left"):e}const oh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[rh(e),t])));function ih(e={},t){return()=>t?(0,c.isRTL)()?Zf(t,""):Zf(e,""):(0,c.isRTL)()?Zf(oh(e),""):Zf(e,"")}ih.watch=()=>(0,c.isRTL)();const ah=e=>null!=e;const sh=Ku((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...g}=Gu(e,"Spacer");return{...g,className:Uu()(ah(n)&&Zf("margin:",Jm(n),";",""),ah(l)&&Zf("margin-bottom:",Jm(l),";margin-top:",Jm(l),";",""),ah(s)&&Zf("margin-left:",Jm(s),";margin-right:",Jm(s),";",""),ah(a)&&Zf("margin-top:",Jm(a),";",""),ah(r)&&Zf("margin-bottom:",Jm(r),";",""),ah(o)&&ih({marginLeft:Jm(o)})(),ah(i)&&ih({marginRight:Jm(i)})(),ah(c)&&Zf("padding:",Jm(c),";",""),ah(h)&&Zf("padding-bottom:",Jm(h),";padding-top:",Jm(h),";",""),ah(m)&&Zf("padding-left:",Jm(m),";padding-right:",Jm(m),";",""),ah(p)&&Zf("padding-top:",Jm(p),";",""),ah(u)&&Zf("padding-bottom:",Jm(u),";",""),ah(d)&&ih({paddingLeft:Jm(d)})(),ah(f)&&ih({paddingRight:Jm(f)})(),t)}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Spacer");var lh=sh;var ch=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var uh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));const dh=["40em","52em","64em"],fh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>dh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${dh.length} breakpoints, got index ${t}`);const[n,r]=(0,a.useState)(t);return(0,a.useEffect)((()=>{const e=()=>{const e=dh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function ph(e,t={}){const n=fh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function mh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:l=!1,...c}=Gu(function(e){const{isReversed:t,...n}=e;return void 0!==t?($l()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=ph(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Uu();return{...c,className:(0,a.useMemo)((()=>{const e=Zf({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:l?"wrap":void 0,gap:Jm(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Wm,e,d?Km:qm,n)}),[t,n,f,u,o,i,d,s,l]),isColumn:d}}var hh=Ku((function(e,t){const{children:n,isColumn:r,...o}=mh(e);return(0,a.createElement)(Hm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,a.createElement)(cd,{...o,ref:t},n))}),"Flex");var gh=Ku((function(e,t){const n=Ym(e);return(0,a.createElement)(cd,{...n,ref:t})}),"FlexItem");const vh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function bh(e){return null!=e}const yh=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,wh="…",xh={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Eh={ellipsis:wh,ellipsizeMode:xh.auto,limit:0,numberOfLines:0};function _h(e="",t){const n={...Eh,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===xh.none)return e;let a,s;switch(o){case xh.head:a=0,s=i;break;case xh.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==xh.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=bh(r)?r:wh;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function Ch(e){const{className:t,children:n,ellipsis:r=wh,ellipsizeMode:o=xh.auto,limit:i=0,numberOfLines:s=0,...l}=Gu(e,"Truncate"),c=Uu(),u=_h("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}),d=o===xh.auto;return{...l,className:(0,a.useMemo)((()=>c(d&&!s&&vh,d&&!!s&&Zf("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}let Sh;Tp([Rp]);const kh=hc((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Sp(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Sh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Sh=e}return Sh}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Th(e){const t=function(e){const t=kh(e);return Sp(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Rh="36px",Ph="12px",Mh={controlSurfaceColor:Dp.white,controlTextActiveColor:Dp.ui.theme,controlPaddingX:Ph,controlPaddingXLarge:`calc(${Ph} * 1.3334)`,controlPaddingXSmall:`calc(${Ph} / 1.3334)`,controlBackgroundColor:Dp.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Dp.ui.theme}`,controlDestructiveBorderColor:Dp.alert.red,controlHeight:Rh,controlHeightXSmall:`calc( ${Rh} * 0.6 )`,controlHeightSmall:`calc( ${Rh} * 0.8 )`,controlHeightLarge:`calc( ${Rh} * 1.2 )`,controlHeightXLarge:`calc( ${Rh} * 1.4 )`},Ih={toggleGroupControlBackgroundColor:Mh.controlBackgroundColor,toggleGroupControlBorderColor:Dp.ui.border,toggleGroupControlBackdropBackgroundColor:Mh.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Dp.ui.border,toggleGroupControlButtonColorActive:Mh.controlBackgroundColor};var Nh=Object.assign({},Mh,Ih,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Jm(2)}`,cardPaddingSmall:`${Jm(4)}`,cardPaddingMedium:`${Jm(4)} ${Jm(6)}`,cardPaddingLarge:`${Jm(6)} ${Jm(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Dp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Dp.white,surfaceColor:Dp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Oh=Zf("color:",Dp.gray[900],";line-height:",Nh.fontLineHeightBase,";margin:0;",""),Dh={name:"4zleql",styles:"display:block"},Ah=Zf("color:",Dp.alert.green,";",""),Lh=Zf("color:",Dp.alert.red,";",""),zh=Zf("color:",Dp.gray[700],";",""),Fh=Zf("mark{background:",Dp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Bh={name:"50zrmy",styles:"text-transform:uppercase"};var jh=o(3138);const Vh=hc((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Hh=13,$h={body:Hh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Wh=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Uh(e=Hh){if(e in $h)return Uh($h[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Hh})`} * ${Nh.fontSize})`}function Gh(e=3){if(!Wh.includes(e))return Uh(e);return Nh[`fontSizeH${e}`]}var Kh={name:"50zrmy",styles:"text-transform:uppercase"};function qh(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:E,weight:_=Nh.fontWeight,...C}=Gu(t,"Text");let S=o;const k=Array.isArray(p),T="caption"===y;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const h=i,g=(0,jh.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:f,textToHighlight:h}),v=u;let b,y=-1,w="";const x=g.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;y++,r="object"==typeof l?o?l[s]:(l=Vh(l))[s.toLowerCase()]:l;const u=y===+t;w=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:s,className:w,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=y),(0,a.createElement)(v,d)}return(0,a.createElement)("span",{children:s,className:p,key:i,style:m})}));return x}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const R=Uu();let P;!0===w&&(P="auto"),!1===w&&(P="none");const M=Ch({...C,className:(0,a.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Nh.controlHeight} + ${Jm(2)})`;switch(e){case"large":n=`calc(${Nh.controlHeightLarge} + ${Jm(2)})`;break;case"small":n=`calc(${Nh.controlHeightSmall} + ${Jm(2)})`;break;case"xSmall":n=`calc(${Nh.controlHeightXSmall} + ${Jm(2)})`}return n}(n,v);if(t.Base=Zf({color:s,display:u,fontSize:Uh(y),fontWeight:_,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=Kh,t.optimalTextColor=null,b){const e="dark"===Th(b);t.optimalTextColor=Zf(e?{color:Dp.gray[900]}:{color:Dp.white},"","")}return R(Oh,t.Base,t.optimalTextColor,c&&Lh,!!k&&Fh,h&&Dh,T&&zh,E&&e[E],x&&t.upperCase,i)}),[n,r,i,s,R,u,h,T,c,k,g,v,b,y,x,E,_]),children:o,ellipsizeMode:l||P});return!w&&Array.isArray(o)&&(S=a.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return Zu(e,["Link"])?(0,a.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:S}}var Yh=Ku((function(e,t){const n=qh(e);return(0,a.createElement)(cd,{as:"span",...n,ref:t})}),"Text");const Xh={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var Zh={name:"1739oy8",styles:"z-index:1"};const Jh=({isFocused:e})=>e?Zh:"",Qh=sd(hh,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",Jh,";");var eg={name:"1d3w5wq",styles:"width:100%"};const tg=sd("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>Zf({backgroundColor:e?Dp.ui.backgroundDisabled:Dp.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Zf("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):eg),";"),ng=({inputSize:e,__next36pxDefaultSize:t})=>{const n={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:Jm(4),paddingRight:Jm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Jm(2),paddingRight:Jm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Jm(4),paddingRight:Jm(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:Jm(2),paddingRight:Jm(2)}),n[e]||n.default},rg=sd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Dp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Zf("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Zf("&:active{cursor:",t,";}","")),Zf(n," ",r,";","")})," ",(({disabled:e})=>e?Zf({color:Dp.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?Zf("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>Zf(ng(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>Zf({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),og=sd(Yh,{target:"em5sgkm4"})("&&&{",Xh,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),ig=e=>(0,a.createElement)(og,{...e,as:"label"}),ag=sd(gh,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),sg=sd("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?Dp.ui.borderFocus:Dp.ui.border;return t&&(n=`0 0 0 1px ${Dp.ui.borderFocus} inset`,r="2px solid transparent",o="-2px"),e&&(i=Dp.ui.borderDisabled),Zf({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",ih({paddingLeft:2}),";}"),lg=sd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),cg=sd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const ug=(0,a.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,a.createElement)(sg,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var dg=ug;function fg({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,a.createElement)(ud,{as:"label",htmlFor:n},e):(0,a.createElement)(ag,null,(0,a.createElement)(ig,{htmlFor:n,...r},e)):null}function pg(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function mg({__next36pxDefaultSize:e,__unstableInputWidth:t,children:n,className:r,disabled:o=!1,hideLabelFromVision:i=!1,labelPosition:s,id:l,isFocused:c=!1,label:d,prefix:f,size:p="default",suffix:m,...h},g){const v=function(e){const t=(0,u.useInstanceId)(mg);return e||`input-base-control-${t}`}(l),b=i||!d,{paddingLeft:y,paddingRight:w}=ng({inputSize:p,__next36pxDefaultSize:e}),x=(0,a.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:y},InputControlSuffixWrapper:{paddingRight:w}})),[y,w]);return(0,a.createElement)(Qh,{...h,...pg(s),className:r,gap:2,isFocused:c,labelPosition:s,ref:g},(0,a.createElement)(fg,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:s,htmlFor:v},d),(0,a.createElement)(tg,{__unstableInputWidth:t,className:"components-input-control__container",disabled:o,hideLabel:b,labelPosition:s},(0,a.createElement)(nc,{value:x},f&&(0,a.createElement)(lg,{className:"components-input-control__prefix"},f),n,m&&(0,a.createElement)(cg,{className:"components-input-control__suffix"},m)),(0,a.createElement)(dg,{disabled:o,isFocused:c})))}var hg=(0,a.forwardRef)(mg);const gg={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function vg(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function bg(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+vg(e-n,n-t,r)+n:e}function yg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function wg(e,t,n){return(t=yg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xg(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 Eg(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Og(e){const t=Ig(e);return Pg(e)?t.identifier:t.pointerId}function Dg(e){const t=Ig(e);return[t.clientX,t.clientY]}function Ag(e,...t){return"function"==typeof e?e(...t):e}function Lg(){}function zg(...e){return 0===e.length?Lg:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Fg(e,t){return Object.assign({},t,e||{})}class Bg{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Ag(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);gg.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Ag(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[mv?1:0,hy?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[bg(t,i,a,r),bg(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=gg.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=gg.sub(t.offset,f);const e=t.delta.map(Math.abs);gg.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Eg(Eg(Eg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class jg extends Bg{constructor(...e){super(...e),wg(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=gg.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=gg.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Mg(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Vg=e=>e,Hg={enabled(e=!0){return e},eventOptions(e,t,n){return Eg(Eg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return gg.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?gg.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Vg},threshold(e){return gg.toVector(e,0)}};const $g=Eg(Eg({},Hg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>$g.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Wg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Ug="undefined"!=typeof window&&window.document&&window.document.createElement;function Gg(){return Ug&&"ontouchstart"in window||Ug&&window.navigator.maxTouchPoints>1}const Kg={isBrowser:Ug,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Gg(),touchscreen:Gg(),pointer:Ug&&"onpointerdown"in window,pointerLock:Ug&&"exitPointerLock"in window.document},qg={mouse:0,touch:0,pen:8},Yg=Eg(Eg({},$g),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Kg.pointerLock,Kg.touch&&n?"touch":this.pointerLock?"mouse":Kg.pointer&&!o?"pointer":Kg.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Kg.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=gg.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(gg.toVector(e)),distance:this.transform(gg.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Eg(Eg({},qg),e):qg},keyboardDisplacement(e=10){return e}});Eg(Eg({},Hg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Kg.touch&&Kg.gesture)return"gesture";if(Kg.touch&&r)return"touch";if(Kg.touchscreen){if(Kg.pointer)return"pointer";if(Kg.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Fg(Ag(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Fg(Ag(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return gg.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Eg(Eg({},$g),{},{mouseOnly:(e=!0)=>e});const Xg=Eg(Eg({},$g),{},{mouseOnly:(e=!0)=>e}),Zg=new Map,Jg=new Map;function Qg(e){Zg.set(e.key,e.engine),Jg.set(e.key,e.resolver)}const ev={key:"drag",engine:class extends jg{constructor(...e){super(...e),wg(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=$g.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Og(e),n._pointerActive=!0,this.computeValues(Dg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Mg(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Og(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Dg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=gg.sub(o,t._values),this.computeValues(o)),gg.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Og(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTimea&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Wg[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,gg.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Wg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:Yg},tv={key:"hover",engine:class extends jg{constructor(...e){super(...e),wg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Dg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Dg(e);t._movement=t._delta=gg.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:Xg};function nv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const rv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(Kg.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},ov=["target","eventOptions","window","enabled","transform"];function iv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=iv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class av{constructor(e,t){wg(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=_g[e];return e+(n&&n[t]||t)}(t,n),s=Eg(Eg({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class sv{constructor(){wg(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class lv{constructor(e){wg(this,"gestures",new Set),wg(this,"_targetEventStore",new av(this)),wg(this,"gestureEventStores",{}),wg(this,"gestureTimeoutStores",{}),wg(this,"handlers",{}),wg(this,"config",{}),wg(this,"pointerIds",new Set),wg(this,"touchIds",new Set),wg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&cv(e,"drag");t.wheel&&cv(e,"wheel");t.scroll&&cv(e,"scroll");t.move&&cv(e,"move");t.pinch&&cv(e,"pinch");t.hover&&cv(e,"hover")}(this,e)}setEventIds(e){return Pg(e)?(this.touchIds=new Set(Ng(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=nv(r,ov);if(n.shared=iv({target:o,eventOptions:i,window:a,enabled:s,transform:l},rv),t){const e=Jg.get(t);n[t]=iv(Eg({shared:n.shared},c),e)}else for(const e in c){const t=Jg.get(e);t&&(n[e]=iv(Eg({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=uv(n,o.eventOptions,!!r);if(o.enabled){new(Zg.get(t))(this,e,t).bind(i)}}const o=uv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Eg(Eg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=zg(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Rg(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function cv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new av(e,t),e.gestureTimeoutStores[t]=new sv}const uv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:kg(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function dv(e,t={},n,r){const o=y().useMemo((()=>new lv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const fv=e=>e,pv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},mv="CHANGE",hv="COMMIT",gv="CONTROL",vv="DRAG_END",bv="DRAG_START",yv="DRAG",wv="INVALIDATE",xv="PRESS_DOWN",Ev="PRESS_ENTER",_v="PRESS_UP",Cv="RESET";function Sv(e=fv,t=pv,n){const[r,o]=(0,a.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case gv:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case _v:case xv:n.isDirty=!1;break;case bv:n.isDragging=!0;break;case vv:n.isDragging=!1;break;case mv:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case hv:n.value=t.payload.value,n.isDirty=!1;break;case Cv:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case wv:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=pv){const{value:t}=e;return{...pv,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},u=s(mv),d=s(Cv),f=s(hv),p=c(bv),m=c(yv),h=c(vv),g=l(_v),v=l(xv),b=l(Ev),y=(0,a.useRef)(r),w=(0,a.useRef)({value:t.value,onChangeHandler:n});return(0,a.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,a.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,a.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:gv,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:wv,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}const kv=()=>{};const Tv=(0,a.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:s=!1,onBlur:l=kv,onChange:c=kv,onDrag:u=kv,onDragEnd:d=kv,onDragStart:f=kv,onFocus:p=kv,onKeyDown:m=kv,onValidate:h=kv,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:w,...x},E){const{state:_,change:C,commit:S,drag:k,dragEnd:T,dragStart:R,invalidate:P,pressDown:M,pressEnter:I,pressUp:N,reset:O}=Sv(b,{isDragEnabled:o,value:y,isPressEnterToChange:s},c),{value:D,isDragging:A,isDirty:L}=_,z=(0,a.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,a.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(A,t),B=e=>{const t=e.currentTarget.value;try{h(t),S(t,e)}catch(t){P(t,e)}},j=(V=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void T(e);u(e),k(e),A||(f(e),R(e))}},H={axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}},Qg(ev),dv({drag:V},H||{},"drag"));var V,H;const $=o?j():{};let W;return"number"===w&&(W=e=>{x.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,a.createElement)(rg,{...x,...$,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:A,id:r,onBlur:e=>{l(e),v?.(!1),!L&&e.target.validity.valid||(z.current=!0,B(e))},onChange:e=>{const t=e.target.value;C(t,e)},onFocus:e=>{p(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(m(e),t){case"ArrowUp":N(e);break;case"ArrowDown":M(e);break;case"Enter":I(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&L&&(e.preventDefault(),O(y,e))}},onMouseDown:W,ref:E,inputSize:g,value:null!=D?D:"",type:w})}));var Rv=Tv,Pv={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Mv(e){var t;return null!==(t=Pv[e])&&void 0!==t?t:""}const Iv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Nv=sd("div",{target:"ej5x27r4"})("font-family:",Mv("default.fontFamily"),";font-size:",Mv("default.fontSize"),";",Iv,";"),Ov=sd("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&Zf("margin-bottom:",Jm(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Dv=Zf(Xh,";display:inline-block;margin-bottom:",Jm(2),";padding:0;",""),Av=sd("label",{target:"ej5x27r2"})(Dv,";");var Lv={name:"11yad0w",styles:"margin-bottom:revert"};const zv=sd("p",{target:"ej5x27r1"})("margin-top:",Jm(2),";margin-bottom:0;font-size:",Mv("helpText.fontSize"),";font-style:normal;color:",Dp.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&Lv),";"),Fv=sd("span",{target:"ej5x27r0"})(Dv,";"),Bv=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:s})=>(0,a.createElement)(Nv,{className:l()("components-base-control",i)},(0,a.createElement)(Ov,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,a.createElement)(ud,{as:"label",htmlFor:t},n):(0,a.createElement)(Av,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,a.createElement)(ud,{as:"label"},n):(0,a.createElement)(Bv.VisualLabel,null,n)),s),!!o&&(0,a.createElement)(zv,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));Bv.VisualLabel=({className:e,children:t,...n})=>(0,a.createElement)(Fv,{...n,className:l()("components-base-control__label",e)},t);var jv=Bv;const Vv=()=>{};const Hv=(0,a.forwardRef)((function({__next36pxDefaultSize:e,__unstableStateReducer:t=(e=>e),__unstableInputWidth:n,className:r,disabled:o=!1,help:i,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:d=!1,label:f,labelPosition:p="top",onChange:m=Vv,onValidate:h=Vv,onKeyDown:g=Vv,prefix:v,size:b="default",style:y,suffix:w,value:x,...E},_){const[C,S]=(0,a.useState)(!1),k=function(e){const t=(0,u.useInstanceId)(Hv);return e||`inspector-input-control-${t}`}(c),T=l()("components-input-control",r),R=function(e){const t=(0,a.useRef)(e.value),[n,r]=(0,a.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,a.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:x,onBlur:E.onBlur,onChange:m}),P=i?{["string"==typeof i?"aria-describedby":"aria-details"]:`${k}__help`}:{};return(0,a.createElement)(jv,{className:T,help:i,id:k,__nextHasNoMarginBottom:!0},(0,a.createElement)(hg,{__next36pxDefaultSize:e,__unstableInputWidth:n,disabled:o,gap:3,hideLabelFromVision:s,id:k,isFocused:C,justify:"left",label:f,labelPosition:p,prefix:v,size:b,style:y,suffix:w},(0,a.createElement)(Rv,{...E,...P,__next36pxDefaultSize:e,className:"components-input-control__input",disabled:o,id:k,isFocused:C,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:v?Jm(2):void 0,paddingInlineEnd:w?Jm(2):void 0,ref:_,setIsFocused:S,size:b,stateReducer:t,...R})))}));var $v=Hv;var Wv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Uv=({hideHTMLArrows:e})=>e?Wv:"",Gv=sd($v,{target:"ep09it41"})(Uv,";"),Kv=sd(pd,{target:"ep09it40"})("&&&&&{color:",Dp.ui.theme,";}"),qv={smallSpinButtons:Zf("width:",Jm(5),";min-width:",Jm(5),";height:",Jm(5),";","")};function Yv(e){const t=Number(e);return isNaN(t)?0:t}function Xv(...e){return e.reduce(((e,t)=>e+Yv(t)),0)}function Zv(e,t,n){const r=Yv(e);return Math.max(t,Math.min(r,n))}function Jv(e=0,t=1/0,n=1/0,r=1){const o=Yv(e),i=Yv(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=Zv(Math.round(o/i)*i,t,n);return a?Yv(s.toFixed(a)):s}const Qv={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},eb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function tb(e){return"string"==typeof e?[e]:a.Children.toArray(e).filter((e=>(0,a.isValidElement)(e)))}function nb(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Gu(e,"HStack"),s=function(e,t="row"){if(!bh(e))return{};const n="column"===t?eb:Qv;return e in n?n[e]:{align:e}}(t,r),l=tb(n).map(((e,t)=>{if(Zu(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,a.createElement)(gh,{isBlock:!0,key:r,...n.props})}return e}));return mh({children:l,direction:r,justify:"center",...s,...i,gap:o})}var rb=Ku((function(e,t){const n=nb(e);return(0,a.createElement)(cd,{...n,ref:t})}),"HStack");const ob=()=>{};const ib=(0,a.forwardRef)((function({__unstableStateReducer:e,className:t,dragDirection:n="n",hideHTMLArrows:r=!1,spinControls:o="native",isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:h=10,step:g=1,type:v="number",value:b,size:y="default",suffix:w,onChange:x=ob,...E},_){r&&($l()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),o="none");const C=(0,a.useRef)(),S=(0,u.useMergeRefs)([C,_]),k="any"===g,T=k?1:yh(g),R=Jv(0,p,f,T),P=(e,t)=>k?Math.min(f,Math.max(p,yh(e))):Jv(e,p,f,null!=t?t:T),M="number"===v?"off":void 0,I=l()("components-number-control",t),N=Uu()("small"===y&&qv.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&s,o=r?yh(h)*T:T;let i=function(e){const t=""===e;return!bh(e)||t}(e)?R:e;return"up"===t?i=Xv(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=Yv(t);return 0===n?r:e-r}),0)}(i,o)),P(i,r?o:void 0)},D=e=>t=>x(String(O(b,e,t)),{event:{...t,target:C.current}});return(0,a.createElement)(Gv,{autoComplete:M,inputMode:"numeric",...E,className:I,dragDirection:n,hideHTMLArrows:"native"!==o,isDragEnabled:i,label:d,max:f,min:p,ref:S,required:m,step:g,type:v,value:b,__unstableStateReducer:(t,r)=>{var o;const a=((e,t)=>{const r={...e},{type:o,payload:a}=t,l=a.event,u=r.value;if(o!==_v&&o!==xv||(r.value=O(u,o===_v?"up":"down",l)),o===yv&&i){const[e,t]=a.delta,o=a.shiftKey&&s,i=o?yh(h)*T:T;let l,d;switch(n){case"n":d=t,l=-1;break;case"e":d=e,l=(0,c.isRTL)()?-1:1;break;case"s":d=t,l=1;break;case"w":d=e,l=(0,c.isRTL)()?1:-1}if(0!==d){d=Math.ceil(Math.abs(d))*Math.sign(d);const e=d*i*l;r.value=P(Xv(u,e),o?i:void 0)}}if(o===Ev||o===hv){const e=!1===m&&""===u;r.value=e?u:P(u)}return r})(t,r);return null!==(o=e?.(a,r))&&void 0!==o?o:a},size:y,suffix:"custom"===o?(0,a.createElement)(a.Fragment,null,w,(0,a.createElement)(lh,{marginBottom:0,marginRight:2},(0,a.createElement)(rb,{spacing:1},(0,a.createElement)(Kv,{className:N,icon:ch,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Increment"),tabIndex:-1,onClick:D("up")}),(0,a.createElement)(Kv,{className:N,icon:uh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Decrement"),tabIndex:-1,onClick:D("down")})))):w,onChange:x})}));var ab=ib;const sb=({__nextHasNoMarginBottom:e})=>e?"":Zf("margin-bottom:",Jm(2),";",""),lb=sd(hh,{target:"eln3bjz4"})(sb,";"),cb=sd("div",{target:"eln3bjz3"})("border-radius:50%;border:",Nh.borderWidth," solid ",Dp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),ub=sd("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),db=sd("div",{target:"eln3bjz1"})("background:",Dp.ui.theme,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),fb=sd(Yh,{target:"eln3bjz0"})("color:",Dp.ui.theme,";margin-right:",Jm(3),";");var pb=function({value:e,onChange:t,...n}){const r=(0,a.useRef)(null),o=(0,a.useRef)(),i=(0,a.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,u.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,a.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,a.createElement)(cb,{ref:r,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,a.createElement)(ub,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,a.createElement)(db,{className:"components-angle-picker-control__angle-circle-indicator"})))};var mb=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=(0,c.__)("Angle"),onChange:i,value:s,...u}=e;n||$l()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const d=l()("components-angle-picker-control",r),f=(0,a.createElement)(fb,null,"°"),[p,m]=(0,c.isRTL)()?[f,null]:[null,f];return(0,a.createElement)(lb,{...u,ref:t,__nextHasNoMarginBottom:n,className:d,gap:2},(0,a.createElement)(Xm,null,(0,a.createElement)(ab,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:p,suffix:m})),(0,a.createElement)(lh,{marginBottom:"1",marginTop:"auto"},(0,a.createElement)(pb,{"aria-hidden":"true",value:s,onChange:i})))})),hb=o(4793),gb=o.n(hb),vb=window.wp.richText,bb=window.wp.a11y;const yb=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),wb=e=>gb()(e).toLocaleLowerCase().replace(yb,"-");function xb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Eb(e){return t=>{const[n,r]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,u.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+xb(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;oe.test(gb()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function _b(e){const t=e.useItems?e.useItems:Eb(e);return function({filterValue:e,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:d,onReset:f,reset:p,contentRef:m}){const[h]=t(e),g=(0,vb.useAnchor)({editableContentElement:m.current}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),w=(0,u.useMergeRefs)([y,(0,u.useRefEffect)((e=>{m.current&&b(e.ownerDocument!==m.current.ownerDocument)}),[m])]);!function(e,t){(0,a.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,p);const x=(0,u.useDebounce)(bb.speak,500);if((0,a.useLayoutEffect)((()=>{s(h),function(t){x&&(t.length?x(e?(0,c.sprintf)((0,c._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):(0,c.sprintf)((0,c._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):x((0,c.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,a.createElement)(e,{id:r,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,a.createElement)(pd,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:l()("components-autocomplete__result",o,{"is-selected":t===i}),onClick:()=>d(e)},e.label))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ff,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:w},(0,a.createElement)(E,null)),m.current&&v&&(0,kt.createPortal)((0,a.createElement)(E,{Component:ud}),m.current.ownerDocument.body))}}const Cb=[];function Sb({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,u.useInstanceId)(Sb),[s,l]=(0,a.useState)(0),[c,d]=(0,a.useState)(Cb),[f,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),b=(0,a.useRef)(!1);function y(r){const{getOptionCompletion:o}=m||{};if(!r.isDisabled){if(o){const i=o(r.value,f),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===m)return;const r=e.start,o=r-m.triggerPrefix.length-f.length,i=(0,vb.create)({html:(0,a.renderToString)(n)});t((0,vb.insert)(e,i,o,r))}(s.value)}w()}}function w(){l(0),d(Cb),p(""),h(null),v(null)}const x=(0,a.useMemo)((()=>(0,vb.isCollapsed)(e)?(0,vb.getTextContent)((0,vb.slice)(e,0)):""),[e]);(0,a.useEffect)((()=>{if(!x)return void(m&&w());const t=r?.find((({triggerPrefix:t,allowContext:n})=>{const r=x.lastIndexOf(t);if(-1===r)return!1;const o=x.slice(r+t.length);if(o.length>50)return!1;const i=0===c.length,a=1===o.split(/\s/).length,s=b.current&&o.split(/\s/).length<=3;if(i&&!s&&!a)return!1;const l=(0,vb.getTextContent)((0,vb.slice)(e,void 0,(0,vb.getTextContent)(e).length));return!(n&&!n(x.slice(0,r),l))&&(!/^\s/.test(o)&&!/\s\s+$/.test(o)&&/[\u0000-\uFFFF]*$/.test(o))}));if(!t)return void(m&&w());const n=xb(t.triggerPrefix),o=gb()(x),i=o.slice(o.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${n}([\0-￿]*)$`)),a=i&&i[1];h(t),v((()=>t!==m?_b(t):g)),p(null===a?"":a)}),[x]);const{key:E=""}=c[s]||{},{className:_}=m||{},C=!!m&&c.length>0,S=C?`components-autocomplete-listbox-${i}`:void 0;return{listBoxId:S,activeId:C?`components-autocomplete-item-${i}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,m&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":l((0===s?c.length:s)-1);break;case"ArrowDown":l((s+1)%c.length);break;case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void w();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,a.createElement)(g,{className:_,filterValue:f,instanceId:i,listBoxId:S,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),d(e)},onSelect:y,value:e,contentRef:o,reset:w})}}function kb(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(),{record:r}=e,o=function(e){const t=(0,a.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:l,onKeyDown:c}=Sb({...e,contentRef:t});n.current=c;const d=(0,u.useMergeRefs)([t,(0,u.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":l}:{ref:d}}function Tb({children:e,isSelected:t,...n}){const{popover:r,...o}=Sb(n);return(0,a.createElement)(a.Fragment,null,e(o),t&&r)}function Rb(e){const{help:t,id:n,...r}=e,o=(0,u.useInstanceId)(jv,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}var Pb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var Mb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Ib=Zf("",""),Nb={name:"bjn8wh",styles:"position:relative"},Ob=e=>{const{color:t=Dp.gray[200],style:n="solid",width:r=Nh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Nh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Db={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Ab(e){const{className:t,size:n="default",...r}=Gu(e,"BorderBoxControlLinkedButton"),o=Uu();return{...r,className:(0,a.useMemo)((()=>o((e=>Zf("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",ih({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var Lb=Ku(((e,t)=>{const{className:n,isLinked:r,...o}=Ab(e),i=r?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Uf,{text:i},(0,a.createElement)(cd,{className:n},(0,a.createElement)(pd,{...o,isSmall:!0,icon:r?Pb:Mb,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function zb(e){const{className:t,value:n,size:r="default",...o}=Gu(e,"BorderBoxControlVisualizer"),i=Uu(),s=(0,a.useMemo)((()=>i(((e,t)=>Zf("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Ob(e?.top),";border-bottom:",Ob(e?.bottom),";",ih({borderLeft:Ob(e?.left)})()," ",ih({borderRight:Ob(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}var Fb=Ku(((e,t)=>{const{value:n,...r}=zb(e);return(0,a.createElement)(cd,{...r,ref:t})}),"BorderBoxControlVisualizer");var Bb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var jb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));var Vb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Hb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const $b=sd(ab,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",sg,"{transition:box-shadow 0.1s linear;}}"),Wb=({selectSize:e})=>{const t={default:Zf("box-sizing:border-box;padding:2px 1px;width:20px;color:",Dp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:Zf("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Jm(2),";padding:",Jm(1),";color:",Dp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===e?t.large:t.default},Ub=sd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Wb,";color:",Dp.gray[900],";}"),Gb=sd("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Wb,";",(({selectSize:e="default"})=>{const t={default:Zf("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Dp.gray[100],";}&:focus{border:1px solid ",Dp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Nh.borderWidth+" "+Dp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:Zf("display:flex;justify-content:center;align-items:center;&:hover{color:",Dp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Nh.borderWidth+" "+Dp.ui.borderFocus,";outline:",Nh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Nh.borderWidthFocus+" "+Dp.ui.borderFocus,";outline:",Nh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===e?t.large:t.default}),";&:not( :disabled ){cursor:pointer;}}");const Kb={name:"f3vz0n",styles:"font-weight:500"},qb=Zf("box-shadow:inset 0 0 0 ",Nh.borderWidth," ",Dp.ui.borderFocus,";",""),Yb=Zf("border:0;padding:0;margin:0;",Iv,";",""),Xb=Zf($b,"{flex:0 0 auto;}",""),Zb=(e,t)=>{const{style:n}=e||{};return Zf("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Dp.gray[300]:void 0;return Zf("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",Jm(4),";width:",Jm(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},Jb=Zf("width:",228,"px;>div:first-of-type>",Av,"{margin-bottom:0;",Kb,";}&& ",Av,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Qb=Zf("",""),ey=Zf("",""),ty=Zf("justify-content:center;width:100%;&&{border-top:",Nh.borderWidth," solid ",Dp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),ny=Zf(Av,"{",Kb,";}",""),ry={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const oy=[{label:(0,c.__)("Solid"),icon:jb,value:"solid"},{label:(0,c.__)("Dashed"),icon:Vb,value:"dashed"},{label:(0,c.__)("Dotted"),icon:Hb,value:"dotted"}],iy=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"label"},t):(0,a.createElement)(Av,null,t):null},ay=Ku(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:s,...l}=function(e){const{className:t,...n}=Gu(e,"BorderControlStylePicker"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(ny,t)),[t,r]),buttonClassName:(0,a.useMemo)((()=>r(ry)),[r])}}(e);return(0,a.createElement)(cd,{...l,ref:t},(0,a.createElement)(iy,{label:o,hideLabelFromVision:r}),(0,a.createElement)(hh,{justify:"flex-start",gap:1},oy.map((e=>(0,a.createElement)(pd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===s,onClick:()=>i(e.value===s?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var sy=ay;var ly=(0,a.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,a.createElement)("span",{className:l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),cy=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},uy=function(e){return.2126*cy(e.r)+.7152*cy(e.g)+.0722*cy(e.b)};function dy(e){e.prototype.luminance=function(){return e=uy(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=uy(i))>(l=uy(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const fy=Ku(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:f,onClose:p,onToggle:m,style:h,position:g,variant:v}=Gu(e,"Dropdown");void 0!==g&&$l()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,y]=(0,a.useState)(null),w=(0,a.useRef)(),[x,E]=function(e,t){const[n,r]=(0,a.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,m);function _(){p&&p(),E(!1)}(0,a.useEffect)((()=>()=>{m&&x&&m(!1)}),[m,x]);const C={isOpen:x,onToggle:function(){E(!x)},onClose:_},S=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,a.createElement)("div",{className:o,ref:(0,u.useMergeRefs)([w,t,y]),tabIndex:-1,style:h},r(C),x&&(0,a.createElement)(Ff,{position:g,onClose:_,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||_()},expandOnMobile:s,headerTitle:c,focusOnMount:d,offset:13,anchor:S?void 0:b,variant:v,...f,className:l()("components-dropdown__content",f?.className,i)},n(C)))}),"Dropdown");var py=fy;var my=Ku((function(e,t){const n=Gu(e,"InputControlSuffixWrapper");return(0,a.createElement)(lh,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper");const hy=sd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Dp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?Zf({color:Dp.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?Zf("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return Zf(r[n]||r.default,"","")}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return ih({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),gy=sd("div",{target:"e1mv6sxx1"})("margin-inline-end:",Jm(-1),";line-height:0;"),vy=sd(my,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",ih({right:0}),";");var by=function({icon:e,size:t=24,...n}){return(0,a.cloneElement)(e,{width:t,height:t,...n})};var yy=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var wy=()=>(0,a.createElement)(vy,null,(0,a.createElement)(gy,null,(0,a.createElement)(by,{icon:yy,size:18})));const xy=()=>{};const Ey=(0,a.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:f=xy,onChange:p,onFocus:m=xy,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:w,suffix:x,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...C}=e,[S,k]=(0,a.useState)(!1),T=function(e){const t=(0,u.useInstanceId)(Ey);return e||`inspector-select-control-${t}`}(s),R=o?`${T}__help`:void 0;if(!h?.length&&!y)return null;const P=l()("components-select-control",n);return(0,a.createElement)(jv,{help:o,id:T,__nextHasNoMarginBottom:_},(0,a.createElement)(hg,{className:P,disabled:r,hideLabelFromVision:i,id:T,isFocused:S,label:c,size:g,suffix:x||!d&&(0,a.createElement)(wy,null),prefix:w,labelPosition:b,__next36pxDefaultSize:E},(0,a.createElement)(hy,{...C,__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:T,multiple:d,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,a.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))}));var _y=Ey;const Cy={initial:void 0,fallback:""};var Sy=function(e,t=Cy){const{initial:n,fallback:r}={...Cy,...t},[o,i]=(0,a.useState)(e),s=bh(e);return(0,a.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(bh))&&void 0!==n?n:t}([e,o,n],r),(0,a.useCallback)((e=>{s||i(e)}),[s])]};function ky(e,t,n){return"number"!=typeof e?null:parseFloat(`${Zv(e,t,n)}`)}const Ty=()=>Zf({height:30,minHeight:30},"",""),Ry=12,Py=sd("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),My=sd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Dp.ui.borderFocus})=>Zf({color:e},"","")),";",Ty,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":Zf({marginBottom:e?16:void 0},"","")),";"),Iy=sd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",ih({marginRight:6}),";"),Ny=sd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",ih({marginLeft:6}),";"),Oy=sd("span",{target:"e1epgpqk10"})("background-color:",Dp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Dp.ui.backgroundDisabled),Zf({background:n},"","")}),";"),Dy=sd("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Dp.gray[400]),Zf({background:n},"","")}),";"),Ay=sd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Ly=sd("span",{target:"e1epgpqk7"})("height:",Ry,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Dp.gray[300];return e&&(n=Dp.gray[400]),Zf({backgroundColor:n},"","")}),";"),zy=sd("span",{target:"e1epgpqk6"})("color:",Dp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>Zf({color:e?Dp.gray[700]:Dp.gray[300]},"","")),";"),Fy=({disabled:e})=>Zf("background-color:",e?Dp.gray[400]:Dp.ui.theme,";",""),By=sd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ry,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ry,"px;border-radius:50%;",Fy,";",ih({marginLeft:-10}),";",ih({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),jy=sd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Fy,";",(({isFocused:e})=>e?Zf("&::before{content:' ';position:absolute;background-color:",Dp.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),Vy=sd("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Ry,"px );");var Hy={name:"1cypxip",styles:"top:-80%"},$y={name:"1lr98c4",styles:"bottom:-80%"};const Wy=sd("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;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;",(({show:e})=>Zf({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?$y:Hy),";",Ap("transition"),";",ih({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Uy=sd(ab,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",Jm(16),"!important;input[type='number']&{",Ty,";}",ih({marginLeft:`${Jm(4)} !important`}),";"),Gy=sd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Ty,";}",ih({marginLeft:8}),";");var Ky=(0,a.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,a.createElement)(Vy,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function qy(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=l()("components-range-control__mark",n&&"is-filled",t),c=l()("components-range-control__mark-label",n&&"is-filled");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ly,{...i,"aria-hidden":"true",className:s,isFilled:n,style:o}),r&&(0,a.createElement)(zy,{"aria-hidden":"true",className:c,isFilled:n,style:o},r))}function Yy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Oy,{disabled:t,...l}),n&&(0,a.createElement)(Xy,{disabled:t,marks:n,min:r,max:o,step:i,value:s}))}function Xy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.valuen)return;const s=`mark-${r}`,l=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,c.isRTL)()?"right":"left"]:u};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,a.createElement)(Ay,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,a.createElement)(qy,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function Zy(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:c=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,a.useEffect)((()=>{o()}),[o]),(0,a.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=l()("components-simple-tooltip",t),m={...i,zIndex:u};return(0,a.createElement)(Wy,{...d,"aria-hidden":o,className:p,position:f,show:o,role:"tooltip",style:m},c(s))}const Jy=()=>{};const Qy=(0,a.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:s,className:d,color:f=Dp.ui.theme,currentInput:p,disabled:m=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:w=!1,max:x=100,min:E=0,onBlur:_=Jy,onChange:C=Jy,onFocus:S=Jy,onMouseLeave:k=Jy,onMouseMove:T=Jy,railColor:R,renderTooltipContent:P=(e=>e),resetFallbackValue:M,shiftStep:I=10,showTooltip:N,step:O=1,trackColor:D,value:A,withInputField:L=!0,...z}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=Sy(ky(r,t,n),{initial:ky(null!=o?o:null,t,n),fallback:null});return[i,(0,a.useCallback)((e=>{s(null===e?null:ky(e,t,n))}),[t,n,s])]}({min:E,max:x,value:null!=A?A:null,initial:v}),j=(0,a.useRef)(!1);let V=N,H=L;"any"===O&&(V=!1,H=!1);const[$,W]=(0,a.useState)(V),[U,G]=(0,a.useState)(!1),K=(0,a.useRef)(),q=K.current?.matches(":focus"),Y=!m&&U,X=null===F,Z=X?"":void 0!==F?F:p,J=X?(x-E)/2+E:F,Q=`${Zv(X?50:(F-E)/(x-E)*100,0,100)}%`,ee=l()("components-range-control",d),te=l()("components-range-control__wrapper",!!w&&"is-marked"),ne=(0,u.useInstanceId)(e,"inspector-range-control"),re=h?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(F),ie=()=>{let e=parseFloat(`${M}`),t=e;isNaN(e)&&(e=null,t=void 0),B(e),C(t)},ae={[(0,c.isRTL)()?"right":"left"]:Q};return(0,a.createElement)(jv,{__nextHasNoMarginBottom:r,className:ee,label:y,hideLabelFromVision:g,id:`${ne}`,help:h},(0,a.createElement)(Py,{className:"components-range-control__root"},s&&(0,a.createElement)(Iy,null,(0,a.createElement)(Gl,{icon:s})),(0,a.createElement)(My,{__nextHasNoMarginBottom:r,className:te,color:f,marks:!!w},(0,a.createElement)(Ky,{...z,className:"components-range-control__slider",describedBy:re,disabled:m,id:`${ne}`,label:y,max:x,min:E,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{S(e),G(!0),W(!0)},onMouseMove:T,onMouseLeave:k,ref:(0,u.useMergeRefs)([K,n]),step:O,value:null!=Z?Z:void 0}),(0,a.createElement)(Yy,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:E,railColor:R,step:O,value:J}),(0,a.createElement)(Dy,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:Q},trackColor:D}),(0,a.createElement)(By,{className:"components-range-control__thumb-wrapper",style:ae,disabled:m},(0,a.createElement)(jy,{"aria-hidden":!0,isFocused:Y,disabled:m})),oe&&(0,a.createElement)(Zy,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:q||$,style:ae,value:F})),o&&(0,a.createElement)(Ny,null,(0,a.createElement)(Gl,{icon:o})),H&&(0,a.createElement)(Uy,{"aria-label":y,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:b,max:x,min:E,onBlur:()=>{j.current&&(ie(),j.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(j.current=!0):((tx)&&(t=ky(t,E,x)),C(t),j.current=!1)},shiftStep:I,step:O,value:Z}),i&&(0,a.createElement)(Gy,null,(0,a.createElement)(pd,{className:"components-range-control__reset",disabled:m||void 0===F,variant:"secondary",isSmall:!0,onClick:ie},(0,c.__)("Reset")))))}));var ew=Qy;const tw=sd(ab,{target:"ez9hsf47"})(tg,"{width:",Jm(24),";}"),nw=sd(_y,{target:"ez9hsf46"})("margin-left:",Jm(-2),";width:5em;select:not( :focus )~",sg,sg,sg,"{border-color:transparent;}"),rw=sd(ew,{target:"ez9hsf45"})("flex:1;margin-right:",Jm(2),";"),ow=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Jm(2)} );\n\tmargin-left: ${Jm(1)};\n}`,iw=sd("div",{target:"ez9hsf44"})("padding-top:",Jm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),aw=sd(rb,{target:"ez9hsf43"})("padding-left:",Jm(4),";padding-right:",Jm(4),";"),sw=sd(hh,{target:"ez9hsf42"})("padding-top:",Jm(4),";padding-left:",Jm(4),";padding-right:",Jm(3),";padding-bottom:",Jm(5),";"),lw=sd("div",{target:"ez9hsf41"})(Iv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Jm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Jm(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Nh.borderWidthFocus," #fff;}",ow,";"),cw=sd(pd,{target:"ez9hsf40"})("&&&&&{min-width:",Jm(6),";padding:0;>svg{margin-right:0;}}");var uw=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.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 dw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fw(e){return e instanceof dw(e).Element||e instanceof Element}function pw(e){return e instanceof dw(e).HTMLElement||e instanceof HTMLElement}function mw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof dw(e).ShadowRoot||e instanceof ShadowRoot)}var hw=Math.max,gw=Math.min,vw=Math.round;function bw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function yw(){return!/^((?!chrome|android).)*safari/i.test(bw())}function ww(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&pw(e)&&(o=e.offsetWidth>0&&vw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vw(r.height)/e.offsetHeight||1);var a=(fw(e)?dw(e):window).visualViewport,s=!yw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function xw(e){var t=dw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ew(e){return e?(e.nodeName||"").toLowerCase():null}function _w(e){return((fw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cw(e){return ww(_w(e)).left+xw(e).scrollLeft}function Sw(e){return dw(e).getComputedStyle(e)}function kw(e){var t=Sw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(e,t,n){void 0===n&&(n=!1);var r=pw(t),o=pw(t)&&function(e){var t=e.getBoundingClientRect(),n=vw(t.width)/e.offsetWidth||1,r=vw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=_w(t),a=ww(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ew(t)||kw(i))&&(s=function(e){return e!==dw(e)&&pw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:xw(e);var t}(t)),pw(t)?((l=ww(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Cw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Rw(e){var t=ww(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pw(e){return"html"===Ew(e)?e:e.assignedSlot||e.parentNode||(mw(e)?e.host:null)||_w(e)}function Mw(e){return["html","body","#document"].indexOf(Ew(e))>=0?e.ownerDocument.body:pw(e)&&kw(e)?e:Mw(Pw(e))}function Iw(e,t){var n;void 0===t&&(t=[]);var r=Mw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=dw(r),a=o?[i].concat(i.visualViewport||[],kw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Iw(Pw(a)))}function Nw(e){return["table","td","th"].indexOf(Ew(e))>=0}function Ow(e){return pw(e)&&"fixed"!==Sw(e).position?e.offsetParent:null}function Dw(e){for(var t=dw(e),n=Ow(e);n&&Nw(n)&&"static"===Sw(n).position;)n=Ow(n);return n&&("html"===Ew(n)||"body"===Ew(n)&&"static"===Sw(n).position)?t:n||function(e){var t=/firefox/i.test(bw());if(/Trident/i.test(bw())&&pw(e)&&"fixed"===Sw(e).position)return null;var n=Pw(e);for(mw(n)&&(n=n.host);pw(n)&&["html","body"].indexOf(Ew(n))<0;){var r=Sw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Aw="top",Lw="bottom",zw="right",Fw="left",Bw="auto",jw=[Aw,Lw,zw,Fw],Vw="start",Hw="end",$w="clippingParents",Ww="viewport",Uw="popper",Gw="reference",Kw=jw.reduce((function(e,t){return e.concat([t+"-"+Vw,t+"-"+Hw])}),[]),qw=[].concat(jw,[Bw]).reduce((function(e,t){return e.concat([t,t+"-"+Vw,t+"-"+Hw])}),[]),Yw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Zw={placement:"bottom",modifiers:[],strategy:"absolute"};function Jw(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ix(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nx(o):null,a=o?rx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Aw:t={x:s,y:n.y-r.height};break;case Lw:t={x:s,y:n.y+n.height};break;case zw:t={x:n.x+n.width,y:l};break;case Fw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ox(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Vw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Hw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ax={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ix({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},sx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Fw,w=Aw,x=window;if(c){var E=Dw(n),_="clientHeight",C="clientWidth";if(E===dw(n)&&"static"!==Sw(E=_w(n)).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth"),o===Aw||(o===Fw||o===zw)&&i===Hw)w=Lw,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,h*=l?1:-1;if(o===Fw||(o===Aw||o===Lw)&&i===Hw)y=zw,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=l?1:-1}var S,k=Object.assign({position:s},c&&sx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vw(n*o)/o||0,y:vw(r*o)/o||0}}({x:p,y:h},dw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},k,((S={})[w]=b?"0":"",S[y]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var cx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:nx(t.placement),variation:rx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,lx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,lx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ux={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];pw(o)&&Ew(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});pw(r)&&Ew(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=qw.reduce((function(e,n){return e[n]=function(e,t,n){var r=nx(e),o=[Fw,Aw].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Fw,zw].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},fx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(e){return e.replace(/left|right|bottom|top/g,(function(e){return fx[e]}))}var mx={start:"end",end:"start"};function hx(e){return e.replace(/start|end/g,(function(e){return mx[e]}))}function gx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bx(e,t,n){return t===Ww?vx(function(e,t){var n=dw(e),r=_w(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=yw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Cw(e),y:l}}(e,n)):fw(t)?function(e,t){var n=ww(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):vx(function(e){var t,n=_w(e),r=xw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=hw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=hw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Cw(e),l=-r.scrollTop;return"rtl"===Sw(o||n).direction&&(s+=hw(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(_w(e)))}function yx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iw(Pw(e)),n=["absolute","fixed"].indexOf(Sw(e).position)>=0&&pw(e)?Dw(e):e;return fw(n)?t.filter((function(e){return fw(e)&&gx(e,n)&&"body"!==Ew(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=bx(e,n,r);return t.top=hw(o.top,t.top),t.right=gw(o.right,t.right),t.bottom=gw(o.bottom,t.bottom),t.left=hw(o.left,t.left),t}),bx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ex(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?$w:s,c=n.rootBoundary,u=void 0===c?Ww:c,d=n.elementContext,f=void 0===d?Uw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=wx("number"!=typeof g?g:xx(g,jw)),b=f===Uw?Gw:Uw,y=e.rects.popper,w=e.elements[m?b:f],x=yx(fw(w)?w:w.contextElement||_w(e.elements.popper),l,u,a),E=ww(e.elements.reference),_=ix({reference:E,element:y,strategy:"absolute",placement:o}),C=vx(Object.assign({},y,_)),S=f===Uw?C:E,k={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(f===Uw&&T){var R=T[o];Object.keys(k).forEach((function(e){var t=[zw,Lw].indexOf(e)>=0?1:-1,n=[Aw,Lw].indexOf(e)>=0?"y":"x";k[e]+=R[n]*t}))}return k}var _x={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=nx(g),b=l||(v===g||!m?[px(g)]:function(e){if(nx(e)===Bw)return[];var t=px(e);return[hx(e),t,hx(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(nx(n)===Bw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qw:l,u=rx(r),d=u?s?Kw:Kw.filter((function(e){return rx(e)===u})):jw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Ex(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[nx(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,C=y[0],S=0;S=0,M=P?"width":"height",I=Ex(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=P?R?zw:Fw:R?Lw:Aw;w[M]>x[M]&&(N=px(N));var O=px(N),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[N]<=0,I[O]<=0),D.every((function(e){return e}))){C=k,_=!1;break}E.set(k,D)}if(_)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cx(e,t,n){return hw(e,gw(t,n))}var Sx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Ex(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=nx(t.placement),b=rx(t.placement),y=!b,w=ox(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,M="y"===w?Aw:Fw,I="y"===w?Lw:zw,N="y"===w?"height":"width",O=E[w],D=O+g[M],A=O-g[I],L=p?-C[N]/2:0,z=b===Vw?_[N]:C[N],F=b===Vw?-C[N]:-_[N],B=t.elements.arrow,j=p&&B?Rw(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[M],$=V[I],W=Cx(0,_[N],j[N]),U=y?_[N]/2-L-W-H-k.mainAxis:z-W-H-k.mainAxis,G=y?-_[N]/2+L+W+$+k.mainAxis:F+W+$+k.mainAxis,K=t.elements.arrow&&Dw(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=O+G-Y,Z=Cx(p?gw(D,O+U-Y-q):D,O,p?hw(A,X):A);E[w]=Z,R[w]=Z-O}if(s){var J,Q="x"===w?Aw:Fw,ee="x"===w?Lw:zw,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Aw,Fw].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-_[ne]-C[ne]-ae+k.altAxis,le=ie?te+_[ne]+C[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Cx(e,t,n);return r>n?n:r}(se,te,le):Cx(p?se:re,te,p?le:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};var kx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=nx(n.placement),l=ox(s),c=[Fw,zw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return wx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xx(e,jw))}(o.padding,n),d=Rw(i),f="y"===l?Aw:Fw,p="y"===l?Lw:zw,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=Dw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=Cx(y,x,w),_=l;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&gx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rx(e){return[Aw,zw,Lw,Fw].some((function(t){return e[t]>=0}))}var Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ex(t,{elementContext:"reference"}),s=Ex(t,{altBoundary:!0}),l=Tx(a,r),c=Tx(s,o,i),u=Rx(l),d=Rx(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Mx=Qw({defaultModifiers:[tx,ax,cx,ux,dx,_x,Sx,kx,Px]});function Ix(e){void 0===e&&(e={});var t,n,r=Wp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=Xp(m(r,["visible","animated"])),c=(0,v.useState)(i),u=c[0],d=c[1],f=(0,v.useState)(s),h=f[0],g=f[1],b=(0,v.useState)(!1),y=b[0],w=b[1],x=(t=u,n=(0,v.useRef)(null),U((function(){n.current=t}),[t]),n),E=null!=x.current&&x.current!==u;h&&!y&&E&&w(!0),(0,v.useEffect)((function(){if("number"==typeof h&&y){var e=setTimeout((function(){return w(!1)}),h);return function(){clearTimeout(e)}}return function(){}}),[h,y]);var _=(0,v.useCallback)((function(){return d(!0)}),[]),C=(0,v.useCallback)((function(){return d(!1)}),[]),S=(0,v.useCallback)((function(){return d((function(e){return!e}))}),[]),k=(0,v.useCallback)((function(){return w(!1)}),[]);return p(p({},l),{},{visible:u,animated:h,animating:y,show:_,hide:C,toggle:S,setVisible:d,setAnimated:g,stopAnimation:k})}var Nx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Ox(e){return function(t){return e&&!A(t,e)?e:t}}function Dx(e){void 0===e&&(e={});var t=Wp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,h=t.modal,g=void 0!==h&&h,b=m(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,v.useRef)(null),w=(0,v.useRef)(null),x=(0,v.useRef)(null),E=(0,v.useRef)(null),_=(0,v.useState)(i),C=_[0],S=_[1],k=(0,v.useState)(i),T=k[0],R=k[1],P=(0,v.useState)(l||[0,r])[0],M=(0,v.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],N=M[1],O=(0,v.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Wp(e),n=t.modal,r=void 0===n||n,o=Ix(m(t,["modal"])),i=(0,v.useState)(r),a=i[0],s=i[1],l=(0,v.useRef)(null);return p(p({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(p({modal:g},b)),z=(0,v.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,v.useCallback)((function(e){e.placement&&R(e.placement),e.styles&&(N(Ox(e.styles.popper)),E.current&&A(Ox(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Mx(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:Nx?F:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:P}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!E.current,options:{element:E.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,P,u]),(0,v.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),p(p({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:E,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:S})}var Ax={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var Lx=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],zx=[].concat(Lx,["unstable_portal"]),Fx=B({name:"TooltipReference",compose:re,keys:Lx,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=m(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,v.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=(0,v.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,v.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),b=(0,v.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return p({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:h,onMouseEnter:g,onMouseLeave:b,"aria-describedby":e.baseId},s)}}),Bx=z({as:"div",useHook:Fx});const jx=(0,a.createContext)({});var Vx=B({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=m(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,v.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?p({display:"none"},o):o,f=G(n),h=G(r),g=(0,v.useRef)(0);(0,v.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var b=(0,v.useCallback)((function(t){var n;K(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,v.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),b(e)}),[b]),w=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),b(e)}),[b]);return p({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Hx=z({as:"div",useHook:Vx});function $x(){return W?document.body:null}var Wx=(0,v.createContext)($x());function Ux(e){var t=e.children,n=(0,v.useContext)(Wx)||$x(),r=(0,v.useState)((function(){if(W){var e=document.createElement("div");return e.className=Ux.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,kt.createPortal)((0,v.createElement)(Wx.Provider,{value:r},t),r):null}function Gx(e){e.defaultPrevented||"Escape"===e.key&&Ax.show(null)}Ux.__className="__reakit-portal",Ux.__selector="."+Ux.__className;var Kx=B({name:"Tooltip",compose:Vx,keys:zx,useOptions:function(e){var t=e.unstable_portal;return p({unstable_portal:void 0===t||t},m(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=m(t,["ref","style","wrapElement"]);(0,v.useEffect)((function(){var t;H(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Gx)}),[]);var a=(0,v.useCallback)((function(t){return e.unstable_portal&&(t=(0,v.createElement)(Ux,null,t)),o?o(t):t}),[e.unstable_portal,o]);return p({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:p(p({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),qx=z({as:"div",memo:!0,useHook:Kx});var Yx=Ku((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Gu(e,"Shortcut");if(!r)return null;let s,l;return"string"==typeof r?s=r:(s=r.display,l=r.ariaLabel),(0,a.createElement)(cd,{as:n,className:o,"aria-label":l,ref:t,...i},s)}),"Shortcut");const Xx=Zf("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Nh.transitionDurationFastest," ease;font-size:",Nh.fontSize,";&[data-enter]{opacity:1;}",""),Zx=sd("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Dp.white,";padding:4px 8px;"),Jx={name:"12mkfdx",styles:"outline:none"},Qx=sd(Yx,{target:"e7tfjmw0"})("display:inline-block;margin-left:",Jm(1),";"),{TooltipPopoverView:eE}=t;var tE=Ku((function(e,t){const{children:n,className:r,...o}=Gu(e,"TooltipContent"),{tooltip:i}=(0,a.useContext)(jx),s=Uu()(Xx,r);return(0,a.createElement)(qx,{as:cd,...o,...i,className:s,ref:t},(0,a.createElement)(eE,null,n))}),"TooltipContent");const nE=Ku((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:s,focusable:l=!0,gutter:c=4,id:u,modal:d=!0,placement:f,visible:h=!1,shortcut:g,...b}=Gu(e,"Tooltip"),y=function(e){void 0===e&&(e={});var t=Wp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=m(t,["placement","unstable_timeout"]),s=(0,v.useState)(i),l=s[0],c=s[1],u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=Dx(p(p({},a),{},{placement:r})),h=(f.modal,f.setModal,m(f,["modal","setModal"])),g=(0,v.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),b=(0,v.useCallback)((function(){g(),h.hide(),d.current=window.setTimeout((function(){Ax.hide(h.baseId)}),l)}),[g,h.hide,l,h.baseId]),y=(0,v.useCallback)((function(){g(),!l||Ax.currentTooltipId?(Ax.show(h.baseId),h.show()):(Ax.show(null),u.current=window.setTimeout((function(){Ax.show(h.baseId),h.show()}),l))}),[g,l,h.show,h.baseId]);return(0,v.useEffect)((function(){return Ax.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,v.useEffect)((function(){return function(){g(),Ax.hide(h.baseId)}}),[g,h.baseId]),p(p({},h),{},{hide:b,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||u,gutter:c,placement:f,visible:h,...b}),w=(0,a.useMemo)((()=>({tooltip:y})),[y]);return(0,a.createElement)(jx.Provider,{value:w},s&&(0,a.createElement)(tE,{unstable_portal:d,ref:t},s,g&&(0,a.createElement)(Qx,{shortcut:g})),i&&(0,a.createElement)(Bx,{...y,...i.props,ref:i?.ref},(e=>(l||(e.tabIndex=void 0),(0,a.cloneElement)(i,e)))))}),"Tooltip");var rE=nE;const oE=e=>{const{color:t,colorType:n}=e,[r,o]=(0,a.useState)(null),i=(0,a.useRef)(),s=(0,u.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,a.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,a.createElement)(rE,{content:(0,a.createElement)(Yh,{color:"white"},r===t.toHex()?(0,c.__)("Copied!"):(0,c.__)("Copy")),placement:"bottom"},(0,a.createElement)(cw,{isSmall:!0,ref:s,icon:uw,showTooltip:!1}))},iE=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,a.createElement)(rb,{spacing:4},(0,a.createElement)(tw,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,a.createElement)(lh,{as:Yh,paddingLeft:Jm(4),color:Dp.ui.theme,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,a.createElement)(rw,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),aE=({color:e,onChange:t,enableAlpha:n})=>{const{r:r,g:o,b:i,a:s}=e.toRgb();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(iE,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Sp({r:e,g:o,b:i,a:s}))}),(0,a.createElement)(iE,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Sp({r:r,g:e,b:i,a:s}))}),(0,a.createElement)(iE,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Sp({r:r,g:o,b:e,a:s}))}),n&&(0,a.createElement)(iE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Sp({r:r,g:o,b:i,a:e/100}))}))},sE=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a:s}=e.toHsl();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(iE,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(Sp({h:e,s:o,l:i,a:s}))}}),(0,a.createElement)(iE,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(Sp({h:r,s:e,l:i,a:s}))}}),(0,a.createElement)(iE,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(Sp({h:r,s:o,l:e,a:s}))}}),n&&(0,a.createElement)(iE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>{t(Sp({h:r,s:o,l:i,a:e/100}))}}))},lE=({color:e,onChange:t,enableAlpha:n})=>(0,a.createElement)(Hv,{prefix:(0,a.createElement)(lh,{as:Yh,marginLeft:Jm(4),color:Dp.ui.theme,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Sp(n))},maxLength:n?9:7,label:(0,c.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),cE=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,a.createElement)(sE,{...o});case"rgb":return(0,a.createElement)(aE,{...o});default:return(0,a.createElement)(lE,{...o})}};function uE(){return(uE=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function fE(e){var t=(0,v.useRef)(e),n=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var pE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e0:e.buttons>0)&&o.current?i(gE(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=hE(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(vE(t),!function(e,t){return t&&!mE(e)}(t,l.current)&&r)){if(mE(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(gE(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,v.useEffect)((function(){return f}),[f]),v.createElement("div",uE({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),yE=function(e){return e.filter(Boolean).join(" ")},wE=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=yE(["react-colorful__pointer",e.className]);return v.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},xE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},EE=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:xE(e.h),s:xE(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:xE(o/2),a:xE(r,2)}}),_E=function(e){var t=EE(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},CE=function(e){var t=EE(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},SE=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:xE(255*[r,s,a,a,l,r][c]),g:xE(255*[l,r,r,s,a,a][c]),b:xE(255*[a,a,l,r,r,s][c]),a:xE(o,2)}},kE=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?RE({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},TE=kE,RE=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:xE(60*(s<0?s+6:s)),s:xE(i?a/i*100:0),v:xE(i/255*100),a:o}},PE=v.memo((function(e){var t=e.hue,n=e.onChange,r=yE(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(bE,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:pE(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":xE(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(wE,{className:"react-colorful__hue-pointer",left:t/360,color:_E({h:t,s:100,v:100,a:1})})))})),ME=v.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:_E({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(bE,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:pE(t.s+100*e.left,0,100),v:pE(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+xE(t.s)+"%, Brightness "+xE(t.v)+"%"},v.createElement(wE,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_E(t)})))})),IE=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},NE=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function OE(e,t,n){var r=fE(n),o=(0,v.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,v.useRef)({color:t,hsva:i});(0,v.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,v.useEffect)((function(){var t;IE(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,v.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var DE,AE="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,LE=new Map,zE=function(e){AE((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!LE.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',LE.set(t,n);var r=DE||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},FE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=dE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);zE(s);var l=OE(n,o,i),c=l[0],u=l[1],d=yE(["react-colorful",t]);return v.createElement("div",uE({},a,{ref:s,className:d}),v.createElement(ME,{hsva:c,onChange:u}),v.createElement(PE,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},BE=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+CE(Object.assign({},n,{a:0}))+", "+CE(Object.assign({},n,{a:1}))+")"},i=yE(["react-colorful__alpha",t]),a=xE(100*n.a);return v.createElement("div",{className:i},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(bE,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:pE(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(wE,{className:"react-colorful__alpha-pointer",left:n.a,color:CE(n)})))},jE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=dE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);zE(s);var l=OE(n,o,i),c=l[0],u=l[1],d=yE(["react-colorful",t]);return v.createElement("div",uE({},a,{ref:s,className:d}),v.createElement(ME,{hsva:c,onChange:u}),v.createElement(PE,{hue:c.h,onChange:u}),v.createElement(BE,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},VE={defaultColor:"rgba(0, 0, 0, 1)",toHsva:kE,fromHsva:function(e){var t=SE(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:NE},HE=function(e){return v.createElement(jE,uE({},e,{colorModel:VE}))},$E={defaultColor:"rgb(0, 0, 0)",toHsva:TE,fromHsva:function(e){var t=SE(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:NE},WE=function(e){return v.createElement(FE,uE({},e,{colorModel:$E}))};const UE=({color:e,enableAlpha:t,onChange:n})=>{const r=t?HE:WE,o=(0,a.useMemo)((()=>e.toRgbString()),[e]);return(0,a.createElement)(r,{color:o,onChange:e=>{n(Sp(e))}})};function GE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,a.useState)(o);let l;return l=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,l]}Tp([Rp]);const KE=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],qE=Ku(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...l}=Gu(e,"ColorPicker"),[d,f]=GE({onChange:o,value:r,defaultValue:i}),p=(0,a.useMemo)((()=>Sp(d||"")),[d]),m=(0,u.useDebounce)(f),h=(0,a.useCallback)((e=>{m(e.toHex())}),[m]),[g,v]=(0,a.useState)(s||"hex");return(0,a.createElement)(lw,{ref:t,...l},(0,a.createElement)(UE,{onChange:h,color:p,enableAlpha:n}),(0,a.createElement)(iw,null,(0,a.createElement)(aw,{justify:"space-between"},(0,a.createElement)(nw,{__nextHasNoMarginBottom:!0,options:KE,value:g,onChange:e=>v(e),label:(0,c.__)("Color format"),hideLabelFromVision:!0}),(0,a.createElement)(oE,{color:p,colorType:s||g})),(0,a.createElement)(sw,{direction:"column",gap:2},(0,a.createElement)(cE,{colorType:g,color:p,onChange:h,enableAlpha:n}))))}),"ColorPicker");var YE=qE;function XE(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const ZE=hc((e=>{const t=Sp(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function JE(e){const{onChangeComplete:t}=e,n=(0,a.useCallback)((e=>{t(ZE(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:XE(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const QE=e=>(0,a.createElement)(YE,{...JE(e)});var e_=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function t_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,a.createElement)("div",{className:l()("components-circular-option-picker",n)},(0,a.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,a.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}t_.Option=function({className:e,isSelected:t,selectedIconProps:n,tooltipText:r,...o}){const i=(0,a.createElement)(pd,{isPressed:t,className:"components-circular-option-picker__option",...o});return(0,a.createElement)("div",{className:l()(e,"components-circular-option-picker__option-wrapper")},r?(0,a.createElement)(Uf,{text:r},i):i,t&&(0,a.createElement)(by,{icon:e_,...n||{}}))},t_.ButtonAction=function({className:e,children:t,...n}){return(0,a.createElement)(pd,{className:l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},t_.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,a.createElement)(py,{className:l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,a.createElement)(pd,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};var n_=t_;var r_=Ku((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Gu(e,"VStack");return nb({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"VStack");var o_=Ku((function(e,t){const n=Ch(e);return(0,a.createElement)(cd,{as:"span",...n,ref:t})}),"Truncate");var i_=Ku((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Gu(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...qh({color:Dp.gray[900],size:Gh(n),isBlock:!0,weight:Nh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Heading");const a_=sd(i_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),s_=sd("div",{target:"eovvns30"})("margin-left:",Jm(-2),";margin-right:",Jm(-2),";&:first-of-type{margin-top:",Jm(-2),";}&:last-of-type{margin-bottom:",Jm(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:Jm(2),medium:Jm(4)};return Zf("padding:",t[e]||t.small,";","")}),";");var l_=Ku((function(e,t){const{paddingSize:n="small",...r}=Gu(e,"DropdownContentWrapper");return(0,a.createElement)(s_,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Tp([Rp,dy]);const c_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function u_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Sp(e),l=o===e;return(0,a.createElement)(n_.Option,{key:`${e}-${i}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,c.sprintf)((0,c.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Color: %s"),n):(0,c.sprintf)((0,c.__)("Color code: %s"),e)})}))),[n,o,r,t]);return(0,a.createElement)(n_,{className:e,options:s,actions:i})}function d_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i,headingLevel:s}){return 0===n.length?null:(0,a.createElement)(r_,{spacing:3,className:e},n.map((({name:e,colors:l},c)=>(0,a.createElement)(r_,{spacing:2,key:c},(0,a.createElement)(a_,{level:s},e),(0,a.createElement)(u_,{clearColor:t,colors:l,onChange:e=>r(e,c),value:o,actions:n.length===c+1?i:null})))))}function f_({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,a.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,a.createElement)(py,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Tp([Rp,dy]);const p_=(0,a.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:s,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:f=2,...p}=e,[m,h]=(0,a.useState)(u),g=(0,a.useCallback)((()=>s(void 0)),[s]),v=(0,a.useCallback)((e=>{h(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Sp(o).toHex():e})(u,e))}),[u]),b=c_(r),y=(0,a.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Sp(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Sp(n).toHex()))return t;return(0,c.__)("Custom")})(u,r,b)),[u,r,b]),w=u?.startsWith("#"),x=u?.replace(/^var\((.+)\)$/,"$1"),E=x?(0,c.sprintf)((0,c.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),y,w?x.split("").join("-"):x):(0,c.__)("Custom color picker."),_={clearable:n,clearColor:g,onChange:s,value:u,actions:!!n&&(0,a.createElement)(n_.ButtonAction,{onClick:g},(0,c.__)("Clear")),headingLevel:f};return(0,a.createElement)(r_,{spacing:3,ref:t,...p},!o&&(0,a.createElement)(f_,{isRenderedInSidebar:d,renderContent:()=>(0,a.createElement)(l_,{paddingSize:"none"},(0,a.createElement)(QE,{color:m,onChange:e=>s(e),enableAlpha:i})),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(r_,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,a.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:u}}),(0,a.createElement)(r_,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,a.createElement)(o_,{className:"components-color-palette__custom-color-name"},u?y:"No color selected"),(0,a.createElement)(o_,{className:l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},x)))}),b?(0,a.createElement)(d_,{..._,colors:r}):(0,a.createElement)(u_,{..._,colors:r}))}));var m_=p_;const h_="web"===a.Platform.OS,g_={px:{value:"px",label:h_?"px":(0,c.__)("Pixels (px)"),a11yLabel:(0,c.__)("Pixels (px)"),step:1},"%":{value:"%",label:h_?"%":(0,c.__)("Percentage (%)"),a11yLabel:(0,c.__)("Percent (%)"),step:.1},em:{value:"em",label:h_?"em":(0,c.__)("Relative to parent font size (em)"),a11yLabel:(0,c._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:h_?"rem":(0,c.__)("Relative to root font size (rem)"),a11yLabel:(0,c._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:h_?"vw":(0,c.__)("Viewport width (vw)"),a11yLabel:(0,c.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:h_?"vh":(0,c.__)("Viewport height (vh)"),a11yLabel:(0,c.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:h_?"vmin":(0,c.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,c.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:h_?"vmax":(0,c.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,c.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:h_?"ch":(0,c.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,c.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:h_?"ex":(0,c.__)("x-height of the font (ex)"),a11yLabel:(0,c.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:h_?"cm":(0,c.__)("Centimeters (cm)"),a11yLabel:(0,c.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:h_?"mm":(0,c.__)("Millimeters (mm)"),a11yLabel:(0,c.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:h_?"in":(0,c.__)("Inches (in)"),a11yLabel:(0,c.__)("Inches (in)"),step:.001},pc:{value:"pc",label:h_?"pc":(0,c.__)("Picas (pc)"),a11yLabel:(0,c.__)("Picas (pc)"),step:1},pt:{value:"pt",label:h_?"pt":(0,c.__)("Points (pt)"),a11yLabel:(0,c.__)("Points (pt)"),step:1}},v_=Object.values(g_),b_=[g_.px,g_["%"],g_.em,g_.rem,g_.vw,g_.vh],y_=g_.px;function w_(e,t,n){return E_(t?`${null!=e?e:""}${t}`:e,n)}function x_(e){return Array.isArray(e)&&!!e.length}function E_(e,t=v_){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(x_(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=y_.value;return[r,a]}const __=({units:e=v_,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=E_(n[e.value]);r[t].default=o}})),r};function C_(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Gu(e,"BorderControlDropdown"),[f]=E_(t?.width),p=0===f,m=Uu(),h=(0,a.useMemo)((()=>m((e=>Zf("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",ih({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Nh.borderWidth," solid ",Dp.ui.border,";&:focus,&:hover:not( :disabled ){",qb," border-color:",Dp.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,a.useMemo)((()=>m(ey)),[m]),v=(0,a.useMemo)((()=>m(Zb(t,c))),[t,m,c]),b=(0,a.useMemo)((()=>m(Jb)),[m]),y=(0,a.useMemo)((()=>m(Qb)),[m]),w=(0,a.useMemo)((()=>m(ty)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?l:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const S_=e=>{const t=e.startsWith("#"),n=e.replace(/^var\((.+)\)$/,"$1");return t?n.split("").join("-"):n},k_=Ku(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,onReset:f,onColorChange:p,onStyleChange:m,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,__unstablePopoverProps:y,...w}=C_(e),{color:x,style:E}=r||{},_=((e,t)=>{if(e&&t){if(c_(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(x,o),C=((e,t,n,r)=>{if(r){if(t){const e=S_(t.color);return n?(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=S_(e);return n?(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,c.__)("Border color and style picker.")}return t?(0,c.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,S_(t.color)):e?(0,c.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',S_(e)):(0,c.__)("Border color picker.")})(x,_,E,l),S=x||E&&"none"!==E,k=n?"bottom left":void 0;return(0,a.createElement)(py,{renderToggle:({onToggle:e})=>(0,a.createElement)(pd,{onClick:e,variant:"tertiary","aria-label":C,tooltipPosition:k,label:(0,c.__)("Border color and style picker"),showTooltip:!0},(0,a.createElement)("span",{className:d},(0,a.createElement)(ly,{className:u,colorValue:x}))),renderContent:({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l_,{paddingSize:"medium"},(0,a.createElement)(r_,{className:g,spacing:6},b?(0,a.createElement)(rb,null,(0,a.createElement)(Av,null,(0,c.__)("Border color")),(0,a.createElement)(pd,{isSmall:!0,label:(0,c.__)("Close border color"),icon:Bb,onClick:e})):void 0,(0,a.createElement)(m_,{className:h,value:x,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&(0,a.createElement)(sy,{label:(0,c.__)("Style"),value:E,onChange:m}))),S&&(0,a.createElement)(l_,{paddingSize:"none"},(0,a.createElement)(pd,{className:v,variant:"tertiary",onClick:()=>{f(),e()}},(0,c.__)("Reset to default")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown");var T_=k_;var R_=(0,a.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=b_,...s},c){if(!x_(i)||1===i?.length)return(0,a.createElement)(Ub,{className:"components-unit-control__unit-label",selectSize:r},o);const u=l()("components-unit-control__select",e);return(0,a.createElement)(Gb,{ref:c,className:u,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...s},i.map((e=>(0,a.createElement)("option",{value:e.value,key:e.value},e.label))))}));const P_=(0,a.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:p=!0,label:m,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=b_,value:w,onFocus:x,...E}=e;"unit"in e&&$l()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=w?w:void 0,[C,S]=(0,a.useMemo)((()=>{const e=function(e,t,n=v_){const r=Array.isArray(n)?[...n]:[],[,o]=w_(e,t,v_);return o&&!r.some((e=>e.value===o))&&g_[o]&&r.unshift(g_[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=xb(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),xb(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,T]=w_(_,b,C),[R,P]=Sy(1===C.length?C[0].value:b,{initial:T,fallback:""});(0,a.useEffect)((()=>{void 0!==T&&P(T)}),[T,P]);const M=l()("components-unit-control","components-unit-control-wrapper",i);let I;!u&&p&&C.length&&(I=e=>{E.onKeyDown?.(e),!e.metaKey&&S.test(e.key)&&N.current?.focus()});const N=(0,a.useRef)(null),O=u?null:(0,a.createElement)(R_,{ref:N,"aria-label":(0,c.__)("Select unit"),disabled:s,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),P(e)},size:v,unit:R,units:C,onFocus:x,onBlur:e.onBlur});let D=E.step;if(!D&&C){var A;const e=C.find((e=>e.value===R));D=null!==(A=e?.step)&&void 0!==A?A:1}return(0,a.createElement)($b,{...E,autoComplete:r,className:M,disabled:s,spinControls:"none",isPressEnterToChange:d,label:m,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=E_(e,t),a=null!=o?o:n;let s=i||r;return!s&&x_(t)&&(s=t[0].value),[a,s]}(e,C,k,R).join("");h?.(n,t)},ref:t,size:v,suffix:O,type:d?"text":"number",value:null!=k?k:"",step:D,onFocus:x,__unstableStateReducer:n})}));var M_=P_;function I_(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=Gu(e,"BorderControl"),[m,h]=E_(u?.width),g=h||"px",v=0===m,[b,y]=(0,a.useState)(),[w,x]=(0,a.useState)(),E=(0,a.useCallback)((e=>{if(l)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,l]),_=(0,a.useCallback)((e=>{const t=""===e?void 0:e,[n]=E_(e),r=0===n,o={...u,width:t};r&&!v&&(y(u?.color),x(u?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),E(o)}),[u,v,b,w,E]),C=(0,a.useCallback)((e=>{_(`${e}${g}`)}),[_,g]),S=Uu(),k=(0,a.useMemo)((()=>S(Yb,t)),[t,S]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const R=(0,a.useMemo)((()=>{const e=!!T&&Xb,t=(e=>Zf("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return S(Zf($b,"{flex:1 1 40%;}&& ",Gb,"{min-height:0;}",""),e,t)}),[T,S,c]),P=(0,a.useMemo)((()=>S(Zf("flex:1 1 60%;",ih({marginRight:Jm(3)})(),";",""))),[S]);return{...p,className:k,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:T,onBorderChange:E,onSliderChange:C,onWidthChange:_,previousStyleSelection:w,sliderClassName:P,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const N_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"legend"},t):(0,a.createElement)(Av,{as:"legend"},t):null},O_=Ku(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:g,__unstablePopoverProps:v,previousStyleSelection:b,showDropdownHeader:y,size:w,sliderClassName:x,value:E,widthUnit:_,widthValue:C,withSlider:S,__experimentalIsRenderedInSidebar:k,...T}=I_(e);return(0,a.createElement)(cd,{as:"fieldset",...T,ref:t},(0,a.createElement)(N_,{label:f,hideLabelFromVision:l}),(0,a.createElement)(rb,{spacing:4,className:u},(0,a.createElement)(M_,{prefix:(0,a.createElement)(T_,{border:E,colors:n,__unstablePopoverProps:v,disableCustomColors:r,enableAlpha:i,enableStyle:s,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalIsRenderedInSidebar:k,size:w}),label:(0,c.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:E?.width||"",placeholder:g,disableUnits:o,__unstableInputWidth:d,size:w}),S&&(0,a.createElement)(ew,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Border width"),hideLabelFromVision:!0,className:x,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:C||void 0,withInputField:!1})))}),"BorderControl");var D_=O_;const A_={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function L_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=Gu(e,"Grid"),h=ph(Array.isArray(i)?i:[i]),g=ph(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Uu();return{...m,className:(0,a.useMemo)((()=>{const e=function(e){return e?A_[e]:{}}(n),i=Zf({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${Nh.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,s,v,b,l,c,u])}}var z_=Ku((function(e,t){const n=L_(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Grid");function F_(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...l}=Gu(e,"BorderBoxControlSplitControls"),c=Uu(),u=(0,a.useMemo)((()=>c((e=>Zf("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,a.useMemo)((()=>c(Db,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,a.useMemo)((()=>c(Zf(ih({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:s}}var B_=Ku(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:l,popoverPlacement:d,popoverOffset:f,rightAlignedClassName:p,size:m="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=F_(e),[b,y]=(0,a.useState)(null),w=(0,a.useMemo)((()=>d?{placement:d,offset:f,anchor:b,shift:!0}:void 0),[d,f,b]),x={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:m},E=(0,u.useMergeRefs)([y,t]);return(0,a.createElement)(z_,{...v,ref:E,gap:4},(0,a.createElement)(Fb,{value:h,size:m}),(0,a.createElement)(D_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:w,value:h?.top,...x}),(0,a.createElement)(D_,{hideLabelFromVision:!0,label:(0,c.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:w,value:h?.left,...x}),(0,a.createElement)(D_,{className:p,hideLabelFromVision:!0,label:(0,c.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:w,value:h?.right,...x}),(0,a.createElement)(D_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:w,value:h?.bottom,...x}))}),"BorderBoxControlSplitControls");const j_=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const V_=["top","right","bottom","left"],H_=["color","style","width"],$_=e=>!e||!H_.some((t=>void 0!==e[t])),W_=e=>{if(!e)return!1;if(U_(e)){return!V_.every((t=>$_(e[t])))}return!$_(e)},U_=(e={})=>Object.keys(e).some((e=>-1!==V_.indexOf(e))),G_=e=>{if(!U_(e))return!1;const t=V_.map((t=>K_(e?.[t])));return!t.every((e=>e===t[0]))},K_=(e,t)=>{if($_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},q_=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(j_);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function Y_(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=Gu(e,"BorderBoxControl"),d=G_(l),f=U_(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];V_.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:q_(r)}})(l):l,m=f?l:(e=>{if(e&&!$_(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${p?.width}`)),[g,v]=(0,a.useState)(!d),b=Uu(),y=(0,a.useMemo)((()=>b(Ib,t)),[b,t]),w=(0,a.useMemo)((()=>b(Zf("flex:1;",ih({marginRight:"24px"})(),";",""))),[b]),x=(0,a.useMemo)((()=>b(Nb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&H_.every((e=>void 0!==t[e])))return r($_(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...l?.top,...n},right:{...l?.right,...n},bottom:{...l?.bottom,...n},left:{...l?.left,...n}};if(G_(o))return r(o);const i=$_(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};G_(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:s,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const X_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"label"},t):(0,a.createElement)(Av,null,t):null},Z_=Ku(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hasMixedBorders:d,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:w,size:x,splitValue:E,toggleLinked:_,wrapperClassName:C,__experimentalIsRenderedInSidebar:S,...k}=Y_(e),[T,R]=(0,a.useState)(null),P=(0,a.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,u.useMergeRefs)([R,t]);return(0,a.createElement)(cd,{className:n,...k,ref:M},(0,a.createElement)(X_,{label:m,hideLabelFromVision:f}),(0,a.createElement)(cd,{className:C},p?(0,a.createElement)(D_,{className:h,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:v,placeholder:d?(0,c.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===x?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:x}):(0,a.createElement)(B_,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:E,__experimentalIsRenderedInSidebar:S,size:x}),(0,a.createElement)(Lb,{onClick:_,isLinked:p,size:x})))}),"BorderBoxControl");var J_=Z_;const Q_=sd("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),eC=sd(hh,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),tC=sd(hh,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),nC=sd("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),rC=sd(hh,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),oC=sd(hh,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var iC={name:"1ch9yvl",styles:"border-radius:0"},aC={name:"tg3mx0",styles:"border-radius:2px"};const sC=({isFirst:e,isLast:t,isOnly:n})=>e?ih({borderTopRightRadius:0,borderBottomRightRadius:0})():t?ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?aC:iC,lC=({isFirst:e,isOnly:t})=>ih({marginLeft:e||t?0:-1})(),cC=sd(M_,{target:"e1jovhle0"})("max-width:60px;",sC,";",lC,";"),uC=()=>{};function dC({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=uC,onHoverOff:o=uC,label:i,value:s,...l}){const c=(u=({event:e,...t})=>{t.hovering?r(e,t):o(e,t)},Qg(tv),dv({hover:u},d||{},"hover"));var u,d;return(0,a.createElement)(nC,{...c()},(0,a.createElement)(fC,{text:i},(0,a.createElement)(cC,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:s,...l})))}function fC({children:e,text:t}){return t?(0,a.createElement)(Uf,{text:t,position:"top"},(0,a.createElement)("div",null,e)):e}const pC={all:(0,c.__)("All"),top:(0,c.__)("Top"),bottom:(0,c.__)("Bottom"),left:(0,c.__)("Left"),right:(0,c.__)("Right"),mixed:(0,c.__)("Mixed"),vertical:(0,c.__)("Vertical"),horizontal:(0,c.__)("Horizontal")},mC={top:void 0,right:void 0,bottom:void 0,left:void 0},hC=["top","right","bottom","left"];function gC(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function vC(e={},t,n=hC){const r=function(e){const t=[];if(!e?.length)return hC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=hC.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>E_(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=gC(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return gC(t)}(t))&&void 0!==l?l:gC(i);return[a,s].join("")}function bC(e={},t,n=hC){const r=vC(e,t,n);return isNaN(parseFloat(r))}function yC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function wC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function xC(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):hC.forEach((e=>r[e]=t)),r}const EC=()=>{};function _C({onChange:e=EC,onFocus:t=EC,onHoverOn:n=EC,onHoverOff:r=EC,values:o,sides:i,selectedUnits:s,setSelectedUnits:l,...c}){const u=vC(o,s,i),d=yC(o)&&bC(o,s,i),f=d?pC.mixed:void 0;return(0,a.createElement)(dC,{...c,disableUnits:d,isOnly:!0,value:u,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=xC(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=xC(s,e,i);l(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:f})}const CC=()=>{};function SC({onChange:e=CC,onFocus:t=CC,onHoverOn:n=CC,onHoverOff:r=CC,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t(n,{side:e})},d=e=>()=>{n({[e]:!0})},f=e=>()=>{r({[e]:!1})},p=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},m=e=>t=>{const n={...i};n[e]=t,s(n)},h=l?.length?hC.filter((e=>l.includes(e))):hC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(rC,{className:"component-box-control__input-controls-wrapper"},(0,a.createElement)(oC,{gap:0,align:"top",className:"component-box-control__input-controls"},h.map((e=>{const[t,n]=E_(o[e]),r=o[e]?n:i[e];return(0,a.createElement)(dC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,r].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:pC[e],key:`box-control-${e}`})}))))}const kC=["vertical","horizontal"];function TC({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t&&t(n,{side:e})},d=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},f=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},p=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),s(n)},h=l?.length?kC.filter((e=>l.includes(e))):kC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(oC,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},h.map((e=>{const[t,n]=E_("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,a.createElement)(dC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,null!=r?r:n].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:pC[e],key:e})})))}const RC=sd("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),PC=sd("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),MC=sd("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>Zf({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),IC=sd(MC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),NC=sd(MC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),OC=sd(NC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),DC=sd(IC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),AC=sd(NC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),LC=sd(IC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),zC=24;function FC({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),l=o("bottom")||o("vertical"),c=o("left")||o("horizontal"),u=e/zC;return(0,a.createElement)(RC,{style:{transform:`scale(${u})`},...r},(0,a.createElement)(PC,null,(0,a.createElement)(OC,{isFocused:i}),(0,a.createElement)(DC,{isFocused:s}),(0,a.createElement)(AC,{isFocused:l}),(0,a.createElement)(LC,{isFocused:c})))}function BC({isLinked:e,...t}){const n=e?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Uf,{text:n},(0,a.createElement)(pd,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?Pb:Mb,iconSize:24,"aria-label":n}))}const jC={min:0},VC=()=>{};function HC({id:e,inputProps:t=jC,onChange:n=VC,label:r=(0,c.__)("Box Control"),values:o,units:i,sides:s,splitOnAxis:l=!1,allowReset:d=!0,resetValues:f=mC,onMouseOver:p,onMouseOut:m}){const[h,g]=Sy(o,{fallback:mC}),v=h||mC,b=yC(o),y=1===s?.length,[w,x]=(0,a.useState)(b),[E,_]=(0,a.useState)(!b||!bC(v)||y),[C,S]=(0,a.useState)(wC(E,l)),[k,T]=(0,a.useState)({top:E_(o?.top)[1],right:E_(o?.right)[1],bottom:E_(o?.bottom)[1],left:E_(o?.left)[1]}),R=function(e){const t=(0,u.useInstanceId)(HC,"inspector-box-control");return e||t}(e),P=`${R}-heading`,M={...t,onChange:e=>{n(e),g(e),x(!0)},onFocus:(e,{side:t})=>{S(t)},isLinked:E,units:i,selectedUnits:k,setSelectedUnits:T,sides:s,values:v,onMouseOver:p,onMouseOut:m};return(0,a.createElement)(Q_,{id:R,role:"group","aria-labelledby":P},(0,a.createElement)(eC,{className:"component-box-control__header"},(0,a.createElement)(gh,null,(0,a.createElement)(Bv.VisualLabel,{id:P},r)),d&&(0,a.createElement)(gh,null,(0,a.createElement)(pd,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(f),g(f),T(f),x(!1)},disabled:!w},(0,c.__)("Reset")))),(0,a.createElement)(tC,{className:"component-box-control__header-control-wrapper"},(0,a.createElement)(gh,null,(0,a.createElement)(FC,{side:C,sides:s})),E&&(0,a.createElement)(Xm,null,(0,a.createElement)(_C,{"aria-label":r,...M})),!E&&l&&(0,a.createElement)(Xm,null,(0,a.createElement)(TC,{...M})),!y&&(0,a.createElement)(gh,null,(0,a.createElement)(BC,{onClick:()=>{_(!E),S(wC(!E,l))},isLinked:E}))),!E&&!l&&(0,a.createElement)(SC,{...M}))}var $C=HC;var WC=(0,a.forwardRef)((function(e,t){const{className:n,...r}=e,o=l()("components-button-group",n);return(0,a.createElement)("div",{ref:t,role:"group",className:o,...r})}));const UC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function GC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const KC=Ku((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:l=0,value:c=0,...u}=Gu(e,"Elevation"),d=Uu();return{...u,className:(0,a.useMemo)((()=>{let e=bh(i)?i:2*c,a=bh(t)?t:c/2;s||(e=bh(i)?i:void 0,a=bh(t)?t:void 0);const u=`box-shadow ${Nh.transitionDuration} ${Nh.transitionTimingFunction}`,f={};return f.Base=Zf({borderRadius:n,bottom:l,boxShadow:GC(c),opacity:Nh.elevationIntensity,left:l,right:l,top:l,transition:u},Ap("transition"),"",""),bh(e)&&(f.hover=Zf("*:hover>&{box-shadow:",GC(e),";}","")),bh(a)&&(f.active=Zf("*:active>&{box-shadow:",GC(a),";}","")),bh(o)&&(f.focus=Zf("*:focus>&{box-shadow:",GC(o),";}","")),d(UC,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,s,l,c]),"aria-hidden":!0}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Elevation");var qC=KC;const YC=`calc(${Nh.cardBorderRadius} - 1px)`,XC=Zf("box-shadow:0 0 0 1px ",Nh.surfaceBorderColor,";outline:none;",""),ZC={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},JC={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},QC={name:"13udsys",styles:"height:100%"},eS={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},tS={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},nS={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},rS=Zf("&:first-of-type{border-top-left-radius:",YC,";border-top-right-radius:",YC,";}&:last-of-type{border-bottom-left-radius:",YC,";border-bottom-right-radius:",YC,";}",""),oS=Zf("border-color:",Nh.colorDivider,";",""),iS={name:"1t90u8d",styles:"box-shadow:none"},aS={name:"1e1ncky",styles:"border:none"},sS=Zf("border-radius:",YC,";",""),lS=Zf("padding:",Nh.cardPaddingXSmall,";",""),cS={large:Zf("padding:",Nh.cardPaddingLarge,";",""),medium:Zf("padding:",Nh.cardPaddingMedium,";",""),small:Zf("padding:",Nh.cardPaddingSmall,";",""),xSmall:lS,extraSmall:lS},uS=Zf("background-color:",Dp.ui.backgroundDisabled,";",""),dS=Zf("background-color:",Nh.surfaceColor,";color:",Dp.gray[900],";position:relative;","");Nh.surfaceBackgroundColor;function fS({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Nh.surfaceBorderColor}`;return Zf({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const pS=Zf("",""),mS=Zf("background:",Nh.surfaceBackgroundTintColor,";",""),hS=Zf("background:",Nh.surfaceBackgroundTertiaryColor,";",""),gS=e=>[e,e].join(" "),vS=e=>["90deg",[Nh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),bS=e=>[[Nh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),yS=(e,t)=>Zf("background:",(e=>[`linear-gradient( ${vS(e)} ) center`,`linear-gradient( ${bS(e)} ) center`,Nh.surfaceBorderBoldColor].join(","))(t),";background-size:",gS(e),";",""),wS=[`linear-gradient( ${[`${Nh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Nh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),xS=(e,t,n)=>{switch(e){case"dotted":return yS(t,n);case"grid":return(e=>Zf("background:",Nh.surfaceBackgroundColor,";background-image:",wS,";background-size:",gS(e),";",""))(t);case"primary":return pS;case"secondary":return mS;case"tertiary":return hS}};function ES(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:l="primary",...c}=Gu(e,"Surface"),u=Uu();return{...c,className:(0,a.useMemo)((()=>{const e={borders:fS({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(dS,e.borders,xS(l,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,l])}}function _S(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Gu(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&($l()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),l=Uu();return{...ES({...s,className:(0,a.useMemo)((()=>l(XC,r&&iS,o&&sS,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const CS=Ku((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...l}=_S(e),c=i?Nh.cardBorderRadius:0,u=Uu(),d=(0,a.useMemo)((()=>u(Zf({borderRadius:c},"",""))),[u,c]),f=(0,a.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,a.createElement)(nc,{value:f},(0,a.createElement)(cd,{...l,ref:t},(0,a.createElement)(cd,{className:u(QC)},n),(0,a.createElement)(qC,{className:d,isInteractive:!1,value:r?1:0}),(0,a.createElement)(qC,{className:d,isInteractive:!1,value:r})))}),"Card");var SS=CS;const kS=Zf("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Nh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Nh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Nh.colorScrollbarThumbHover,";}}",""),TS={name:"13udsys",styles:"height:100%"},RS={name:"7zq9w",styles:"scroll-behavior:smooth"},PS={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},MS={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},IS={name:"umwchj",styles:"overflow-y:auto"};const NS=Ku((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Gu(e,"Scrollable"),i=Uu();return{...o,className:(0,a.useMemo)((()=>i(TS,kS,r&&RS,"x"===n&&PS,"y"===n&&MS,"auto"===n&&IS,t)),[t,i,n,r])}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Scrollable");var OS=NS;const DS=Ku((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Gu(e,"CardBody"),s=Uu();return{...i,className:(0,a.useMemo)((()=>s(eS,rS,cS[o],r&&uS,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,a.createElement)(OS,{...r,ref:t}):(0,a.createElement)(cd,{...r,ref:t})}),"CardBody");var AS=DS,LS=B({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return p({orientation:void 0===t?"horizontal":t},m(e,["orientation"]))},useProps:function(e,t){return p({role:"separator","aria-orientation":e.orientation},t)}}),zS=z({as:"hr",memo:!0,useHook:LS});const FS={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var BS={name:"1u4hpl4",styles:"display:inline"};const jS=sd("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?BS:void 0)," ",(({"aria-orientation":e="horizontal"})=>Zf({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>Zf({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Zf(ih({[FS[e].start]:Jm(null!=n?n:t),[FS[e].end]:Jm(null!=r?r:t)})(),"","")),";");var VS=Ku((function(e,t){const n=Gu(e,"Divider");return(0,a.createElement)(zS,{as:jS,...n,ref:t})}),"Divider");const HS=Ku((function(e,t){const n=function(e){const{className:t,...n}=Gu(e,"CardDivider"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(nS,oS,"components-card__divider",t)),[t,r])}}(e);return(0,a.createElement)(VS,{...n,ref:t})}),"CardDivider");var $S=HS;const WS=Ku((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Gu(e,"CardFooter"),l=Uu();return{...s,className:(0,a.useMemo)((()=>l(JC,rS,oS,cS[i],r&&aS,o&&uS,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,a.createElement)(hh,{...n,ref:t})}),"CardFooter");var US=WS;const GS=Ku((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Gu(e,"CardHeader"),s=Uu();return{...i,className:(0,a.useMemo)((()=>s(ZC,rS,oS,cS[o],n&&aS,r&&uS,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,a.createElement)(hh,{...n,ref:t})}),"CardHeader");var KS=GS;const qS=Ku((function(e,t){const n=function(e){const{className:t,...n}=Gu(e,"CardMedia"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(tS,rS,"components-card__media",t)),[t,r])}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"CardMedia");var YS=qS;var XS=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:s,indeterminate:c,help:d,id:f,onChange:p,...m}=t;i&&$l()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),y=(0,u.useRefEffect)((e=>{e&&(e.indeterminate=!!c,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,c]),w=(0,u.useInstanceId)(e,"inspector-checkbox-control",f);return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:i,id:w,help:d,className:l()("components-checkbox-control",o)},(0,a.createElement)("span",{className:"components-checkbox-control__input-container"},(0,a.createElement)("input",{ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:s,"aria-describedby":d?w+"__help":void 0,...m}),v?(0,a.createElement)(by,{icon:uh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,a.createElement)(by,{icon:e_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};const ZS=4e3;function JS({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){$l()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,a.useRef)(),c=(0,u.useCopyToClipboard)(o,(()=>{n(),s.current&&clearTimeout(s.current),r&&(s.current=setTimeout((()=>r()),ZS))}));(0,a.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const d=l()("components-clipboard-button",e);return(0,a.createElement)(pd,{...i,className:d,ref:c,onCopy:e=>{e.target.focus()}},t)}var QS=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const ek=Zf("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;svg,path{fill:currentColor;}&:hover{color:",Dp.ui.theme,";}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t--wp-components-color-accent,\n\t\t\t\tvar( --wp-admin-theme-color, ",Dp.ui.theme," )\n\t\t\t);outline:2px solid transparent;}",""),tk={name:"1bcj5ek",styles:"width:100%;display:block"},nk={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},rk=Zf("border:1px solid ",Nh.surfaceBorderColor,";",""),ok=Zf(">*:not( marquee )>*{border-bottom:1px solid ",Nh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),ik=Nh.controlBorderRadius,ak=Zf("border-radius:",ik,";",""),sk=Zf("border-radius:",ik,";>*:first-of-type>*{border-top-left-radius:",ik,";border-top-right-radius:",ik,";}>*:last-of-type>*{border-bottom-left-radius:",ik,";border-bottom-right-radius:",ik,";}",""),lk=`calc(${Nh.fontSize} * ${Nh.fontLineHeightBase})`,ck=`calc((${Nh.controlHeight} - ${lk} - 2px) / 2)`,uk=`calc((${Nh.controlHeightSmall} - ${lk} - 2px) / 2)`,dk=`calc((${Nh.controlHeightLarge} - ${lk} - 2px) / 2)`,fk={small:Zf("padding:",uk," ",Nh.controlPaddingXSmall,";",""),medium:Zf("padding:",ck," ",Nh.controlPaddingX,";",""),large:Zf("padding:",dk," ",Nh.controlPaddingXLarge,";","")};const pk=(0,a.createContext)({size:"medium"}),mk=()=>(0,a.useContext)(pk);var hk=Ku((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=Gu(e,"ItemGroup");return{isBordered:n,className:Uu()(n&&rk,o&&ok,r&&sk,t),role:i,isSeparated:o,...a}}(e),{size:s}=mk(),l={spacedAround:!n&&!r,size:o||s};return(0,a.createElement)(pk.Provider,{value:l},(0,a.createElement)(cd,{...i,ref:t}))}),"ItemGroup");const gk=10,vk=0,bk=gk;function yk(e){return Math.max(0,Math.min(100,e))}function wk(e,t,n){const r=e.slice();return r[t]=n,r}function xk(e,t,n){if(function(e,t,n,r=vk){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)({placement:"bottom",offset:8})),[]),o=l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,a.createElement)(f_,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function kk({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,a.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=_k(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(xk(o,a,t))},p=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p),l(),d.current.listenersActivated=!1)},m=(0,a.useRef)();return m.current=p,(0,a.useEffect)((()=>()=>{m.current?.()}),[]),(0,a.createElement)(a.Fragment,null,o.map(((n,m)=>{const h=n?.position;return r!==h&&(0,a.createElement)(Sk,{isRenderedInSidebar:u,key:m,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(Ck,{key:m,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:m,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(xk(o,m,yk(n.position-bk)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(xk(o,m,yk(n.position+bk))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(QE,{enableAlpha:!t,color:n.color,onChange:e=>{i(Ek(o,m,Sp(e).toRgbString()))}}),!e&&o.length>2&&(0,a.createElement)(rb,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,a.createElement)(pd,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,m)),r()},variant:"link"},(0,c.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}kk.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,a.useState)(!1);return(0,a.createElement)(Sk,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(pd,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ch}),renderContent:()=>(0,a.createElement)(QE,{enableAlpha:!i,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Ek(e,r,n)}(e,o,Sp(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,Sp(n).toRgbString())),c(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};var Tk=kk;const Rk=(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},Pk={id:"IDLE"};function Mk({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:s=!1}){const c=(0,a.useRef)(null),[u,d]=(0,a.useReducer)(Rk,Pk),f=e=>{if(!c.current)return;const t=_k(e.clientX,c.current);n.some((({position:e})=>Math.abs(t-e){d({type:"STOP_INSERTER_MOVE"})}},(0,a.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,a.createElement)("div",{ref:c,className:"components-custom-gradient-picker__markers-container"},!o&&(p||m)&&(0,a.createElement)(Tk.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,a.createElement)(Tk,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,disableRemove:o,gradientPickerDomRef:c,ignoreMarkerPosition:m?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var Ik=o(7115);const Nk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Ok={type:"angular",value:"90"},Dk=[{value:"linear-gradient",label:(0,c.__)("Linear")},{value:"radial-gradient",label:(0,c.__)("Radial")}],Ak={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Lk({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function zk({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(Lk)].filter(Boolean).join(",")})`}function Fk(e){return void 0===e.length||"%"!==e.length.type}function Bk(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Tp([Rp]);const jk=sd(Xm,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Vk=sd(Xm,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Hk=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,a.createElement)(mb,{__nextHasNoMarginBottom:!0,onChange:t=>{n(zk({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},$k=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,a.createElement)(_y,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,c.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(zk({...e,orientation:e.orientation?void 0:Ok,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(zk({...r,type:"radial-gradient"}))})()},options:Dk,size:"__unstable-large",value:t?r:void 0})};var Wk=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:Nk;try{t=Ik.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=Ik.parse(Nk)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Ak[t.orientation.value].toString()}),t.colorStops.some(Fk)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),s=function(e){return zk({type:"linear-gradient",orientation:Ok,colorStops:e.colorStops})}(o),c=o.colorStops.map((e=>({color:Bk(e),position:parseInt(e.length.value)})));return e||$l()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,a.createElement)(r_,{spacing:4,className:l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,a.createElement)(Mk,{__experimentalIsRenderedInSidebar:r,background:s,hasGradient:i,value:c,onChange:e=>{n(zk(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Sp(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,a.createElement)(hh,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,a.createElement)(jk,null,(0,a.createElement)($k,{gradientAST:o,hasGradient:i,onChange:n})),(0,a.createElement)(Vk,null,"linear-gradient"===o.type&&(0,a.createElement)(Hk,{gradientAST:o,hasGradient:i,onChange:n}))))};const Uk=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Gk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,a.createElement)(n_.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||(0,c.sprintf)((0,c.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Gradient: %s"),n):(0,c.sprintf)((0,c.__)("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,a.createElement)(n_,{className:e,options:s,actions:i})}function Kk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i,headingLevel:s}){return(0,a.createElement)(r_,{spacing:3,className:e},n.map((({name:e,gradients:l},c)=>(0,a.createElement)(r_,{spacing:2,key:c},(0,a.createElement)(a_,{level:s},e),(0,a.createElement)(Gk,{clearGradient:t,gradients:l,onChange:e=>r(e,c),value:o,...n.length===c+1?{actions:i}:{}})))))}function qk(e){return Uk(e.gradients)?(0,a.createElement)(Kk,{...e}):(0,a.createElement)(Gk,{...e})}var Yk=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:l,headingLevel:u=2}){const d=(0,a.useCallback)((()=>r(void 0)),[r]);e||$l()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const f=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,a.createElement)(lh,{marginBottom:0,...f},(0,a.createElement)(r_,{spacing:n.length?4:0},!s&&(0,a.createElement)(Wk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:l,value:o,onChange:r}),(n.length||i)&&(0,a.createElement)(qk,{className:t,clearGradient:d,gradients:n,onChange:r,value:o,actions:i&&!s&&(0,a.createElement)(n_.ButtonAction,{onClick:d},(0,c.__)("Clear")),headingLevel:u})))};var Xk=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));const Zk=()=>{},Jk=["menuitem","menuitemradio","menuitemcheckbox"];class Qk extends a.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?Wl.focus.tabbable:Wl.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=Zk,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&Jk.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d(0,a.createElement)(Qk,{...e,forwardedRef:t});eT.displayName="NavigableContainer";var tT=(0,a.forwardRef)(eT);const nT=(0,a.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,a.createElement)(tT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})}));var rT=nT;function oT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}function iT(e){return"function"==typeof e}const aT=qu((function(e){const{children:t,className:n,controls:r,icon:o=Xk,label:i,popoverProps:s,toggleProps:c,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:p,variant:m}=Gu(e,"DropdownMenu");if(!r?.length&&!iT(t))return null;let h;r?.length&&(h=r,Array.isArray(h[0])||(h=[r]));const g=oT({className:"components-dropdown-menu__popover",variant:m},s);return(0,a.createElement)(py,{className:n,popoverProps:g,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=pd,...s}=null!=c?c:{},u=oT({className:l()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,a.createElement)(r,{...u,icon:o,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:f,showTooltip:null===(n=c?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=oT({"aria-label":i,className:l()("components-dropdown-menu__menu",{"no-icons":p})},u);return(0,a.createElement)(rT,{...n,role:"menu"},iT(t)?t(e):null,h?.flatMap(((t,n)=>t.map(((t,r)=>(0,a.createElement)(pd,{key:[n,r].join(),onClick: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,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"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))))))}})}),"DropdownMenu");var sT=aT;const lT=sd(n_.Option,{target:"e5bw3229"})("width:",Jm(6),";height:",Jm(6),";pointer-events:none;"),cT=sd($v,{target:"e5bw3228"})(tg,"{background:",Dp.gray[100],";border-radius:",Nh.controlBorderRadius,";",rg,rg,rg,rg,"{height:",Jm(8),";}",sg,sg,sg,"{border-color:transparent;box-shadow:none;}}"),uT=sd(cd,{target:"e5bw3227"})("padding:3px 0 3px ",Jm(3),";height:calc( 40px - ",Nh.borderWidth," );border:1px solid ",Nh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",Nh.controlBorderRadius,";border-top-right-radius:",Nh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Nh.controlBorderRadius,";border-bottom-right-radius:",Nh.controlBorderRadius,";border-bottom-color:",Nh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Dp.ui.theme,";}"),dT=sd("div",{target:"e5bw3226"})("line-height:",Jm(8),";margin-left:",Jm(2),";margin-right:",Jm(2),";white-space:nowrap;overflow:hidden;",uT,":hover &{color:",Dp.ui.theme,";}"),fT=sd(i_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",Jm(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),pT=sd(cd,{target:"e5bw3224"})("height:",Jm(6),";display:flex;"),mT=sd(rb,{target:"e5bw3223"})("margin-bottom:",Jm(2),";"),hT=sd(cd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),gT=sd(pd,{target:"e5bw3221"})("&&{color:",Dp.ui.theme,";}"),vT=sd(pd,{target:"e5bw3220"})("&&{margin-top:",Jm(1),";}"),bT="#000";function yT({value:e,onChange:t,label:n}){return(0,a.createElement)(cT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function wT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,a.useMemo)((()=>({shift:!0,offset:20,placement:"left-start",...r,className:l()("components-palette-edit__popover",r?.className)})),[r]);return(0,a.createElement)(Ff,{...i,onClose:o},!e&&(0,a.createElement)(QE,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,a.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,a.createElement)(Wk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function xT({canOnlyChangeValues:e,element:t,onChange:n,isEditing:r,onStartEditing:o,onRemove:i,onStopEditing:s,popoverProps:l,slugPrefix:d,isGradient:f}){const p=(0,u.__experimentalUseFocusOutside)(s),m=f?t.gradient:t.color,[h,g]=(0,a.useState)(null),v=(0,a.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,a.createElement)(uT,{className:r?"is-selected":void 0,as:"div",onClick:o,ref:g,...r?{...p}:{style:{cursor:"pointer"}}},(0,a.createElement)(rb,{justify:"flex-start"},(0,a.createElement)(gh,null,(0,a.createElement)(lT,{style:{background:m,color:"transparent"}})),(0,a.createElement)(gh,null,r&&!e?(0,a.createElement)(yT,{label:f?(0,c.__)("Gradient name"):(0,c.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:d+mc(null!=e?e:"")})}):(0,a.createElement)(dT,null,t.name)),r&&!e&&(0,a.createElement)(gh,null,(0,a.createElement)(vT,{isSmall:!0,icon:jb,label:(0,c.__)("Remove color"),onClick:i}))),r&&(0,a.createElement)(wT,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function ET(e,{slug:t,color:n,gradient:r}){return new RegExp(`^${e}color-([\\d]+)$`).test(t)&&(!!n&&n===bT||!!r&&r===Nk)}function _T({elements:e,onChange:t,editingElement:n,setEditingElement:r,canOnlyChangeValues:o,slugPrefix:i,isGradient:s,popoverProps:l}){const c=(0,a.useRef)();(0,a.useEffect)((()=>{c.current=e}),[e]),(0,a.useEffect)((()=>()=>{if(c.current?.some((e=>ET(i,e)))){const e=c.current.filter((e=>!ET(i,e)));t(e.length?e:void 0)}}),[]);const d=(0,u.useDebounce)(t,100);return(0,a.createElement)(r_,{spacing:3},(0,a.createElement)(hk,{isRounded:!0},e.map(((c,u)=>(0,a.createElement)(xT,{isGradient:s,canOnlyChangeValues:o,key:u,element:c,onStartEditing:()=>{n!==u&&r(u)},onChange:t=>{d(e.map(((e,n)=>n===u?t:e)))},onRemove:()=>{r(null);const n=e.filter(((e,t)=>t!==u));t(n.length?n:void 0)},isEditing:u===n,onStopEditing:()=>{u===n&&r(null)},slugPrefix:i,popoverProps:l})))))}const CT=[];var ST=function({gradients:e,colors:t=CT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:l,slugPrefix:d="",popoverProps:f}){const p=!!e,m=p?e:t,[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(null),y=h&&!!v&&m[v]&&!m[v].slug,w=m.length>0,x=(0,u.useDebounce)(n,100),E=(0,a.useCallback)(((e,t)=>{const n=void 0===t?void 0:m[t];n&&n[p?"gradient":"color"]===e?b(t):g(!0)}),[p,m]);return(0,a.createElement)(hT,null,(0,a.createElement)(mT,null,(0,a.createElement)(fT,{level:o},r),(0,a.createElement)(pT,null,w&&h&&(0,a.createElement)(gT,{isSmall:!0,onClick:()=>{g(!1),b(null)}},(0,c.__)("Done")),!s&&(0,a.createElement)(pd,{isSmall:!0,isPressed:y,icon:ch,label:p?(0,c.__)("Add gradient"):(0,c.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,c.sprintf)((0,c.__)("Color %s"),r)}(m,d);n(e?[...e,{gradient:Nk,name:r,slug:d+mc(r)}]:[...t,{color:bT,name:r,slug:d+mc(r)}]),g(!0),b(m.length)}}),w&&(!h||!s||l)&&(0,a.createElement)(sT,{icon:QS,label:p?(0,c.__)("Gradient options"):(0,c.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(rT,{role:"menu"},!h&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,c.__)("Show details")),!s&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},p?(0,c.__)("Remove all gradients"):(0,c.__)("Remove all colors")),l&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},p?(0,c.__)("Reset gradient"):(0,c.__)("Reset colors")))))))),w&&(0,a.createElement)(a.Fragment,null,h&&(0,a.createElement)(_T,{canOnlyChangeValues:s,elements:m,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:d,isGradient:p,popoverProps:f}),!h&&null!==v&&(0,a.createElement)(wT,{isGradient:p,onClose:()=>b(null),onChange:e=>{x(m.map(((t,n)=>n===v?e:t)))},element:m[null!=v?v:-1],popoverProps:f}),!h&&(p?(0,a.createElement)(Yk,{__nextHasNoMargin:!0,gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,a.createElement)(m_,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!w&&i)};const kT=({__next40pxDefaultSize:e})=>!e&&Zf("height:28px;padding-left:",Jm(1),";padding-right:",Jm(1),";",""),TT=sd(hh,{target:"evuatpg0"})("height:38px;padding-left:",Jm(2),";padding-right:",Jm(2),";",kT,";");const RT=(0,a.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:c,onFocus:u,onBlur:d,...f}=e,[p,m]=(0,a.useState)(!1),h=n?n.length+1:0;return(0,a.createElement)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...f,value:n||"",onChange:e=>{c&&c({value:e.target.value})},onFocus:e=>{m(!0),u?.(e)},onBlur:e=>{m(!1),d?.(e)},size:h,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}));var PT=RT,MT=o(5425),IT=o.n(MT);const NT=e=>{e.preventDefault()};var OT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:c,__experimentalRenderItem:d}){const[f,p]=(0,a.useState)(!1),m=(0,u.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(p(!0),IT()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{p(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||r?.(e)},g=e=>()=>{o?.(e)};return(0,a.createElement)("ul",{ref:m,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox"},i.map(((t,r)=>{const o=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=l()("components-form-token-field__suggestion",{"is-selected":r===e});let u;return u="function"==typeof d?d({item:t}):o?(0,a.createElement)("span",{"aria-label":s(t)},o.suggestionBeforeMatch,(0,a.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):s(t),(0,a.createElement)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:i,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:NT,onClick:g(t),onMouseEnter:h(t),"aria-selected":r===e},u)})))},DT=(0,u.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,a.createElement)("div",{...(0,u.__experimentalUseFocusOutside)(n)},(0,a.createElement)(e,{ref:o,...t}))}),"withFocusOutside");function AT(e,t){const{__next36pxDefaultSize:n,__next40pxDefaultSize:r,...o}=e;return void 0!==n&&$l()("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:"6.3"}),{...o,__next40pxDefaultSize:null!=r?r:n}}const LT=()=>{},zT=DT(class extends a.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),FT=(e,t)=>null===e?-1:t.indexOf(e);var BT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:s,options:d,onChange:f,onFilterValueChange:p=LT,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,c.__)("Item selected.")},__experimentalRenderItem:y}=AT(t,"wp.components.ComboboxControl"),[w,x]=GE({value:i,onChange:f}),E=d.find((e=>e.value===w)),_=null!==(n=E?.label)&&void 0!==n?n:"",C=(0,u.useInstanceId)(e,"combobox-control"),[S,k]=(0,a.useState)(E||null),[T,R]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[I,N]=(0,a.useState)(""),O=(0,a.useRef)(null),D=(0,a.useMemo)((()=>{const e=[],t=[],n=wb(I);return d.forEach((r=>{const o=wb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,d]),A=e=>{x(e.value),(0,bb.speak)(b.selected,"assertive"),k(e),N(""),R(!1)},L=(e=1)=>{let t=FT(S,D)+e;t<0?t=D.length-1:t>=D.length&&(t=0),k(D[t]),R(!0)};return(0,a.useEffect)((()=>{const e=D.length>0,t=FT(S,D)>0;e&&!t&&k(D[0])}),[D,S]),(0,a.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,c.__)("No results.");(0,bb.speak)(t,"polite")}}),[D,T]),(0,a.createElement)(zT,{onFocusOutside:()=>{R(!1)}},(0,a.createElement)(jv,{__nextHasNoMarginBottom:r,className:l()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,a.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":S&&(A(S),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,a.createElement)(TT,{__next40pxDefaultSize:o},(0,a.createElement)(Xm,null,(0,a.createElement)(PT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:_,onFocus:()=>{M(!0),R(!0),p(""),N("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:FT(S,D),onChange:e=>{const t=e.value;N(t),p(t),P&&R(!0)}})),g&&(0,a.createElement)(gh,null,(0,a.createElement)(pd,{className:"components-combobox-control__reset",icon:Bb,disabled:!w,onClick:()=>{x(null),O.current?.focus()},label:(0,c.__)("Reset")}))),T&&(0,a.createElement)(OT,{instanceId:C,match:{label:I,value:""},displayTransform:e=>e.label,suggestions:D,selectedIndex:FT(S,D),onHover:k,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const jT=new Set(["alert","status","log","marquee","timer"]);let VT=[],HT=!1;function $T(e){if(HT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&jT.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),VT.push(t))})),HT=!0}let WT=0;const UT=(0,a.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:d=!0,isDismissible:f=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:m,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:w,contentLabel:x,onKeyDown:E,isFullScreen:_=!1,__experimentalHideHeader:C=!1}=e,S=(0,a.useRef)(),k=(0,u.useInstanceId)(UT),T=o?`components-modal-header-${k}`:p.labelledby,R=(0,u.useFocusOnMount)(i),P=(0,u.useConstrainedTabbing)(),M=(0,u.useFocusReturn)(),I=(0,u.__experimentalUseFocusOutside)(m),N=(0,a.useRef)(null),O=(0,a.useRef)(null),[D,A]=(0,a.useState)(!1),[L,z]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if(!N.current)return;const e=(0,Wl.getScrollContainer)(N.current);N.current===e?z(!0):z(!1)}),[N]);(0,a.useEffect)((()=>(WT++,1===WT&&($T(S.current),document.body.classList.add(n)),()=>{WT--,0===WT&&(document.body.classList.remove(n),HT&&(VT.forEach((e=>{e.removeAttribute("aria-hidden")})),VT=[],HT=!1))})),[n]),(0,a.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(F);return e.observe(O.current),F(),()=>{e.disconnect()}}),[F,O]);const B=(0,a.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?A(!0):D&&n<=0&&A(!1)}),[D]);return(0,a.createPortal)((0,a.createElement)("div",{ref:(0,u.useMergeRefs)([S,t]),className:l()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||s&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},(0,a.createElement)(mf,{document:document},(0,a.createElement)("div",{className:l()("components-modal__frame",w,{"is-full-screen":_}),style:b,ref:(0,u.useMergeRefs)([P,M,R]),role:r,"aria-label":x,"aria-labelledby":x?void 0:T,"aria-describedby":p.describedby,tabIndex:-1,...d?I:{},onKeyDown:E},(0,a.createElement)("div",{className:l()("components-modal__content",{"hide-header":C,"is-scrollable":L,"has-scrolled-content":D}),role:"document",onScroll:B,ref:N,"aria-label":L?(0,c.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!C&&(0,a.createElement)("div",{className:"components-modal__header"},(0,a.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,a.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),o&&(0,a.createElement)("h1",{id:T,className:"components-modal__header-heading"},o)),f&&(0,a.createElement)(pd,{onClick:m,icon:Vl,label:g||(0,c.__)("Close")})),(0,a.createElement)("div",{ref:O},v))))),document.body)}));var GT=UT;const KT={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var qT=Ku((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=Gu(e,"ConfirmDialog"),d=Uu()(KT),f=(0,a.useRef)(),p=(0,a.useRef)(),[m,h]=(0,a.useState)(),[g,v]=(0,a.useState)();(0,a.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,a.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,a.useCallback)((e=>{e.target===f.current||e.target===p.current||"Enter"!==e.key||b(r)(e)}),[b,r]),w=null!=l?l:(0,c.__)("Cancel"),x=null!=s?s:(0,c.__)("OK");return(0,a.createElement)(a.Fragment,null,m&&(0,a.createElement)(GT,{onRequestClose:b(o),onKeyDown:y,closeButtonLabel:w,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u},(0,a.createElement)(r_,{spacing:8},(0,a.createElement)(Yh,null,i),(0,a.createElement)(hh,{direction:"row",justify:"flex-end"},(0,a.createElement)(pd,{ref:f,variant:"tertiary",onClick:b(o)},w),(0,a.createElement)(pd,{ref:p,variant:"primary",onClick:b(r)},x)))))}),"ConfirmDialog"),YT=o(2652),XT=o.n(YT);o(2797);function ZT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function JT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function QT(e,t){if(e.clientHeightt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}let tR=0;function nR(){}function rR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!ZT(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;ZT(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&QT(p)&&!QT(document.documentElement)||null!=p&&QT(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,x=b.top,E=b.right,_=b.bottom,C=b.left,S="start"===o||"nearest"===o?x:"end"===o?_:x+y/2,k="center"===i?C+w/2:"end"===i?E:C,T=[],R=0;R=0&&C>=0&&_<=h&&E<=m&&x>=O&&_<=A&&C>=L&&E<=D)return T;var z=getComputedStyle(P),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),j=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-F-j:0,U="offsetHeight"in P?P.offsetHeight-P.clientHeight-B-V:0,G="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:I/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?eR(v,v+h,h,B,V,v+S,v+S+y,y):S-h/2,$="start"===i?k:"center"===i?k-m/2:"end"===i?k-m:eR(g,g+m,m,F,j,g+k,g+k+w,w),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-O-B:"end"===o?S-A+V+U:"nearest"===o?eR(O,A,I,B,V+U,S,S+y,y):S-(O+I/2)+U/2,$="start"===i?k-L-F:"center"===i?k-(L+N/2)+W/2:"end"===i?k-D+j+W:eR(L,D,N,F,j+W,k,k+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/K,P.scrollHeight-I/K+U))),k+=q-($=Math.max(0,Math.min(q+$/G,P.scrollWidth-N/G+W)))}T.push({el:P,top:H,left:$})}return T}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function oR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function iR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a{n=null,e(...i)}),t)}return o.cancel=r,o}function aR(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function sR(){for(var e=arguments.length,t=new Array(e),n=0;n{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function lR(){return String(tR++)}function cR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function uR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=dR(t,r)?t[r]:e[r],n)),{})}function dR(e,t){return void 0!==e[t]}function fR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function pR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=mR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function mR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?mR(1,0,n,r,!1):mR(-1,n-1,n,r,!1):-1}function hR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(oR(t,e,n)||r&&oR(t,n.document.activeElement,n))))}const gR=iR((e=>{bR(e).textContent=""}),500);function vR(e,t){const n=bR(t);e&&(n.textContent=e,gR(t))}function bR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.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)}const yR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${kR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const xR=iR(((e,t)=>{vR(e(),t)}),200),ER="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;function _R(e){let{id:t=`downshift-${lR()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,v.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function CR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function SR(e){return/^\S{1}$/.test(e)}function kR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function TR(e){const t=(0,v.useRef)(e);return t.current=e,t}function RR(e,t,n){const r=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useCallback)(((t,n)=>{o.current=n,t=uR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,v.useReducer)(i,t),l=TR(n),c=(0,v.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,v.useEffect)((()=>{u&&r.current&&r.current!==a&&wR(u,uR(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function PR(e,t,n){const[r,o]=RR(e,t,n);return[uR(r,n),o]}const MR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:rR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function IR(e,t,n){void 0===n&&(n=yR);const r=e[`default${kR(t)}`];return void 0!==r?r:n[t]}function NR(e,t,n){void 0===n&&(n=yR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${kR(t)}`];return void 0!==o?o:IR(e,t,n)}function OR(e){const t=NR(e,"selectedItem"),n=NR(e,"isOpen"),r=NR(e,"highlightedIndex"),o=NR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function DR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):pR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function AR(e,t,n,r){const o=(0,v.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,v.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!hR(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||hR(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let LR=()=>nR;function zR(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,v.useEffect)((()=>{r||xR((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function FR(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,v.useRef)(!0);return ER((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let BR=nR;function jR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:DR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:DR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:IR(o,"highlightedIndex"),isOpen:IR(o,"isOpen"),selectedItem:IR(o,"selectedItem"),inputValue:IR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function VR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s=0&&{selectedItem:r.items[a]}}}break;case rP:i={highlightedIndex:DR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case oP:i={highlightedIndex:DR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case YR:case XR:i={isOpen:IR(r,"isOpen"),highlightedIndex:IR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case KR:i={highlightedIndex:mR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case qR:i={highlightedIndex:mR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case GR:case JR:i={isOpen:!1,highlightedIndex:-1};break;case ZR:{const n=t.key,o=`${e.inputValue}${n}`,a=VR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case WR:i={highlightedIndex:pR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case UR:i={highlightedIndex:pR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case uP:i={selectedItem:t.selectedItem};break;default:return jR(e,t,pP)}return{...e,...i}}function hP(e){void 0===e&&(e={}),$R(e,hP);const t={...HR,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=OR(t),[d,f]=PR(mP,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,b=(0,v.useRef)(null),y=(0,v.useRef)(null),w=(0,v.useRef)({}),x=(0,v.useRef)(!0),E=(0,v.useRef)(null),_=_R(t),C=(0,v.useRef)(),S=(0,v.useRef)(!0),k=TR({state:d,props:t}),T=(0,v.useCallback)((e=>w.current[_.getItemId(e)]),[_]);zR(c,[p,m,g,n],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),zR(l,[h],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const R=FR({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,v.useEffect)((()=>(E.current=iR((e=>{e({type:dP,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,v.useEffect)((()=>{g&&E.current(f)}),[f,g]),BR({isInitialMount:S.current,props:t,state:d}),(0,v.useEffect)((()=>{S.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&b.current&&(x.current=!1,b.current.focus())}),[p]),(0,v.useEffect)((()=>{S.current||(C.current=n.length)}));const P=AR(p,[y,b],o,(()=>{f({type:JR})})),M=LR("getMenuProps","getToggleButtonProps");(0,v.useEffect)((()=>{S.current=!1}),[]),(0,v.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:rP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:oP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),N=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:WR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:UR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:KR,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:qR,getItemNodeFromIndex:T})},Escape(){f({type:GR})},Enter(e){e.preventDefault(),f({type:YR})}," "(e){e.preventDefault(),f({type:XR})}})),[f,T]),O=(0,v.useCallback)((()=>{f({type:aP})}),[f]),D=(0,v.useCallback)((()=>{f({type:lP})}),[f]),A=(0,v.useCallback)((()=>{f({type:sP})}),[f]),L=(0,v.useCallback)((e=>{f({type:cP,highlightedIndex:e})}),[f]),z=(0,v.useCallback)((e=>{f({type:uP,selectedItem:e})}),[f]),F=(0,v.useCallback)((()=>{f({type:fP})}),[f]),B=(0,v.useCallback)((e=>{f({type:dP,inputValue:e})}),[f]),j=(0,v.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,v.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return M("getMenuProps",l,r,y),{[r]:sR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:aR(n,(()=>{f({type:QR})})),onKeyDown:aR(o,(e=>{const t=fR(e);t&&N[t]?N[t](e):SR(t)&&f({type:ZR,key:t,getItemNodeFromIndex:T})})),onBlur:aR(i,(()=>{if(!1===x.current)return void(x.current=!0);!P.current.isMouseDown&&f({type:JR})})),...s}}),[f,k,N,P,M,_,T]),H=(0,v.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:nP})},c=e=>{const t=fR(e);t&&I[t]?I[t](e):SR(t)&&f({type:iP,key:t,getItemNodeFromIndex:T})},u={[o]:sR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=aR(n,l),u.onKeyDown=aR(r,c)),M("getToggleButtonProps",s,o,b),u}),[f,k,I,M,_,T]),$=(0,v.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{f({type:tP,index:n})},p=CR(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:_.getItemId(p),[i]:sR(a,(e=>{e&&(w.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=aR(o,d)),m.onMouseMove=aR(r,(()=>{n!==c.highlightedIndex&&(R.current=!1,f({type:eP,index:n,disabled:s}))})),m}),[f,k,R,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}hP.stateChangeTypes=pP;XT().array.isRequired,XT().func,XT().func,XT().func,XT().bool,XT().number,XT().number,XT().number,XT().bool,XT().bool,XT().bool,XT().any,XT().any,XT().any,XT().string,XT().string,XT().string,XT().string,XT().string,XT().string,XT().func,XT().string,XT().string,XT().func,XT().func,XT().func,XT().func,XT().func,XT().func,XT().shape({addEventListener:XT().func,removeEventListener:XT().func,document:XT().shape({getElementById:XT().func,activeElement:XT().any,body:XT().any})});XT().array,XT().array,XT().array,XT().func,XT().func,XT().func,XT().number,XT().number,XT().number,XT().func,XT().func,XT().string,XT().string,XT().shape({addEventListener:XT().func,removeEventListener:XT().func,document:XT().shape({getElementById:XT().func,activeElement:XT().any,body:XT().any})});const gP=e=>e.__nextUnconstrainedWidth?"":Zf(tg,"{min-width:130px;}",""),vP=sd(hg,{target:"eswuck60"})(gP,";"),bP=e=>e?.name,yP=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case hP.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case hP.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function wP(e){const{__next36pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:s,options:u,onChange:d,size:f="default",value:p,onMouseOver:m,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=e,{getLabelProps:y,getToggleButtonProps:w,getMenuProps:x,getItemProps:E,isOpen:_,highlightedIndex:C,selectedItem:S}=hP({initialSelectedItem:u[0],items:u,itemToString:bP,onSelectedItemChange:d,...null!=p?{selectedItem:p}:void 0,stateReducer:yP}),[k,T]=(0,a.useState)(!1);n||$l()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const R=x({className:"components-custom-select-control__menu","aria-hidden":!_}),P=(0,a.useCallback)((e=>{e.stopPropagation(),R?.onKeyDown?.(e)}),[R]);return R["aria-activedescendant"]?.startsWith("downshift-null")&&delete R["aria-activedescendant"],(0,a.createElement)("div",{className:l()("components-custom-select-control",r)},o?(0,a.createElement)(ud,{as:"label",...y()},i):(0,a.createElement)(Av,{...y({className:"components-custom-select-control__label"})},i),(0,a.createElement)(vP,{__next36pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,a.createElement)(wy,null)},(0,a.createElement)(hy,{onMouseOver:m,onMouseOut:h,as:"button",onFocus:function(e){T(!0),g?.(e)},onBlur:function(e){T(!1),v?.(e)},selectSize:f,__next36pxDefaultSize:t,...w({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(S?(0,c.sprintf)((0,c.__)("Currently selected: %s"),S.name):(0,c.__)("No selection"))})},bP(S),b&&S.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__hint"},S.__experimentalHint))),(0,a.createElement)("ul",{...R,onKeyDown:P},_&&u.map(((e,n)=>(0,a.createElement)("li",{...E({item:e,index:n,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":n===C,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===S&&(0,a.createElement)(by,{icon:e_,className:"components-custom-select-control__item-icon"}))))))}function xP(e){return(0,a.createElement)(wP,{...e,__experimentalShowSelectedHint:!1})}function EP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function _P(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function CP(e){_P(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function SP(e,t){_P(2,arguments);var n=CP(e),r=EP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var kP,TP,RP={};function PP(){return RP}function MP(e,t){var n,r,o,i,a,s,l,c;_P(1,arguments);var u=PP(),d=EP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CP(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CP(e),p=f.getDay(),m=6+(pr.getTime()}(e,t))&&(zP(e,n)||function(e,t){_P(2,arguments);var n=CP(e),r=CP(t);return n.getTime()-1}),[E]),S=(0,v.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,v.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!zP(t,e)}))}))}),[]),T=(0,v.useCallback)((function(e,t){return C(e)?k(e):S(e,t)}),[k,C,S]),R=(0,v.useCallback)((function(e,t,n){_(n?DP({start:e,end:t}):function(n){return n.concat(DP({start:e,end:t}))})}),[]),P=(0,v.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!DP({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,v.useMemo)((function(){return function(e){_P(1,arguments);var t=e||{},n=CP(t.start),r=CP(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(CP(i)),i.setMonth(i.getMonth()+1);return o}({start:AP(d),end:OP(SP(d,c-1))}).map((function(e){return function(e,t){_P(1,arguments);var n=e||{},r=CP(n.start),o=CP(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=MP(r,t),s=MP(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(CP(c)),(c=IP(c,1)).setHours(15);return l}({start:AP(e),end:OP(e)},{weekStartsOn:r}).map((function(e){return DP({start:MP(e,{weekStartsOn:r}),end:LP(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:VP,inRange:jP,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:b,viewPreviousYear:y,viewNextYear:w,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:C,select:S,deselect:k,toggle:T,selectRange:R,deselectRange:P,calendar:M}};function $P(e){return $P="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},$P(e)}function WP(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function UP(e){WP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===$P(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function GP(e){WP(1,arguments);var t=UP(e);return t.setHours(0,0,0,0),t}function KP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function qP(e,t){WP(2,arguments);var n=UP(e),r=KP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function YP(e,t){return WP(2,arguments),qP(e,-KP(t))}function XP(e){if(WP(1,arguments),!function(e){return WP(1,arguments),e instanceof Date||"object"===$P(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=UP(e);return!isNaN(Number(t))}function ZP(e,t){return WP(2,arguments),function(e,t){WP(2,arguments);var n=UP(e).getTime(),r=KP(t);return new Date(n+r)}(e,-KP(t))}function JP(e){WP(1,arguments);var t=UP(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function QP(e){WP(1,arguments);var t=UP(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=JP(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=JP(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function eM(e){WP(1,arguments);var t=UP(e),n=JP(t).getTime()-function(e){WP(1,arguments);var t=QP(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),JP(n)}(t).getTime();return Math.round(n/6048e5)+1}var tM={};function nM(){return tM}function rM(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=rM(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=rM(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function iM(e,t){WP(1,arguments);var n=UP(e),r=rM(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=oM(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),rM(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function aM(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return aM("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):aM(n+1,2)},d:function(e,t){return aM(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return aM(e.getUTCHours()%12||12,t.length)},H:function(e,t){return aM(e.getUTCHours(),t.length)},m:function(e,t){return aM(e.getUTCMinutes(),t.length)},s:function(e,t){return aM(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return aM(Math.floor(r*Math.pow(10,n-3)),t.length)}},lM=sM,cM="midnight",uM="noon",dM="morning",fM="afternoon",pM="evening",mM="night",hM={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lM.y(e,t)},Y:function(e,t,n,r){var o=oM(e,r),i=o>0?o:1-o;return"YY"===t?aM(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):aM(i,t.length)},R:function(e,t){return aM(QP(e),t.length)},u:function(e,t){return aM(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return aM(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return aM(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return lM.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return aM(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=iM(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):aM(o,t.length)},I:function(e,t,n){var r=eM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):aM(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):lM.d(e,t)},D:function(e,t,n){var r=function(e){WP(1,arguments);var t=UP(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):aM(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return aM(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return aM(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return aM(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?uM:0===o?cM:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?pM:o>=12?fM:o>=4?dM:mM,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lM.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):lM.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):aM(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):aM(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):lM.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):lM.s(e,t)},S:function(e,t){return lM.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return vM(o);case"XXXX":case"XX":return bM(o);default:return bM(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return vM(o);case"xxxx":case"xx":return bM(o);default:return bM(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gM(o,":");default:return"GMT"+bM(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gM(o,":");default:return"GMT"+bM(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return aM(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return aM((r._originalDate||e).getTime(),t.length)}};function gM(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+aM(i,2)}function vM(e,t){return e%60==0?(e>0?"-":"+")+aM(Math.abs(e)/60,2):bM(e,t)}function bM(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+aM(Math.floor(o/60),2)+n+aM(o%60,2)}var yM=hM,wM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},xM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},EM={p:xM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return wM(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",wM(o,t)).replace("{{time}}",xM(i,t))}},_M=EM;var CM=["D","DD"],SM=["YY","YYYY"];function kM(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var TM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RM=function(e,t,n){var r,o=TM[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function PM(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var MM={date:PM({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:PM({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:PM({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},IM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NM=function(e,t,n,r){return IM[e]};function OM(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var DM={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:OM({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:OM({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:OM({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:OM({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:OM({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},AM=DM;function LM(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(zM.matchPattern);if(!n)return null;var r=n[0],o=e.match(zM.parsePattern);if(!o)return null;var i=zM.valueCallback?zM.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:LM({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:LM({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:LM({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:LM({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:LM({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},BM={code:"en-US",formatDistance:RM,formatLong:MM,formatRelative:NM,localize:AM,match:FM,options:{weekStartsOn:0,firstWeekContainsDate:1}},jM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HM=/^'([^]*?)'?$/,$M=/''/g,WM=/[a-zA-Z]/;function UM(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;WP(2,arguments);var x=String(t),E=nM(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:BM,C=KP(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=KP(null!==(p=null!==(m=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(y=E.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=UP(e);if(!XP(k))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),R=ZP(k,T),P={firstWeekContainsDate:C,weekStartsOn:S,locale:_,_originalDate:k},M=x.match(VM).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_M[t])(e,_.formatLong):e})).join("").match(jM).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(HM);if(!t)return e;return t[1].replace($M,"'")}(r);var i=yM[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==SM.indexOf(e)}(r)||kM(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==CM.indexOf(e)}(r)||kM(r,t,String(e)),i(R,r,_.localize,P);if(o.match(WM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function GM(e,t){WP(2,arguments);var n=UP(e),r=UP(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function KM(e,t){WP(2,arguments);var n=UP(e),r=UP(t);return n.getTime()===r.getTime()}function qM(e,t){WP(2,arguments);var n=GP(e),r=GP(t);return n.getTime()===r.getTime()}function YM(e,t){WP(2,arguments);var n=UP(e),r=KP(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function XM(e,t){return WP(2,arguments),YM(e,7*KP(t))}var ZM=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var JM=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),QM=window.wp.date;const eI=sd("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),tI=sd(rb,{target:"e105ri6r4"})("margin-bottom:",Jm(4),";"),nI=sd(i_,{target:"e105ri6r3"})("font-size:",Nh.fontSize,";font-weight:",Nh.fontWeight,";strong{font-weight:",Nh.fontWeightHeading,";}"),rI=sd("div",{target:"e105ri6r2"})("column-gap:",Jm(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Jm(2),";"),oI=sd("div",{target:"e105ri6r1"})("color:",Dp.gray[700],";font-size:",Nh.fontSize,";line-height:",Nh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),iI=sd(pd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",Jm(7),";width:",Jm(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Dp.ui.theme};\n\t\t\tcolor: ${Dp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Dp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Dp.white:Dp.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function aI(e){return"string"==typeof e?new Date(e):UP(e)}const sI="yyyy-MM-dd'T'HH:mm:ss";function lI({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,a.useRef)();return(0,a.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,a.createElement)(iI,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":cI(e,n,l),column:t,isSelected:n,isToday:i,hasEvents:l>0,onClick:c,onKeyDown:u},(0,QM.dateI18n)("j",e,-e.getTimezoneOffset()))}function cI(e,t,n){const{formats:r}=(0,QM.getSettings)(),o=(0,QM.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,c.sprintf)((0,c._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,c.sprintf)((0,c.__)("%1$s. Selected"),o):n>0?(0,c.sprintf)((0,c._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var uI=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?aI(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:f,isSelected:p,viewPreviousMonth:m,viewNextMonth:h}=HP({selected:[GP(s)],viewing:GP(s),weekStartsOn:i}),[g,v]=(0,a.useState)(GP(s)),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e);return e!==w&&(x(e),d([GP(s)]),f(GP(s)),v(GP(s))),(0,a.createElement)(eI,{className:"components-datetime__date",role:"application","aria-label":(0,c.__)("Calendar")},(0,a.createElement)(tI,null,(0,a.createElement)(pd,{icon:(0,c.isRTL)()?ZM:JM,variant:"tertiary","aria-label":(0,c.__)("View previous month"),onClick:()=>{m(),v(YP(g,1)),o?.(UM(YP(u,1),sI))}}),(0,a.createElement)(nI,{level:3},(0,a.createElement)("strong",null,(0,QM.dateI18n)("F",u,-u.getTimezoneOffset()))," ",(0,QM.dateI18n)("Y",u,-u.getTimezoneOffset())),(0,a.createElement)(pd,{icon:(0,c.isRTL)()?JM:ZM,variant:"tertiary","aria-label":(0,c.__)("View next month"),onClick:()=>{h(),v(qP(g,1)),o?.(UM(qP(u,1),sI))}})),(0,a.createElement)(rI,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,a.createElement)(oI,{key:e.toString()},(0,QM.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,i)=>GM(e,u)?(0,a.createElement)(lI,{key:e.toString(),day:e,column:i+1,isSelected:p(e),isFocusable:KM(e,g),isFocusAllowed:b,isToday:qM(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>qM(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(UM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),sI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=YM(e,(0,c.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=YM(e,(0,c.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return WP(2,arguments),XM(e,-KP(t))}(e,1)),"ArrowDown"===t.key&&(n=XM(e,1)),"PageUp"===t.key&&(n=YP(e,1)),"PageDown"===t.key&&(n=qP(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getDay(),m=6+(p{const{timezone:e}=(0,QM.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,a.createElement)(Uf,{position:"top center",text:o},(0,a.createElement)(CI,{className:"components-datetime__timezone"},r))};function kI(e,t){return t?(e%12+12)%24:e%12}function TI(e){return(t,n)=>{const r={...t};return n.type!==hv&&n.type!==_v&&n.type!==xv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var RI=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,a.useState)((()=>t?dI(aI(t)):new Date));(0,a.useEffect)((()=>{o(t?dI(aI(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:u,hours:d,am:f}=(0,a.useMemo)((()=>({day:UM(r,"dd"),month:UM(r,"MM"),year:UM(r,"yyyy"),minutes:UM(r,"mm"),hours:UM(r,e?"hh":"HH"),am:UM(r,"a")})),[r,e]),p=t=>(i,{event:a})=>{if(!(a.target instanceof HTMLInputElement))return;if(!a.target.validity.valid)return;let s=Number(i);"hours"===t&&e&&(s=kI(s,"PM"===f));const l=function(e,t){if(WP(2,arguments),"object"!==$P(t)||null===t)throw new RangeError("values parameter must be an object");var n=UP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=fI(n,t.month)),null!=t.date&&n.setDate(KP(t.date)),null!=t.hours&&n.setHours(KP(t.hours)),null!=t.minutes&&n.setMinutes(KP(t.minutes)),null!=t.seconds&&n.setSeconds(KP(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(KP(t.milliseconds)),n)}(r,{[t]:s});o(l),n?.(UM(l,sI))};function m(e){return()=>{if(f===e)return;const t=parseInt(d,10),i=function(e,t){WP(2,arguments);var n=UP(e),r=KP(t);return n.setHours(r),n}(r,kI(t,"PM"===e));o(i),n?.(UM(i,sI))}}const h=(0,a.createElement)(EI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,c.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),g=(0,a.createElement)(wI,null,(0,a.createElement)(xI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,c.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,c.__)("January")},{value:"02",label:(0,c.__)("February")},{value:"03",label:(0,c.__)("March")},{value:"04",label:(0,c.__)("April")},{value:"05",label:(0,c.__)("May")},{value:"06",label:(0,c.__)("June")},{value:"07",label:(0,c.__)("July")},{value:"08",label:(0,c.__)("August")},{value:"09",label:(0,c.__)("September")},{value:"10",label:(0,c.__)("October")},{value:"11",label:(0,c.__)("November")},{value:"12",label:(0,c.__)("December")}],onChange:e=>{const t=fI(r,Number(e)-1);o(t),n?.(UM(t,sI))}}));return(0,a.createElement)(pI,{className:"components-datetime__time"},(0,a.createElement)(mI,null,(0,a.createElement)(jv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Time")),(0,a.createElement)(rb,{className:"components-datetime__time-wrapper"},(0,a.createElement)(hI,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,a.createElement)(vI,{className:"components-datetime__time-field-hours-input",label:(0,c.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:TI(2)}),(0,a.createElement)(bI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,a.createElement)(yI,{className:"components-datetime__time-field-minutes-input",label:(0,c.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:u,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:TI(2)})),e&&(0,a.createElement)(WC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,a.createElement)(pd,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",onClick:m("AM")},(0,c.__)("AM")),(0,a.createElement)(pd,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",onClick:m("PM")},(0,c.__)("PM"))),(0,a.createElement)(lh,null),(0,a.createElement)(SI,null))),(0,a.createElement)(mI,null,(0,a.createElement)(jv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Date")),(0,a.createElement)(rb,{className:"components-datetime__time-wrapper"},e?(0,a.createElement)(a.Fragment,null,g,h):(0,a.createElement)(a.Fragment,null,h,g),(0,a.createElement)(_I,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,c.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:TI(4)}))))};const PI=sd(r_,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),MI=()=>{};const II=(0,a.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=MI,onChange:o,events:i,startOfWeek:s},l){return(0,a.createElement)(PI,{ref:l,className:"components-datetime",spacing:4},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(RI,{currentTime:e,onChange:o,is12Hour:t}),(0,a.createElement)(uI,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})))}));var NI=II;var OI=[{name:(0,c._x)("None","Size of a UI element"),slug:"none"},{name:(0,c._x)("Small","Size of a UI element"),slug:"small"},{name:(0,c._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,c._x)("Large","Size of a UI element"),slug:"large"},{name:(0,c._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var DI=function(e){const{label:t,value:n,sizes:r=OI,icon:o,onChange:i,className:s=""}=e,u=(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(Gl,{icon:o}),t);return(0,a.createElement)(_y,{className:l()(s,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,c.__)("Default"),value:""},...t]})(r)})};const AI={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},LI=(0,a.createContext)(!1),{Consumer:zI,Provider:FI}=LI;function BI({className:e,children:t,isDisabled:n=!0,...r}){const o=Uu();return(0,a.createElement)(FI,{value:n},(0,a.createElement)("div",{inert:n?"true":void 0,className:n?o(AI,e,"components-disabled"):void 0,...r},t))}BI.Context=LI,BI.Consumer=zI;var jI=BI;const VI="is-dragging-components-draggable";var HI=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:d}){const f=(0,a.useRef)(null),p=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>()=>{p.current()}),[]),(0,a.createElement)(a.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const a=r.createElement("div");a.style.top="0",a.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),a.classList.add("components-draggable__clone"),i&&a.classList.add(i);let m=0,h=0;if(f.current){m=e.clientX,h=e.clientY,a.style.transform=`translate( ${m}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,a.appendChild(t),r.body.appendChild(a)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,l=t.left;a.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,m=l-0,h=i-0,a.style.transform=`translate( ${m}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),a.appendChild(c),o?r.body.appendChild(a):n?.appendChild(a)}let g=e.clientX,v=e.clientY;const b=(0,u.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=m+e.clientX-g,r=h+e.clientY-v;a.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,m=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(VI),t&&t(e),p.current=()=>{a&&a.parentNode&&a.parentNode.removeChild(a),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(VI),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),d&&(0,a.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))};var $I=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.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"}));var WI=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[s,d]=(0,a.useState)(),[f,p]=(0,a.useState)(),[m,h]=(0,a.useState)(),g=(0,u.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,Wl.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,Wl.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){d(!1),h(void 0)},onDragEnter(){p(!0)},onDragLeave(){p(!1)}}),v=(0,u.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},w={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,a.createElement)(jl.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,a.createElement)(jl.div,{variants:w},(0,a.createElement)(by,{icon:$I,className:"components-drop-zone__content-icon"}),(0,a.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,c.__)("Drop files to upload")))));const x=l()("components-drop-zone",e,{"is-active":(s||f)&&("file"===m&&n||"html"===m&&r||"default"===m&&o),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${m}`]:!!m});return(0,a.createElement)("div",{...i,ref:g,className:x},v?b:(0,a.createElement)(Vm,null,b))};function UI({children:e}){return $l()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}var GI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function KI(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Tp([Rp]);var qI=function({values:e}){return e?(0,a.createElement)(ly,{colorValue:KI(e,"135deg")}):(0,a.createElement)(Gl,{icon:GI})};function YI({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,l]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(pd,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e))},(0,a.createElement)(rb,{justify:"flex-start",spacing:2},t?(0,a.createElement)(ly,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,a.createElement)(Gl,{icon:GI}),(0,a.createElement)("span",null,e))),s&&(0,a.createElement)(m_,{className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o}))}var XI=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,a.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,a.createElement)(YI,{key:s,label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}}))))};const ZI=["#333","#CCC"];function JI({value:e,onChange:t}){const n=!!e,r=n?e:ZI,o=KI(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,a.createElement)(Mk,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}var QI=function({clearable:e=!0,unsetable:t=!0,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,onChange:l}){const[u,d]=(0,a.useMemo)((()=>{return!(e=n)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Sp(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[n]),f="unset"===s,p=(0,a.createElement)(n_.Option,{key:"unset",value:"unset",isSelected:f,tooltipText:(0,c.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{l(f?void 0:"unset")}}),m=r.map((({colors:e,slug:t,name:n})=>{const r={background:KI(e,"135deg"),color:"transparent"},o=null!=n?n:(0,c.sprintf)((0,c.__)("Duotone code: %s"),t),i=n?(0,c.sprintf)((0,c.__)("Duotone: %s"),n):o,u=Xl()(e,s);return(0,a.createElement)(n_.Option,{key:t,value:e,isSelected:u,"aria-label":i,tooltipText:o,style:r,onClick:()=>{l(u?void 0:e)}})}));return(0,a.createElement)(n_,{options:t?[p,...m]:m,actions:!!e&&(0,a.createElement)(n_.ButtonAction,{onClick:()=>l(void 0)},(0,c.__)("Clear"))},(0,a.createElement)(lh,{paddingTop:4},(0,a.createElement)(r_,{spacing:3},!o&&!i&&(0,a.createElement)(JI,{value:f?void 0:s,onChange:l}),!i&&(0,a.createElement)(XI,{labels:[(0,c.__)("Shadows"),(0,c.__)("Highlights")],colors:n,value:f?void 0:s,disableCustomColors:o,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=u),e[1]||(e[1]=d);const t=e.length>=2?e:void 0;l(t)}}))))};var eN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const tN=sd(by,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var nN=(0,a.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,u=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=l()("components-external-link",o),f=!!n?.startsWith("#");return(0,a.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:u,ref:t},r,(0,a.createElement)(ud,{as:"span"},(0,c.__)("(opens in a new tab)")),(0,a.createElement)(tN,{icon:eN,className:"components-external-link__icon"}))}));const rN={width:200,height:170},oN=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function iN(e){return Math.round(100*e)}const aN=sd("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),sN=sd("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;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;}"}),lN=sd("div",{target:"eeew7dm6"})("background:",Dp.gray[100],";box-sizing:border-box;height:",rN.height,"px;max-width:280px;min-width:",rN.width,"px;width:100%;"),cN=sd(M_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var uN={name:"1mn7kwb",styles:"padding-bottom:1em"};const dN=({__nextHasNoMarginBottom:e})=>e?void 0:uN;var fN={name:"1mn7kwb",styles:"padding-bottom:1em"};const pN=({hasHelpText:e=!1})=>e?fN:void 0,mN=sd(hh,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",pN," ",dN,";"),hN=sd("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(({showOverlay:e})=>e?1:0),";"),gN=sd("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),vN=sd(gN,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),bN=sd(gN,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),yN=0,wN=100,xN=()=>{};function EN({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=xN,point:r={x:.5,y:.5}}){const o=iN(r.x),i=iN(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,a.createElement)(mN,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t},(0,a.createElement)(_N,{label:(0,c.__)("Left"),"aria-label":(0,c.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,a.createElement)(_N,{label:(0,c.__)("Top"),"aria-label":(0,c.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function _N(e){return(0,a.createElement)(cN,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:wN,min:yN,units:[{value:"%",label:"%"}],...e})}const CN=sd("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(({isDragging:e})=>e&&"cursor: grabbing;"),";");function SN({left:e="50%",top:t="50%",...n}){const r=l()("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,a.createElement)(CN,{...n,className:r,style:o})}function kN({bounds:e,...t}){return(0,a.createElement)(hN,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,a.createElement)(vN,{style:{top:"33%"}}),(0,a.createElement)(vN,{style:{top:"66%"}}),(0,a.createElement)(bN,{style:{left:"33%"}}),(0,a.createElement)(bN,{style:{left:"66%"}}))}function TN({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,a.createElement)(lN,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||oN.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,a.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,a.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}var RN=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:s,onDrag:d,onDragEnd:f,onDragStart:p,resolvePoint:m,url:h,value:g={x:.5,y:.5},...v}){const[b,y]=(0,a.useState)(g),[w,x]=(0,a.useState)(!1),{startDrag:E,endDrag:_,isDragging:C}=(0,u.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=I(e);t&&(p?.(t,e),y(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),y(t))},onDragEnd:()=>{f?.(),s?.(b)}}),{x:S,y:k}=C?b:g,T=(0,a.useRef)(null),[R,P]=(0,a.useState)(rN),M=(0,a.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;P(e>0&&t>0?{width:e,height:t}:{...rN})}));(0,a.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,u.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/R.width,a=(t-r)/R.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),N({x:i,y:a})},N=e=>{var t;const n=null!==(t=m?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},O={left:S*R.width,top:k*R.height},D=l()("components-focal-point-picker-control",r),A=`inspector-focal-point-picker-control-${(0,u.useInstanceId)(e)}`;return Ql((()=>{x(!0);const e=window.setTimeout((()=>{x(!1)}),600);return()=>window.clearTimeout(e)}),[S,k]),(0,a.createElement)(jv,{...v,__nextHasNoMarginBottom:t,label:i,id:A,help:o,className:D},(0,a.createElement)(aN,{className:"components-focal-point-picker-wrapper"},(0,a.createElement)(sN,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:S,y:k},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(N(r))},onMouseDown:E,onBlur:()=>{C&&_()},ref:T,role:"button",tabIndex:-1},(0,a.createElement)(kN,{bounds:R,showOverlay:w}),(0,a.createElement)(TN,{alt:(0,c.__)("Media preview"),autoPlay:n,onLoad:M.current,src:h}),(0,a.createElement)(SN,{...O,isDragging:C}))),(0,a.createElement)(EN,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:S,y:k},onChange:e=>{s?.(N(e))}}))};function PN({iframeRef:e,...t}){const n=(0,u.useMergeRefs)([e,(0,u.useFocusableIframe)()]);return $l()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,a.createElement)("iframe",{ref:n,...t})}var MN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function IN(e){const[t,...n]=e;if(!t)return null;const[,r]=E_(t.size);return n.every((e=>{const[,t]=E_(e.size);return t===r}))?r:null}const NN=sd("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),ON=sd(rb,{target:"e8tqeku4"})("height:",Jm(4),";"),DN=sd(pd,{target:"e8tqeku3"})("margin-top:",Jm(-1),";"),AN=sd(jv.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",Jm(1),";justify-content:flex-start;margin-bottom:0;"),LN=sd("span",{target:"e8tqeku1"})("color:",Dp.gray[700],";"),zN=sd("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${Jm(6)};`),";"),FN={key:"default",name:(0,c.__)("Default"),value:void 0},BN={key:"custom",name:(0,c.__)("Custom")};var jN=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:s,onSelectCustom:l}=e,u=!!IN(n),d=[FN,...n.map((e=>{let t;if(u){const[n]=E_(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[BN]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:BN:FN;return(0,a.createElement)(wP,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,c.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,c.sprintf)((0,c.__)("Currently selected font size: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===BN?l():s(e.value)},size:i})};const VN=e=>{const t=Zf("border-color:",Dp.ui.border,";","");return Zf(e&&t," &:hover{border-color:",Dp.ui.borderHover,";}&:focus-within{border-color:",Dp.ui.borderFocus,";box-shadow:",Nh.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},HN=e=>Zf("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),$N={name:"7whenc",styles:"display:flex;width:100%"},WN=sd("div",{target:"eakva831"})("background:",Dp.gray[900],";border-radius:",Nh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Nh.transitionDurationFast," ease;",Ap("transition")," z-index:1;outline:2px solid transparent;outline-offset:-3px;"),UN=sd("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function GN(e){void 0===e&&(e={});var t=Wp(e),n=t.state,r=t.loop,o=void 0===r||r,i=m(t,["state","loop"]),a=(0,v.useState)(n),s=a[0],l=a[1],c=fm(p(p({},i),{},{loop:o}));return p(p({},c),{},{state:s,setState:l})}var KN=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],qN=[].concat(KN,["value","checked","unstable_checkOnFocus"]),YN=z({as:"div",useHook:B({name:"RadioGroup",compose:wm,keys:KN,useProps:function(e,t){return p({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return R(e,t,n)}});var XN=(0,a.memo)((function({containerRef:e,containerWidth:t,isAdaptiveWidth:n,state:r}){const[o,i]=(0,a.useState)(0),[s,l]=(0,a.useState)(0),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const t=e?.current;if(!t)return;const n=t.querySelector(`[data-value="${r}"]`);if(f(!!n),!n)return;const o=window.setTimeout((()=>{const{width:e,x:r}=n.getBoundingClientRect(),{x:o}=t.getBoundingClientRect();i(r-o-1),l(e)}),100);let a;return c||(a=window.requestAnimationFrame((()=>{u(!0)}))),()=>{window.clearTimeout(o),window.cancelAnimationFrame(a)}}),[c,e,t,r,n]),d?(0,a.createElement)(WN,{role:"presentation",style:{transform:`translateX(${o}px)`,transition:c?void 0:"none",width:s}}):null}));const ZN=(0,a.createContext)({});var JN=ZN;const QN=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=GN({baseId:(0,u.useInstanceId)(QN,"toggle-group-control-as-radio-group").toString(),state:i}),m=(0,u.usePrevious)(i);return Ql((()=>{m!==p.state&&r(p.state)}),[p.state]),Ql((()=>{i!==p.state&&p.setState(i)}),[i]),(0,a.createElement)(JN.Provider,{value:{...p,isBlock:!t,size:o}},(0,a.createElement)(YN,{...p,"aria-label":n,as:cd,...s,ref:(0,u.useMergeRefs)([c,l])},d,(0,a.createElement)(XN,{state:p.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))}));const eO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=(0,u.useInstanceId)(eO,"toggle-group-control-as-button-group").toString(),[m,h]=(0,a.useState)(i),g={baseId:p,state:m,setState:h},v=(0,u.usePrevious)(i);return Ql((()=>{v!==g.state&&r(g.state)}),[g.state]),Ql((()=>{i!==g.state&&g.setState(i)}),[i]),(0,a.createElement)(JN.Provider,{value:{...g,isBlock:!t,isDeselectable:!0,size:o}},(0,a.createElement)(cd,{"aria-label":n,...s,ref:(0,u.useMergeRefs)([c,l]),role:"group"},d,(0,a.createElement)(XN,{state:g.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))})),tO=()=>{};const nO=Ku((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d=tO,size:f="default",value:p,children:m,...h}=Gu(e,"ToggleGroupControl"),g=Uu(),v=(0,a.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>Zf("background:",Dp.ui.background,";border:1px solid transparent;border-radius:",Nh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",Nh.transitionDurationFastest," linear;",Ap("transition")," ",HN(n)," ",!t&&VN(e),";",""))({isBlock:i,isDeselectable:s,size:f}),i&&$N,r)),[r,g,i,s,f]),b=s?eO:QN;return(0,a.createElement)(jv,{help:u,__nextHasNoMarginBottom:n},!c&&(0,a.createElement)(UN,null,(0,a.createElement)(jv.VisualLabel,null,l)),(0,a.createElement)(b,{...h,children:m,className:v,isAdaptiveWidth:o,label:l,onChange:d,ref:t,size:f,value:p}))}),"ToggleGroupControl");var rO=nO;function oO(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function iO(e,t){var n=Ee(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var aO=B({name:"Radio",compose:Se,keys:qN,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=m(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return p(p({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=m(t,["ref","onChange","onClick"]),a=(0,v.useRef)(null),s=(0,v.useState)(!0),l=s[0],c=s[1],u=oO(e),d=G(e.currentId===e.id),f=G(r),h=G(o);!function(e){var t=(0,v.useState)((function(){return oO(e)}))[0],n=(0,v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,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]),b=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||l||iO(e.currentTarget,g)}),[g,l]);return(0,v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&iO(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),p({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:b},i)}}),sO=z({as:"input",memo:!0,useHook:aO});const lO=sd("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),cO={name:"82a6rk",styles:"flex:1"},uO=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Zf("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Nh.controlBorderRadius,";color:",Dp.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Nh.transitionDurationFast," linear,color ",Nh.transitionDurationFast," linear,font-weight 60ms linear;",Ap("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Nh.toggleGroupControlBackgroundColor,";}",e&&fO," ",t&&mO({size:r})," ",n&&dO,";",""),dO=Zf("color:",Dp.white,";&:active{background:transparent;}",""),fO=Zf("color:",Dp.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Dp.white,",0 0 0 ",Nh.borderWidthFocus," ",Dp.ui.theme,";outline:2px solid transparent;}",""),pO=sd("div",{target:"et6ln9s0"})("display:flex;font-size:",Nh.fontSize,";line-height:1;"),mO=({size:e="default"})=>Zf("color:",Dp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),{ButtonContentView:hO,LabelView:gO}=n,vO=({showTooltip:e,text:t,children:n})=>e&&t?(0,a.createElement)(Uf,{text:t,position:"top center"},n):(0,a.createElement)(a.Fragment,null,n);const bO=Ku((function e(t,n){const r=(0,a.useContext)(ZN),o=Gu({...t,id:(0,u.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:l="default",...c}=r,{className:d,isIcon:f=!1,value:p,children:m,showTooltip:h=!1,...g}=o,v=c.state===p,b=Uu(),y=b(i&&cO),w=b(uO({isDeselectable:s,isIcon:f,isPressed:v,size:l}),d),x={...g,className:w,"data-value":p,ref:n};return(0,a.createElement)(gO,{className:y},(0,a.createElement)(vO,{showTooltip:h,text:g["aria-label"]},s?(0,a.createElement)("button",{...x,"aria-pressed":v,type:"button",onClick:()=>{s&&v?c.setState(void 0):c.setState(p)}},(0,a.createElement)(hO,null,m)):(0,a.createElement)(sO,{...x,...c,as:"button",value:p},(0,a.createElement)(hO,null,m))))}),"ToggleGroupControlOptionBase");var yO=bO;var wO=(0,a.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,a.createElement)(yO,{...r,"aria-label":o,ref:t},n)}));const xO=[(0,c.__)("S"),(0,c.__)("M"),(0,c.__)("L"),(0,c.__)("XL"),(0,c.__)("XXL")],EO=[(0,c.__)("Small"),(0,c.__)("Medium"),(0,c.__)("Large"),(0,c.__)("Extra Large"),(0,c.__)("Extra Extra Large")];var _O=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,a.createElement)(rO,{__nextHasNoMarginBottom:r,label:(0,c.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,a.createElement)(wO,{key:e.slug,value:e.size,label:xO[t],"aria-label":e.name||EO[t],showTooltip:!0}))))};const CO=(0,a.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u,value:d,withSlider:f=!1,withReset:p=!0}=e;n||$l()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=__({availableUnits:u||["px","em","rem"]}),h=o.length>5,g=o.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,a.useState)(!i&&v),w=(0,a.useMemo)((()=>{if(b)return(0,c.__)("Custom");if(!h)return g?g.name||EO[o.indexOf(g)]:"";const e=IN(o);return e?`(${e})`:""}),[b,h,g,o]);if(0===o.length&&i)return null;const x="string"==typeof d||"string"==typeof o[0]?.size,[E,_]=E_(d,m),C=!!_&&["em","rem"].includes(_);return(0,a.createElement)(NN,{ref:t,className:"components-font-size-picker"},(0,a.createElement)(ud,{as:"legend"},(0,c.__)("Font size")),(0,a.createElement)(lh,null,(0,a.createElement)(ON,{className:"components-font-size-picker__header"},(0,a.createElement)(AN,{"aria-label":`${(0,c.__)("Size")} ${w||""}`},(0,c.__)("Size"),w&&(0,a.createElement)(LN,{className:"components-font-size-picker__header__hint"},w)),!i&&(0,a.createElement)(DN,{label:b?(0,c.__)("Use size preset"):(0,c.__)("Set custom size"),icon:MN,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,a.createElement)(zN,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&h&&!b&&(0,a.createElement)(jN,{fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,a.createElement)(_O,{fontSizes:o,value:d,__nextHasNoMarginBottom:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))}}),!i&&b&&(0,a.createElement)(hh,{className:"components-font-size-picker__custom-size-control"},(0,a.createElement)(gh,{isBlock:!0},(0,a.createElement)(M_,{label:(0,c.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:x?e:parseInt(e,10))},size:l,units:x?m:[],min:0})),f&&(0,a.createElement)(gh,{isBlock:!0},(0,a.createElement)(lh,{marginX:2,marginBottom:0},(0,a.createElement)(ew,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:(0,c.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:x?e+(null!=_?_:"px"):e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,a.createElement)(gh,null,(0,a.createElement)(fd,{disabled:void 0===d,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==l?"small":"default"},(0,c.__)("Reset"))))))}));var SO=CO;var kO=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const l=(0,a.useRef)(null),c=()=>{l.current?.click()},u=i?i({openFileDialog:c}):(0,a.createElement)(pd,{onClick:c,...s},t);return(0,a.createElement)("div",{className:"components-form-file-upload"},u,(0,a.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))};const TO=()=>{};var RO=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=TO,...s}=e,c=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,a.createElement)("span",{className:c},(0,a.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...s}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"}))};const PO=()=>{};function MO({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:s=PO,onMouseEnter:d,onMouseLeave:f,messages:p,termPosition:m,termsCount:h}){const g=(0,u.useInstanceId)(MO),v=l()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),b=r(e),y=(0,c.sprintf)((0,c.__)("%1$s (%2$s of %3$s)"),b,m,h);return(0,a.createElement)("span",{className:v,onMouseEnter:d,onMouseLeave:f,title:n},(0,a.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,a.createElement)(ud,{as:"span"},y),(0,a.createElement)("span",{"aria-hidden":"true"},b)),(0,a.createElement)(pd,{className:"components-form-token-field__remove-token",icon:Bb,onClick:i?void 0:()=>s({value:e}),label:p.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const IO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Zf("padding-top:",Jm(t?1:.5),";padding-bottom:",Jm(t?1:.5),";",""),NO=sd(hh,{target:"ehq8nmi0"})("padding:7px;",IO,";"),OO=e=>e;var DO=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:s=(0,c.__)("Add item"),className:d,suggestions:f=[],maxSuggestions:p=100,value:m=[],displayTransform:h=OO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:w=!1,disabled:x=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,c.__)("Item added."),removed:(0,c.__)("Item removed."),remove:(0,c.__)("Remove item"),__experimentalInvalid:(0,c.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:T=!0,__next40pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:M=!1}=AT(t,"wp.components.FormTokenField"),I=(0,u.useInstanceId)(e),[N,O]=(0,a.useState)(""),[D,A]=(0,a.useState)(0),[L,z]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[j,V]=(0,a.useState)(-1),[H,$]=(0,a.useState)(!1),W=(0,u.usePrevious)(f),U=(0,u.usePrevious)(m),G=(0,a.useRef)(null),K=(0,a.useRef)(null),q=(0,u.useDebounce)(bb.speak,500);function Y(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(){fe()&&k(N)?z(!1):(O(""),A(0),z(!1),B(!1),V(-1),$(!1))}function J(e){e.target===K.current&&L&&e.preventDefault()}function Q(e){se(e.value),Y()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),b(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(m[e])}function re(){const e=ue();e!function(e){return m.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...m];e.splice(ue(),0,...t),v(e)}}function ae(e){k(e)?(ie([e]),(0,bb.speak)(_.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&Y()):(0,bb.speak)(_.__experimentalInvalid,"assertive")}function se(e){const t=m.filter((t=>le(t)!==le(e)));v(t),(0,bb.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=N,t=f,n=m,r=p,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return m.length-D}function de(){return 0===N.length}function fe(){return g(N).length>0}function pe(e=!0){const t=N.trim().length>1,n=ce(N),r=n.length>0,o=X()&&S;if(B(o||t&&r),e&&(P&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,c.__)("No results.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,a.createElement)(gh,{key:"token-"+r},(0,a.createElement)(MO,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||w,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&x,messages:_,termsCount:s,termPosition:i}))}(0,a.useEffect)((()=>{L&&!X()&&Y()}),[L]),(0,a.useEffect)((()=>{const e=!bf()(f,W||[]);(e||m!==U)&&pe(e)}),[f,W,m,U]),(0,a.useEffect)((()=>{pe()}),[N]),(0,a.useEffect)((()=>{pe()}),[P]),x&&L&&(z(!1),O(""));const he=l()(d,"components-form-token-field__input-container",{"is-active":L,"is-disabled":x});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return x||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,m.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(N,f,m,p,g).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(N,f,m,p,g).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(N),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),B(S||F)):z(!1),"function"==typeof y&&y(e)}})),(0,a.createElement)("div",{...ge},(0,a.createElement)(Av,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},s),(0,a.createElement)("div",{ref:K,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,a.createElement)(NO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:R,hasTokens:!!m.length},function(){const e=m.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===m.length?i:"",key:"input",disabled:x,value:N,onBlur:Z,isExpanded:F,selectedSuggestionIndex:j};return(0,a.createElement)(PT,{...e,onChange:o&&m.length>=o?void 0:ee,ref:G})}()),e}()),F&&(0,a.createElement)(OT,{instanceId:I,match:g(N),displayTransform:h,suggestions:ve,selectedIndex:j,scrollIntoView:H,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})),!M&&(0,a.createElement)(lh,{marginBottom:2}),T&&(0,a.createElement)(zv,{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M},E?(0,c.__)("Separate with commas, spaces, or the Enter key."):(0,c.__)("Separate with commas or the Enter key.")))};const AO=()=>(0,a.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:"4",cy:"4",r:"4"}));function LO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,a.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,c.__)("Guide controls")},Array.from({length:t}).map(((r,o)=>(0,a.createElement)("li",{key:o,"aria-current":o===e?"step":void 0},(0,a.createElement)(pd,{key:o,icon:(0,a.createElement)(AO,null),"aria-label":(0,c.sprintf)((0,c.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)})))))}var zO=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,c.__)("Finish"),onFinish:o,pages:i=[]}){const s=(0,a.useRef)(null),[u,d]=(0,a.useState)(0);var f;(0,a.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,a.useEffect)((()=>{a.Children.count(e)&&$l()("Passing children to ",{since:"5.5",alternative:"the `pages` prop"})}),[e]),a.Children.count(e)&&(i=null!==(f=a.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const p=u>0,m=u{p&&d(u-1)},g=()=>{m&&d(u+1)};return 0===i.length?null:(0,a.createElement)(GT,{className:l()("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,a.createElement)("div",{className:"components-guide__container"},(0,a.createElement)("div",{className:"components-guide__page"},i[u].image,i.length>1&&(0,a.createElement)(LO,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content),(0,a.createElement)("div",{className:"components-guide__footer"},p&&(0,a.createElement)(pd,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,c.__)("Previous")),m&&(0,a.createElement)(pd,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,c.__)("Next")),!m&&(0,a.createElement)(pd,{className:"components-guide__finish-button",variant:"primary",onClick:o},r))))};function FO(e){return(0,a.useEffect)((()=>{$l()("",{since:"5.5",alternative:"the `pages` prop in "})}),[]),(0,a.createElement)("div",{...e})}var BO=(0,a.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return $l()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,a.createElement)(pd,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const jO=Ku((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=Gu(e,"Item"),{spacedAround:l,size:c}=mk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Uu(),p=(0,a.useMemo)((()=>f("button"===d&&ek,fk[u]||fk.medium,nk,l&&ak,n)),[d,n,f,u,l]),m=f(tk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...s}}(e);return(0,a.createElement)("div",{role:n,className:r},(0,a.createElement)(cd,{...o,ref:t}))}),"Item");var VO=jO;var HO=Ku((function(e,t){const n=Gu(e,"InputControlPrefixWrapper");return(0,a.createElement)(lh,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function $O({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,u.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}var WO=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,a.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,a.createElement)($O,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o})));return a.Children.count(e)?(0,a.createElement)("div",{ref:o},i,e):(0,a.createElement)(a.Fragment,null,i)};var UO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,u.useInstanceId)(e);if(!a.Children.count(n))return null;const c=`components-menu-group-label-${s}`,d=l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,a.createElement)("div",{className:d},o&&(0,a.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),(0,a.createElement)("div",{role:"group","aria-labelledby":o?c:void 0},n))};var GO=(0,a.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:c,isSelected:u,role:d="menuitem",suffix:f,...p}=e;return o=l()("components-menu-item__button",o),r&&(n=(0,a.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,a.createElement)("span",{className:"components-menu-item__item"},n),(0,a.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,a.cloneElement)(i,{className:l()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,a.createElement)(pd,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?i:void 0,className:o,...p},(0,a.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,a.createElement)(Bf,{className:"components-menu-item__shortcut",shortcut:c}),!f&&i&&"right"===s&&(0,a.createElement)(Gl,{icon:i}),f)}));const KO=()=>{};var qO=function({choices:e=[],onHover:t=KO,onSelect:n,value:r}){return(0,a.createElement)(a.Fragment,null,e.map((e=>{const o=r===e.value;return(0,a.createElement)(GO,{key:e.value,role:"menuitemradio",icon:o&&e_,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};var YO=(0,a.forwardRef)((function({eventToOffset:e,...t},n){return(0,a.createElement)(tT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})}));const XO="root",ZO=100,JO=()=>{},QO=()=>{},eD=(0,a.createContext)({activeItem:void 0,activeMenu:XO,setActiveMenu:JO,navigationTree:{items:{},getItem:QO,addItem:JO,removeItem:JO,menus:{},getMenu:QO,addMenu:JO,removeMenu:JO,childMenu:{},traverseMenu:JO,isMenuEmpty:()=>!1}}),tD=()=>(0,a.useContext)(eD);var nD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const rD=(0,a.forwardRef)((function({__nextHasNoMarginBottom:e,className:t,onChange:n,onKeyDown:r,value:o,label:i,placeholder:s=(0,c.__)("Search"),hideLabelFromVision:d=!0,help:f,onClose:p,...m},h){const g=(0,a.useRef)(),v=`components-search-control-${(0,u.useInstanceId)(rD)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:e,label:i,id:v,hideLabelFromVision:d,help:f,className:l()(t,"components-search-control")},(0,a.createElement)("div",{className:"components-search-control__input-wrapper"},(0,a.createElement)("input",{...m,ref:(0,u.useMergeRefs)([g,h]),className:"components-search-control__input",id:v,type:"search",placeholder:s,onChange:e=>n(e.target.value),onKeyDown:r,autoComplete:"off",value:o||""}),(0,a.createElement)("div",{className:"components-search-control__icon"},p?(0,a.createElement)(pd,{icon:Bb,label:(0,c.__)("Close search"),onClick:p}):o?(0,a.createElement)(pd,{icon:Bb,label:(0,c.__)("Reset search"),onClick:()=>{n(""),g.current?.focus()}}):(0,a.createElement)(by,{icon:nD}))))}));var oD=rD;const iD=sd("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",Jm(4),";overflow:hidden;"),aD=sd("div",{target:"eeiismy10"})("margin-top:",Jm(6),";margin-bottom:",Jm(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Jm(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Jm(6),";}"),sD=sd(pd,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),lD=sd("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),cD=sd("span",{target:"eeiismy7"})("height:",Jm(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Jm(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),uD=sd(oD,{target:"eeiismy6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),dD=sd(i_,{target:"eeiismy5"})("min-height:",Jm(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Jm(2),";padding:",(()=>(0,c.isRTL)()?`${Jm(1)} ${Jm(4)} ${Jm(1)} ${Jm(2)}`:`${Jm(1)} ${Jm(2)} ${Jm(1)} ${Jm(4)}`),";"),fD=sd("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Jm(2)," ",Jm(4),";",ih({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Dp.ui.theme,";color:",Dp.white,";>button,>a{color:",Dp.white,";opacity:1;}}>svg path{color:",Dp.gray[600],";}"),pD=sd("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Jm(1.5)," ",Jm(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),mD=sd("span",{target:"eeiismy2"})("display:flex;margin-right:",Jm(2),";"),hD=sd("span",{target:"eeiismy1"})("margin-left:",(()=>(0,c.isRTL)()?"0":Jm(2)),";margin-right:",(()=>(0,c.isRTL)()?Jm(2):"0"),";display:inline-flex;padding:",Jm(1)," ",Jm(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Ap("animation"),";"),gD=sd(Yh,{target:"eeiismy0"})((()=>(0,c.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function vD(){const[e,t]=(0,a.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const bD=()=>{};var yD=function({activeItem:e,activeMenu:t=XO,children:n,className:r,onActivateMenu:o=bD}){const[i,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=vD(),{nodes:o,getNode:i,addNode:s,removeNode:l}=vD(),[c,u]=(0,a.useState)({}),d=e=>c[e]||[],f=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,c.isRTL)()?"right":"left",m=(e,t=p)=>{f.getMenu(e)&&(d(t),s(e),o(e))},h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,a.useEffect)((()=>{t!==i&&m(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:m,navigationTree:f},v=l()("components-navigation",r),b=Om({type:"slide-in",origin:u});return(0,a.createElement)(iD,{className:v},(0,a.createElement)("div",{key:i,className:b?l()({[b]:h.current&&u}):void 0},(0,a.createElement)(eD.Provider,{value:g},n)))};var wD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var xD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const ED=(0,a.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:s,navigationTree:u}=tD(),d=l()("components-navigation__back-button",t),f=void 0!==o?u.getMenu(o)?.title:void 0,p=(0,c.isRTL)()?wD:xD;return(0,a.createElement)(sD,{className:d,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,c.isRTL)()?"left":"right";o&&!e.defaultPrevented&&s(o,t)}},(0,a.createElement)(by,{icon:p}),e||f||(0,c.__)("Back"))}));var _D=ED;const CD=(0,a.createContext)({group:void 0});let SD=0;var kD=function({children:e,className:t,title:n}){const[r]=(0,a.useState)("group-"+ ++SD),{navigationTree:{items:o}}=tD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,a.createElement)(CD.Provider,{value:i},e);const s=`components-navigation__group-title-${r}`,c=l()("components-navigation__group",t);return(0,a.createElement)(CD.Provider,{value:i},(0,a.createElement)("li",{className:c},n&&(0,a.createElement)(dD,{className:"components-navigation__group-title",id:s,level:3},n),(0,a.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function TD(e){const{badge:t,title:n}=e;return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(gD,{className:"components-navigation__item-title",as:"span"},n),t&&(0,a.createElement)(hD,{className:"components-navigation__item-badge"},t))}const RD=(0,a.createContext)({menu:void 0,search:""}),PD=()=>(0,a.useContext)(RD),MD=e=>gb()(e).replace(/^\//,"").toLowerCase(),ID=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=tD(),{group:i}=(0,a.useContext)(CD),{menu:s,search:l}=PD();(0,a.useEffect)((()=>{const a=n===s,c=!l||void 0!==t.title&&((e,t)=>-1!==MD(e).indexOf(MD(t)))(t.title,l);return r(e,{...t,group:i,menu:s,_isVisible:a&&c}),()=>{o(e)}}),[n,l])};let ND=0;function OD(e){const{children:t,className:n,title:r,href:o,...i}=e,[s]=(0,a.useState)("item-"+ ++ND);ID(s,e);const{navigationTree:c}=tD();if(!c.getItem(s)?._isVisible)return null;const u=l()("components-navigation__item",n);return(0,a.createElement)(fD,{className:u,...i},t)}const DD=()=>{};var AD=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:s,onClick:u=DD,title:d,icon:f,hideIfTargetMenuEmpty:p,isText:m,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=tD();if(p&&s&&b(s))return null;const y=i&&g===i,w=l()(r,{"is-active":y}),x=(0,c.isRTL)()?xD:wD,E=n?e:{...e,onClick:void 0},_=m?h:{as:pd,href:o,onClick:e=>{s&&v(s),u(e)},"aria-current":y?"page":void 0,...h};return(0,a.createElement)(OD,{...E,className:w},n||(0,a.createElement)(pD,{..._},f&&(0,a.createElement)(mD,null,(0,a.createElement)(by,{icon:f})),(0,a.createElement)(TD,{title:d,badge:t}),s&&(0,a.createElement)(by,{icon:x})))};var LD=(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(e,{...t,speak:bb.speak,debouncedSpeak:(0,u.useDebounce)(bb.speak,500)})),"withSpokenMessages");var zD=LD((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=tD(),{menu:s}=PD(),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),ZO);return()=>{clearTimeout(e)}}),[]),(0,a.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,c.sprintf)((0,c._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,c.sprintf)((0,c.__)("Search %s"),o?.toLowerCase()).trim();return(0,a.createElement)("div",{className:"components-navigation__menu-title-search"},(0,a.createElement)(uD,{autoComplete:"off",className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:f,onClose:u,ref:l,type:"search",value:r}))}));function FD({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,a.useState)(!1),{menu:l}=PD(),u=(0,a.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,f=(0,c.sprintf)((0,c.__)("Search in %s"),r);return(0,a.createElement)(lD,{className:"components-navigation__menu-title"},!i&&(0,a.createElement)(dD,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,a.createElement)("span",{id:d},r),(e||o)&&(0,a.createElement)(cD,null,o,e&&(0,a.createElement)(pd,{isSmall:!0,variant:"tertiary",label:f,onClick:()=>s(!0),ref:u},(0,a.createElement)(by,{icon:nD})))),i&&(0,a.createElement)("div",{className:Om({type:"slide-in",origin:"left"})},(0,a.createElement)(zD,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),ZO)},onSearch:t,search:n,title:r})))}function BD({search:e}){const{navigationTree:{items:t}}=tD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,a.createElement)(fD,null,(0,a.createElement)(pD,null,(0,c.__)("No results found.")," "))}var jD=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=XO,onBackButtonClick:s,onSearch:c,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,a.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=tD(),r=e.menu||XO;(0,a.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=tD(),b={menu:i,search:h};if(v!==i)return(0,a.createElement)(RD.Provider,{value:b},n);const y=!!c,w=y?d:h,x=y?c:g,E=`components-navigation__menu-title-${i}`,_=l()("components-navigation__menu",r);return(0,a.createElement)(RD.Provider,{value:b},(0,a.createElement)(aD,{className:_},(u||s)&&(0,a.createElement)(_D,{backButtonLabel:t,parentMenu:u,onClick:s}),p&&(0,a.createElement)(FD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,a.createElement)(rT,null,(0,a.createElement)("ul",{"aria-labelledby":E},n,w&&!f&&(0,a.createElement)(BD,{search:w})))))};const VD=(0,a.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function HD(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(WD(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,UD(n))}(HD(e,n),t,n)}function KD(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return KD(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),UD(n))}(e,t,n):GD(e,t,n)}function qD(e,t){return $D(t,{decode:decodeURIComponent})(e)}function YD(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var XD={name:"15bx5k",styles:"overflow-x:hidden"};const ZD=Ku((function(e,t){const{initialPath:n,children:r,className:o,...i}=Gu(e,"NavigatorProvider"),[s,l]=(0,a.useState)([{path:n}]),c=(0,a.useRef)([]),[u,d]=(0,a.useReducer)(YD,[]),f=(0,a.useRef)([]);(0,a.useEffect)((()=>{f.current=u}),[u]),(0,a.useEffect)((()=>{c.current=s}),[s]);const p=(0,a.useRef)(),m=(0,a.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(p.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=qD(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return p.current&&t&&bf()(t.params,p.current.params)&&t.id===p.current.id?p.current:t})(e);return p.current=t,t}),[u,s]),h=(0,a.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,a.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,a.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,a.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,a.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==qD(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),w=(0,a.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:m?m.params:{},match:m?m.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,m,b,v,y,h,g]),x=Uu(),E=(0,a.useMemo)((()=>x(XD,o)),[o,x]);return(0,a.createElement)(cd,{ref:t,className:E,...i},(0,a.createElement)(VD.Provider,{value:w},r))}),"NavigatorProvider");var JD=ZD,QD=window.wp.escapeHtml;var eA={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const tA=Ku((function(e,t){const n=(0,a.useId)(),{children:r,className:o,path:i,...s}=Gu(e,"NavigatorScreen"),l=(0,u.useReducedMotion)(),{location:d,match:f,addScreen:p,removeScreen:m}=(0,a.useContext)(VD),h=f===n,g=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e={id:n,path:(0,QD.escapeAttribute)(i)};return p(e),()=>m(e)}),[n,i,p,m]);const v=Uu(),b=(0,a.useMemo)((()=>v(eA,o)),[o,v]),y=(0,a.useRef)(d);(0,a.useEffect)((()=>{y.current=d}),[d]);const w=d.isInitial&&!d.isBack;(0,a.useEffect)((()=>{if(w||!h||!g.current||y.current.hasRestoredFocus||d.skipFocus)return;const e=g.current.ownerDocument.activeElement;if(g.current.contains(e))return;let t=null;if(d.isBack&&d?.focusTargetSelector&&(t=g.current.querySelector(d.focusTargetSelector)),!t){const e=Wl.focus.tabbable.find(g.current)[0];t=null!=e?e:g.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,d.isBack,d.focusTargetSelector,d.skipFocus]);const x=(0,u.useMergeRefs)([t,g]);if(!h)return null;if(l)return(0,a.createElement)(cd,{ref:x,className:b,...s},r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},_=!(d.isInitial&&!d.isBack)&&{opacity:0,x:(0,c.isRTL)()&&d.isBack||!(0,c.isRTL)()&&!d.isBack?50:-50},C={animate:E,exit:{delay:0,opacity:0,x:!(0,c.isRTL)()&&d.isBack||(0,c.isRTL)()&&!d.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:_};return(0,a.createElement)(jl.div,{ref:x,className:b,...s,...C},r)}),"NavigatorScreen");var nA=tA;var rA=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,a.useContext)(VD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const oA=(e,t)=>`[${e}="${t}"]`;var iA=Ku((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=pd,attributeName:o="id",...i}=Gu(e,"NavigatorButton"),s=(0,QD.escapeAttribute)(t),{goTo:l}=rA();return{as:r,onClick:(0,a.useCallback)((e=>{e.preventDefault(),l(s,{focusTargetSelector:oA(o,s)}),n?.(e)}),[l,n,o,s]),...i,[o]:s}}(e);return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorButton");function aA(e){const{onClick:t,as:n=pd,goToParent:r=!1,...o}=Gu(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=rA();return{as:n,onClick:(0,a.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}var sA=Ku((function(e,t){const n=aA(e);return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorBackButton");var lA=Ku((function(e,t){const n=aA({...e,goToParent:!0});return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorToParentButton");const cA=()=>{};function uA(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var dA=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=cA,isDismissible:i=!0,actions:s=[],politeness:u=uA(t),__unstableHTML:d,onDismiss:f=cA}){!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,bb.speak)(n,t)}),[n,t])}(r,u);const p=l()(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,a.createElement)(a.RawHTML,null,n)),(0,a.createElement)("div",{className:p},(0,a.createElement)("div",{className:"components-notice__content"},n,(0,a.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},c)=>{let u=r;return"primary"===r||o||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,a.createElement)(pd,{key:c,href:s,variant:u,onClick:s?void 0:i,className:l()("components-notice__action",e)},t)})))),i&&(0,a.createElement)(pd,{className:"components-notice__dismiss",icon:Vl,label:(0,c.__)("Dismiss this notice"),onClick:e=>{e?.preventDefault?.(),f(),o()},showTooltip:!1}))};const fA=()=>{};var pA=function({notices:e,onRemove:t=fA,className:n,children:r}){const o=e=>()=>t(e);return n=l()("components-notice-list",n),(0,a.createElement)("div",{className:n},r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,a.createElement)(dA,{...n,key:e.id,onRemove:o(e.id)},e.content)})))};var mA=function({label:e,children:t}){return(0,a.createElement)("div",{className:"components-panel__header"},e&&(0,a.createElement)("h2",null,e),t)};var hA=(0,a.forwardRef)((function({header:e,className:t,children:n},r){const o=l()(t,"components-panel");return(0,a.createElement)("div",{className:o,ref:r},e&&(0,a.createElement)(mA,{label:e}),n)}));var gA=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const vA=()=>{};const bA=(0,a.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,a.createElement)("h2",{className:"components-panel__body-title"},(0,a.createElement)(pd,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,a.createElement)("span",{"aria-hidden":"true"},(0,a.createElement)(Gl,{className:"components-panel__arrow",icon:e?gA:yy})),n,t&&(0,a.createElement)(Gl,{icon:t,className:"components-panel__icon",size:20}))):null)),yA=(0,a.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:c=vA,opened:d,title:f,scrollAfterOpen:p=!0}=e,[m,h]=Sy(d,{initial:void 0===s||s,fallback:!1}),g=(0,a.useRef)(null),v=(0,u.useReducedMotion)()?"auto":"smooth",b=(0,a.useRef)();b.current=p,Ql((()=>{m&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[m,v]);const y=l()("components-panel__body",o,{"is-opened":m});return(0,a.createElement)("div",{className:y,ref:(0,u.useMergeRefs)([g,t])},(0,a.createElement)(bA,{icon:i,isOpened:Boolean(m),onClick:e=>{e.preventDefault();const t=!m;h(t),c(t)},title:f,...n}),"function"==typeof r?r({opened:Boolean(m)}):m&&r)}));var wA=yA;var xA=(0,a.forwardRef)((function({className:e,children:t},n){return(0,a.createElement)("div",{className:l()("components-panel__row",e),ref:n},t)}));const EA=(0,a.createElement)(r.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,a.createElement)(r.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var _A=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:s,preview:c,isColumnLayout:d,withIllustration:f,...p}=e,[m,{width:h}]=(0,u.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=l()("components-placeholder",i,g,f?"has-illustration":null),b=l()("components-placeholder__fieldset",{"is-column-layout":d});return(0,a.createElement)("div",{...p,className:v},f?EA:null,m,s,c&&(0,a.createElement)("div",{className:"components-placeholder__preview"},c),(0,a.createElement)("div",{className:"components-placeholder__label"},(0,a.createElement)(Gl,{icon:t}),r),(0,a.createElement)("fieldset",{className:b},!!o&&(0,a.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};const CA=e=>e.every((e=>null!==e.parent));function SA(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!CA(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var kA=window.wp.htmlEntities;function TA(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,kA.decodeEntities)(e.name)},...TA(e.children||[],t+1)]))}var RA=function({label:e,noOptionLabel:t,onChange:n,selectedId:r,tree:o=[],...i}){const s=(0,a.useMemo)((()=>[t&&{value:"",label:t},...TA(o)].filter((e=>!!e))),[t,o]);return(0,a.createElement)(Ey,{label:e,options:s,onChange:n,value:r,...i})};function PA({label:e,noOptionLabel:t,authorList:n,selectedAuthorId:r,onChange:o}){if(!n)return null;const i=SA(n);return(0,a.createElement)(RA,{label:e,noOptionLabel:t,onChange:o,tree:i,selectedId:void 0!==r?String(r):void 0,__nextHasNoMarginBottom:!0})}function MA({label:e,noOptionLabel:t,categoriesList:n,selectedCategoryId:r,onChange:o,...i}){const s=(0,a.useMemo)((()=>SA(n)),[n]);return(0,a.createElement)(RA,{label:e,noOptionLabel:t,onChange:o,tree:s,selectedId:void 0!==r?String(r):void 0,...i,__nextHasNoMarginBottom:!0})}function IA(e){return"categoriesList"in e}function NA(e){return"categorySuggestions"in e}var OA=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:f,...p}){return(0,a.createElement)(r_,{spacing:"4",className:"components-query-controls"},[d&&f&&(0,a.createElement)(_y,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,c.__)("Order by"),value:`${o}/${r}`,options:[{label:(0,c.__)("Newest to oldest"),value:"date/desc"},{label:(0,c.__)("Oldest to newest"),value:"date/asc"},{label:(0,c.__)("A → Z"),value:"title/asc"},{label:(0,c.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&d(n),t!==o&&f(t)}}),IA(p)&&p.categoriesList&&p.onCategoryChange&&(0,a.createElement)(MA,{key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,c.__)("Category"),noOptionLabel:(0,c.__)("All"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),NA(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,a.createElement)(DO,{__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,c.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),l&&(0,a.createElement)(PA,{key:"query-controls-author-select",authorList:e,label:(0,c.__)("Author"),noOptionLabel:(0,c.__)("All"),selectedAuthorId:t,onChange:l}),u&&(0,a.createElement)(ew,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,c.__)("Number of items"),value:n,onChange:u,min:s,max:i,required:!0})])};var DA=(0,a.createContext)({state:null,setState:()=>{}});var AA=(0,a.forwardRef)((function({children:e,value:t,...n},r){const o=(0,a.useContext)(DA),i=o.state===t;return(0,a.createElement)(sO,{ref:r,as:pd,variant:i?"primary":"secondary",value:t,...o,...n},e||t)}));var LA=(0,a.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,...i},s){const l=GN({state:n,baseId:i.id}),c={...l,disabled:r,state:null!=t?t:l.state,setState:null!=o?o:l.setState};return(0,a.createElement)(DA.Provider,{value:c},(0,a.createElement)(YN,{ref:s,as:WC,"aria-label":e,...l,...i}))}));var zA=function e(t){const{label:n,className:r,selected:o,help:i,onChange:s,hideLabelFromVision:c,options:d=[],...f}=t,p=`inspector-radio-control-${(0,u.useInstanceId)(e)}`,m=e=>s(e.target.value);return d?.length?(0,a.createElement)(jv,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:l()(r,"components-radio-control")},(0,a.createElement)(r_,{spacing:1},d.map(((e,t)=>(0,a.createElement)("div",{key:`${p}-${t}`,className:"components-radio-control__option"},(0,a.createElement)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:m,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...f}),(0,a.createElement)("label",{htmlFor:`${p}-${t}`},e.label)))))):null},FA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BA=function(){return BA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{},iL={bottom:"bottom",corner:"corner"};function aL({axis:e,fadeTimeout:t=180,onResize:n=oL,position:r=iL.bottom,showPx:o=!1}){const[i,s]=(0,u.useResizeObserver)(),l=!!e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),{width:m,height:h}=s,g=(0,a.useRef)(h),v=(0,a.useRef)(m),b=(0,a.useRef)(),y=(0,a.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{l||(d(!1),p(!1))}),t)}),[t,l]);(0,a.useEffect)((()=>{if(!(null!==m||null!==h))return;const e=m!==v.current,t=h!==g.current;if(e||t){if(m&&!v.current&&h&&!g.current)return v.current=m,void(g.current=h);e&&(d(!0),v.current=m),t&&(p(!0),g.current=h),n({width:m,height:h}),y()}}),[m,h,n,y]);const w=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=iL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===iL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:h,moveX:c,moveY:f,position:r,showPx:o,width:m});return{label:w,resizeListener:i}}const sL=sd("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),lL=sd("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),cL=sd("div",{target:"e1wq7y4k1"})("background:",Dp.gray[900],";border-radius:2px;box-sizing:border-box;font-family:",Mv("default.fontFamily"),";font-size:12px;color:",Dp.ui.textDark,";padding:4px 8px;position:relative;"),uL=sd(Yh,{target:"e1wq7y4k0"})("&&&{color:",Dp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const dL=(0,a.forwardRef)((function({label:e,position:t=iL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===iL.bottom,l=t===iL.corner;if(!i)return null;let u={opacity:i?1:void 0,zIndex:n},d={};return s&&(u={...u,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(u={...u,position:"absolute",top:4,right:(0,c.isRTL)()?void 0:4,left:(0,c.isRTL)()?4:void 0}),(0,a.createElement)(lL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:u,...r},(0,a.createElement)(cL,{className:"components-resizable-tooltip__tooltip",style:d},(0,a.createElement)(uL,{as:"span"},e)))}));var fL=dL;const pL=()=>{};const mL=(0,a.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=pL,position:s=iL.bottom,showPx:c=!0,zIndex:u=1e3,...d},f){const{label:p,resizeListener:m}=aL({axis:e,fadeTimeout:n,onResize:i,showPx:c,position:s});if(!r)return null;const h=l()("components-resize-tooltip",t);return(0,a.createElement)(sL,{"aria-hidden":"true",className:h,ref:f,...d},m,(0,a.createElement)(fL,{"aria-hidden":d["aria-hidden"],label:p,position:s,ref:o,zIndex:u}))}));var hL=mL;const gL="components-resizable-box__handle",vL="components-resizable-box__side-handle",bL="components-resizable-box__corner-handle",yL={top:l()(gL,vL,"components-resizable-box__handle-top"),right:l()(gL,vL,"components-resizable-box__handle-right"),bottom:l()(gL,vL,"components-resizable-box__handle-bottom"),left:l()(gL,vL,"components-resizable-box__handle-left"),topLeft:l()(gL,bL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(gL,bL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(gL,bL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(gL,bL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},wL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},xL={top:wL,right:wL,bottom:wL,left:wL,topLeft:wL,topRight:wL,bottomRight:wL,bottomLeft:wL};var EL=(0,a.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},s){return(0,a.createElement)(rL,{className:l()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:yL,handleStyles:xL,ref:s,...i},t,r&&(0,a.createElement)(hL,{...o}))}));var _L=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==a.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,a.createElement)(o,{className:"components-responsive-wrapper"},(0,a.createElement)("div",null,(0,a.cloneElement)(n,{className:l()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})))};const CL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vmin|vmax|vh|vw)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};var SL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i}){const s=(0,a.useRef)(),[l,c]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);function p(i=!1){if(!function(){try{return!!s.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:l,ownerDocument:c}=s.current;if(!i&&null!==l?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,a.createElement)("html",{lang:c.documentElement.lang,className:n},(0,a.createElement)("head",null,(0,a.createElement)("title",null,t),(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,a.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,a.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,a.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${CL.toString()})();`}}),o.map((e=>(0,a.createElement)("script",{key:e,src:e})))));l.open(),l.write(""+(0,a.renderToString)(u)),l.close()}return(0,a.useEffect)((()=>{function e(){p(!1)}function t(e){const t=s.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(c(n.width),f(n.height))}p();const n=s.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.addEventListener("message",t)}}),[]),(0,a.useEffect)((()=>{p()}),[t,r,o]),(0,a.useEffect)((()=>{p(!0)}),[e,n]),(0,a.createElement)("iframe",{ref:(0,u.useMergeRefs)([s,(0,u.useFocusableIframe)()]),title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})};const kL=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:s=null,explicitDismiss:u=!1,onDismiss:d,listRef:f},p){function m(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,bb.speak)(n,t)}),[n,t])}(n,r),(0,a.useEffect)((()=>{const e=setTimeout((()=>{u||(d?.(),i?.())}),1e4);return()=>clearTimeout(e)}),[d,i,u]);const h=l()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&("undefined"!=typeof process&&process.env,o=[o[0]]);const g=l()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,a.createElement)("div",{ref:p,className:h,onClick:u?void 0:m,tabIndex:0,role:u?"":"button",onKeyPress:u?void 0:m,"aria-label":u?"":(0,c.__)("Dismiss this notice")},(0,a.createElement)("div",{className:g},s&&(0,a.createElement)("div",{className:"components-snackbar__icon"},s),t,o.map((({label:e,onClick:t,url:n},r)=>(0,a.createElement)(pd,{key:r,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),u&&(0,a.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m},"✕")))}));var TL=kL;const RL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var PL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,a.useRef)(null),i=(0,u.useReducedMotion)();t=l()("components-snackbar-list",t);const s=e=>()=>r?.(e.id);return(0,a.createElement)("div",{className:t,tabIndex:-1,ref:o},n,(0,a.createElement)(Vm,null,e.map((e=>{const{content:t,...n}=e;return(0,a.createElement)(jl.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?void 0:RL},(0,a.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,a.createElement)(TL,{...n,onRemove:s(e),listRef:o},e.content)))}))))};const ML=Jf` from { transform: rotate(0deg); } to { transform: rotate(360deg); } - `,FL=md("svg",{target:"ea4tfvq2"})("width:",Bh.spinnerSize,"px;height:",Bh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Vp.ui.theme,";overflow:visible;opacity:1;background-color:transparent;"),BL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},jL=md("circle",{target:"ea4tfvq1"})(BL,";stroke:",Vp.gray[300],";"),VL=md("path",{target:"ea4tfvq0"})(BL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",zL,";");var HL=(0,a.forwardRef)((function({className:e,...t},n){return(0,a.createElement)(FL,{className:l()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,a.createElement)(jL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,a.createElement)(VL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var $L=ed((function(e,t){const n=PS(e);return(0,a.createElement)(gd,{...n,ref:t})}),"Surface");const WL=({tabId:e,children:t,selected:n,...r})=>(0,a.createElement)(wd,{role:"tab",tabIndex:n?void 0:-1,"aria-selected":n,id:e,__experimentalIsFocusable:!0,...r},t),UL=(0,a.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:c},d)=>{var f;const p=(0,u.useInstanceId)(UL,"tab-panel"),[m,h]=(0,a.useState)(),g=(0,a.useCallback)((e=>{h(e),c?.(e)}),[c]),v=n.find((({name:e})=>e===m)),b=`${p}-${null!==(f=v?.name)&&void 0!==f?f:"none"}`;return(0,a.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,g]),(0,a.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g]),(0,a.createElement)("div",{className:e,ref:d},(0,a.createElement)(uT,{role:"tablist",orientation:i,onNavigate:r?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},n.map((e=>(0,a.createElement)(WL,{className:l()("components-tab-panel__tabs-item",e.className,{[s]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>g(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),v&&(0,a.createElement)("div",{key:b,"aria-labelledby":b,role:"tabpanel",id:`${b}-view`,className:"components-tab-panel__tab-content"},t(v)))}));var GL=UL;const KL=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,className:l,onChange:c,type:d="text",...f}=e,p=`inspector-text-control-${(0,u.useInstanceId)(KL)}`;return(0,a.createElement)(Kv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:l},(0,a.createElement)("input",{className:"components-text-control__input",type:d,id:p,value:i,onChange:e=>c(e.target.value),"aria-describedby":s?p+"__help":void 0,ref:t,...f}))}));var qL=KL;const YL=op("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Bh.radiusBlockUi,";border:",Bh.borderWidth," solid ",Vp.ui.border,";",""),XL=op("border-color:",Vp.ui.theme,";box-shadow:0 0 0 calc( ",Bh.borderWidthFocus," - ",Bh.borderWidth," ) ",Vp.ui.theme,";outline:2px solid transparent;","");var ZL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const JL=op("display:block;font-family:",zv("default.fontFamily"),";padding:6px 8px;",YL,";font-size:",zv("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${ZL["small"]})`,"{font-size:",zv("default.fontSize"),";line-height:normal;}&:focus{",XL,";}&::-webkit-input-placeholder{color:",Vp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Vp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Vp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Vp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Vp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Vp.ui.lightGrayPlaceholder,";}}","");const QL=md("textarea",{target:"e1w5nnrk0"})("width:100%;",JL,";");var ez=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:l,rows:c=4,className:d,...f}=t,p=`inspector-textarea-control-${(0,u.useInstanceId)(e)}`;return(0,a.createElement)(Kv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:d},(0,a.createElement)(QL,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,...f}))};var tz=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,a.createElement)(a.Fragment,null,t);const o=new RegExp(`(${Rb(r)})`,"gi");return(0,a.createInterpolateElement)(t.replace(o,"$&"),{mark:(0,a.createElement)("mark",null)})};var nz=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.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"}));var rz=function(e){const{children:t}=e;return(0,a.createElement)("div",{className:"components-tip"},(0,a.createElement)(Sy,{icon:nz}),(0,a.createElement)("p",null,t))};var oz=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,u.useInstanceId)(e)}`,d=Ju()("components-toggle-control",i,!t&&op({marginBottom:ih(3)},"",""));let f,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(f=c+"__help")),(0,a.createElement)(Kv,{id:c,help:p,className:d,__nextHasNoMarginBottom:!0},(0,a.createElement)(ub,{justify:"flex-start",spacing:3},(0,a.createElement)(AO,{id:c,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,a.createElement)(rh,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};const iz=(0,a.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,a.createElement)(kO,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,a.createElement)(Ql,{icon:n}))}));var az=iz,sz=(0,v.createContext)(!0),lz=Object.defineProperty,cz=Object.defineProperties,uz=Object.getOwnPropertyDescriptors,dz=Object.getOwnPropertySymbols,fz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,mz=(e,t,n)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hz=(e,t)=>{for(var n in t||(t={}))fz.call(t,n)&&mz(e,n,t[n]);if(dz)for(var n of dz(t))pz.call(t,n)&&mz(e,n,t[n]);return e},gz=(e,t)=>cz(e,uz(t)),vz=(e,t)=>{var n={};for(var r in e)fz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&dz)for(var r of dz(e))t.indexOf(r)<0&&pz.call(e,r)&&(n[r]=e[r]);return n},bz=Object.defineProperty,yz=Object.defineProperties,wz=Object.getOwnPropertyDescriptors,xz=Object.getOwnPropertySymbols,Ez=Object.prototype.hasOwnProperty,_z=Object.prototype.propertyIsEnumerable,Cz=(e,t,n)=>t in e?bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sz=(e,t)=>{for(var n in t||(t={}))Ez.call(t,n)&&Cz(e,n,t[n]);if(xz)for(var n of xz(t))_z.call(t,n)&&Cz(e,n,t[n]);return e},kz=(e,t)=>yz(e,wz(t));function Tz(...e){}function Rz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pz(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Mz(e){return e}function Iz(...e){for(const t of e)if(void 0!==t)return t}function Nz(e){return function(e){return!!e&&!!(0,v.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var Oz,Dz="undefined"!=typeof window&&!!(null==(Oz=window.document)?void 0:Oz.createElement);function Az(e){return e?e.ownerDocument||e:document}function Lz(e,t=!1){const{activeElement:n}=Az(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return Lz(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Az(n).getElementById(e);if(t)return t}}return n}function zz(e,t){return e===t||e.contains(t)}function Fz(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Bz.indexOf(e.type)}var Bz=["button","color","file","image","reset","submit"];function jz(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Vz(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Hz(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return Hz(e.parentElement)||document.scrollingElement||document.body}var $z=hz({},b),Wz=$z.useId,Uz=($z.useDeferredValue,$z.useInsertionEffect),Gz=Dz?v.useLayoutEffect:v.useEffect;function Kz(e){const t=(0,v.useRef)(e);return Gz((()=>{t.current=e})),t}function qz(e){const t=(0,v.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Uz?Uz((()=>{t.current=e})):t.current=e,(0,v.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Yz(...e){return(0,v.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function Xz(e){if(Wz){const t=Wz();return e||t}const[t,n]=(0,v.useState)(e);return Gz((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Zz(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,v.useState)((()=>n(t)));return Gz((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}Symbol("setNextState");function Jz(e){return qz("function"==typeof e?e:()=>e)}function Qz(e,t,n=[]){const r=(0,v.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return gz(hz({},e),{wrapElement:r})}var eF=o(7557);function tF(e){return v.forwardRef(((t,n)=>e(hz({ref:n},t))))}function nF(e){const t=tF(e);return v.memo(t)}function rF(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=vz(n,["as","wrapElement","render"]);let s;const l=Yz(t.ref,Nz(i));if(r&&"string"!=typeof r)s=(0,eF.jsx)(r,gz(hz({},a),{render:i}));else if(v.isValidElement(i)){const e=gz(hz({},i.props),{ref:l});s=v.cloneElement(i,function(e,t){const n=hz({},e);for(const r in t){if(!Rz(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?hz(hz({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if("function"==typeof t.children){const e=a,{children:n}=e,r=vz(e,["children"]);s=t.children(r)}else s=r?(0,eF.jsx)(r,hz({},a)):(0,eF.jsx)(e,hz({},a));return o?o(s):s}function oF(e){return(t={})=>{const n=e(t),r={};for(const e in n)Rz(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function iF(e){return Boolean(e.currentTarget&&!zz(e.currentTarget,e.target))}function aF(e){return e.target===e.currentTarget}function sF(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=kz(Sz({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function lF(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function cF(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function uF(e,t,n,r=window){var o;try{r.document.addEventListener(e,t,n)}catch(e){}const i=[];for(let a=0;a<(null==(o=r.frames)?void 0:o.length);a+=1){const o=r.frames[a];o&&i.push(uF(e,t,n,o))}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}i.forEach((e=>e()))}}var dF="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 fF(e){return!!jz(e,dF)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(jz(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function pF(e){const t=Lz(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function mF(e){!function(e){const t=Lz(e);if(!t)return!1;if(zz(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}(e)&&fF(e)&&e.focus()}var hF=Dz&&!!Dz&&/mac|iphone|ipad|ipod/i.test(navigator.platform)&&/apple/i.test(navigator.vendor),gF=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function vF(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function bF(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function yF(e,t){return qz((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var wF=!0;function xF(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(wF=!1))}function EF(e){e.metaKey||e.ctrlKey||e.altKey||(wF=!0)}var _F=oF((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=vz(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,v.useRef)(null);(0,v.useEffect)((()=>{n&&(uF("mousedown",xF,!0),uF("keydown",EF,!0))}),[n]),hF&&(0,v.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!vF(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&a.disabled,c=!!l&&!r,[u,d]=(0,v.useState)(!1);(0,v.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,v.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{fF(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=yF(a.onKeyPressCapture,l),p=yF(a.onMouseDownCapture,l),m=yF(a.onClickCapture,l),h=a.onMouseDown,g=qz((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!hF)return;if(iF(e))return;if(!Fz(t)&&!vF(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),cF(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||mF(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),null==i||i(e),e.defaultPrevented)return;if(!n)return;const r=e.currentTarget;r&&pF(r)&&d(!0)},y=a.onKeyDownCapture,w=qz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!aF(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),x=a.onFocusCapture,E=qz((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!n)return;if(!aF(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);wF||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:gF.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):cF(e.target,"focusout",r)})),_=a.onBlur,C=qz((e=>{null==_||_(e),n&&function(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!zz(n,r)}(e)&&d(!1)})),S=(0,v.useContext)(sz),k=qz((e=>{n&&o&&e&&S&&queueMicrotask((()=>{pF(e)||fF(e)&&e.focus()}))})),T=Zz(s,a.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=c?hz({pointerEvents:"none"},a.style):a.style;return a=gz(hz({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Yz(s,k,a.ref),style:M,tabIndex:bF(n,c,R,P,a.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:w,onFocusCapture:E,onBlur:C})}));tF((e=>rF("div",e=_F(e))));function CF(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Fz(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Fz(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var SF=oF((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=vz(t,["clickOnEnter","clickOnSpace"]);const i=(0,v.useRef)(null),a=Zz(i,o.as),s=o.type,[l,c]=(0,v.useState)((()=>!!a&&Fz({tagName:a,type:s})));(0,v.useEffect)((()=>{i.current&&c(Fz(i.current))}),[]);const[u,d]=(0,v.useState)(!1),f=(0,v.useRef)(!1),p="data-command"in o,m=o.onKeyDown,h=qz((e=>{null==m||m(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(!aF(e))return;if(Vz(t))return;if(t.isContentEditable)return;const i=n&&"Enter"===e.key,a=r&&" "===e.key,s="Enter"===e.key&&!n,l=" "===e.key&&!r;if(s||l)e.preventDefault();else if(i||a){const n=CF(e);if(i){if(!n){e.preventDefault();const n=e,{view:r}=n,o=vz(n,["view"]),i=()=>lF(t,o);Dz&&/firefox\//i.test(navigator.userAgent)?cF(t,"keyup",i):queueMicrotask(i)}}else a&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),g=o.onKeyUp,b=qz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!CF(e))){d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=vz(n,["view"]);queueMicrotask((()=>lF(t,o)))}}));return o=gz(hz({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:Yz(i,o.ref),onKeyDown:h,onKeyUp:b}),o=_F(o)}));tF((e=>rF("button",e=SF(e))));var kF=(0,v.createContext)(void 0),TF=oF((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=Mz,element:i}=t,a=vz(t,["store","shouldRegisterItem","getItem","element"]);const s=(0,v.useContext)(kF);n=n||s;const l=Xz(a.id),c=(0,v.useRef)(),u=(0,v.useCallback)((e=>{var t;if(!e||!l||!r)return null==(t=c.current)?void 0:t.call(c);const i=o({id:l,element:e});c.current=null==n?void 0:n.renderItem(i)}),[l,r,o,n]);return a=gz(hz({},a),{ref:Yz(u,a.ref)})}));tF((e=>rF("div",TF(e))));function RF(e,t){return t&&e.item(t)||null}var PF=Symbol("FOCUS_SILENTLY");function MF(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var IF=(0,v.createContext)(void 0),NF=(0,v.createContext)(void 0),OF=(0,v.createContext)(void 0),DF=()=>()=>{};function AF(e,t=Mz){const n=()=>{if(!e)return;const n=e.getState(),r="function"==typeof t?t:null,o="string"==typeof t?t:null;return r?r(n):o&&Rz(n,o)?n[o]:void 0};return(0,Bd.useSyncExternalStore)((null==e?void 0:e.subscribe)||DF,n,n)}function LF(e,t,n,r){const o=Rz(t,n)?t[n]:void 0,i=Kz({value:o,setValue:r?t[r]:void 0});Gz((()=>e.sync(((e,t)=>{const{value:r,setValue:o}=i.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}),[n])),[e,n]),Gz((()=>e.sync((()=>{void 0!==o&&e.setState(n,o)}),[n])),[e,n,o])}function zF(e){const t=function(e){const t=(0,v.useRef)();return void 0===t.current&&(t.current=e()),t.current}(e);Gz((()=>t.init()),[t]);const n=(0,v.useCallback)((e=>AF(t,e)),[t]);return(0,v.useMemo)((()=>gz(hz({},t),{useState:n})),[t,n])}function FF(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function BF(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Hz(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e=0){void 0!==c&&c{var t,n=e,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,getItem:s,"aria-setsize":l,"aria-posinset":c}=n,u=vz(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const d=(0,v.useContext)(OF);r=r||d;const f=Xz(u.id),p=(0,v.useRef)(null),m=(0,v.useContext)(NF),h=AF(r,(e=>o||((null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),g=u.disabled&&!u.accessibleWhenDisabled,b=(0,v.useCallback)((e=>{const t=gz(hz({},e),{id:f||e.id,rowId:h,disabled:!!g});return s?s(t):t}),[f,h,g,s]),y=u.onFocus,w=(0,v.useRef)(!1),x=qz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(iF(e))return;if(!f)return;if(!r)return;const{activeId:t,virtualFocus:n,baseElement:o}=r.getState();if(function(e,t){return!aF(e)&&MF(t,e.target)}(e,r))return;if(t!==f&&r.setActiveId(f),!n)return;if(!aF(e))return;if((i=e.currentTarget).isContentEditable||Vz(i)||"INPUT"===i.tagName&&!Fz(i))return;var i;if(!o)return;w.current=!0;e.relatedTarget===o||MF(r,e.relatedTarget)?function(e){e[PF]=!0,e.focus()}(o):o.focus()})),E=u.onBlurCapture,_=qz((e=>{if(null==E||E(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&w.current&&(w.current=!1,e.preventDefault(),e.stopPropagation())})),C=u.onKeyDown,S=Jz(i),k=Jz(a),T=qz((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!aF(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(f),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1),End:()=>!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1),PageUp:()=>BF(t,r,null==r?void 0:r.up,!0),PageDown:()=>BF(t,r,null==r?void 0:r.down)}[e.key];if(l){const t=l();if(S(e)||void 0!==t){if(!k(e))return;e.preventDefault(),r.move(t)}}})),R=AF(r,(e=>e.baseElement||void 0)),P=(0,v.useMemo)((()=>({id:f,baseElement:R})),[f,R]);u=Qz(u,(e=>(0,eF.jsx)(IF.Provider,{value:P,children:e})),[P]);const M=AF(r,(e=>e.activeId===f)),I=AF(r,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,v.useState)(n);return Gz((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(p,u);let O;M&&(!function(e){return"option"===e||"treeitem"===e}(N)?I&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const D=AF(r,(e=>null!=l?l:(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),A=AF(r,(e=>{if(null!=c)return c;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===h));return m.ariaPosInSet+t.findIndex((e=>e.id===f))})),L=null==(t=AF(r,(e=>!e.renderedItems.length||!e.virtualFocus&&e.activeId===f)))||t;return u=gz(hz({id:f,"aria-selected":O,"data-active-item":M?"":void 0},u),{ref:Yz(p,u.ref),tabIndex:L?u.tabIndex:-1,onFocus:x,onBlurCapture:_,onKeyDown:T}),u=SF(u),u=TF(gz(hz({store:r},u),{getItem:b,shouldRegisterItem:!!f&&u.shouldRegisterItem})),gz(hz({},u),{"aria-setsize":D,"aria-posinset":A})}));nF((e=>rF("button",jF(e))));var VF=oF((e=>{var t=e,{store:n}=t,r=vz(t,["store"]);return r=jF(hz({store:n},r))})),HF=nF((e=>rF("button",VF(e))));var $F=(0,a.createContext)(void 0);var WF=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useContext)($F),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof process&&process.env,null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,a.createElement)(t,{...s},e):i?e(s):null;const l=i?e:t&&(0,a.createElement)(t,null);return(0,a.createElement)(HF,{...s,store:o,render:l})}));var UF=({children:e,className:t})=>(0,a.createElement)("div",{className:t},e);var GF=(0,a.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:s,...c},u){return(0,a.useContext)($F)?(0,a.createElement)(WF,{className:l()("components-toolbar-button",t),...r,...c,ref:u},(t=>(0,a.createElement)(wd,{label:s,isPressed:o,disabled:i,...t},e))):(0,a.createElement)(UF,{className:n},(0,a.createElement)(wd,{ref:u,icon:c.icon,label:s,shortcut:c.shortcut,"data-subscript":c.subscript,onClick:e=>{e.stopPropagation(),c.onClick&&c.onClick(e)},className:l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...c},e))}));var KF=({className:e,children:t,...n})=>(0,a.createElement)("div",{className:e,...n},t);var qF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,a.createElement)(mT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,a.useContext)($F)?(0,a.createElement)(WF,{...t},r):r(t)};var YF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const s=(0,a.useContext)($F);if(!(e&&e.length||t))return null;const c=l()(s?"components-toolbar-group":"components-toolbar",n);let u=e;return Array.isArray(u[0])||(u=[u]),r?(0,a.createElement)(qF,{label:o,controls:u,className:c,children:t,...i}):(0,a.createElement)(KF,{className:c,...i},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,a.createElement)(GF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null,...e}))))),t)};function XF(e,t){return LF(e,t,"items","setItems"),e}function ZF(e,t){return LF(e=XF(e,t),t,"activeId","setActiveId"),LF(e,t,"includesBaseElement"),LF(e,t,"virtualFocus"),LF(e,t,"orientation"),LF(e,t,"rtl"),LF(e,t,"focusLoop"),LF(e,t,"focusWrap"),LF(e,t,"focusShift"),e}function JF(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=!1)=>{const r=n?c:l;return r.add(e),d.set(e,t),()=>{var t;null==(t=u.get(e))||t(),u.delete(e),d.delete(e),r.delete(e)}},p=(e,i)=>{if(!Rz(n,e))return;const s=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(s===n[e])return;t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,s)}));const f=n;n=kz(Sz({},n),{[e]:s});const p=Symbol();o=p,a.add(e);const m=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>m(e,f))),queueMicrotask((()=>{if(o!==p)return;const e=n;c.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return Tz;if(!t.length)return Tz;i=!0;const e=(r=n,Object.keys(r)).map((e=>Pz(...t.map((t=>{var n,r;const o=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(o&&Rz(o,e))return null==(r=null==t?void 0:t.sync)?void 0:r.call(t,(t=>p(e,t[e])),[e])})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map((e=>{var t;return null==(t=null==e?void 0:e.init)?void 0:t.call(e)}));return Pz(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(e,e(n,n)),f(e,t)),syncBatch:(e,t)=>(u.set(e,e(n,r)),f(e,t,!0)),getState:()=>n,setState:p,pick:(...e)=>JF(function(e,t){const n={};for(const r of t)Rz(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:(...e)=>JF(function(e,t){const n=Sz({},e);for(const e of t)Rz(n,e)&&delete n[e];return n}(n,e),m)};return m}function QF(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(et)):e}function eB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Iz(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Iz(null==n?void 0:n.renderedItems,[])},a=JF({renderedItems:i.renderedItems}),s=JF(i,e.store),l=()=>{const e=QF(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};s.setup((()=>a.syncBatch((e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Az(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}),["renderedItems"])));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=Sz(Sz({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return kz(Sz({},s),{registerItem:u,renderItem:e=>Pz(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function tB(e){const t=[];for(const n of e)t.push(...n);return t}function nB(e){return e.slice().reverse()}var rB={id:null};function oB(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function iB(e,t){return e.filter((e=>e.rowId===t))}function aB(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function sB(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function lB(e,t,n){const r=sB(e);for(const o of e)for(let e=0;ei.sync((e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=oB(e.renderedItems))?void 0:n.id}))}),["renderedItems","activeId"])));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?nB(e):e;if(null==s)return null==(o=oB(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=oB(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=iB(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,w=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[rB]:[],...e.slice(0,r)]}(w&&!n?f:iB(f,p.rowId),s,n),t=oB(e,s);return null==t?void 0:t.id}if(w){const e=oB(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const x=oB(v,s);return!x&&n?null:null==x?void 0:x.id};return kz(Sz(Sz({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=oB(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=oB(nB(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=oB(n))?void 0:t.rowId)&&o;return a(nB(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=cB(tB(lB(aB(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=cB(nB(tB(lB(aB(n),t,s))));return a(l,"vertical",o,e)}})}function dB(e={}){const t={},n=zF((()=>function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return uB(kz(Sz({},e),{orientation:Iz(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:Iz(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}(hz(hz({},e),t))));return function(e,t){return ZF(e,t)}(n,e)}var fB=(0,v.createContext)(void 0);function pB(e){return e.some((e=>!!e.rowId))}function mB(e,t,n){return qz((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=RF(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!aF(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(Vz(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=pB(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=vz(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var hB=oF((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=vz(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=(0,v.useRef)(null),l=function(e){const[t,n]=(0,v.useState)(!1),r=(0,v.useCallback)((()=>n(!0)),[]),o=e.useState((t=>RF(e,t.activeId)));return(0,v.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),c=n.useState("moves");(0,v.useEffect)((()=>{var e;if(!c)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=RF(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Sz({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[c,r,o]),Gz((()=>{if(!r)return;if(!c)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=s.current;s.current=null,o&&sF(o,{relatedTarget:e}),pF(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=kz(Sz({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[c,r]);const u=n.useState("activeId"),d=n.useState("virtualFocus");Gz((()=>{var e;if(!r)return;if(!d)return;const t=s.current;if(s.current=null,!t)return;sF(t,{relatedTarget:(null==(e=RF(n,u))?void 0:e.element)||Lz(t)})}),[u,d,r]);const f=mB(n,a.onKeyDownCapture,s),p=mB(n,a.onKeyUpCapture,s),m=a.onFocusCapture,h=qz((e=>{if(null==m||m(e),e.defaultPrevented)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[PF];return delete e[PF],t}(e.currentTarget);aF(e)&&o&&(e.stopPropagation(),s.current=r)})),g=a.onFocus,b=qz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?aF(e)&&!MF(n,t)&&queueMicrotask(l):aF(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=qz((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=RF(n,o))?void 0:t.element,a=e.relatedTarget,l=MF(n,a),c=s.current;if(s.current=null,aF(e)&&l)a===i?c&&c!==a&&sF(c,e):i&&sF(i,e),e.stopPropagation();else{!MF(n,e.target)&&i&&sF(i,e)}})),x=a.onKeyDown,E=Jz(i),_=qz((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!aF(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=RF(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=pB(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(tB(nB(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!E(e))return;e.preventDefault(),n.move(t)}}}));a=Qz(a,(e=>(0,eF.jsx)(OF.Provider,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;return r&&e.virtualFocus?null==(t=RF(n,e.activeId))?void 0:t.id:void 0}));a=gz(hz({"aria-activedescendant":C},a),{ref:Yz(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:p,onFocusCapture:h,onFocus:b,onBlurCapture:w,onKeyDown:_});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=_F(hz({focusable:S},a))}));tF((e=>rF("div",hB(e))));var gB=oF((e=>{var t=e,{store:n}=t,r=vz(t,["store"]);const o=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Qz(r,(e=>(0,eF.jsx)(fB.Provider,{value:n,children:e})),[n]),r=hz({role:"toolbar","aria-orientation":o},r),r=hB(hz({store:n},r))})),vB=tF((e=>rF("div",gB(e))));var bB=(0,a.forwardRef)((function({label:e,...t},n){const r=dB({focusLoop:!0,rtl:(0,c.isRTL)()});return(0,a.createElement)($F.Provider,{value:r},(0,a.createElement)(vB,{ref:n,"aria-label":e,store:r,...t}))}));const yB={DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}};var wB=(0,a.forwardRef)((function({className:e,label:t,...n},r){if(!t)return Xl()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,a.createElement)(YF,{...n,className:e});const o=l()("components-accessible-toolbar",e);return(0,a.createElement)(cc,{value:yB},(0,a.createElement)(bB,{className:o,label:t,ref:r,...n}))}));var xB=(0,a.forwardRef)((function(e,t){return(0,a.useContext)($F)?(0,a.createElement)(WF,{ref:t,...e.toggleProps},(t=>(0,a.createElement)(mT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,a.createElement)(mT,{...e})}));const EB={columns:e=>op("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:op("column-gap:",ih(2),";row-gap:",ih(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},_B={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},CB=op(EB.item.fullWidth," gap:",ih(2),";.components-dropdown-menu{margin:",ih(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ih(6),";}",""),SB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},kB=op(EB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Bv,"{margin-bottom:0;",jv,":last-child{margin-bottom:0;}}",Wv,"{margin-bottom:0;}&& ",pg,"{label{line-height:1.4em;}}",""),TB={name:"eivff4",styles:"display:none"},RB={name:"16gsvie",styles:"min-width:200px"},PB=md("span",{target:"ews648u0"})("color:",Vp.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",fh({marginLeft:ih(3)})," text-transform:uppercase;"),MB=op("color:",Vp.gray[900],";&&[aria-disabled='true']{color:",Vp.gray[700],";opacity:1;&:hover{color:",Vp.gray[700],";}",PB,"{opacity:0.3;}}",""),IB=()=>{},NB=(0,a.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:IB,deregisterPanelItem:IB,flagItemCustomization:IB,registerResetAllFilter:IB,deregisterResetAllFilter:IB,areAllOptionalControlsHidden:!0}),OB=()=>(0,a.useContext)(NB);const DB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,a.createElement)(PB,{"aria-hidden":!0},(0,c.__)("Reset"));return(0,a.createElement)(JO,{label:(0,c.__)("Defaults")},t.map((([t,o])=>o?(0,a.createElement)(QO,{key:t,className:e,role:"menuitem",label:(0,c.sprintf)((0,c.__)("Reset %s"),t),onClick:()=>{n(t),(0,Sb.speak)((0,c.sprintf)((0,c.__)("%s reset to default"),t),"assertive")},suffix:r},t):(0,a.createElement)(QO,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},AB=({items:e,toggleItem:t})=>e.length?(0,a.createElement)(JO,{label:(0,c.__)("Tools")},e.map((([e,n])=>{const r=n?(0,c.sprintf)((0,c.__)("Hide and reset %s"),e):(0,c.sprintf)((0,c.__)("Show %s"),e);return(0,a.createElement)(QO,{key:e,icon:n&&s_,isSelected:n,label:r,onClick:()=>{n?(0,Sb.speak)((0,c.sprintf)((0,c.__)("%s hidden and reset to default"),e),"assertive"):(0,Sb.speak)((0,c.sprintf)((0,c.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,LB=ed(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,headingLevel:n=2,...r}=Qu(e,"ToolsPanelHeader"),o=Ju(),i=(0,a.useMemo)((()=>o(CB,t)),[t,o]),s=(0,a.useMemo)((()=>o(RB)),[o]),l=(0,a.useMemo)((()=>o(SB)),[o]),c=(0,a.useMemo)((()=>o(MB)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:f}=OB();return{...r,areAllOptionalControlsHidden:f,defaultControlsItemClassName:c,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:l,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const h=Object.entries(d?.default||{}),g=Object.entries(d?.optional||{}),v=n?gh:ak,b=(0,c.sprintf)((0,c._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,c.__)("All options are currently hidden"):void 0,w=[...h,...g].some((([,e])=>e));return(0,a.createElement)(ub,{...m,ref:t},(0,a.createElement)(f_,{level:l,className:s},u),i&&(0,a.createElement)(mT,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(DB,{items:h,toggleItem:p,itemClassName:r}),(0,a.createElement)(AB,{items:g,toggleItem:p}),(0,a.createElement)(JO,null,(0,a.createElement)(QO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,Sb.speak)((0,c.__)("All options reset"),"assertive"))}},(0,c.__)("Reset all")))))))}),"ToolsPanelHeader");var zB=LB;const FB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},BB=e=>e&&0===Object.keys(e).length;function jB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c,...u}=Qu(e,"ToolsPanel"),d=(0,a.useRef)(!1),f=d.current;(0,a.useEffect)((()=>{f&&(d.current=!1)}),[f]);const[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[v,b]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),g((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,g]),w=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,a.useCallback)((e=>{b((t=>[...t,e]))}),[b]),E=(0,a.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,C]=(0,a.useState)({default:{},optional:{}});(0,a.useEffect)((()=>{C((e=>FB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,C,h]);const S=(0,a.useCallback)(((e,t="default")=>{C((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[C]),[k,T]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(BB(_?.default)&&!BB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));T(e)}}),[_,T]);const R=Ju(),P=(0,a.useMemo)((()=>{const e=i&&op(">div:not( :first-of-type ){display:grid;",EB.columns(2)," ",EB.spacing," ",EB.item.fullWidth,";}","");const n=BB(_?.default)&&k&&_B;return R((e=>op(EB.columns(e)," ",EB.spacing," border-top:",Bh.borderWidth," solid ",Vp.gray[300],";margin-top:-1px;padding:",ih(4),";",""))(2),e,n,t)}),[k,t,R,i,_]),M=(0,a.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};C(r)}),[_,p,C]),I=(0,a.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(v));const e=FB({panelItems:p,menuItemOrder:h,shouldReset:!0});C(e)}),[p,v,r,C,h]),N=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},O=N(p),D=N([...p].reverse());return{...u,headingLevel:n,panelContext:(0,a.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:w,deregisterResetAllFilter:E,firstDisplayedItem:O,flagItemCustomization:S,hasMenuItems:!!p.length,isResetting:d.current,lastDisplayedItem:D,menuItems:_,panelId:o,registerPanelItem:y,registerResetAllFilter:x,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c})),[k,w,E,O,S,D,_,o,p,x,y,s,l,c]),resetAllItems:I,toggleItem:M,className:P}}var VB=ed(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:l,...c}=jB(e);return(0,a.createElement)(W_,{...c,columns:2,ref:t},(0,a.createElement)(NB.Provider,{value:o},(0,a.createElement)(zB,{label:r,resetAll:i,toggleItem:s,headingLevel:l}),n))}),"ToolsPanel");const HB=()=>{};const $B=ed(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=HB,onDeselect:l,onSelect:c,...d}=Qu(e,"ToolsPanelItem"),{panelId:f,menuItems:p,registerResetAllFilter:m,deregisterResetAllFilter:h,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:C}=OB(),S=(0,a.useCallback)(n,[i,n]),k=(0,a.useCallback)(s,[i,s]),T=(0,u.usePrevious)(f),R=f===i||null===f;(0,a.useEffect)((()=>(R&&null!==T&&g({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===T&&f||f===i)&&v(o)})),[f,R,r,o,S,i,T,g,v]),(0,a.useEffect)((()=>(R&&m(k),()=>{R&&h(k)})),[m,h,k,R]);const P=r?"default":"optional",M=p?.[P]?.[o],I=(0,u.usePrevious)(M),N=void 0!==p?.[P]?.[o],O=n(),D=(0,u.usePrevious)(O),A=O&&!D;(0,a.useEffect)((()=>{A&&(r||null===f)&&b(o,P)}),[f,A,r,P,o,b]),(0,a.useEffect)((()=>{N&&!y&&R&&(!M||O||I||c?.(),!M&&I&&l?.())}),[R,M,N,y,O,I,c,l]);const L=r?void 0!==p?.[P]?.[o]:M,z=Ju(),F=(0,a.useMemo)((()=>z(kB,w&&!L&&TB,t,x===o&&_,E===o&&C)),[L,w,t,z,x,E,_,C,o]);return{...d,isShown:L,shouldRenderPlaceholder:w,className:F}}(e);return r?(0,a.createElement)(gd,{...i,ref:t},n):o?(0,a.createElement)(gd,{...i,ref:t}):null}),"ToolsPanelItem");var WB=$B,UB=window.wp.keycodes;const GB=(0,a.createContext)(void 0),KB=GB.Provider;function qB({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,a.createElement)(KB,{value:r},e)}function YB(e){return Zl.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const XB=(0,a.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const l=(0,a.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![UB.UP,UB.DOWN,UB.LEFT,UB.RIGHT,UB.HOME,UB.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=YB(u),f=d.indexOf(l),p=0===f,m=p&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===UB.RIGHT;if([UB.LEFT,UB.RIGHT].includes(o)){let r;if(r=o===UB.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(o===UB.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}YB(o)?.[0]?.focus()}if(o===UB.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=YB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(m)return;d[r].focus(),e.preventDefault()}else if([UB.UP,UB.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===UB.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=YB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([UB.HOME,UB.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===UB.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=YB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,a.createElement)(qB,null,(0,a.createElement)("div",{role:"application","aria-label":o},(0,a.createElement)("table",{...i,role:"treegrid",onKeyDown:l,ref:s},(0,a.createElement)("tbody",null,e))))}));var ZB=XB;var JB=(0,a.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,a.createElement)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o},e)}));const QB=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:l}=(0,a.useContext)(GB);let c;s&&(c=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,a.createElement)(t,{...u},e):null}));var ej=QB;var tj=(0,a.forwardRef)((function({children:e,...t},n){return(0,a.createElement)(ej,{ref:n,...t},e)}));var nj=(0,a.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,a.createElement)("td",{...n,role:"gridcell"},t?(0,a.createElement)(a.Fragment,null,e):(0,a.createElement)(tj,{ref:r},e))}));function rj(e){e.stopPropagation()}var oj=(0,a.forwardRef)(((e,t)=>(Xl()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,a.createElement)("div",{...e,ref:t,onMouseDown:rj}))));function ij(e){return Qd((0,a.useContext)(tf).fills,{sync:!0}).get(e)}const aj=md("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>op({marginInlineStart:e},"","")),";}",(({zIndex:e})=>op({zIndex:e},"","")),";");var sj={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const lj=md("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",aj,"{position:relative;justify-self:start;",(({isLayered:e})=>e?sj:void 0),";}");const cj=ed((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...l}=Qu(e,"ZStack"),c=lb(n),u=c.length-1,d=c.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,l=(0,a.isValidElement)(e)?e.key:t;return(0,a.createElement)(aj,{offsetAmount:r,zIndex:n,key:l},e)}));return(0,a.createElement)(lj,{...l,className:r,isLayered:o,ref:t},d)}),"ZStack");var uj=cj;const dj={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function fj(e=dj){const t=(0,a.useRef)(null),[n,r]=(0,a.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,u.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,u.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>UB.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>UB.isKeyboardEvent[e](t,n)))&&o(1)}}}var pj=(0,u.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,a.createElement)("div",{...fj(t)},(0,a.createElement)(e,{...n}))),"navigateRegions");var mj=(0,u.createHigherOrderComponent)((e=>function(t){const n=(0,u.useConstrainedTabbing)();return(0,a.createElement)("div",{ref:n,tabIndex:-1},(0,a.createElement)(e,{...t}))}),"withConstrainedTabbing"),hj=e=>(0,u.createHigherOrderComponent)((t=>class extends a.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);rc()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,a.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,a.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),gj=window.wp.hooks;const vj=16;function bj(e){return(0,u.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends a.Component{constructor(n){super(n),void 0===r&&(r=(0,gj.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,gj.addAction)("hookRemoved",n,s),(0,gj.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,gj.removeAction)("hookRemoved",n),(0,gj.removeAction)("hookAdded",n))}render(){return(0,a.createElement)(r,{...this.props})}}o.instances=[];const i=(0,u.debounce)((()=>{r=(0,gj.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),vj);function s(t){t===e&&i()}return o}),"withFilters")}var yj=(0,u.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,u.useFocusReturn)(e);return(0,a.createElement)("div",{ref:r},(0,a.createElement)(t,{...n}))};if((n=e)instanceof a.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const wj=({children:e})=>(Xl()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e);var xj=(0,u.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,a.useState)([]),s=(0,a.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:bf()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),l={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,a.createElement)(wA,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,a.createElement)(e,{...l,ref:r}):(0,a.createElement)(e,{...l})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,a.forwardRef)(t)):t}),"withNotices"),Ej=window.wp.privateApis;function _j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Cj(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Sj(...e){return(0,v.useCallback)(Cj(...e),e)}function kj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,v.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,v.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,v.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,v.useMemo)((()=>a),Object.values(a));return(0,v.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,v.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Tj(r,...t)]}function Tj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,v.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Rj(e){const t=(0,v.useRef)(e);return(0,v.useEffect)((()=>{t.current=e})),(0,v.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Pj({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,v.useState)(e),[r]=n,o=(0,v.useRef)(r),i=Rj(t);return(0,v.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Rj(n);return[a,(0,v.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Mj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Oj);if(i){const e=i.props.children,n=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):(0,v.isValidElement)(e)?e.props.children:null:t));return(0,v.createElement)(Ij,ad({},r,{ref:t}),(0,v.isValidElement)(e)?(0,v.cloneElement)(e,void 0,n):null)}return(0,v.createElement)(Ij,ad({},r,{ref:t}),n)}));Mj.displayName="Slot";const Ij=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,v.isValidElement)(n)?(0,v.cloneElement)(n,{...Dj(r,n.props),ref:Cj(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));Ij.displayName="SlotClone";const Nj=({children:e})=>(0,v.createElement)(v.Fragment,null,e);function Oj(e){return(0,v.isValidElement)(e)&&e.type===Nj}function Dj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Aj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,v.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Mj:t;return(0,v.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,v.createElement)(i,ad({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Lj(e,t){e&&(0,Ot.flushSync)((()=>e.dispatchEvent(t)))}function zj(e){const t=e+"CollectionProvider",[n,r]=kj(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=y().useRef(null),i=y().useRef(new Map).current;return y().createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=y().forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Sj(t,i(s,n).collectionRef);return y().createElement(Mj,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=y().forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=y().useRef(null),s=Sj(t,a),l=i(c,n);return y().useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),y().createElement(Mj,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=y().useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Fj=(0,v.createContext)(void 0);function Bj(e){const t=(0,v.useContext)(Fj);return e||t||"ltr"}const jj="dismissableLayer.update",Vj="dismissableLayer.pointerDownOutside",Hj="dismissableLayer.focusOutside";let $j;const Wj=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uj=(0,v.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,v.useContext)(Wj),[d,f]=(0,v.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,v.useState)({}),h=Sj(t,(e=>f(e))),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Rj(e),r=(0,v.useRef)(!1),o=(0,v.useRef)((()=>{}));return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Kj(Vj,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Rj(e),r=(0,v.useRef)(!1);return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){Kj(Hj,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Rj(e);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,v.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&($j=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Gj(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=$j)}}),[d,p,r,u]),(0,v.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Gj())}),[d,u]),(0,v.useEffect)((()=>{const e=()=>m({});return document.addEventListener(jj,e),()=>document.removeEventListener(jj,e)}),[]),(0,v.createElement)(Aj.div,ad({},c,{ref:h,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:_j(e.onFocusCapture,C.onFocusCapture),onBlurCapture:_j(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:_j(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function Gj(){const e=new CustomEvent(jj);document.dispatchEvent(e)}function Kj(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Lj(o,i):o.dispatchEvent(i)}let qj=0;function Yj(){(0,v.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Xj()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Xj()),qj++,()=>{1===qj&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),qj--}}),[])}function Xj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Zj="focusScope.autoFocusOnMount",Jj="focusScope.autoFocusOnUnmount",Qj={bubbles:!1,cancelable:!0},eV=(0,v.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,v.useState)(null),c=Rj(o),u=Rj(i),d=(0,v.useRef)(null),f=Sj(t,(e=>l(e))),p=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:oV(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||oV(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,v.useEffect)((()=>{if(s){iV.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Zj,Qj);s.addEventListener(Zj,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(oV(r,{select:t}),document.activeElement!==n)return}((e=tV(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&oV(s))}return()=>{s.removeEventListener(Zj,c),setTimeout((()=>{const e=new CustomEvent(Jj,Qj);s.addEventListener(Jj,u),s.dispatchEvent(e),e.defaultPrevented||oV(null!=t?t:document.body,{select:!0}),s.removeEventListener(Jj,u),iV.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,v.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=tV(e),n=nV(t,e),r=nV(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&oV(i,{select:!0})):(e.preventDefault(),n&&oV(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,v.createElement)(Aj.div,ad({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function tV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nV(e,t){for(const n of e)if(!rV(n,{upTo:t}))return n}function rV(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function oV(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const iV=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=aV(e,t),e.unshift(t)},remove(t){var n;e=aV(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function aV(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const sV=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},lV=v["useId".toString()]||(()=>{});let cV=0;function uV(e){const[t,n]=v.useState(lV());return sV((()=>{e||n((e=>null!=e?e:String(cV++)))}),[e]),e||(t?`radix-${t}`:"")}function dV(e){return e.split("-")[0]}function fV(e){return e.split("-")[1]}function pV(e){return["top","bottom"].includes(dV(e))?"x":"y"}function mV(e){return"y"===e?"height":"width"}function hV(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=pV(t),l=mV(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(dV(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(fV(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function gV(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vV(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function bV(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=gV(p),h=s[f?"floating"===d?"reference":"floating":d],g=vV(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=vV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const yV=Math.min,wV=Math.max;function xV(e,t,n){return wV(e,yV(t,n))}const EV=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=gV(r),u={x:o,y:i},d=pV(a),f=fV(a),p=mV(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=xV(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?C_V[e]))}function SV(e,t,n){void 0===n&&(n=!1);const r=fV(e),o=pV(e),i=mV(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=CV(a)),{main:a,cross:CV(a)}}const kV={start:"end",end:"start"};function TV(e){return e.replace(/start|end/g,(e=>kV[e]))}const RV=["top","right","bottom","left"],PV=(RV.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=dV(r),g=d||(h!==a&&p?function(e){const t=CV(e);return[TV(e),t,TV(t)]}(a):[CV(a)]),v=[a,...g],b=await bV(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=SV(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function MV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function IV(e){return RV.some((t=>e[t]>=0))}const NV=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=MV(await bV(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:IV(t)}}}case"escaped":{const t=MV(await bV(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:IV(t)}}}default:return{}}}}},OV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=dV(n),s=fV(n),l="x"===pV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function DV(e){return"x"===e?"y":"x"}const AV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await bV(t,l),d=pV(dV(o)),f=DV(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=xV(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=xV(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},LV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=pV(o),f=DV(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;pn&&(p=n)}if(c){var v,b,y,w;const e="y"===d?"width":"height",t=["top","left"].includes(dV(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(w=a.offset)?void 0:w[f])?y:0)-(t?g.crossAxis:0);mr&&(m=r)}return{[d]:p,[f]:m}}}},zV=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...s}=e,l=await bV(t,s),c=dV(n),u=fV(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=wV(l.left,0),m=wV(l.right,0),h=wV(l.top,0),g=wV(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:wV(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:wV(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function FV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function BV(e){if(null==e)return window;if(!FV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function jV(e){return BV(e).getComputedStyle(e)}function VV(e){return FV(e)?"":e?(e.nodeName||"").toLowerCase():""}function HV(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function $V(e){return e instanceof BV(e).HTMLElement}function WV(e){return e instanceof BV(e).Element}function UV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof BV(e).ShadowRoot||e instanceof ShadowRoot)}function GV(e){const{overflow:t,overflowX:n,overflowY:r}=jV(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function KV(e){return["table","td","th"].includes(VV(e))}function qV(e){const t=/firefox/i.test(HV()),n=jV(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function YV(){return!/^((?!chrome|android).)*safari/i.test(HV())}const XV=Math.min,ZV=Math.max,JV=Math.round;function QV(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&$V(e)&&(l=e.offsetWidth>0&&JV(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&JV(s.height)/e.offsetHeight||1);const u=WV(e)?BV(e):window,d=!YV()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function eH(e){return(t=e,(t instanceof BV(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function tH(e){return WV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nH(e){return QV(eH(e)).left+tH(e).scrollLeft}function rH(e,t,n){const r=$V(t),o=eH(t),i=QV(e,r&&function(e){const t=QV(e);return JV(t.width)!==e.offsetWidth||JV(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==VV(t)||GV(o))&&(a=tH(t)),$V(t)){const e=QV(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=nH(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function oH(e){return"html"===VV(e)?e:e.assignedSlot||e.parentNode||(UV(e)?e.host:null)||eH(e)}function iH(e){return $V(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function aH(e){const t=BV(e);let n=iH(e);for(;n&&KV(n)&&"static"===getComputedStyle(n).position;)n=iH(n);return n&&("html"===VV(n)||"body"===VV(n)&&"static"===getComputedStyle(n).position&&!qV(n))?t:n||function(e){let t=oH(e);for(UV(t)&&(t=t.host);$V(t)&&!["html","body"].includes(VV(t));){if(qV(t))return t;t=t.parentNode}return null}(e)||t}function sH(e){if($V(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=QV(e);return{width:t.width,height:t.height}}function lH(e){const t=oH(e);return["html","body","#document"].includes(VV(t))?e.ownerDocument.body:$V(t)&&GV(t)?t:lH(t)}function cH(e,t){var n;void 0===t&&(t=[]);const r=lH(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=BV(r),a=o?[i].concat(i.visualViewport||[],GV(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(cH(a))}function uH(e,t,n){return"viewport"===t?vV(function(e,t){const n=BV(e),r=eH(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=YV();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):WV(t)?function(e,t){const n=QV(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):vV(function(e){var t;const n=eH(e),r=tH(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ZV(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ZV(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+nH(e);const l=-r.scrollTop;return"rtl"===jV(o||n).direction&&(s+=ZV(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(eH(e)))}function dH(e){const t=cH(e),n=["absolute","fixed"].includes(jV(e).position)&&$V(e)?aH(e):e;return WV(n)?t.filter((e=>WV(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&UV(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==VV(e))):[]}const fH={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?dH(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=uH(t,n,o);return e.top=ZV(r.top,e.top),e.right=XV(r.right,e.right),e.bottom=XV(r.bottom,e.bottom),e.left=ZV(r.left,e.left),e}),uH(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=$V(n),i=eH(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==VV(n)||GV(i))&&(a=tH(n)),$V(n))){const e=QV(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:WV,getDimensions:sH,getOffsetParent:aH,getDocumentElement:eH,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:rH(t,aH(n),r),floating:{...sH(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===jV(e).direction};function pH(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...WV(e)?cH(e):[],...cH(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),WV(e)&&!s&&f.observe(e),f.observe(t)}let p=s?QV(e):null;return s&&function t(){const r=QV(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const mH=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=hV(l,r,s),d=r,f={},p=0;for(let n=0;n{t.current=e})),t}(o),l=v.useRef(null),[c,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=v.useState(t);gH(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=v.useCallback((()=>{i.current&&a.current&&mH(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&Ot.flushSync((()=>{u(e)}))}))}),[d,n,r]);hH((()=>{m.current&&p()}),[p]);const m=v.useRef(!1);hH((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=v.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=v.useCallback((e=>{i.current=e,h()}),[h]),b=v.useCallback((e=>{a.current=e,h()}),[h]),y=v.useMemo((()=>({reference:i,floating:a})),[]);return v.useMemo((()=>({...c,update:p,refs:y,reference:g,floating:b})),[c,p,y,g,b])}const bH=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?EV({element:t.current,padding:n}).fn(e):{}:t?EV({element:t,padding:n}).fn(e):{};var r}}};const yH="Popper",[wH,xH]=kj(yH),[EH,_H]=wH(yH),CH=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,v.useState)(null);return(0,v.createElement)(EH,{scope:t,anchor:r,onAnchorChange:o},n)},SH="PopperAnchor",kH=(0,v.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=_H(SH,n),a=(0,v.useRef)(null),s=Sj(t,a);return(0,v.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,v.createElement)(Aj.div,ad({},o,{ref:s}))})),TH="PopperContent",[RH,PH]=wH(TH),[MH,IH]=wH(TH,{hasParent:!1,positionUpdateFns:new Set}),NH=(0,v.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,..._}=e,C=_H(TH,u),[S,k]=(0,v.useState)(null),T=Sj(t,(e=>k(e))),[R,P]=(0,v.useState)(null),M=function(e){const[t,n]=(0,v.useState)(void 0);return sV((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),I=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,N=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),D="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},A=Array.isArray(g)?g:[g],L=A.length>0,z={padding:D,boundary:A.filter(DH),altBoundary:L},{reference:F,floating:B,strategy:j,x:V,y:H,placement:$,middlewareData:W,update:U}=vH({strategy:"fixed",placement:O,whileElementsMounted:pH,middleware:[AH(),OV({mainAxis:f+N,alignmentAxis:m}),x?AV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?LV():void 0,...z}):void 0,R?bH({element:R,padding:h}):void 0,x?PV({...z}):void 0,zV({...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),LH({arrowWidth:I,arrowHeight:N}),w?NV({strategy:"referenceHidden"}):void 0].filter(OH)});sV((()=>{F(C.anchor)}),[F,C.anchor]);const G=null!==V&&null!==H,[K,q]=zH($),Y=Rj(E);sV((()=>{G&&(null==Y||Y())}),[G,Y]);const X=null===(o=W.arrow)||void 0===o?void 0:o.x,Z=null===(i=W.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[Q,ee]=(0,v.useState)();sV((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:te,positionUpdateFns:ne}=IH(TH,u),re=!te;(0,v.useLayoutEffect)((()=>{if(!re)return ne.add(U),()=>{ne.delete(U)}}),[re,ne,U]),sV((()=>{re&&G&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,G,ne]);const oe={"data-side":K,"data-align":q,..._,ref:T,style:{..._.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:j,left:0,top:0,transform:G?`translate3d(${Math.round(V)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,v.createElement)(RH,{scope:u,placedSide:K,onArrowChange:P,arrowX:X,arrowY:Z,shouldHideArrow:J},re?(0,v.createElement)(MH,{scope:u,hasParent:!0,positionUpdateFns:ne},(0,v.createElement)(Aj.div,oe)):(0,v.createElement)(Aj.div,oe)))}));function OH(e){return void 0!==e}function DH(e){return null!==e}const AH=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),LH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=zH(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function zH(e){const[t,n="center"]=e.split("-");return[t,n]}const FH=CH,BH=kH,jH=NH,VH=(0,v.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?Dt().createPortal((0,v.createElement)(Aj.div,ad({},o,{ref:t})),r):null}));const HH=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,v.useState)(),r=(0,v.useRef)({}),o=(0,v.useRef)(e),i=(0,v.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,v.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,v.useEffect)((()=>{const e=$H(r.current);i.current="mounted"===s?e:"none"}),[s]),sV((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=$H(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),sV((()=>{if(t){const e=e=>{const n=$H(r.current).includes(e.animationName);e.target===t&&n&&(0,Ot.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=$H(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,v.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),i=Sj(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,v.cloneElement)(o,{ref:i}):null};function $H(e){return(null==e?void 0:e.animationName)||"none"}HH.displayName="Presence";const WH="rovingFocusGroup.onEntryFocus",UH={bubbles:!1,cancelable:!0},GH="RovingFocusGroup",[KH,qH,YH]=zj(GH),[XH,ZH]=kj(GH,[YH]),[JH,QH]=XH(GH),e$=(0,v.forwardRef)(((e,t)=>(0,v.createElement)(KH.Provider,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(KH.Slot,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(t$,ad({},e,{ref:t})))))),t$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,v.useRef)(null),f=Sj(t,d),p=Bj(i),[m=null,h]=Pj({prop:a,defaultProp:s,onChange:l}),[g,b]=(0,v.useState)(!1),y=Rj(c),w=qH(n),x=(0,v.useRef)(!1),[E,_]=(0,v.useState)(0);return(0,v.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(WH,y),()=>e.removeEventListener(WH,y)}),[y]),(0,v.createElement)(JH,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,v.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,v.useCallback)((()=>b(!0)),[]),onFocusableItemAdd:(0,v.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,v.useCallback)((()=>_((e=>e-1))),[])},(0,v.createElement)(Aj.div,ad({tabIndex:g||0===E?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:_j(e.onMouseDown,(()=>{x.current=!0})),onFocus:_j(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(WH,UH);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));i$(r)}}x.current=!1})),onBlur:_j(e.onBlur,(()=>b(!1)))})))})),n$="RovingFocusGroupItem",r$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=uV(),l=i||s,c=QH(n$,n),u=c.currentTabStopId===l,d=qH(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,v.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,v.createElement)(KH.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,v.createElement)(Aj.span,ad({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:_j(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:_j(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:_j(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:o$[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>i$(i)))}var n,r}))})))})),o$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function i$(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const a$=e$,s$=r$;var l$=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},c$=new WeakMap,u$=new WeakMap,d$={},f$=0,p$=function(e){return e&&(e.host||p$(e.parentNode))},m$=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=p$(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);d$[n]||(d$[n]=new WeakMap);var i=d$[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(c$.get(e)||0)+1,c=(i.get(e)||0)+1;c$.set(e,l),i.set(e,c),a.push(e),1===l&&o&&u$.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),f$++,function(){a.forEach((function(e){var t=c$.get(e)-1,o=i.get(e)-1;c$.set(e,t),i.set(e,o),t||(u$.has(e)||e.removeAttribute(r),u$.delete(e)),o||e.removeAttribute(n)})),--f$||(c$=new WeakMap,c$=new WeakMap,u$=new WeakMap,d$={})}},h$=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||l$(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),m$(r,o,n,"aria-hidden")):function(){return null}},g$="right-scroll-bar-position",v$="width-before-scroll-bar";function b$(e,t){return function(e,t){var n=(0,v.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function y$(e){return e}function w$(e,t){void 0===t&&(t=y$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var x$=function(e){void 0===e&&(e={});var t=w$(null);return t.options=pc({async:!0,ssr:!1},e),t}(),E$=function(){},_$=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:E$,onWheelCapture:E$,onTouchMoveCapture:E$}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=mc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=b$([n,t]),E=pc(pc({},y),o);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:x$,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?v.cloneElement(v.Children.only(s),pc(pc({},E),{ref:x})):v.createElement(b,pc({},E,{className:l,ref:x}),s))}));_$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_$.classNames={fullWidth:v$,zeroRight:g$};var C$,S$=function(e){var t=e.sideCar,n=mc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,pc({},n))};S$.isSideCarExport=!0;function k$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=C$||o.nc;return t&&e.setAttribute("nonce",t),e}var T$=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=k$())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R$=function(){var e=function(){var e=T$();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},P$={left:0,top:0,right:0,gap:0},M$=function(e){return parseInt(e||"",10)||0},I$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return P$;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[M$(n),M$(r),M$(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},N$=R$(),O$=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(g$," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(v$," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g$," .").concat(g$," {\n right: 0 ").concat(r,";\n }\n \n .").concat(v$," .").concat(v$," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},D$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=v.useMemo((function(){return I$(o)}),[o]);return v.createElement(N$,{styles:O$(i,!t,o,n?"":"!important")})},A$=!1;if("undefined"!=typeof window)try{var L$=Object.defineProperty({},"passive",{get:function(){return A$=!0,!0}});window.addEventListener("test",L$,L$),window.removeEventListener("test",L$,L$)}catch(e){A$=!1}var z$=!!A$&&{passive:!1},F$=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},B$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),j$(e,n)){var r=V$(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},j$=function(e,t){return"v"===e?function(e){return F$(e,"overflowY")}(t):function(e){return F$(e,"overflowX")}(t)},V$=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},H$=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$$=function(e){return[e.deltaX,e.deltaY]},W$=function(e){return e&&"current"in e?e.current:e},U$=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},G$=0,K$=[];var q$,Y$=(q$=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(G$++)[0],i=v.useState((function(){return R$()}))[0],a=v.useRef(e);v.useEffect((function(){a.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=hc([e.lockRef.current],(e.shards||[]).map(W$),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=H$(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=B$(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=B$(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=V$(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&j$(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=v.useCallback((function(e){var n=e;if(K$.length&&K$[K$.length-1]===i){var r="deltaY"in n?$$(n):H$(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(W$).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=v.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=v.useCallback((function(e){n.current=H$(e),r.current=void 0}),[]),d=v.useCallback((function(t){c(t.type,$$(t),t.target,s(t,e.lockRef.current))}),[]),f=v.useCallback((function(t){c(t.type,H$(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return K$.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,z$),document.addEventListener("touchmove",l,z$),document.addEventListener("touchstart",u,z$),function(){K$=K$.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,z$),document.removeEventListener("touchmove",l,z$),document.removeEventListener("touchstart",u,z$)}}),[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:U$(o)}):null,p?v.createElement(D$,{gapMode:"margin"}):null)},x$.useMedium(q$),S$),X$=v.forwardRef((function(e,t){return v.createElement(_$,pc({},e,{ref:t,sideCar:Y$}))}));X$.classNames=_$.classNames;var Z$=X$;const J$=["Enter"," "],Q$=["ArrowUp","PageDown","End"],eW=["ArrowDown","PageUp","Home",...Q$],tW={ltr:[...J$,"ArrowRight"],rtl:[...J$,"ArrowLeft"]},nW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},rW="Menu",[oW,iW,aW]=zj(rW),[sW,lW]=kj(rW,[aW,xH,ZH]),cW=xH(),uW=ZH(),[dW,fW]=sW(rW),[pW,mW]=sW(rW),hW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=cW(t),[l,c]=(0,v.useState)(null),u=(0,v.useRef)(!1),d=Rj(i),f=Bj(o);return(0,v.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,v.createElement)(FH,s,(0,v.createElement)(dW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,v.createElement)(pW,{scope:t,onClose:(0,v.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},gW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=cW(n);return(0,v.createElement)(BH,ad({},o,r,{ref:t}))})),vW="MenuPortal",[bW,yW]=sW(vW,{forceMount:void 0}),wW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=fW(vW,t);return(0,v.createElement)(bW,{scope:t,forceMount:n},(0,v.createElement)(HH,{present:n||i.open},(0,v.createElement)(VH,{asChild:!0,container:o},r)))},xW="MenuContent",[EW,_W]=sW(xW),CW=(0,v.forwardRef)(((e,t)=>{const n=yW(xW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fW(xW,e.__scopeMenu),a=mW(xW,e.__scopeMenu);return(0,v.createElement)(oW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(HH,{present:r||i.open},(0,v.createElement)(oW.Slot,{scope:e.__scopeMenu},a.modal?(0,v.createElement)(SW,ad({},o,{ref:t})):(0,v.createElement)(kW,ad({},o,{ref:t})))))})),SW=(0,v.forwardRef)(((e,t)=>{const n=fW(xW,e.__scopeMenu),r=(0,v.useRef)(null),o=Sj(t,r);return(0,v.useEffect)((()=>{const e=r.current;if(e)return h$(e)}),[]),(0,v.createElement)(TW,ad({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_j(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),kW=(0,v.forwardRef)(((e,t)=>{const n=fW(xW,e.__scopeMenu);return(0,v.createElement)(TW,ad({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),TW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=fW(xW,n),b=mW(xW,n),y=cW(n),w=uW(n),x=iW(n),[E,_]=(0,v.useState)(null),C=(0,v.useRef)(null),S=Sj(t,C,g.onContentChange),k=(0,v.useRef)(0),T=(0,v.useRef)(""),R=(0,v.useRef)(0),P=(0,v.useRef)(null),M=(0,v.useRef)("right"),I=(0,v.useRef)(0),N=m?Z$:v.Fragment,O=m?{as:Mj,allowPinchZoom:!0}:void 0,D=e=>{var t,n;const r=T.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;const c=1===o.length;c&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,v.useEffect)((()=>()=>window.clearTimeout(k.current)),[]),Yj();const A=(0,v.useCallback)((e=>{var t,n;return M.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;er!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return(0,v.createElement)(EW,{scope:n,searchRef:T,onItemEnter:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),onItemLeave:(0,v.useCallback)((e=>{var t;A(e)||(null===(t=C.current)||void 0===t||t.focus(),_(null))}),[A]),onTriggerLeave:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),pointerGraceTimerRef:R,onPointerGraceIntentChange:(0,v.useCallback)((e=>{P.current=e}),[])},(0,v.createElement)(N,O,(0,v.createElement)(eV,{asChild:!0,trapped:o,onMountAutoFocus:_j(i,(e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,v.createElement)(Uj,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,v.createElement)(a$,ad({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:_j(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,v.createElement)(jH,ad({role:"menu","aria-orientation":"vertical","data-state":eU(g.open),"data-radix-menu-content":"",dir:b.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:_j(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=C.current;if(e.target!==o)return;if(!eW.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));Q$.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:_j(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")})),onPointerMove:_j(e.onPointerMove,rU((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";M.current=t,I.current=e.clientX}})))})))))))})),RW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Aj.div,ad({role:"group"},r,{ref:t}))})),PW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Aj.div,ad({},r,{ref:t}))})),MW="MenuItem",IW="menu.itemSelect",NW=(0,v.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,v.useRef)(null),a=mW(MW,e.__scopeMenu),s=_W(MW,e.__scopeMenu),l=Sj(t,i),c=(0,v.useRef)(!1);return(0,v.createElement)(OW,ad({},o,{ref:l,disabled:n,onClick:_j(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(IW,{bubbles:!0,cancelable:!0});e.addEventListener(IW,(e=>null==r?void 0:r(e)),{once:!0}),Lj(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:_j(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:_j(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||J$.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),OW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=_W(MW,n),s=uW(n),l=(0,v.useRef)(null),c=Sj(t,l),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)("");return(0,v.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,v.createElement)(oW.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,v.createElement)(s$,ad({asChild:!0},s,{focusable:!r}),(0,v.createElement)(Aj.div,ad({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:_j(e.onPointerMove,rU((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:_j(e.onPointerLeave,rU((e=>a.onItemLeave(e)))),onFocus:_j(e.onFocus,(()=>d(!0))),onBlur:_j(e.onBlur,(()=>d(!1)))}))))})),DW=(0,v.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,v.createElement)(HW,{scope:e.__scopeMenu,checked:n},(0,v.createElement)(NW,ad({role:"menuitemcheckbox","aria-checked":tU(n)?"mixed":n},o,{ref:t,"data-state":nU(n),onSelect:_j(o.onSelect,(()=>null==r?void 0:r(!!tU(n)||!n)),{checkForDefaultPrevented:!1})})))})),AW="MenuRadioGroup",[LW,zW]=sW(AW,{value:void 0,onValueChange:()=>{}}),FW=(0,v.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Rj(r);return(0,v.createElement)(LW,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,v.createElement)(RW,ad({},o,{ref:t})))})),BW="MenuRadioItem",jW=(0,v.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=zW(BW,e.__scopeMenu),i=n===o.value;return(0,v.createElement)(HW,{scope:e.__scopeMenu,checked:i},(0,v.createElement)(NW,ad({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":nU(i),onSelect:_j(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),VW="MenuItemIndicator",[HW,$W]=sW(VW,{checked:!1}),WW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=$W(VW,n);return(0,v.createElement)(HH,{present:r||tU(i.checked)||!0===i.checked},(0,v.createElement)(Aj.span,ad({},o,{ref:t,"data-state":nU(i.checked)})))})),UW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Aj.div,ad({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),GW="MenuSub",[KW,qW]=sW(GW),YW=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=fW(GW,t),a=cW(t),[s,l]=(0,v.useState)(null),[c,u]=(0,v.useState)(null),d=Rj(o);return(0,v.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,v.createElement)(FH,a,(0,v.createElement)(dW,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,v.createElement)(KW,{scope:t,contentId:uV(),triggerId:uV(),trigger:s,onTriggerChange:l},n)))},XW="MenuSubTrigger",ZW=(0,v.forwardRef)(((e,t)=>{const n=fW(XW,e.__scopeMenu),r=mW(XW,e.__scopeMenu),o=qW(XW,e.__scopeMenu),i=_W(XW,e.__scopeMenu),a=(0,v.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,v.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,v.useEffect)((()=>u),[u]),(0,v.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,v.createElement)(gW,ad({asChild:!0},c),(0,v.createElement)(OW,ad({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":eU(n.open)},e,{ref:Cj(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_j(e.onPointerMove,rU((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:_j(e.onPointerLeave,rU((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:_j(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||tW[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),JW="MenuSubContent",QW=(0,v.forwardRef)(((e,t)=>{const n=yW(xW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fW(xW,e.__scopeMenu),a=mW(xW,e.__scopeMenu),s=qW(JW,e.__scopeMenu),l=(0,v.useRef)(null),c=Sj(t,l);return(0,v.createElement)(oW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(HH,{present:r||i.open},(0,v.createElement)(oW.Slot,{scope:e.__scopeMenu},(0,v.createElement)(TW,ad({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:_j(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:_j(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:_j(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=nW[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function eU(e){return e?"open":"closed"}function tU(e){return"indeterminate"===e}function nU(e){return tU(e)?"indeterminate":e?"checked":"unchecked"}function rU(e){return t=>"mouse"===t.pointerType?e(t):void 0}const oU=hW,iU=gW,aU=wW,sU=CW,lU=RW,cU=PW,uU=NW,dU=DW,fU=FW,pU=jW,mU=WW,hU=UW,gU=YW,vU=ZW,bU=QW,yU="DropdownMenu",[wU,xU]=kj(yU,[lW]),EU=lW(),[_U,CU]=wU(yU),SU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=EU(t),c=(0,v.useRef)(null),[u=!1,d]=Pj({prop:o,defaultProp:i,onChange:a});return(0,v.createElement)(_U,{scope:t,triggerId:uV(),triggerRef:c,contentId:uV(),open:u,onOpenChange:d,onOpenToggle:(0,v.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,v.createElement)(oU,ad({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},kU="DropdownMenuTrigger",TU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=CU(kU,n),a=EU(n);return(0,v.createElement)(iU,ad({asChild:!0},a),(0,v.createElement)(Aj.button,ad({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Cj(t,i.triggerRef),onPointerDown:_j(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:_j(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),RU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=EU(t);return(0,v.createElement)(aU,ad({},r,n))},PU="DropdownMenuContent",MU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=CU(PU,n),i=EU(n),a=(0,v.useRef)(!1);return(0,v.createElement)(sU,ad({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:_j(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:_j(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),IU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(lU,ad({},o,r,{ref:t}))})),NU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(cU,ad({},o,r,{ref:t}))})),OU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(uU,ad({},o,r,{ref:t}))})),DU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(dU,ad({},o,r,{ref:t}))})),AU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(fU,ad({},o,r,{ref:t}))})),LU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(pU,ad({},o,r,{ref:t}))})),zU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(mU,ad({},o,r,{ref:t}))})),FU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(hU,ad({},o,r,{ref:t}))})),BU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(vU,ad({},o,r,{ref:t}))})),jU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=EU(n);return(0,v.createElement)(bU,ad({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),VU=SU,HU=TU,$U=RU,WU=MU,UU=IU,GU=NU,KU=OU,qU=DU,YU=AU,XU=LU,ZU=zU,JU=FU,QU=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=EU(t),[s=!1,l]=Pj({prop:r,defaultProp:i,onChange:o});return(0,v.createElement)(gU,ad({},a,{open:s,onOpenChange:l}),n)},eG=BU,tG=jU;var nG=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const rG="2px",oG="400ms",iG="cubic-bezier( 0.16, 1, 0.3, 1 )",aG=ih(2),sG=ih(7),lG=ih(2),cG=ih(2.5),uG=Vp.ui.borderDisabled,dG=Vp.gray[900],fG=`0 0 0 ${Bh.borderWidth} ${uG}, ${Bh.popoverShadow}`,pG=`0 0 0 ${Bh.borderWidth} ${dG}`,mG=ip({"0%":{opacity:0,transform:`translateY(${rG})`},"100%":{opacity:1,transform:"translateY(0)"}}),hG=ip({"0%":{opacity:0,transform:`translateX(-${rG})`},"100%":{opacity:1,transform:"translateX(0)"}}),gG=ip({"0%":{opacity:0,transform:`translateY(-${rG})`},"100%":{opacity:1,transform:"translateY(0)"}}),vG=ip({"0%":{opacity:0,transform:`translateX(${rG})`},"100%":{opacity:1,transform:"translateX(0)"}}),bG=e=>op("min-width:220px;background-color:",Vp.ui.background,";border-radius:",Bh.radiusBlockUi,";padding:",aG,";box-shadow:","toolbar"===e?pG:fG,";animation-duration:",oG,";animation-timing-function:",iG,";will-change:transform,opacity;&[data-side='top']{animation-name:",gG,";}&[data-side='right']{animation-name:",vG,";}&[data-side='bottom']{animation-name:",mG,";}&[data-side='left']{animation-name:",hG,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),yG=op("width:",sG,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",lG," );margin-top:",ih(-2),";margin-bottom:",ih(-2),";",""),wG=op("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",ih(6),";margin-top:",ih(-2),";margin-bottom:",ih(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),xG=md("span",{target:"e1kdzosf11"})(yG,";"),EG=md("span",{target:"e1kdzosf10"})(wG,";"),_G=op("all:unset;font-size:",zv("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Vp.gray[900],";border-radius:",Bh.radiusBlockUi,";display:flex;align-items:center;padding:",ih(2)," ",cG," ",ih(2)," ",lG,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",Vp.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",xG," ) ){padding-inline-start:",sG,";}",""),CG=md(WU,{target:"e1kdzosf9"})((e=>bG(e.variant)),";"),SG=md(tG,{target:"e1kdzosf8"})((e=>bG(e.variant)),";"),kG=md(KU,{target:"e1kdzosf7"})(_G,";"),TG=md(qU,{target:"e1kdzosf6"})(_G,";"),RG=md(XU,{target:"e1kdzosf5"})(_G,";"),PG=md(eG,{target:"e1kdzosf4"})(_G," &[data-state='open']{background-color:",Vp.gray[100],";}"),MG=md(GU,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",ih(8),";padding:",ih(2)," ",cG," ",ih(2)," ",sG,";color:",Vp.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),IG=md(JU,{target:"e1kdzosf2"})("height:",Bh.borderWidth,";background-color:",(e=>"toolbar"===e.variant?dG:uG),";margin:",ih(2)," calc( -1 * ",aG," );"),NG=md(ZU,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),OG=md(Ql,{target:"e1kdzosf0"})(fh({transform:`scaleX(1) translateX(${ih(2)})`},{transform:`scaleX(-1) translateX(${ih(2)})`})(),";"),DG=(0,a.createContext)({variant:void 0,portalContainer:null}),AG=td((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,children:d,trigger:f,variant:p}=Qu(e,"DropdownMenu"),m=nf(jf),h=m.ref?.current,g=(0,a.useMemo)((()=>({variant:p,portalContainer:h})),[p,h]);return(0,a.createElement)(VU,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:(0,c.isRTL)()?"rtl":"ltr"},(0,a.createElement)(HU,{asChild:!0},f),(0,a.createElement)($U,{container:h},(0,a.createElement)(CG,{side:i,align:l,sideOffset:s,alignOffset:u,loop:!0,variant:p},(0,a.createElement)(DG.Provider,{value:g},d))))}),"DropdownMenu"),LG=(0,a.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,a.createElement)(kG,{...r,ref:o},t&&(0,a.createElement)(xG,null,t),e,n&&(0,a.createElement)(EG,null,n)))),zG=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:12,cy:12,r:3,fill:"currentColor"})),{lock:FG,unlock:BG}=(0,Ej.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),jG={};FG(jG,{CustomSelectControl:TP,__experimentalPopoverLegacyPositionToPlacement:Df,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Nf(t)}},ComponentsContext:sc,DropdownMenuV2:AG,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,a.createElement)(TG,{...r,checked:t},(0,a.createElement)(xG,null,(0,a.createElement)(NG,null,("indeterminate"===t||!0===t)&&(0,a.createElement)(Ql,{icon:"indeterminate"===t?Kb:s_,size:24}))),e,n&&(0,a.createElement)(EG,null,n)),DropdownMenuGroupV2:e=>(0,a.createElement)(UU,{...e}),DropdownMenuItemV2:LG,DropdownMenuLabelV2:e=>(0,a.createElement)(MG,{...e}),DropdownMenuRadioGroupV2:e=>(0,a.createElement)(YU,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,a.createElement)(RG,{...n},(0,a.createElement)(xG,null,(0,a.createElement)(NG,null,(0,a.createElement)(Ql,{icon:zG,size:22}))),e,t&&(0,a.createElement)(EG,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,a.useContext)(DG);return(0,a.createElement)(IG,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:s})=>{const{variant:l,portalContainer:c}=(0,a.useContext)(DG);return(0,a.createElement)(QU,{defaultOpen:e,open:t,onOpenChange:n},(0,a.createElement)(PG,{disabled:r,textValue:o},s),(0,a.createElement)($U,{container:c},(0,a.createElement)(SG,{loop:!0,sideOffset:16,alignOffset:-8,variant:l},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,a.createElement)(OG,{icon:nG,size:24}),children:n})=>(0,a.createElement)(a.Fragment,null,e&&(0,a.createElement)(xG,null,e),n,t&&(0,a.createElement)(EG,null,t))})}(),(window.wp=window.wp||{}).components=i}(); \ No newline at end of file + `,IL=sd("svg",{target:"ea4tfvq2"})("width:",Nh.spinnerSize,"px;height:",Nh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Dp.ui.theme,";overflow:visible;opacity:1;background-color:transparent;"),NL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},OL=sd("circle",{target:"ea4tfvq1"})(NL,";stroke:",Dp.gray[300],";"),DL=sd("path",{target:"ea4tfvq0"})(NL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",ML,";");var AL=(0,a.forwardRef)((function({className:e,...t},n){return(0,a.createElement)(IL,{className:l()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,a.createElement)(OL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,a.createElement)(DL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var LL=Ku((function(e,t){const n=ES(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Surface");const zL=({tabId:e,children:t,selected:n,...r})=>(0,a.createElement)(pd,{role:"tab",tabIndex:n?void 0:-1,"aria-selected":n,id:e,__experimentalIsFocusable:!0,...r},t),FL=(0,a.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:c},d)=>{var f;const p=(0,u.useInstanceId)(FL,"tab-panel"),[m,h]=(0,a.useState)(),g=(0,a.useCallback)((e=>{h(e),c?.(e)}),[c]),v=n.find((({name:e})=>e===m)),b=`${p}-${null!==(f=v?.name)&&void 0!==f?f:"none"}`;return(0,a.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,g]),(0,a.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g]),(0,a.createElement)("div",{className:e,ref:d},(0,a.createElement)(rT,{role:"tablist",orientation:i,onNavigate:r?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},n.map((e=>(0,a.createElement)(zL,{className:l()("components-tab-panel__tabs-item",e.className,{[s]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>g(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),v&&(0,a.createElement)("div",{key:b,"aria-labelledby":b,role:"tabpanel",id:`${b}-view`,className:"components-tab-panel__tab-content"},t(v)))}));var BL=FL;const jL=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,className:l,onChange:c,type:d="text",...f}=e,p=`inspector-text-control-${(0,u.useInstanceId)(jL)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:l},(0,a.createElement)("input",{className:"components-text-control__input",type:d,id:p,value:i,onChange:e=>c(e.target.value),"aria-describedby":s?p+"__help":void 0,ref:t,...f}))}));var VL=jL;const HL=Zf("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Nh.radiusBlockUi,";border:",Nh.borderWidth," solid ",Dp.ui.border,";",""),$L=Zf("border-color:",Dp.ui.theme,";box-shadow:0 0 0 calc( ",Nh.borderWidthFocus," - ",Nh.borderWidth," ) ",Dp.ui.theme,";outline:2px solid transparent;","");var WL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const UL=Zf("display:block;font-family:",Mv("default.fontFamily"),";padding:6px 8px;",HL,";font-size:",Mv("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${WL["small"]})`,"{font-size:",Mv("default.fontSize"),";line-height:normal;}&:focus{",$L,";}&::-webkit-input-placeholder{color:",Dp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Dp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Dp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Dp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Dp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Dp.ui.lightGrayPlaceholder,";}}","");const GL=sd("textarea",{target:"e1w5nnrk0"})("width:100%;",UL,";");var KL=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:l,rows:c=4,className:d,...f}=t,p=`inspector-textarea-control-${(0,u.useInstanceId)(e)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:d},(0,a.createElement)(GL,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,...f}))};var qL=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,a.createElement)(a.Fragment,null,t);const o=new RegExp(`(${xb(r)})`,"gi");return(0,a.createInterpolateElement)(t.replace(o,"$&"),{mark:(0,a.createElement)("mark",null)})};var YL=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.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"}));var XL=function(e){const{children:t}=e;return(0,a.createElement)("div",{className:"components-tip"},(0,a.createElement)(by,{icon:YL}),(0,a.createElement)("p",null,t))};var ZL=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,u.useInstanceId)(e)}`,d=Uu()("components-toggle-control",i,!t&&Zf({marginBottom:Jm(3)},"",""));let f,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(f=c+"__help")),(0,a.createElement)(jv,{id:c,help:p,className:d,__nextHasNoMarginBottom:!0},(0,a.createElement)(rb,{justify:"flex-start",spacing:3},(0,a.createElement)(RO,{id:c,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,a.createElement)(Xm,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};const JL=(0,a.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,a.createElement)(yO,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,a.createElement)(Gl,{icon:n}))}));var QL=JL,ez=(0,v.createContext)(!0),tz=Object.defineProperty,nz=Object.defineProperties,rz=Object.getOwnPropertyDescriptors,oz=Object.getOwnPropertySymbols,iz=Object.prototype.hasOwnProperty,az=Object.prototype.propertyIsEnumerable,sz=(e,t,n)=>t in e?tz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lz=(e,t)=>{for(var n in t||(t={}))iz.call(t,n)&&sz(e,n,t[n]);if(oz)for(var n of oz(t))az.call(t,n)&&sz(e,n,t[n]);return e},cz=(e,t)=>nz(e,rz(t)),uz=(e,t)=>{var n={};for(var r in e)iz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oz)for(var r of oz(e))t.indexOf(r)<0&&az.call(e,r)&&(n[r]=e[r]);return n},dz=Object.defineProperty,fz=Object.defineProperties,pz=Object.getOwnPropertyDescriptors,mz=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,gz=Object.prototype.propertyIsEnumerable,vz=(e,t,n)=>t in e?dz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bz=(e,t)=>{for(var n in t||(t={}))hz.call(t,n)&&vz(e,n,t[n]);if(mz)for(var n of mz(t))gz.call(t,n)&&vz(e,n,t[n]);return e},yz=(e,t)=>fz(e,pz(t));function wz(...e){}function xz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ez(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function _z(e){return e}function Cz(...e){for(const t of e)if(void 0!==t)return t}function Sz(e){return function(e){return!!e&&!!(0,v.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var kz,Tz="undefined"!=typeof window&&!!(null==(kz=window.document)?void 0:kz.createElement);function Rz(e){return e?e.ownerDocument||e:document}function Pz(e,t=!1){const{activeElement:n}=Rz(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return Pz(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Rz(n).getElementById(e);if(t)return t}}return n}function Mz(e,t){return e===t||e.contains(t)}function Iz(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Nz.indexOf(e.type)}var Nz=["button","color","file","image","reset","submit"];function Oz(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Dz(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Az(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return Az(e.parentElement)||document.scrollingElement||document.body}var Lz=lz({},b),zz=Lz.useId,Fz=(Lz.useDeferredValue,Lz.useInsertionEffect),Bz=Tz?v.useLayoutEffect:v.useEffect;function jz(e){const t=(0,v.useRef)(e);return Bz((()=>{t.current=e})),t}function Vz(e){const t=(0,v.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Fz?Fz((()=>{t.current=e})):t.current=e,(0,v.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Hz(...e){return(0,v.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function $z(e){if(zz){const t=zz();return e||t}const[t,n]=(0,v.useState)(e);return Bz((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Wz(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,v.useState)((()=>n(t)));return Bz((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}Symbol("setNextState");function Uz(e){return Vz("function"==typeof e?e:()=>e)}function Gz(e,t,n=[]){const r=(0,v.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return cz(lz({},e),{wrapElement:r})}var Kz=o(7557);function qz(e){return v.forwardRef(((t,n)=>e(lz({ref:n},t))))}function Yz(e){const t=qz(e);return v.memo(t)}function Xz(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=uz(n,["as","wrapElement","render"]);let s;const l=Hz(t.ref,Sz(i));if(r&&"string"!=typeof r)s=(0,Kz.jsx)(r,cz(lz({},a),{render:i}));else if(v.isValidElement(i)){const e=cz(lz({},i.props),{ref:l});s=v.cloneElement(i,function(e,t){const n=lz({},e);for(const r in t){if(!xz(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?lz(lz({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if("function"==typeof t.children){const e=a,{children:n}=e,r=uz(e,["children"]);s=t.children(r)}else s=r?(0,Kz.jsx)(r,lz({},a)):(0,Kz.jsx)(e,lz({},a));return o?o(s):s}function Zz(e){return(t={})=>{const n=e(t),r={};for(const e in n)xz(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function Jz(e){return Boolean(e.currentTarget&&!Mz(e.currentTarget,e.target))}function Qz(e){return e.target===e.currentTarget}function eF(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=yz(bz({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function tF(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function nF(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function rF(e,t,n,r=window){var o;try{r.document.addEventListener(e,t,n)}catch(e){}const i=[];for(let a=0;a<(null==(o=r.frames)?void 0:o.length);a+=1){const o=r.frames[a];o&&i.push(rF(e,t,n,o))}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}i.forEach((e=>e()))}}var oF="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 iF(e){return!!Oz(e,oF)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(Oz(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function aF(e){const t=Pz(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function sF(e){!function(e){const t=Pz(e);if(!t)return!1;if(Mz(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}(e)&&iF(e)&&e.focus()}var lF=Tz&&!!Tz&&/mac|iphone|ipad|ipod/i.test(navigator.platform)&&/apple/i.test(navigator.vendor),cF=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function uF(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function dF(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function fF(e,t){return Vz((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var pF=!0;function mF(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(pF=!1))}function hF(e){e.metaKey||e.ctrlKey||e.altKey||(pF=!0)}var gF=Zz((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=uz(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,v.useRef)(null);(0,v.useEffect)((()=>{n&&(rF("mousedown",mF,!0),rF("keydown",hF,!0))}),[n]),lF&&(0,v.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!uF(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&a.disabled,c=!!l&&!r,[u,d]=(0,v.useState)(!1);(0,v.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,v.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{iF(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=fF(a.onKeyPressCapture,l),p=fF(a.onMouseDownCapture,l),m=fF(a.onClickCapture,l),h=a.onMouseDown,g=Vz((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!lF)return;if(Jz(e))return;if(!Iz(t)&&!uF(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),nF(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||sF(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),null==i||i(e),e.defaultPrevented)return;if(!n)return;const r=e.currentTarget;r&&aF(r)&&d(!0)},y=a.onKeyDownCapture,w=Vz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!Qz(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),x=a.onFocusCapture,E=Vz((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!n)return;if(!Qz(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);pF||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:cF.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):nF(e.target,"focusout",r)})),_=a.onBlur,C=Vz((e=>{null==_||_(e),n&&function(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Mz(n,r)}(e)&&d(!1)})),S=(0,v.useContext)(ez),k=Vz((e=>{n&&o&&e&&S&&queueMicrotask((()=>{aF(e)||iF(e)&&e.focus()}))})),T=Wz(s,a.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=c?lz({pointerEvents:"none"},a.style):a.style;return a=cz(lz({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Hz(s,k,a.ref),style:M,tabIndex:dF(n,c,R,P,a.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:w,onFocusCapture:E,onBlur:C})}));qz((e=>Xz("div",e=gF(e))));function vF(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Iz(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Iz(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var bF=Zz((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=uz(t,["clickOnEnter","clickOnSpace"]);const i=(0,v.useRef)(null),a=Wz(i,o.as),s=o.type,[l,c]=(0,v.useState)((()=>!!a&&Iz({tagName:a,type:s})));(0,v.useEffect)((()=>{i.current&&c(Iz(i.current))}),[]);const[u,d]=(0,v.useState)(!1),f=(0,v.useRef)(!1),p="data-command"in o,m=o.onKeyDown,h=Vz((e=>{null==m||m(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(!Qz(e))return;if(Dz(t))return;if(t.isContentEditable)return;const i=n&&"Enter"===e.key,a=r&&" "===e.key,s="Enter"===e.key&&!n,l=" "===e.key&&!r;if(s||l)e.preventDefault();else if(i||a){const n=vF(e);if(i){if(!n){e.preventDefault();const n=e,{view:r}=n,o=uz(n,["view"]),i=()=>tF(t,o);Tz&&/firefox\//i.test(navigator.userAgent)?nF(t,"keyup",i):queueMicrotask(i)}}else a&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),g=o.onKeyUp,b=Vz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!vF(e))){d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=uz(n,["view"]);queueMicrotask((()=>tF(t,o)))}}));return o=cz(lz({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:Hz(i,o.ref),onKeyDown:h,onKeyUp:b}),o=gF(o)}));qz((e=>Xz("button",e=bF(e))));var yF=(0,v.createContext)(void 0),wF=Zz((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=_z,element:i}=t,a=uz(t,["store","shouldRegisterItem","getItem","element"]);const s=(0,v.useContext)(yF);n=n||s;const l=$z(a.id),c=(0,v.useRef)(),u=(0,v.useCallback)((e=>{var t;if(!e||!l||!r)return null==(t=c.current)?void 0:t.call(c);const i=o({id:l,element:e});c.current=null==n?void 0:n.renderItem(i)}),[l,r,o,n]);return a=cz(lz({},a),{ref:Hz(u,a.ref)})}));qz((e=>Xz("div",wF(e))));function xF(e,t){return t&&e.item(t)||null}var EF=Symbol("FOCUS_SILENTLY");function _F(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var CF=(0,v.createContext)(void 0),SF=(0,v.createContext)(void 0),kF=(0,v.createContext)(void 0),TF=()=>()=>{};function RF(e,t=_z){const n=()=>{if(!e)return;const n=e.getState(),r="function"==typeof t?t:null,o="string"==typeof t?t:null;return r?r(n):o&&xz(n,o)?n[o]:void 0};return(0,Nd.useSyncExternalStore)((null==e?void 0:e.subscribe)||TF,n,n)}function PF(e,t,n,r){const o=xz(t,n)?t[n]:void 0,i=jz({value:o,setValue:r?t[r]:void 0});Bz((()=>e.sync(((e,t)=>{const{value:r,setValue:o}=i.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}),[n])),[e,n]),Bz((()=>e.sync((()=>{void 0!==o&&e.setState(n,o)}),[n])),[e,n,o])}function MF(e){const t=function(e){const t=(0,v.useRef)();return void 0===t.current&&(t.current=e()),t.current}(e);Bz((()=>t.init()),[t]);const n=(0,v.useCallback)((e=>RF(t,e)),[t]);return(0,v.useMemo)((()=>cz(lz({},t),{useState:n})),[t,n])}function IF(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function NF(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Az(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e=0){void 0!==c&&c{var t,n=e,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,getItem:s,"aria-setsize":l,"aria-posinset":c}=n,u=uz(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const d=(0,v.useContext)(kF);r=r||d;const f=$z(u.id),p=(0,v.useRef)(null),m=(0,v.useContext)(SF),h=RF(r,(e=>o||((null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),g=u.disabled&&!u.accessibleWhenDisabled,b=(0,v.useCallback)((e=>{const t=cz(lz({},e),{id:f||e.id,rowId:h,disabled:!!g});return s?s(t):t}),[f,h,g,s]),y=u.onFocus,w=(0,v.useRef)(!1),x=Vz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(Jz(e))return;if(!f)return;if(!r)return;const{activeId:t,virtualFocus:n,baseElement:o}=r.getState();if(function(e,t){return!Qz(e)&&_F(t,e.target)}(e,r))return;if(t!==f&&r.setActiveId(f),!n)return;if(!Qz(e))return;if((i=e.currentTarget).isContentEditable||Dz(i)||"INPUT"===i.tagName&&!Iz(i))return;var i;if(!o)return;w.current=!0;e.relatedTarget===o||_F(r,e.relatedTarget)?function(e){e[EF]=!0,e.focus()}(o):o.focus()})),E=u.onBlurCapture,_=Vz((e=>{if(null==E||E(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&w.current&&(w.current=!1,e.preventDefault(),e.stopPropagation())})),C=u.onKeyDown,S=Uz(i),k=Uz(a),T=Vz((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!Qz(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(f),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1),End:()=>!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1),PageUp:()=>NF(t,r,null==r?void 0:r.up,!0),PageDown:()=>NF(t,r,null==r?void 0:r.down)}[e.key];if(l){const t=l();if(S(e)||void 0!==t){if(!k(e))return;e.preventDefault(),r.move(t)}}})),R=RF(r,(e=>e.baseElement||void 0)),P=(0,v.useMemo)((()=>({id:f,baseElement:R})),[f,R]);u=Gz(u,(e=>(0,Kz.jsx)(CF.Provider,{value:P,children:e})),[P]);const M=RF(r,(e=>e.activeId===f)),I=RF(r,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,v.useState)(n);return Bz((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(p,u);let O;M&&(!function(e){return"option"===e||"treeitem"===e}(N)?I&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const D=RF(r,(e=>null!=l?l:(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),A=RF(r,(e=>{if(null!=c)return c;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===h));return m.ariaPosInSet+t.findIndex((e=>e.id===f))})),L=null==(t=RF(r,(e=>!e.renderedItems.length||!e.virtualFocus&&e.activeId===f)))||t;return u=cz(lz({id:f,"aria-selected":O,"data-active-item":M?"":void 0},u),{ref:Hz(p,u.ref),tabIndex:L?u.tabIndex:-1,onFocus:x,onBlurCapture:_,onKeyDown:T}),u=bF(u),u=wF(cz(lz({store:r},u),{getItem:b,shouldRegisterItem:!!f&&u.shouldRegisterItem})),cz(lz({},u),{"aria-setsize":D,"aria-posinset":A})}));Yz((e=>Xz("button",OF(e))));var DF=Zz((e=>{var t=e,{store:n}=t,r=uz(t,["store"]);return r=OF(lz({store:n},r))})),AF=Yz((e=>Xz("button",DF(e))));var LF=(0,a.createContext)(void 0);var zF=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useContext)(LF),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof process&&process.env,null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,a.createElement)(t,{...s},e):i?e(s):null;const l=i?e:t&&(0,a.createElement)(t,null);return(0,a.createElement)(AF,{...s,store:o,render:l})}));var FF=({children:e,className:t})=>(0,a.createElement)("div",{className:t},e);var BF=(0,a.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:s,...c},u){return(0,a.useContext)(LF)?(0,a.createElement)(zF,{className:l()("components-toolbar-button",t),...r,...c,ref:u},(t=>(0,a.createElement)(pd,{label:s,isPressed:o,disabled:i,...t},e))):(0,a.createElement)(FF,{className:n},(0,a.createElement)(pd,{ref:u,icon:c.icon,label:s,shortcut:c.shortcut,"data-subscript":c.subscript,onClick:e=>{e.stopPropagation(),c.onClick&&c.onClick(e)},className:l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...c},e))}));var jF=({className:e,children:t,...n})=>(0,a.createElement)("div",{className:e,...n},t);var VF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,a.createElement)(sT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,a.useContext)(LF)?(0,a.createElement)(zF,{...t},r):r(t)};var HF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const s=(0,a.useContext)(LF);if(!(e&&e.length||t))return null;const c=l()(s?"components-toolbar-group":"components-toolbar",n);let u=e;return Array.isArray(u[0])||(u=[u]),r?(0,a.createElement)(VF,{label:o,controls:u,className:c,children:t,...i}):(0,a.createElement)(jF,{className:c,...i},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,a.createElement)(BF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null,...e}))))),t)};function $F(e,t){return PF(e,t,"items","setItems"),e}function WF(e,t){return PF(e=$F(e,t),t,"activeId","setActiveId"),PF(e,t,"includesBaseElement"),PF(e,t,"virtualFocus"),PF(e,t,"orientation"),PF(e,t,"rtl"),PF(e,t,"focusLoop"),PF(e,t,"focusWrap"),PF(e,t,"focusShift"),e}function UF(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=!1)=>{const r=n?c:l;return r.add(e),d.set(e,t),()=>{var t;null==(t=u.get(e))||t(),u.delete(e),d.delete(e),r.delete(e)}},p=(e,i)=>{if(!xz(n,e))return;const s=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(s===n[e])return;t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,s)}));const f=n;n=yz(bz({},n),{[e]:s});const p=Symbol();o=p,a.add(e);const m=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>m(e,f))),queueMicrotask((()=>{if(o!==p)return;const e=n;c.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return wz;if(!t.length)return wz;i=!0;const e=(r=n,Object.keys(r)).map((e=>Ez(...t.map((t=>{var n,r;const o=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(o&&xz(o,e))return null==(r=null==t?void 0:t.sync)?void 0:r.call(t,(t=>p(e,t[e])),[e])})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map((e=>{var t;return null==(t=null==e?void 0:e.init)?void 0:t.call(e)}));return Ez(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(e,e(n,n)),f(e,t)),syncBatch:(e,t)=>(u.set(e,e(n,r)),f(e,t,!0)),getState:()=>n,setState:p,pick:(...e)=>UF(function(e,t){const n={};for(const r of t)xz(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:(...e)=>UF(function(e,t){const n=bz({},e);for(const e of t)xz(n,e)&&delete n[e];return n}(n,e),m)};return m}function GF(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(et)):e}function KF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Cz(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Cz(null==n?void 0:n.renderedItems,[])},a=UF({renderedItems:i.renderedItems}),s=UF(i,e.store),l=()=>{const e=GF(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};s.setup((()=>a.syncBatch((e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Rz(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}),["renderedItems"])));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=bz(bz({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return yz(bz({},s),{registerItem:u,renderItem:e=>Ez(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function qF(e){const t=[];for(const n of e)t.push(...n);return t}function YF(e){return e.slice().reverse()}var XF={id:null};function ZF(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function JF(e,t){return e.filter((e=>e.rowId===t))}function QF(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function eB(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function tB(e,t,n){const r=eB(e);for(const o of e)for(let e=0;ei.sync((e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=ZF(e.renderedItems))?void 0:n.id}))}),["renderedItems","activeId"])));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?YF(e):e;if(null==s)return null==(o=ZF(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=ZF(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=JF(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,w=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[XF]:[],...e.slice(0,r)]}(w&&!n?f:JF(f,p.rowId),s,n),t=ZF(e,s);return null==t?void 0:t.id}if(w){const e=ZF(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const x=ZF(v,s);return!x&&n?null:null==x?void 0:x.id};return yz(bz(bz({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=ZF(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=ZF(YF(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=ZF(n))?void 0:t.rowId)&&o;return a(YF(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=nB(qF(tB(QF(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=nB(YF(qF(tB(QF(n),t,s))));return a(l,"vertical",o,e)}})}function oB(e={}){const t={},n=MF((()=>function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return rB(yz(bz({},e),{orientation:Cz(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:Cz(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}(lz(lz({},e),t))));return function(e,t){return WF(e,t)}(n,e)}var iB=(0,v.createContext)(void 0);function aB(e){return e.some((e=>!!e.rowId))}function sB(e,t,n){return Vz((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=xF(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!Qz(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(Dz(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=aB(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=uz(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var lB=Zz((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=uz(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=(0,v.useRef)(null),l=function(e){const[t,n]=(0,v.useState)(!1),r=(0,v.useCallback)((()=>n(!0)),[]),o=e.useState((t=>xF(e,t.activeId)));return(0,v.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),c=n.useState("moves");(0,v.useEffect)((()=>{var e;if(!c)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=xF(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(bz({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[c,r,o]),Bz((()=>{if(!r)return;if(!c)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=s.current;s.current=null,o&&eF(o,{relatedTarget:e}),aF(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=yz(bz({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[c,r]);const u=n.useState("activeId"),d=n.useState("virtualFocus");Bz((()=>{var e;if(!r)return;if(!d)return;const t=s.current;if(s.current=null,!t)return;eF(t,{relatedTarget:(null==(e=xF(n,u))?void 0:e.element)||Pz(t)})}),[u,d,r]);const f=sB(n,a.onKeyDownCapture,s),p=sB(n,a.onKeyUpCapture,s),m=a.onFocusCapture,h=Vz((e=>{if(null==m||m(e),e.defaultPrevented)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[EF];return delete e[EF],t}(e.currentTarget);Qz(e)&&o&&(e.stopPropagation(),s.current=r)})),g=a.onFocus,b=Vz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?Qz(e)&&!_F(n,t)&&queueMicrotask(l):Qz(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=Vz((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=xF(n,o))?void 0:t.element,a=e.relatedTarget,l=_F(n,a),c=s.current;if(s.current=null,Qz(e)&&l)a===i?c&&c!==a&&eF(c,e):i&&eF(i,e),e.stopPropagation();else{!_F(n,e.target)&&i&&eF(i,e)}})),x=a.onKeyDown,E=Uz(i),_=Vz((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!Qz(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=xF(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=aB(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(qF(YF(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!E(e))return;e.preventDefault(),n.move(t)}}}));a=Gz(a,(e=>(0,Kz.jsx)(kF.Provider,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;return r&&e.virtualFocus?null==(t=xF(n,e.activeId))?void 0:t.id:void 0}));a=cz(lz({"aria-activedescendant":C},a),{ref:Hz(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:p,onFocusCapture:h,onFocus:b,onBlurCapture:w,onKeyDown:_});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=gF(lz({focusable:S},a))}));qz((e=>Xz("div",lB(e))));var cB=Zz((e=>{var t=e,{store:n}=t,r=uz(t,["store"]);const o=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Gz(r,(e=>(0,Kz.jsx)(iB.Provider,{value:n,children:e})),[n]),r=lz({role:"toolbar","aria-orientation":o},r),r=lB(lz({store:n},r))})),uB=qz((e=>Xz("div",cB(e))));var dB=(0,a.forwardRef)((function({label:e,...t},n){const r=oB({focusLoop:!0,rtl:(0,c.isRTL)()});return(0,a.createElement)(LF.Provider,{value:r},(0,a.createElement)(uB,{ref:n,"aria-label":e,store:r,...t}))}));const fB={DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}};var pB=(0,a.forwardRef)((function({className:e,label:t,...n},r){if(!t)return $l()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,a.createElement)(HF,{...n,className:e});const o=l()("components-accessible-toolbar",e);return(0,a.createElement)(nc,{value:fB},(0,a.createElement)(dB,{className:o,label:t,ref:r,...n}))}));var mB=(0,a.forwardRef)((function(e,t){return(0,a.useContext)(LF)?(0,a.createElement)(zF,{ref:t,...e.toggleProps},(t=>(0,a.createElement)(sT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,a.createElement)(sT,{...e})}));const hB={columns:e=>Zf("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Zf("column-gap:",Jm(2),";row-gap:",Jm(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},gB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},vB=Zf(hB.item.fullWidth," gap:",Jm(2),";.components-dropdown-menu{margin:",Jm(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Jm(6),";}",""),bB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},yB=Zf(hB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Nv,"{margin-bottom:0;",Ov,":last-child{margin-bottom:0;}}",zv,"{margin-bottom:0;}&& ",ag,"{label{line-height:1.4em;}}",""),wB={name:"eivff4",styles:"display:none"},xB={name:"16gsvie",styles:"min-width:200px"},EB=sd("span",{target:"ews648u0"})("color:",Dp.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",ih({marginLeft:Jm(3)})," text-transform:uppercase;"),_B=Zf("color:",Dp.gray[900],";&&[aria-disabled='true']{color:",Dp.gray[700],";opacity:1;&:hover{color:",Dp.gray[700],";}",EB,"{opacity:0.3;}}",""),CB=()=>{},SB=(0,a.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:CB,deregisterPanelItem:CB,flagItemCustomization:CB,registerResetAllFilter:CB,deregisterResetAllFilter:CB,areAllOptionalControlsHidden:!0}),kB=()=>(0,a.useContext)(SB);const TB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,a.createElement)(EB,{"aria-hidden":!0},(0,c.__)("Reset"));return(0,a.createElement)(UO,{label:(0,c.__)("Defaults")},t.map((([t,o])=>o?(0,a.createElement)(GO,{key:t,className:e,role:"menuitem",label:(0,c.sprintf)((0,c.__)("Reset %s"),t),onClick:()=>{n(t),(0,bb.speak)((0,c.sprintf)((0,c.__)("%s reset to default"),t),"assertive")},suffix:r},t):(0,a.createElement)(GO,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},RB=({items:e,toggleItem:t})=>e.length?(0,a.createElement)(UO,{label:(0,c.__)("Tools")},e.map((([e,n])=>{const r=n?(0,c.sprintf)((0,c.__)("Hide and reset %s"),e):(0,c.sprintf)((0,c.__)("Show %s"),e);return(0,a.createElement)(GO,{key:e,icon:n&&e_,isSelected:n,label:r,onClick:()=>{n?(0,bb.speak)((0,c.sprintf)((0,c.__)("%s hidden and reset to default"),e),"assertive"):(0,bb.speak)((0,c.sprintf)((0,c.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,PB=Ku(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,headingLevel:n=2,...r}=Gu(e,"ToolsPanelHeader"),o=Uu(),i=(0,a.useMemo)((()=>o(vB,t)),[t,o]),s=(0,a.useMemo)((()=>o(xB)),[o]),l=(0,a.useMemo)((()=>o(bB)),[o]),c=(0,a.useMemo)((()=>o(_B)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:f}=kB();return{...r,areAllOptionalControlsHidden:f,defaultControlsItemClassName:c,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:l,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const h=Object.entries(d?.default||{}),g=Object.entries(d?.optional||{}),v=n?ch:QS,b=(0,c.sprintf)((0,c._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,c.__)("All options are currently hidden"):void 0,w=[...h,...g].some((([,e])=>e));return(0,a.createElement)(rb,{...m,ref:t},(0,a.createElement)(i_,{level:l,className:s},u),i&&(0,a.createElement)(sT,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(TB,{items:h,toggleItem:p,itemClassName:r}),(0,a.createElement)(RB,{items:g,toggleItem:p}),(0,a.createElement)(UO,null,(0,a.createElement)(GO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,bb.speak)((0,c.__)("All options reset"),"assertive"))}},(0,c.__)("Reset all")))))))}),"ToolsPanelHeader");var MB=PB;const IB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},NB=e=>e&&0===Object.keys(e).length;function OB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c,...u}=Gu(e,"ToolsPanel"),d=(0,a.useRef)(!1),f=d.current;(0,a.useEffect)((()=>{f&&(d.current=!1)}),[f]);const[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[v,b]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),g((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,g]),w=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,a.useCallback)((e=>{b((t=>[...t,e]))}),[b]),E=(0,a.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,C]=(0,a.useState)({default:{},optional:{}});(0,a.useEffect)((()=>{C((e=>IB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,C,h]);const S=(0,a.useCallback)(((e,t="default")=>{C((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[C]),[k,T]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(NB(_?.default)&&!NB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));T(e)}}),[_,T]);const R=Uu(),P=(0,a.useMemo)((()=>{const e=i&&Zf(">div:not( :first-of-type ){display:grid;",hB.columns(2)," ",hB.spacing," ",hB.item.fullWidth,";}","");const n=NB(_?.default)&&k&&gB;return R((e=>Zf(hB.columns(e)," ",hB.spacing," border-top:",Nh.borderWidth," solid ",Dp.gray[300],";margin-top:-1px;padding:",Jm(4),";",""))(2),e,n,t)}),[k,t,R,i,_]),M=(0,a.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};C(r)}),[_,p,C]),I=(0,a.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(v));const e=IB({panelItems:p,menuItemOrder:h,shouldReset:!0});C(e)}),[p,v,r,C,h]),N=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},O=N(p),D=N([...p].reverse());return{...u,headingLevel:n,panelContext:(0,a.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:w,deregisterResetAllFilter:E,firstDisplayedItem:O,flagItemCustomization:S,hasMenuItems:!!p.length,isResetting:d.current,lastDisplayedItem:D,menuItems:_,panelId:o,registerPanelItem:y,registerResetAllFilter:x,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c})),[k,w,E,O,S,D,_,o,p,x,y,s,l,c]),resetAllItems:I,toggleItem:M,className:P}}var DB=Ku(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:l,...c}=OB(e);return(0,a.createElement)(z_,{...c,columns:2,ref:t},(0,a.createElement)(SB.Provider,{value:o},(0,a.createElement)(MB,{label:r,resetAll:i,toggleItem:s,headingLevel:l}),n))}),"ToolsPanel");const AB=()=>{};const LB=Ku(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=AB,onDeselect:l,onSelect:c,...d}=Gu(e,"ToolsPanelItem"),{panelId:f,menuItems:p,registerResetAllFilter:m,deregisterResetAllFilter:h,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:C}=kB(),S=(0,a.useCallback)(n,[i,n]),k=(0,a.useCallback)(s,[i,s]),T=(0,u.usePrevious)(f),R=f===i||null===f;(0,a.useEffect)((()=>(R&&null!==T&&g({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===T&&f||f===i)&&v(o)})),[f,R,r,o,S,i,T,g,v]),(0,a.useEffect)((()=>(R&&m(k),()=>{R&&h(k)})),[m,h,k,R]);const P=r?"default":"optional",M=p?.[P]?.[o],I=(0,u.usePrevious)(M),N=void 0!==p?.[P]?.[o],O=n(),D=(0,u.usePrevious)(O),A=O&&!D;(0,a.useEffect)((()=>{A&&(r||null===f)&&b(o,P)}),[f,A,r,P,o,b]),(0,a.useEffect)((()=>{N&&!y&&R&&(!M||O||I||c?.(),!M&&I&&l?.())}),[R,M,N,y,O,I,c,l]);const L=r?void 0!==p?.[P]?.[o]:M,z=Uu(),F=(0,a.useMemo)((()=>z(yB,w&&!L&&wB,t,x===o&&_,E===o&&C)),[L,w,t,z,x,E,_,C,o]);return{...d,isShown:L,shouldRenderPlaceholder:w,className:F}}(e);return r?(0,a.createElement)(cd,{...i,ref:t},n):o?(0,a.createElement)(cd,{...i,ref:t}):null}),"ToolsPanelItem");var zB=LB,FB=window.wp.keycodes;const BB=(0,a.createContext)(void 0),jB=BB.Provider;function VB({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,a.createElement)(jB,{value:r},e)}function HB(e){return Wl.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const $B=(0,a.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const l=(0,a.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![FB.UP,FB.DOWN,FB.LEFT,FB.RIGHT,FB.HOME,FB.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=HB(u),f=d.indexOf(l),p=0===f,m=p&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===FB.RIGHT;if([FB.LEFT,FB.RIGHT].includes(o)){let r;if(r=o===FB.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(o===FB.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}HB(o)?.[0]?.focus()}if(o===FB.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=HB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(m)return;d[r].focus(),e.preventDefault()}else if([FB.UP,FB.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===FB.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=HB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([FB.HOME,FB.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===FB.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=HB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,a.createElement)(VB,null,(0,a.createElement)("div",{role:"application","aria-label":o},(0,a.createElement)("table",{...i,role:"treegrid",onKeyDown:l,ref:s},(0,a.createElement)("tbody",null,e))))}));var WB=$B;var UB=(0,a.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,a.createElement)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o},e)}));const GB=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:l}=(0,a.useContext)(BB);let c;s&&(c=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,a.createElement)(t,{...u},e):null}));var KB=GB;var qB=(0,a.forwardRef)((function({children:e,...t},n){return(0,a.createElement)(KB,{ref:n,...t},e)}));var YB=(0,a.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,a.createElement)("td",{...n,role:"gridcell"},t?(0,a.createElement)(a.Fragment,null,e):(0,a.createElement)(qB,{ref:r},e))}));function XB(e){e.stopPropagation()}var ZB=(0,a.forwardRef)(((e,t)=>($l()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,a.createElement)("div",{...e,ref:t,onMouseDown:XB}))));function JB(e){return Gd((0,a.useContext)(qd).fills,{sync:!0}).get(e)}const QB=sd("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Zf({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Zf({zIndex:e},"","")),";");var ej={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const tj=sd("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",QB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?ej:void 0),";}");const nj=Ku((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...l}=Gu(e,"ZStack"),c=tb(n),u=c.length-1,d=c.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,l=(0,a.isValidElement)(e)?e.key:t;return(0,a.createElement)(QB,{offsetAmount:r,zIndex:n,key:l},e)}));return(0,a.createElement)(tj,{...l,className:r,isLayered:o,ref:t},d)}),"ZStack");var rj=nj;const oj={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function ij(e=oj){const t=(0,a.useRef)(null),[n,r]=(0,a.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,u.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,u.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>FB.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>FB.isKeyboardEvent[e](t,n)))&&o(1)}}}var aj=(0,u.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,a.createElement)("div",{...ij(t)},(0,a.createElement)(e,{...n}))),"navigateRegions");var sj=(0,u.createHigherOrderComponent)((e=>function(t){const n=(0,u.useConstrainedTabbing)();return(0,a.createElement)("div",{ref:n,tabIndex:-1},(0,a.createElement)(e,{...t}))}),"withConstrainedTabbing"),lj=e=>(0,u.createHigherOrderComponent)((t=>class extends a.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);Xl()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,a.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,a.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),cj=window.wp.hooks;const uj=16;function dj(e){return(0,u.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends a.Component{constructor(n){super(n),void 0===r&&(r=(0,cj.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,cj.addAction)("hookRemoved",n,s),(0,cj.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,cj.removeAction)("hookRemoved",n),(0,cj.removeAction)("hookAdded",n))}render(){return(0,a.createElement)(r,{...this.props})}}o.instances=[];const i=(0,u.debounce)((()=>{r=(0,cj.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),uj);function s(t){t===e&&i()}return o}),"withFilters")}var fj=(0,u.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,u.useFocusReturn)(e);return(0,a.createElement)("div",{ref:r},(0,a.createElement)(t,{...n}))};if((n=e)instanceof a.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const pj=({children:e})=>($l()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e);var mj=(0,u.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,a.useState)([]),s=(0,a.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:df()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),l={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,a.createElement)(pA,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,a.createElement)(e,{...l,ref:r}):(0,a.createElement)(e,{...l})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,a.forwardRef)(t)):t}),"withNotices"),hj=window.wp.privateApis;function gj(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function vj(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function bj(...e){return(0,v.useCallback)(vj(...e),e)}function yj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,v.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,v.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,v.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,v.useMemo)((()=>a),Object.values(a));return(0,v.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,v.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},wj(r,...t)]}function wj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,v.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function xj(e){const t=(0,v.useRef)(e);return(0,v.useEffect)((()=>{t.current=e})),(0,v.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Ej({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,v.useState)(e),[r]=n,o=(0,v.useRef)(r),i=xj(t);return(0,v.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=xj(n);return[a,(0,v.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const _j=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(kj);if(i){const e=i.props.children,n=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):(0,v.isValidElement)(e)?e.props.children:null:t));return(0,v.createElement)(Cj,Qu({},r,{ref:t}),(0,v.isValidElement)(e)?(0,v.cloneElement)(e,void 0,n):null)}return(0,v.createElement)(Cj,Qu({},r,{ref:t}),n)}));_j.displayName="Slot";const Cj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,v.isValidElement)(n)?(0,v.cloneElement)(n,{...Tj(r,n.props),ref:vj(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));Cj.displayName="SlotClone";const Sj=({children:e})=>(0,v.createElement)(v.Fragment,null,e);function kj(e){return(0,v.isValidElement)(e)&&e.type===Sj}function Tj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Rj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,v.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?_j:t;return(0,v.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,v.createElement)(i,Qu({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Pj(e,t){e&&(0,kt.flushSync)((()=>e.dispatchEvent(t)))}function Mj(e){const t=e+"CollectionProvider",[n,r]=yj(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=y().useRef(null),i=y().useRef(new Map).current;return y().createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=y().forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=bj(t,i(s,n).collectionRef);return y().createElement(_j,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=y().forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=y().useRef(null),s=bj(t,a),l=i(c,n);return y().useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),y().createElement(_j,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=y().useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Ij=(0,v.createContext)(void 0);function Nj(e){const t=(0,v.useContext)(Ij);return e||t||"ltr"}const Oj="dismissableLayer.update",Dj="dismissableLayer.pointerDownOutside",Aj="dismissableLayer.focusOutside";let Lj;const zj=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fj=(0,v.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,v.useContext)(zj),[d,f]=(0,v.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,v.useState)({}),h=bj(t,(e=>f(e))),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=xj(e),r=(0,v.useRef)(!1),o=(0,v.useRef)((()=>{}));return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){jj(Dj,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=xj(e),r=(0,v.useRef)(!1);return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){jj(Aj,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=xj(e);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,v.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Lj=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Bj(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Lj)}}),[d,p,r,u]),(0,v.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Bj())}),[d,u]),(0,v.useEffect)((()=>{const e=()=>m({});return document.addEventListener(Oj,e),()=>document.removeEventListener(Oj,e)}),[]),(0,v.createElement)(Rj.div,Qu({},c,{ref:h,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:gj(e.onFocusCapture,C.onFocusCapture),onBlurCapture:gj(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:gj(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function Bj(){const e=new CustomEvent(Oj);document.dispatchEvent(e)}function jj(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Pj(o,i):o.dispatchEvent(i)}let Vj=0;function Hj(){(0,v.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:$j()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$j()),Vj++,()=>{1===Vj&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Vj--}}),[])}function $j(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Wj="focusScope.autoFocusOnMount",Uj="focusScope.autoFocusOnUnmount",Gj={bubbles:!1,cancelable:!0},Kj=(0,v.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,v.useState)(null),c=xj(o),u=xj(i),d=(0,v.useRef)(null),f=bj(t,(e=>l(e))),p=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Zj(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||Zj(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,v.useEffect)((()=>{if(s){Jj.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Wj,Gj);s.addEventListener(Wj,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Zj(r,{select:t}),document.activeElement!==n)return}((e=qj(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Zj(s))}return()=>{s.removeEventListener(Wj,c),setTimeout((()=>{const e=new CustomEvent(Uj,Gj);s.addEventListener(Uj,u),s.dispatchEvent(e),e.defaultPrevented||Zj(null!=t?t:document.body,{select:!0}),s.removeEventListener(Uj,u),Jj.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,v.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=qj(e),n=Yj(t,e),r=Yj(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Zj(i,{select:!0})):(e.preventDefault(),n&&Zj(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,v.createElement)(Rj.div,Qu({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function qj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yj(e,t){for(const n of e)if(!Xj(n,{upTo:t}))return n}function Xj(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Zj(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Jj=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Qj(e,t),e.unshift(t)},remove(t){var n;e=Qj(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Qj(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const eV=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},tV=v["useId".toString()]||(()=>{});let nV=0;function rV(e){const[t,n]=v.useState(tV());return eV((()=>{e||n((e=>null!=e?e:String(nV++)))}),[e]),e||(t?`radix-${t}`:"")}function oV(e){return e.split("-")[0]}function iV(e){return e.split("-")[1]}function aV(e){return["top","bottom"].includes(oV(e))?"x":"y"}function sV(e){return"y"===e?"height":"width"}function lV(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=aV(t),l=sV(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(oV(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(iV(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function cV(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function uV(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function dV(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=cV(p),h=s[f?"floating"===d?"reference":"floating":d],g=uV(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=uV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const fV=Math.min,pV=Math.max;function mV(e,t,n){return pV(e,fV(t,n))}const hV=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=cV(r),u={x:o,y:i},d=aV(a),f=iV(a),p=sV(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=mV(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?CgV[e]))}function bV(e,t,n){void 0===n&&(n=!1);const r=iV(e),o=aV(e),i=sV(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=vV(a)),{main:a,cross:vV(a)}}const yV={start:"end",end:"start"};function wV(e){return e.replace(/start|end/g,(e=>yV[e]))}const xV=["top","right","bottom","left"],EV=(xV.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=oV(r),g=d||(h!==a&&p?function(e){const t=vV(e);return[wV(e),t,wV(t)]}(a):[vV(a)]),v=[a,...g],b=await dV(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=bV(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function _V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function CV(e){return xV.some((t=>e[t]>=0))}const SV=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=_V(await dV(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:CV(t)}}}case"escaped":{const t=_V(await dV(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:CV(t)}}}default:return{}}}}},kV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=oV(n),s=iV(n),l="x"===aV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function TV(e){return"x"===e?"y":"x"}const RV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await dV(t,l),d=aV(oV(o)),f=TV(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=mV(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=mV(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},PV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=aV(o),f=TV(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;pn&&(p=n)}if(c){var v,b,y,w;const e="y"===d?"width":"height",t=["top","left"].includes(oV(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(w=a.offset)?void 0:w[f])?y:0)-(t?g.crossAxis:0);mr&&(m=r)}return{[d]:p,[f]:m}}}},MV=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...s}=e,l=await dV(t,s),c=oV(n),u=iV(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=pV(l.left,0),m=pV(l.right,0),h=pV(l.top,0),g=pV(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:pV(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:pV(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function IV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function NV(e){if(null==e)return window;if(!IV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function OV(e){return NV(e).getComputedStyle(e)}function DV(e){return IV(e)?"":e?(e.nodeName||"").toLowerCase():""}function AV(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function LV(e){return e instanceof NV(e).HTMLElement}function zV(e){return e instanceof NV(e).Element}function FV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof NV(e).ShadowRoot||e instanceof ShadowRoot)}function BV(e){const{overflow:t,overflowX:n,overflowY:r}=OV(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function jV(e){return["table","td","th"].includes(DV(e))}function VV(e){const t=/firefox/i.test(AV()),n=OV(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function HV(){return!/^((?!chrome|android).)*safari/i.test(AV())}const $V=Math.min,WV=Math.max,UV=Math.round;function GV(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&LV(e)&&(l=e.offsetWidth>0&&UV(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&UV(s.height)/e.offsetHeight||1);const u=zV(e)?NV(e):window,d=!HV()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function KV(e){return(t=e,(t instanceof NV(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function qV(e){return zV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function YV(e){return GV(KV(e)).left+qV(e).scrollLeft}function XV(e,t,n){const r=LV(t),o=KV(t),i=GV(e,r&&function(e){const t=GV(e);return UV(t.width)!==e.offsetWidth||UV(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==DV(t)||BV(o))&&(a=qV(t)),LV(t)){const e=GV(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=YV(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function ZV(e){return"html"===DV(e)?e:e.assignedSlot||e.parentNode||(FV(e)?e.host:null)||KV(e)}function JV(e){return LV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function QV(e){const t=NV(e);let n=JV(e);for(;n&&jV(n)&&"static"===getComputedStyle(n).position;)n=JV(n);return n&&("html"===DV(n)||"body"===DV(n)&&"static"===getComputedStyle(n).position&&!VV(n))?t:n||function(e){let t=ZV(e);for(FV(t)&&(t=t.host);LV(t)&&!["html","body"].includes(DV(t));){if(VV(t))return t;t=t.parentNode}return null}(e)||t}function eH(e){if(LV(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=GV(e);return{width:t.width,height:t.height}}function tH(e){const t=ZV(e);return["html","body","#document"].includes(DV(t))?e.ownerDocument.body:LV(t)&&BV(t)?t:tH(t)}function nH(e,t){var n;void 0===t&&(t=[]);const r=tH(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=NV(r),a=o?[i].concat(i.visualViewport||[],BV(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(nH(a))}function rH(e,t,n){return"viewport"===t?uV(function(e,t){const n=NV(e),r=KV(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=HV();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):zV(t)?function(e,t){const n=GV(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):uV(function(e){var t;const n=KV(e),r=qV(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=WV(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=WV(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+YV(e);const l=-r.scrollTop;return"rtl"===OV(o||n).direction&&(s+=WV(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(KV(e)))}function oH(e){const t=nH(e),n=["absolute","fixed"].includes(OV(e).position)&&LV(e)?QV(e):e;return zV(n)?t.filter((e=>zV(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&FV(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==DV(e))):[]}const iH={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?oH(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=rH(t,n,o);return e.top=WV(r.top,e.top),e.right=$V(r.right,e.right),e.bottom=$V(r.bottom,e.bottom),e.left=WV(r.left,e.left),e}),rH(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=LV(n),i=KV(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==DV(n)||BV(i))&&(a=qV(n)),LV(n))){const e=GV(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:zV,getDimensions:eH,getOffsetParent:QV,getDocumentElement:KV,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:XV(t,QV(n),r),floating:{...eH(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===OV(e).direction};function aH(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...zV(e)?nH(e):[],...nH(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),zV(e)&&!s&&f.observe(e),f.observe(t)}let p=s?GV(e):null;return s&&function t(){const r=GV(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const sH=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=lV(l,r,s),d=r,f={},p=0;for(let n=0;n{t.current=e})),t}(o),l=v.useRef(null),[c,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=v.useState(t);cH(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=v.useCallback((()=>{i.current&&a.current&&sH(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&kt.flushSync((()=>{u(e)}))}))}),[d,n,r]);lH((()=>{m.current&&p()}),[p]);const m=v.useRef(!1);lH((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=v.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=v.useCallback((e=>{i.current=e,h()}),[h]),b=v.useCallback((e=>{a.current=e,h()}),[h]),y=v.useMemo((()=>({reference:i,floating:a})),[]);return v.useMemo((()=>({...c,update:p,refs:y,reference:g,floating:b})),[c,p,y,g,b])}const dH=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?hV({element:t.current,padding:n}).fn(e):{}:t?hV({element:t,padding:n}).fn(e):{};var r}}};const fH="Popper",[pH,mH]=yj(fH),[hH,gH]=pH(fH),vH=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,v.useState)(null);return(0,v.createElement)(hH,{scope:t,anchor:r,onAnchorChange:o},n)},bH="PopperAnchor",yH=(0,v.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=gH(bH,n),a=(0,v.useRef)(null),s=bj(t,a);return(0,v.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,v.createElement)(Rj.div,Qu({},o,{ref:s}))})),wH="PopperContent",[xH,EH]=pH(wH),[_H,CH]=pH(wH,{hasParent:!1,positionUpdateFns:new Set}),SH=(0,v.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,..._}=e,C=gH(wH,u),[S,k]=(0,v.useState)(null),T=bj(t,(e=>k(e))),[R,P]=(0,v.useState)(null),M=function(e){const[t,n]=(0,v.useState)(void 0);return eV((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),I=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,N=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),D="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},A=Array.isArray(g)?g:[g],L=A.length>0,z={padding:D,boundary:A.filter(TH),altBoundary:L},{reference:F,floating:B,strategy:j,x:V,y:H,placement:$,middlewareData:W,update:U}=uH({strategy:"fixed",placement:O,whileElementsMounted:aH,middleware:[RH(),kV({mainAxis:f+N,alignmentAxis:m}),x?RV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?PV():void 0,...z}):void 0,R?dH({element:R,padding:h}):void 0,x?EV({...z}):void 0,MV({...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),PH({arrowWidth:I,arrowHeight:N}),w?SV({strategy:"referenceHidden"}):void 0].filter(kH)});eV((()=>{F(C.anchor)}),[F,C.anchor]);const G=null!==V&&null!==H,[K,q]=MH($),Y=xj(E);eV((()=>{G&&(null==Y||Y())}),[G,Y]);const X=null===(o=W.arrow)||void 0===o?void 0:o.x,Z=null===(i=W.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[Q,ee]=(0,v.useState)();eV((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:te,positionUpdateFns:ne}=CH(wH,u),re=!te;(0,v.useLayoutEffect)((()=>{if(!re)return ne.add(U),()=>{ne.delete(U)}}),[re,ne,U]),eV((()=>{re&&G&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,G,ne]);const oe={"data-side":K,"data-align":q,..._,ref:T,style:{..._.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:j,left:0,top:0,transform:G?`translate3d(${Math.round(V)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,v.createElement)(xH,{scope:u,placedSide:K,onArrowChange:P,arrowX:X,arrowY:Z,shouldHideArrow:J},re?(0,v.createElement)(_H,{scope:u,hasParent:!0,positionUpdateFns:ne},(0,v.createElement)(Rj.div,oe)):(0,v.createElement)(Rj.div,oe)))}));function kH(e){return void 0!==e}function TH(e){return null!==e}const RH=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),PH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=MH(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function MH(e){const[t,n="center"]=e.split("-");return[t,n]}const IH=vH,NH=yH,OH=SH,DH=(0,v.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?Tt().createPortal((0,v.createElement)(Rj.div,Qu({},o,{ref:t})),r):null}));const AH=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,v.useState)(),r=(0,v.useRef)({}),o=(0,v.useRef)(e),i=(0,v.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,v.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,v.useEffect)((()=>{const e=LH(r.current);i.current="mounted"===s?e:"none"}),[s]),eV((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=LH(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),eV((()=>{if(t){const e=e=>{const n=LH(r.current).includes(e.animationName);e.target===t&&n&&(0,kt.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=LH(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,v.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),i=bj(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,v.cloneElement)(o,{ref:i}):null};function LH(e){return(null==e?void 0:e.animationName)||"none"}AH.displayName="Presence";const zH="rovingFocusGroup.onEntryFocus",FH={bubbles:!1,cancelable:!0},BH="RovingFocusGroup",[jH,VH,HH]=Mj(BH),[$H,WH]=yj(BH,[HH]),[UH,GH]=$H(BH),KH=(0,v.forwardRef)(((e,t)=>(0,v.createElement)(jH.Provider,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(jH.Slot,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(qH,Qu({},e,{ref:t})))))),qH=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,v.useRef)(null),f=bj(t,d),p=Nj(i),[m=null,h]=Ej({prop:a,defaultProp:s,onChange:l}),[g,b]=(0,v.useState)(!1),y=xj(c),w=VH(n),x=(0,v.useRef)(!1),[E,_]=(0,v.useState)(0);return(0,v.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(zH,y),()=>e.removeEventListener(zH,y)}),[y]),(0,v.createElement)(UH,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,v.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,v.useCallback)((()=>b(!0)),[]),onFocusableItemAdd:(0,v.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,v.useCallback)((()=>_((e=>e-1))),[])},(0,v.createElement)(Rj.div,Qu({tabIndex:g||0===E?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:gj(e.onMouseDown,(()=>{x.current=!0})),onFocus:gj(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(zH,FH);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));JH(r)}}x.current=!1})),onBlur:gj(e.onBlur,(()=>b(!1)))})))})),YH="RovingFocusGroupItem",XH=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=rV(),l=i||s,c=GH(YH,n),u=c.currentTabStopId===l,d=VH(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,v.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,v.createElement)(jH.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,v.createElement)(Rj.span,Qu({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:gj(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:gj(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:gj(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ZH[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>JH(i)))}var n,r}))})))})),ZH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function JH(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const QH=KH,e$=XH;var t$=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},n$=new WeakMap,r$=new WeakMap,o$={},i$=0,a$=function(e){return e&&(e.host||a$(e.parentNode))},s$=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=a$(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);o$[n]||(o$[n]=new WeakMap);var i=o$[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(n$.get(e)||0)+1,c=(i.get(e)||0)+1;n$.set(e,l),i.set(e,c),a.push(e),1===l&&o&&r$.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),i$++,function(){a.forEach((function(e){var t=n$.get(e)-1,o=i.get(e)-1;n$.set(e,t),i.set(e,o),t||(r$.has(e)||e.removeAttribute(r),r$.delete(e)),o||e.removeAttribute(n)})),--i$||(n$=new WeakMap,n$=new WeakMap,r$=new WeakMap,o$={})}},l$=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||t$(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),s$(r,o,n,"aria-hidden")):function(){return null}},c$="right-scroll-bar-position",u$="width-before-scroll-bar";function d$(e,t){return function(e,t){var n=(0,v.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function f$(e){return e}function p$(e,t){void 0===t&&(t=f$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var m$=function(e){void 0===e&&(e={});var t=p$(null);return t.options=ac({async:!0,ssr:!1},e),t}(),h$=function(){},g$=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:h$,onWheelCapture:h$,onTouchMoveCapture:h$}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=sc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=d$([n,t]),E=ac(ac({},y),o);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:m$,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?v.cloneElement(v.Children.only(s),ac(ac({},E),{ref:x})):v.createElement(b,ac({},E,{className:l,ref:x}),s))}));g$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g$.classNames={fullWidth:u$,zeroRight:c$};var v$,b$=function(e){var t=e.sideCar,n=sc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,ac({},n))};b$.isSideCarExport=!0;function y$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v$||o.nc;return t&&e.setAttribute("nonce",t),e}var w$=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=y$())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x$=function(){var e=function(){var e=w$();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},E$={left:0,top:0,right:0,gap:0},_$=function(e){return parseInt(e||"",10)||0},C$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return E$;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[_$(n),_$(r),_$(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},S$=x$(),k$=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(c$," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(u$," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(c$," .").concat(c$," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u$," .").concat(u$," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},T$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=v.useMemo((function(){return C$(o)}),[o]);return v.createElement(S$,{styles:k$(i,!t,o,n?"":"!important")})},R$=!1;if("undefined"!=typeof window)try{var P$=Object.defineProperty({},"passive",{get:function(){return R$=!0,!0}});window.addEventListener("test",P$,P$),window.removeEventListener("test",P$,P$)}catch(e){R$=!1}var M$=!!R$&&{passive:!1},I$=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},N$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),O$(e,n)){var r=D$(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},O$=function(e,t){return"v"===e?function(e){return I$(e,"overflowY")}(t):function(e){return I$(e,"overflowX")}(t)},D$=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},A$=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L$=function(e){return[e.deltaX,e.deltaY]},z$=function(e){return e&&"current"in e?e.current:e},F$=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},B$=0,j$=[];var V$,H$=(V$=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(B$++)[0],i=v.useState((function(){return x$()}))[0],a=v.useRef(e);v.useEffect((function(){a.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=lc([e.lockRef.current],(e.shards||[]).map(z$),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=A$(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=N$(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=N$(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=D$(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&O$(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=v.useCallback((function(e){var n=e;if(j$.length&&j$[j$.length-1]===i){var r="deltaY"in n?L$(n):A$(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(z$).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=v.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=v.useCallback((function(e){n.current=A$(e),r.current=void 0}),[]),d=v.useCallback((function(t){c(t.type,L$(t),t.target,s(t,e.lockRef.current))}),[]),f=v.useCallback((function(t){c(t.type,A$(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return j$.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,M$),document.addEventListener("touchmove",l,M$),document.addEventListener("touchstart",u,M$),function(){j$=j$.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,M$),document.removeEventListener("touchmove",l,M$),document.removeEventListener("touchstart",u,M$)}}),[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:F$(o)}):null,p?v.createElement(T$,{gapMode:"margin"}):null)},m$.useMedium(V$),b$),$$=v.forwardRef((function(e,t){return v.createElement(g$,ac({},e,{ref:t,sideCar:H$}))}));$$.classNames=g$.classNames;var W$=$$;const U$=["Enter"," "],G$=["ArrowUp","PageDown","End"],K$=["ArrowDown","PageUp","Home",...G$],q$={ltr:[...U$,"ArrowRight"],rtl:[...U$,"ArrowLeft"]},Y$={ltr:["ArrowLeft"],rtl:["ArrowRight"]},X$="Menu",[Z$,J$,Q$]=Mj(X$),[eW,tW]=yj(X$,[Q$,mH,WH]),nW=mH(),rW=WH(),[oW,iW]=eW(X$),[aW,sW]=eW(X$),lW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=nW(t),[l,c]=(0,v.useState)(null),u=(0,v.useRef)(!1),d=xj(i),f=Nj(o);return(0,v.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,v.createElement)(IH,s,(0,v.createElement)(oW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,v.createElement)(aW,{scope:t,onClose:(0,v.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},cW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=nW(n);return(0,v.createElement)(NH,Qu({},o,r,{ref:t}))})),uW="MenuPortal",[dW,fW]=eW(uW,{forceMount:void 0}),pW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=iW(uW,t);return(0,v.createElement)(dW,{scope:t,forceMount:n},(0,v.createElement)(AH,{present:n||i.open},(0,v.createElement)(DH,{asChild:!0,container:o},r)))},mW="MenuContent",[hW,gW]=eW(mW),vW=(0,v.forwardRef)(((e,t)=>{const n=fW(mW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=iW(mW,e.__scopeMenu),a=sW(mW,e.__scopeMenu);return(0,v.createElement)(Z$.Provider,{scope:e.__scopeMenu},(0,v.createElement)(AH,{present:r||i.open},(0,v.createElement)(Z$.Slot,{scope:e.__scopeMenu},a.modal?(0,v.createElement)(bW,Qu({},o,{ref:t})):(0,v.createElement)(yW,Qu({},o,{ref:t})))))})),bW=(0,v.forwardRef)(((e,t)=>{const n=iW(mW,e.__scopeMenu),r=(0,v.useRef)(null),o=bj(t,r);return(0,v.useEffect)((()=>{const e=r.current;if(e)return l$(e)}),[]),(0,v.createElement)(wW,Qu({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:gj(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),yW=(0,v.forwardRef)(((e,t)=>{const n=iW(mW,e.__scopeMenu);return(0,v.createElement)(wW,Qu({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),wW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=iW(mW,n),b=sW(mW,n),y=nW(n),w=rW(n),x=J$(n),[E,_]=(0,v.useState)(null),C=(0,v.useRef)(null),S=bj(t,C,g.onContentChange),k=(0,v.useRef)(0),T=(0,v.useRef)(""),R=(0,v.useRef)(0),P=(0,v.useRef)(null),M=(0,v.useRef)("right"),I=(0,v.useRef)(0),N=m?W$:v.Fragment,O=m?{as:_j,allowPinchZoom:!0}:void 0,D=e=>{var t,n;const r=T.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;const c=1===o.length;c&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,v.useEffect)((()=>()=>window.clearTimeout(k.current)),[]),Hj();const A=(0,v.useCallback)((e=>{var t,n;return M.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;er!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return(0,v.createElement)(hW,{scope:n,searchRef:T,onItemEnter:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),onItemLeave:(0,v.useCallback)((e=>{var t;A(e)||(null===(t=C.current)||void 0===t||t.focus(),_(null))}),[A]),onTriggerLeave:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),pointerGraceTimerRef:R,onPointerGraceIntentChange:(0,v.useCallback)((e=>{P.current=e}),[])},(0,v.createElement)(N,O,(0,v.createElement)(Kj,{asChild:!0,trapped:o,onMountAutoFocus:gj(i,(e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,v.createElement)(Fj,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,v.createElement)(QH,Qu({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:gj(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,v.createElement)(OH,Qu({role:"menu","aria-orientation":"vertical","data-state":KW(g.open),"data-radix-menu-content":"",dir:b.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:gj(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=C.current;if(e.target!==o)return;if(!K$.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));G$.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:gj(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")})),onPointerMove:gj(e.onPointerMove,XW((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";M.current=t,I.current=e.clientX}})))})))))))})),xW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Rj.div,Qu({role:"group"},r,{ref:t}))})),EW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Rj.div,Qu({},r,{ref:t}))})),_W="MenuItem",CW="menu.itemSelect",SW=(0,v.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,v.useRef)(null),a=sW(_W,e.__scopeMenu),s=gW(_W,e.__scopeMenu),l=bj(t,i),c=(0,v.useRef)(!1);return(0,v.createElement)(kW,Qu({},o,{ref:l,disabled:n,onClick:gj(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(CW,{bubbles:!0,cancelable:!0});e.addEventListener(CW,(e=>null==r?void 0:r(e)),{once:!0}),Pj(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:gj(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:gj(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||U$.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),kW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=gW(_W,n),s=rW(n),l=(0,v.useRef)(null),c=bj(t,l),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)("");return(0,v.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,v.createElement)(Z$.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,v.createElement)(e$,Qu({asChild:!0},s,{focusable:!r}),(0,v.createElement)(Rj.div,Qu({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:gj(e.onPointerMove,XW((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:gj(e.onPointerLeave,XW((e=>a.onItemLeave(e)))),onFocus:gj(e.onFocus,(()=>d(!0))),onBlur:gj(e.onBlur,(()=>d(!1)))}))))})),TW=(0,v.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,v.createElement)(AW,{scope:e.__scopeMenu,checked:n},(0,v.createElement)(SW,Qu({role:"menuitemcheckbox","aria-checked":qW(n)?"mixed":n},o,{ref:t,"data-state":YW(n),onSelect:gj(o.onSelect,(()=>null==r?void 0:r(!!qW(n)||!n)),{checkForDefaultPrevented:!1})})))})),RW="MenuRadioGroup",[PW,MW]=eW(RW,{value:void 0,onValueChange:()=>{}}),IW=(0,v.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=xj(r);return(0,v.createElement)(PW,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,v.createElement)(xW,Qu({},o,{ref:t})))})),NW="MenuRadioItem",OW=(0,v.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=MW(NW,e.__scopeMenu),i=n===o.value;return(0,v.createElement)(AW,{scope:e.__scopeMenu,checked:i},(0,v.createElement)(SW,Qu({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":YW(i),onSelect:gj(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),DW="MenuItemIndicator",[AW,LW]=eW(DW,{checked:!1}),zW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=LW(DW,n);return(0,v.createElement)(AH,{present:r||qW(i.checked)||!0===i.checked},(0,v.createElement)(Rj.span,Qu({},o,{ref:t,"data-state":YW(i.checked)})))})),FW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Rj.div,Qu({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),BW="MenuSub",[jW,VW]=eW(BW),HW=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=iW(BW,t),a=nW(t),[s,l]=(0,v.useState)(null),[c,u]=(0,v.useState)(null),d=xj(o);return(0,v.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,v.createElement)(IH,a,(0,v.createElement)(oW,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,v.createElement)(jW,{scope:t,contentId:rV(),triggerId:rV(),trigger:s,onTriggerChange:l},n)))},$W="MenuSubTrigger",WW=(0,v.forwardRef)(((e,t)=>{const n=iW($W,e.__scopeMenu),r=sW($W,e.__scopeMenu),o=VW($W,e.__scopeMenu),i=gW($W,e.__scopeMenu),a=(0,v.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,v.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,v.useEffect)((()=>u),[u]),(0,v.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,v.createElement)(cW,Qu({asChild:!0},c),(0,v.createElement)(kW,Qu({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":KW(n.open)},e,{ref:vj(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:gj(e.onPointerMove,XW((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:gj(e.onPointerLeave,XW((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:gj(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||q$[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),UW="MenuSubContent",GW=(0,v.forwardRef)(((e,t)=>{const n=fW(mW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=iW(mW,e.__scopeMenu),a=sW(mW,e.__scopeMenu),s=VW(UW,e.__scopeMenu),l=(0,v.useRef)(null),c=bj(t,l);return(0,v.createElement)(Z$.Provider,{scope:e.__scopeMenu},(0,v.createElement)(AH,{present:r||i.open},(0,v.createElement)(Z$.Slot,{scope:e.__scopeMenu},(0,v.createElement)(wW,Qu({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:gj(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:gj(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:gj(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Y$[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function KW(e){return e?"open":"closed"}function qW(e){return"indeterminate"===e}function YW(e){return qW(e)?"indeterminate":e?"checked":"unchecked"}function XW(e){return t=>"mouse"===t.pointerType?e(t):void 0}const ZW=lW,JW=cW,QW=pW,eU=vW,tU=xW,nU=EW,rU=SW,oU=TW,iU=IW,aU=OW,sU=zW,lU=FW,cU=HW,uU=WW,dU=GW,fU="DropdownMenu",[pU,mU]=yj(fU,[tW]),hU=tW(),[gU,vU]=pU(fU),bU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=hU(t),c=(0,v.useRef)(null),[u=!1,d]=Ej({prop:o,defaultProp:i,onChange:a});return(0,v.createElement)(gU,{scope:t,triggerId:rV(),triggerRef:c,contentId:rV(),open:u,onOpenChange:d,onOpenToggle:(0,v.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,v.createElement)(ZW,Qu({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},yU="DropdownMenuTrigger",wU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=vU(yU,n),a=hU(n);return(0,v.createElement)(JW,Qu({asChild:!0},a),(0,v.createElement)(Rj.button,Qu({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:vj(t,i.triggerRef),onPointerDown:gj(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:gj(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),xU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=hU(t);return(0,v.createElement)(QW,Qu({},r,n))},EU="DropdownMenuContent",_U=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=vU(EU,n),i=hU(n),a=(0,v.useRef)(!1);return(0,v.createElement)(eU,Qu({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:gj(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:gj(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),CU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(tU,Qu({},o,r,{ref:t}))})),SU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(nU,Qu({},o,r,{ref:t}))})),kU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(rU,Qu({},o,r,{ref:t}))})),TU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(oU,Qu({},o,r,{ref:t}))})),RU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(iU,Qu({},o,r,{ref:t}))})),PU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(aU,Qu({},o,r,{ref:t}))})),MU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(sU,Qu({},o,r,{ref:t}))})),IU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(lU,Qu({},o,r,{ref:t}))})),NU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(uU,Qu({},o,r,{ref:t}))})),OU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hU(n);return(0,v.createElement)(dU,Qu({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),DU=bU,AU=wU,LU=xU,zU=_U,FU=CU,BU=SU,jU=kU,VU=TU,HU=RU,$U=PU,WU=MU,UU=IU,GU=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=hU(t),[s=!1,l]=Ej({prop:r,defaultProp:i,onChange:o});return(0,v.createElement)(cU,Qu({},a,{open:s,onOpenChange:l}),n)},KU=NU,qU=OU;var YU=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const XU="2px",ZU="400ms",JU="cubic-bezier( 0.16, 1, 0.3, 1 )",QU=Jm(2),eG=Jm(7),tG=Jm(2),nG=Jm(2.5),rG=Dp.ui.borderDisabled,oG=Dp.gray[900],iG=`0 0 0 ${Nh.borderWidth} ${rG}, ${Nh.popoverShadow}`,aG=`0 0 0 ${Nh.borderWidth} ${oG}`,sG=Jf({"0%":{opacity:0,transform:`translateY(${XU})`},"100%":{opacity:1,transform:"translateY(0)"}}),lG=Jf({"0%":{opacity:0,transform:`translateX(-${XU})`},"100%":{opacity:1,transform:"translateX(0)"}}),cG=Jf({"0%":{opacity:0,transform:`translateY(-${XU})`},"100%":{opacity:1,transform:"translateY(0)"}}),uG=Jf({"0%":{opacity:0,transform:`translateX(${XU})`},"100%":{opacity:1,transform:"translateX(0)"}}),dG=e=>Zf("min-width:220px;background-color:",Dp.ui.background,";border-radius:",Nh.radiusBlockUi,";padding:",QU,";box-shadow:","toolbar"===e?aG:iG,";animation-duration:",ZU,";animation-timing-function:",JU,";will-change:transform,opacity;&[data-side='top']{animation-name:",cG,";}&[data-side='right']{animation-name:",uG,";}&[data-side='bottom']{animation-name:",sG,";}&[data-side='left']{animation-name:",lG,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),fG=Zf("width:",eG,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",tG," );margin-top:",Jm(-2),";margin-bottom:",Jm(-2),";",""),pG=Zf("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",Jm(6),";margin-top:",Jm(-2),";margin-bottom:",Jm(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),mG=sd("span",{target:"e1kdzosf11"})(fG,";"),hG=sd("span",{target:"e1kdzosf10"})(pG,";"),gG=Zf("all:unset;font-size:",Mv("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Dp.gray[900],";border-radius:",Nh.radiusBlockUi,";display:flex;align-items:center;padding:",Jm(2)," ",nG," ",Jm(2)," ",tG,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",Dp.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",mG," ) ){padding-inline-start:",eG,";}",""),vG=sd(zU,{target:"e1kdzosf9"})((e=>dG(e.variant)),";"),bG=sd(qU,{target:"e1kdzosf8"})((e=>dG(e.variant)),";"),yG=sd(jU,{target:"e1kdzosf7"})(gG,";"),wG=sd(VU,{target:"e1kdzosf6"})(gG,";"),xG=sd($U,{target:"e1kdzosf5"})(gG,";"),EG=sd(KU,{target:"e1kdzosf4"})(gG," &[data-state='open']{background-color:",Dp.gray[100],";}"),_G=sd(BU,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",Jm(8),";padding:",Jm(2)," ",nG," ",Jm(2)," ",eG,";color:",Dp.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),CG=sd(UU,{target:"e1kdzosf2"})("height:",Nh.borderWidth,";background-color:",(e=>"toolbar"===e.variant?oG:rG),";margin:",Jm(2)," calc( -1 * ",QU," );"),SG=sd(WU,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),kG=sd(Gl,{target:"e1kdzosf0"})(ih({transform:`scaleX(1) translateX(${Jm(2)})`},{transform:`scaleX(-1) translateX(${Jm(2)})`})(),";"),TG=(0,a.createContext)({variant:void 0,portalContainer:null}),RG=qu((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,children:d,trigger:f,variant:p}=Gu(e,"DropdownMenu"),m=Yd(Of),h=m.ref?.current,g=(0,a.useMemo)((()=>({variant:p,portalContainer:h})),[p,h]);return(0,a.createElement)(DU,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:(0,c.isRTL)()?"rtl":"ltr"},(0,a.createElement)(AU,{asChild:!0},f),(0,a.createElement)(LU,{container:h},(0,a.createElement)(vG,{side:i,align:l,sideOffset:s,alignOffset:u,loop:!0,variant:p},(0,a.createElement)(TG.Provider,{value:g},d))))}),"DropdownMenu"),PG=(0,a.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,a.createElement)(yG,{...r,ref:o},t&&(0,a.createElement)(mG,null,t),e,n&&(0,a.createElement)(hG,null,n)))),MG=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:12,cy:12,r:3,fill:"currentColor"})),{lock:IG,unlock:NG}=(0,hj.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),OG={};IG(OG,{CustomSelectControl:wP,__experimentalPopoverLegacyPositionToPlacement:Tf,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Sf(t)}},ComponentsContext:ec,DropdownMenuV2:RG,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,a.createElement)(wG,{...r,checked:t},(0,a.createElement)(mG,null,(0,a.createElement)(SG,null,("indeterminate"===t||!0===t)&&(0,a.createElement)(Gl,{icon:"indeterminate"===t?jb:e_,size:24}))),e,n&&(0,a.createElement)(hG,null,n)),DropdownMenuGroupV2:e=>(0,a.createElement)(FU,{...e}),DropdownMenuItemV2:PG,DropdownMenuLabelV2:e=>(0,a.createElement)(_G,{...e}),DropdownMenuRadioGroupV2:e=>(0,a.createElement)(HU,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,a.createElement)(xG,{...n},(0,a.createElement)(mG,null,(0,a.createElement)(SG,null,(0,a.createElement)(Gl,{icon:MG,size:22}))),e,t&&(0,a.createElement)(hG,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,a.useContext)(TG);return(0,a.createElement)(CG,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:s})=>{const{variant:l,portalContainer:c}=(0,a.useContext)(TG);return(0,a.createElement)(GU,{defaultOpen:e,open:t,onOpenChange:n},(0,a.createElement)(EG,{disabled:r,textValue:o},s),(0,a.createElement)(LU,{container:c},(0,a.createElement)(bG,{loop:!0,sideOffset:16,alignOffset:-8,variant:l},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,a.createElement)(kG,{icon:YU,size:24}),children:n})=>(0,a.createElement)(a.Fragment,null,e&&(0,a.createElement)(mG,null,e),n,t&&(0,a.createElement)(hG,null,t))})}(),(window.wp=window.wp||{}).components=i}(); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index ab41fb2af1..f8300d3375 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-RC1-56288'; +$wp_version = '6.3-RC1-56289'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.